Like you said, I tried to have the numeric solution as an interpolating function. Inside mathematica, its possible to use this function , but I couldnt find a way to export this function out or look at the parameters of the function. How its done? Please see attached.
Also the numbers in the equation (0.232866 and -0.232166) are going to be parametric, say A and B. Is it possible to receive the interpolating function parameters interms of A and B outside of Mathematica in this case?
Building on Daniels’s suggestion, If your goal is to code this all in C, I would suggest considering using a polynomial approximation of the Elliptic integral. For example you can find it in Abramowitz and stegun p 592 You can use Mathematica to reformulate the result and insert the approximation and then simplify/solve it into a compact form for coding in C. Also, you can check the result against examples in MMA.
I am trying to apply Neil’s approximation advice to your solution.
In your code, when I enter initial conditions, nothing changes in the answer. Integration constant remains. How do I add initial condition to your code to have an effect on the answer?
Many thanks for your kind support and giving me a hand. I clearly understand that I need to have an analytical solution of Inverse ellipctical integral of second kind. I researched the internet and did not find any approximation for the inverse.
So , in the end, I need to solve the equation EllipticE[y[x]/2 , -k]=a+b*x^2.
How can I analytically solve this equation, by letting y(x) alone? Can mathematica help me on this?
My thought was to use the polynomial approximation for the elliptic integral and solve the polynomial in MMA. If the polynomial is too complicated for an analytical solution, I would resort to a simple numerical Solve. You can implement that easily in C.
You are absolutely right, numerical solution would be a good way to go. But…
The problem with numerical solution is that, i need to equate 2 nonlinear differential equations at a Point X to find X. Inorder to do this I have to have 2 analytical solutions at hand to equate. With numerical solution, I dont have any equation at hand.
Unfortunately the analytic solutions of these differential equations involve inverse Elliptic Integrals. A polynomial approximation for the inverse elliptical integral (should be inverse) would work perfect for me. In your manual, it only gives direct approximation for the elliptic integral not the inverse approximation.