Stretto

235 Reputation

5 Badges

6 years, 56 days

MaplePrimes Activity


These are questions asked by Stretto

I'm starting to use procs a lot just because they are more general and can more easily handle complex functionality.

 

I usually have to pass a function to them and that function may or may not take a series of arguments.

 

e.g.,

 

f := (x,y,a)->a*x*y;

g := proc(q, ...)

    q(x,y,...)

end proc;

 

g(f, 3);

 

Here 3 should be passed for a(using ... to represent it).

 

If I pass a function

 

h := (x,y)->x*y

then it would be g(f)

 

I could possibly use nops, ops, arrays, etc... but looking for the right solution.

 

Surely there is some button I can click that simply shows all my posts/questions without having to search?

animate(plot, [fourier(f(x,t),x,w)/t,w=0..100], t=0.1..1, frames=100):

 

works fine, but use a scaling function for time(to get it to play nice) such as

 

animate(plot, [fourier(f(x,2^t),x,w)/2^t,w=0..100], t=0.1..1, frames=100):

 

and maple refuses to work well. It takes about 100 times longer if it plots at all. 2^t is just a scaling factor on f, it doesn't add any real algebraic complexity.

 

 

 

 

I'm trying to plot the fourier transform of a function(a sigmoid) and maple refuses to plot it. It seems to try to compute it symbolically then craps out because it can't reduce it to a computable form. Of course trying to do some type of numerical evaluation is impossible because it substitutes the numerical value for the transform variable.

S := x->erf(x):

plot(abs(fourier(S(x),x,w)),w=0..100):

Warning, unable to evaluate the function to numeric values in the region; see the plotting command's help page to ensure the calling sequence is correct

 

Just want to plot the transform, I do not understand why it is do difficult for maple to do numerically. It should fall back on a numerical routine instead of crapping out.

 

 

 

How does one sync two or more different animations? Ideally it would be something like display(..., synchronize=true)

First 13 14 15 16 Page 15 of 16