Answer by Goofy for An error concerning initial conditions in NDSolve
1. I'd recommend using ParametricNDSolve for this. But if not,...2. The error is because NDSolve is evaluated before the parameters are substituted. The following holds up the evaluation of NDSolve...
View ArticleAnswer by Nasser for An error concerning initial conditions in NDSolve
Try this versionClearAll["Global`*"];ode1 = p'[t] == -gamma p[t] f[t];ode2 = f'[t] == -c f[t] + gamma p[t] f[t];ode3 = T'[t] == b (1 - T[t]) (1 - 0.214499/T[t]) - m (1/(1 + (r/f[t])^n)) (1 -...
View ArticleAnswer by Mariusz Iwaniuk for An error concerning initial conditions in NDSolve
With no errors:sol = With[{p0 = 0.817, T0 = 0.850, m = 0.870, gamma = 0.552, c = 0.004, b = 0.093, r = 0.798, n = 10.862}, NDSolve[{p'[t] == -gamma p[t] f[t], f'[t] == -c f[t] + gamma p[t] f[t], T'[t]...
View ArticleAn error concerning initial conditions in NDSolve
The following code solves my equations correctly, but still an error is returned which I don't understand its meaning:NDSolve[{p'[t] == -gamma p[t] f[t], f'[t] == -c f[t] + gamma p[t] f[t], T'[t] == b...
View Article
More Pages to Explore .....