Hello,
I have plot a function B[t], solved from a differential equation. It gave me an interpolating function B: { {B => InterpolatingFunction [ {{0,.60}}, <> ] }} I would like now to plot another function depending on B, that would be: (A2*B + A1 - rho) / eta, with rho (=0.96 for exemple) and eta (=2 for exemple) two constant parameters, and A1 and A2 defined below. But I can't manage to plot this function depending on the interpolating function. If someone knows how to do it, it would be great help !
Here is the equation that permitted me to find the trajectory of B:
A1 = \[Theta]1*B[t] + \[Theta]2
A2 = \[Theta]1
\[Theta]1 = 0.03
\[Theta]2 = 0.04
\[Alpha] = 0.32
\[Delta] = 0.1
\[Gamma] = 0.5
p = 1
s = NDSolve[{\[Alpha] *(1/(\[Alpha] - 1) ((A1*B[t] + A2 + \[Delta])/\[Alpha])^(1/(\[Alpha] - 1) -1)*((A1*B'[t])/ \[Alpha]) )/((1 - \[Alpha]) ((A1*B[t] + A2 + \[Delta])/\[Alpha])^(\[Alpha]/(\[Alpha] -1)) + \[Gamma]*p) == A1*B[t] + A2 , B[0] == 50}, B, {t, 0, 60}]