comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » solving non linear equation
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
solving non linear equation [message #92842] Thu, 10 March 2016 05:42 Go to next message
omar ali is currently offline  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 Go to previous message
Craig Markwardt is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: contour plot of scattered data
Next Topic: Dealing with list created by STRSPLIT?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 09:22:34 PDT 2025

Total time taken to generate the page: 0.00413 seconds