Hi everyone,

I would like to ask please,

I defined the following functions :

h1(z)=(abs(z)-1)^2*(1+2*abs(z)), for -1<z<1 otherwise h1(z)=0.

z(x,y)=((x-x0)*cos(theta)+(y-y0)*sin(theta)+c*t)/lambda.

and would like to compose h1(z(x,y))

I created two functions in FF++ but when I composed them, FF++ doesn’t compute the composed function.

real theta=pi/4;

real c=1;

real lambda=1;

real xr=3,yr=3;

real x0=xr+lambda*cos(theta),y0=yr+lambda*sin(theta);

func h1= ((abs(z)-1)^2*(1+2*abs(z)))*(z>-1 && z<1);

func z=((x-x0)*cos(theta)+(y-y0)*sin(theta)+c*t)/lambda;

func utilde=h1(z(x,y));// compse h1(z)

but FF++ tells me that there is an error in the definition of utilde.

Thank you!

Mordechai.