Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'How to output the function get from Dsolve?' topicStudent Support Forum > General > "How to output the function get from Dsolve?"

Next Comment >Help | Reply To Topic
Author Comment/Response
Mingdong
11/30/05 1:50pm

Hi, can anyboby help me about output of the Dsolve function. why i get y[2] but not the exact value 2 which is the value of y[2]? Thanks.

************************************
Clear[y, x, de0]
de0 = DSolve[ {y'[x] == x, y[0] == 0}, y[x] , x]
y[2] /. de0

bb = Table[y[i] /. de0, {i, 0, 5, 1}]
strm = OpenWrite["temps1.dat"]
Write[strm, bb]
!! temps1.dat

Close["temps1.dat"]
************************************

RESULT
------------------------------------
{{y[x] -> x\^2\/2}}
{y[2]}
{{y[0]}, {y[1]}, {y[2]}, {y[3]}, {y[4]}, {y[5]}}
------------------------------------





URL: ,

Subject (listing for 'How to output the function get from Dsolve?')
Author Date Posted
How to output the function get from Dsolve? Mingdong 11/30/05 1:50pm
Re: How to output the function get from Dsolve? yehuda ben-s... 12/04/05 1:27pm
Next Comment >Help | Reply To Topic