Runge-Kutta method: Difference between revisions

Content deleted Content added
Sonia (talk | contribs)
Go solution
Line 210: Line 210:
y(10.0) = 675.999949 Error: 5.098329e-05
y(10.0) = 675.999949 Error: 5.098329e-05
</pre>
</pre>

=={{header|Mathematica}}==
<lang Mathematica>DSolve[{y'[t] == t * Sqrt[y[t]], y[0] == 1, y'[0] == 0}, y[t], t]//Simplify
-> {{y[t] -> 1/16 (4+t^2)^2}}
(* Symbolic expression found : no delta from expected solution *)
y[t] -> 1/16*(4+t^2)^2 /. t -> Range[10]
->y[{1,2,3,4,5,6,7,8,9,10}]->{25/16, 4, 169/16, 25, 841/16, 100, 2809/16, 289, 7225/16, 676}</lang>


=={{header|Tcl}}==
=={{header|Tcl}}==