More detailed help with |
---|
(x2 + 2x - 1)5/3 | is Math.pow((x*x+2*x-1),5/3) |
---|---|
is Math.sqrt(Math.sin(x)/(Math.pow(2,x)+3*Math.log(x))) |
Problem: | y' = y - t2 + 1, given y(0) = 0.5 |
---|---|
Solution: | y = (t + 1)2 - 0.5et |
Method | Euler | Corrected Euler |
Runge-Kutta | Exact |
---|---|---|---|---|
y(2) | 4.865785 | 5.23055 | 5.305363 | 5.305472 |
Error | 0.439687 | 0.072417 | 0.000104 | 0 |