I'm trying to solve this ODE [itex]R'(t)=\frac{-a}{R(t)^2}[/itex] numerically in Mathematica (a, b are non-zero constants). Here's what I have:(adsbygoogle = window.adsbygoogle || []).push({});

It's returning withCode (Text):

NDSolve[{R'[t]==-a/R[t]^2, R[0]==b,

WhenEvent[R[t]==0, end=t; "StopIntegration"]}, R, {t,0,1}]

What does it mean there's a non-numerical value for a derivative at t=0 and how do I fix it?Code (Text):

NDSolve:::ndnum : Encountered non-numerical value for a derivative at t==0.'

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Solving ODE numerically in Mathematica - 'ndnum' error?

Tags:

Loading...

Similar Threads - Solving numerically Mathematica | Date |
---|---|

Mathematica Numerically solve recurrence relation | Mar 12, 2017 |

Solving ODE numerically in Mathematica - I get 'ndnum' error | Mar 17, 2015 |

Simulink help solving numerical oscillation | Jul 16, 2014 |

MATHEMATICA[solve numerical integration and find min value] | Jul 29, 2010 |

To solve an equation numerically using mathematica. | Mar 18, 2009 |

**Physics Forums - The Fusion of Science and Community**