# \[?\] Deal with "Encountered non-numeric value for a derivative at t == 0" ?

**URL:** <https://community.wolfram.com/t/deal-with-encountered-non-numeric-value-for-a-derivative-at-t-0/14246>\
**Category:** Questions\
**Tags:** equation-solving, numerical-computation\
**Created:** [June 19, 2019, 1:44am UTC](https://community.wolfram.com/t/deal-with-encountered-non-numeric-value-for-a-derivative-at-t-0/14246 "2019-06-19T01:44:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![a01019588](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@a01019588](https://community.wolfram.com/u/a01019588)\
**Post date:** [June 19, 2019, 1:44am UTC](https://community.wolfram.com/t/deal-with-encountered-non-numeric-value-for-a-derivative-at-t-0/14246/1 "2019-06-19T01:44:35Z")

</div>

Hi, new in mathematica and im facing a problem. Im trying to solve a diferencial equation with NDSolve and but the error “Encountered non-numeric value for a derivative at t == 0” shows. I understand the nature of the error but I don’t know how to manage it. The function im obtaining is defined in the small interval t around 0 to 1. Here the code:

```
V=NDSolve[{v'[t]==-g +(a*ve)/(mr+mw*Exp[-ve*t]) +(mw*ve*Exp[-ve*t])/(mr+mw*Exp[-ve*t])*v[t]-(b/(mr+mw*Exp[-ve*t]))*v[t]^2 ,v[0]==0.01},v[t],{t,0.01,0.4}]

```

Here is an screenshot:

 ![ScreenShot2019-06-19at02.42.47.png](https://global.discourse-cdn.com/wolfram/original/3X/9/f/9f24f9f35e8bf419ad981da75cdcb7e13ae37f88.png)

Thank you!

---

<div class="post-metadata">

**Author:** ![mthiel](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mthiel/32/42877_2.png) [@mthiel](https://community.wolfram.com/u/mthiel)\
**Post date:** [June 19, 2019, 2:04am UTC](https://community.wolfram.com/t/deal-with-encountered-non-numeric-value-for-a-derivative-at-t-0/14246/2 "2019-06-19T02:04:26Z")

</div>

Difficult to say without the full code. You are using numerical integration so, you will have to define the parameters before integrating. This here, for example, works:

```
g = -9.81; a = 0.4; ve = 4.3; mr = 0.2; mw = 0.5; b = 0.1;

V = NDSolve[{v'[
     t] == -g + (a*ve)/(mr + 
        mw*Exp[-ve*t]) + (mw*ve*Exp[-ve*t])/(mr + mw*Exp[-ve*t])*
      v[t] - (b/(mr + mw*Exp[-ve*t]))*v[t]^2, v[0] == 0.01}, 
  v[t], {t, 0.01, 0.4}] 

Plot[v[t] /. V, {t, 0.01, 0.4}]

```

 ![Screenshot2019-06-1903.03.45.png](https://global.discourse-cdn.com/wolfram/original/3X/0/2/026b51ab451479999f97bcdc645b3a5ef2eba068.png)

Cheers,

Marco
