Hello, colleagues
I am making a simple code.
rhs[x_, y_, om_] := f2[x, y, om]/x/f1[y];
psr[ro_, om_, a_] := NDSolve[{f'[t] - rhs[t, f[t], om] == 0, f[a] == 1}, f, {t, a, 1}][[1]][[1]][[2]][ro];
rhs
is defined based on the functions of f1
and f2
.
An ODE, f ' [t] == rhs[t, f [t], om ]
, is solved using NDSolve, then its calcuation result defines a new function, psr[ro_,om_,a_]
.
My question is what the role of [[1]][[1]][[2]][ro]
at the end of psr
. I just guess it may be related to the positions and dimensions of variables of psr
.
Thanks for the answers in advance.