![]() |
|||
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 a solution wrapped in braces in the form of a replacement rule for y[x]. We want to extract just the right-hand side of this replacement rule, and to shed the braces. 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 ©2017 San Joaquin Delta College, 5151 Pacific Ave., Stockton, CA 95207, USA e-mail: cbarker@deltacollege.edu |