How Can I Solve an ODE in Mathematica for Acceleration, Position, and Velocity?

  • Thread starter Thread starter Winzer
  • Start date Start date
  • Tags Tags
    Mathematica Ode
AI Thread Summary
To solve the ordinary differential equation (ODE) for acceleration, position, and velocity in Mathematica, the user is attempting to use the NDsolve function but is encountering difficulties. The equation involves acceleration defined as a function of position and velocity, with initial conditions provided for position and velocity. Clarification on the equation format suggests a possible typographical error in the exponential term. The user seeks to graph the functions for acceleration, position, and velocity. Assistance in correctly implementing the ODE in Mathematica is needed to achieve the desired graphs.
Winzer
Messages
597
Reaction score
0

Homework Statement


I need to solve:
a=-\frac{1}{y[t]^2}+Exp[-y[t]]y&#039;[t]<br /> &lt;br /&gt; Using Mathematica. I have tried NDsolve and nothing.&lt;br /&gt; By the way a is acceleration,y is position,and y&amp;#039; is velocity.&lt;br /&gt; y[0]=1000000, y&amp;#039;[0]=0,y&amp;#039;&amp;#039;[0]=0&lt;br /&gt; &lt;br /&gt; &lt;h2&gt;Homework Equations&lt;/h2&gt;&lt;br /&gt; &lt;h2&gt;The Attempt at a Solution&lt;/h2&gt;&lt;br /&gt; I have tried NDsolve and nothing.&lt;br /&gt; Totally at a loss. This is this right equation this problem of mine by the way[checked with the prof]. I just need to graph a[t],y[t], and v[t].
 
Physics news on Phys.org
Hi Winzer! :smile:

Do you mean a=-\frac{1}{y[t]^2}+e^{-y[t]}y&#039;[t] ?

That's y2e-y dy / (ay2 + 1) = dt

(you need to type [noparse]before and after for LaTeX on this forum[/noparse] :wink:)
 
I multiplied the values first without the error limit. Got 19.38. rounded it off to 2 significant figures since the given data has 2 significant figures. So = 19. For error I used the above formula. It comes out about 1.48. Now my question is. Should I write the answer as 19±1.5 (rounding 1.48 to 2 significant figures) OR should I write it as 19±1. So in short, should the error have same number of significant figures as the mean value or should it have the same number of decimal places as...
Thread 'A cylinder connected to a hanging mass'
Let's declare that for the cylinder, mass = M = 10 kg Radius = R = 4 m For the wall and the floor, Friction coeff = ##\mu## = 0.5 For the hanging mass, mass = m = 11 kg First, we divide the force according to their respective plane (x and y thing, correct me if I'm wrong) and according to which, cylinder or the hanging mass, they're working on. Force on the hanging mass $$mg - T = ma$$ Force(Cylinder) on y $$N_f + f_w - Mg = 0$$ Force(Cylinder) on x $$T + f_f - N_w = Ma$$ There's also...
Back
Top