Message Boards Message Boards

0
|
2730 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Create a reverse function of Numeric function result from NDSolve

Posted 4 years ago

Hi There I'm pretty new to Mathematica. I have numeric function that is a result of solution of ODE equation from NDSolve. (H as function of R) I'm trying to get the reverse reciprocal function R as function of H in order to solve this equation: DH/dt=R[H]/6-2*H^2 in order to get H as function of t. When I tried the Inverse function, it expected to get a square matrix, but I'm not sure how to go around it? Thank u. Ezra

Attachments:
POSTED BY: Ezra Kohavi
2 Replies
Posted 4 years ago

Thank u Rohit. It worked. I do have another basic question for u: I would like to solve this equation dx/dt=TT/6-2*x^2 after I found the inverse function so now TT is a function of x with domain 0,700. I'm going to use to solve it by using the integrate function.

T = Integrate[1/(TT/6-2*x^2), x] which worked. and then inverse again to get x function of t by using t = InverseFunction[T]. but plotting of the t does not show anything. Ezra

POSTED BY: Ezra Kohavi
Posted 4 years ago

Hi Ezra,

You need to use InverseFunction, not Inverse.

TT = InverseFunction[S1];
Plot[TT[x], {x, Splice[S1 @@ S1["Domain"]]}]

enter image description here

POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract