HW 2 Problem 7

Math 5620 Software Manual

Solve the simple elliptic ODE using the following data: a = 0, b = 0, f(x) = sin(pi x), u_a = 2.5, and u_b = 5.0. ….

Author: Tanner Wheeler

Code Section: Using LU Factorization

Output:

-2.5
-1.25
-0.833333
-0.625
-0.5
-0.416667
-0.357143
-0.3125
-0.277778
-0.25
-0.227273
-0.208333
-0.192308
-0.178571
-0.166667
-0.15625
-0.147059
-0.138889
-0.131579
-0.125
-0.119048
-0.113636
-0.108696
-0.104167
-0.1
-0.0961538
-0.0925926
-0.0892857
-0.0862069
-0.0833333
-0.0806452
-0.078125
-0.0757576
-0.0735294
-0.0714286
-0.0694444
-0.0675676
-0.0657895
-0.0641026
-0.0625
-0.0609756
-0.0595238
-0.0581395
-0.0568182
-0.0555556
-0.0543478
-0.0531915
-0.0520833
-5.05102

Last Modified: February/2018