solving non linear equation [message #92842] |
Thu, 10 March 2016 05:42  |
omar ali
Messages: 13 Registered: December 2015
|
Junior Member |
|
|
Hi,
I have the following equation and I have various values for "y" and i need to calculate "X". can it be solved directly in idl.
y = (a*cos(theta))*h*(1-exp(-2*b*X/cos(theta)))/(2*X*b)
Regards,
|
|
|
Re: solving non linear equation [message #92851 is a reply to message #92842] |
Fri, 11 March 2016 15:59  |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
On Thursday, March 10, 2016 at 8:42:44 AM UTC-5, omar ali wrote:
> Hi,
> I have the following equation and I have various values for "y" and i need to calculate "X". can it be solved directly in idl.
>
> y = (a*cos(theta))*h*(1-exp(-2*b*X/cos(theta)))/(2*X*b)
Not sure what you want. If you want a symbolic solution, then no, IDL does not do symbolic manipulation.
If you know values of A, B, THETA and H, then you can probably use a simple procedure like AMOEBA to solve for X. Or better yet, you can probably use some simple iterative approach to solve the problem.
If your goal is to estimate the A, B THETA and H parameters based on your data, then your best bet is to use MPFIT().
Best wishes,
Craig
|
|
|