Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. s = ParametricNDSolve[{x'[t] == y[t], y'[t] == x[t], x[0] == param,
  2. y[0] == param}, {x, y}, {t, 0, 1}, {param},
  3. WorkingPrecision -> 70, PrecisionGoal -> 20];
  4. Plot[Evaluate[Table[x[param][t] /. s, {param, 1, 10}]], {t, 0, 1},
  5. PlotLegends -> Automatic]
  6.  
  7. Plot[Evaluate[ Table[x[param][t] /. s, {param, 1, 10}]], {t, 0, 1},
  8. PlotLabels->Range[10]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement