Items tagged with unapply unapply Tagged Items Feed

Hi everyone,

 

I would like to do:

f:=unapply(x**2,x);
j:=unapply(2*f(x),f(x));
 
Basically it is to define j(f(x))
But this is doesn't work. What is the right way to do it?\
 
My final goal is to calculate int(j(f(x)), f(x)=-infinity..infinity).
Maplesoft Employee

Paper Models of 3D Plots

September 09 2011 by Paul 290 Maple

 

                

3D Paper Physical Model

Hi,

 

After having Maple solve a large system of equations, I'd like to convert the resultset into functions programmatically.

 

Something along these lines:

for p in resultset do functionname=lhs(p); functionname=unapply(p); od;

 

This of course doesn't work, this assigns the function to 'll'. I tried something like this as well:

for p in resultset do functionname=lhs(p); subs(FN=functionname, FN=unapply(p)); od;

I have the following variable

s1:=(1/2/Pi+Q*cos(k*phi))^3*cos(k*phi)/(1+beta^2*(1/2/Pi+Q*cos(k*phi))^2)^2;

 

and then I make a substitution as follows

s2:= subs(cos(k*phi)=((1-u^2) / (1+u^2)),sin(k*phi)=((2*u) / (1+u^2)), s1)*1/(1 + u^2);  -----(1)

 

Now if I set up a function f that maps u to the right hand side of (1) above as follows

f:=u->(1/2/Pi+Q*(1-u^2)/(1+u^2...

Page 1 of 1