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

Home » Public Forums » archive » Re: Transforming a nonlinear equation
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Transforming a nonlinear equation [message #55214] Tue, 07 August 2007 10:37 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
Very nice. Thanks.

I now realize that I actually have a nonlinear function of two
variables f(x,y) and need to find the new coefficients under linear
transformations of x-->x' and y-->y'. So I'll need to first find
the new X coefficients for each term in Y, and then find the new Y
coefficients for each term in X'. But it should be straightforward,
if tedious. --Wayne

> then the following code should deliver the new coefficients of the
> y-polynomial:
>
> degree=n_elements(a)-1
>
> newarray=a*0
>
> FOR i=0,degree DO BEGIN
> FOR j=0,i DO BEGIN
> newarray[j]=newarray[j]+a[i]*binomial(j,i)*alpha^j*beta^(i-j )
> ENDFOR
> ENDFOR
>
> where the binomial(j,n) function returns
> factorial(n)/(factorial(j)*factorial(n-j))
>
> Ciao,
> Paolo
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: byte offset in POINT_LUN
Next Topic: Re: the last line of a large file

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

Current Time: Fri Oct 10 17:38:39 PDT 2025

Total time taken to generate the page: 0.96585 seconds