![]() |
|||
Mathematics & Science
Learning Center |
|||
Applications of Differential EquationsA Suspended Wire(continued from last page...) Your Mathematica session should have gone something like this:
ansol=DSolve[{y''[x]==(0.5/40)*Sqrt[1+(y'[x])^2], y[0]==0,
y'[0]==0}, y[x], x] Mathematica produces three solutions, though two of them appear to be complex, since they involve the imaginary constant, i. Since we're only interested in real solutions, the first solution listed is the one we wish to extract from this set. This may be done by using what may be called, the "[[1,1,2]] trick." Use it now, by issuing the command: ansol1 = ansol[[1, 1, 2]] which tells Mathematica to take ansol's first row, first column, second part, and read it into ansol1Let's go and see what you should have gotten... |
|||
ODE Laboratories: A Sabbatical Project by Christopher A. Barker ©2009 San Joaquin Delta College, 5151 Pacific Ave., Stockton, CA 95207, USA e-mail: cbarker@deltacollege.edu |
|||