2
$\begingroup$

Is this the correct way to solve this problem?

d = {{9.721036901*10^-7, 0.80119823*10^-6}, {9.728704323*10^-7, 0.83015194*10^-6}, {9.728577185000001*10^-7, 0.857031534*10^-6},{9.728430487000002*10^-7, 0.88804645*10^-6}, {9.733506242*10^-7, 0.914930348*10^-6}, {9.733359543*10^-7, 0.945945264*10^-6}};

b = Interpolation[d, InterpolationOrder -> 1];

bb = b[a]*10^-4;

yF = ParametricNDSolveValue[{y'[t] == bb y[t], y[0] == 1}, y, {t, 0, 10}, {a}]
$\endgroup$
2
  • $\begingroup$ What you want to achieve? $\endgroup$
    – zhk
    Jan 11, 2017 at 4:59
  • $\begingroup$ What is "this problem"? $\endgroup$ Jan 11, 2017 at 8:15

1 Answer 1

0
$\begingroup$

You've done everything right.

yF = ParametricNDSolveValue[{y'[t] == bb y[t], y[0] == 1}, y, {t, 0, 10}, {a}];
Plot[Evaluate@Table[Callout[yF[a][t], a], {a, 0, 5}], {t, 0, 10}]

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.