Items tagged with function


Consider substutition with use of a function:

subs(F(x,y)=f(x)+g(y), F(x,y));

As expected, Maple returns the proper answer:



subs(F(x,y)=f(x)+g(y), F(x,x));



How to force Maple recognize F as a function, in order to obtain


in return?

The functions algsubs, applyrule work in the same way.

I would like to solve the following differential equation with a relatively complicated function that is best declared.

myfun := proc (x::float)

local output;

output := 4*x^2;

end proc;

de := diff(y(x), x)+myfun(x)*y(x) = 0.;

However, this gives the following message:

Error, invalid input: myfun expects its 1st argument, x, to be of type float, but received x

Any suggestions?



If not define a procedure

just pass day(hello(a,b), c)

as parameter how to get hello , this function name and day this function name

I have to calculate a sort of trend line, but I don't know how it works with maple.
I tried with Excel.

Do you think the method is right? How can I replicate it on maple?

Thanks in advance

I didn't even know the erf function existed until doing this problem. I looked up how to use it, so I tried plugging in the explicity form into Maple, hoping it'd solve it, but it just spit back out the erf function.

I am trying to get a number answer.  A decimal. Because this is calculating a probability. How do I get Maple to give me a number here? Thanks!

Hello, How to do simple analyse on function? like find intervas where function negative and positive, monotone, critical points... 


And also how to plot them on one graph?

thanks :)

how to find roots of equation J0(xR) = 0 ,R is constant, using maple? I know command for zeros of Bessel function i.e J0(x) = 0.  but what to do with different argument?

O(t) = 9.2-[(8.93*35.3)/(11.17-8.93)]*(exp(-8.93*t)-exp(-11.17*t))-8.3*exp(-11.17*t)

t betwen 0 and 1

ha := (diff(c(t), t))/(c(t)*(diff(c(t), t))-c(t));
solve(subs(m=ha,f(m))*subs(m=subs(c(t)=a(t),ha)), f(m)) = subs(m=ha+subs(c(t)=a(t),ha), f(m), f);

just expect to find a function ?

I wish to define a function which is the derivative of another function.

> f:=(x)->x^2:

> g:=(x)->diff(f(x),x):

> g(x);

2 x

> f(2);


> g(2);
Error, (in g) invalid input: diff received 2, which is not valid for its 2nd argument


I cannot find a way in which I can define the function g, using the functional operator, so that I can actually evaluate g(x).


How can I do this?


I have this function:

Z := (cos((1/2)*x)-I*sin((1/2)*x))*A0/r^(1/2)+(cos((1/2)*x)+I*sin((1/2)*x))*r^(1/2)*A1+(cos(3*x*(1/2))+I*sin(3*x*(1/2)))*r^(3/2)*A2;

I wanna to obtain another function Y which equal to


where: f1 and f2 are constant 

thanks :)

how are iterated functions represented in maple? as in f(f(f(x))) is f^3(x)(x)  in conventional notation where by the reader knows it is refering to the iteration conducted 3 times on the argument x, but what does maple use to differentiate between iteration ,exponentiation and differentiation?

Having a function where the value is for example only defined when abs(x) <= 1, then how can I specify that the value is otherwise undefined, the replacing "How_to_specify_undefined_value" below?

Below I want to explore a function behaviour using a slider to determine the value of 'a' so the function is shown in a plot, but I can't figure out how to use Explore to bind the value of 'a'.

If I bind bind the value using "a := 5", then plot works, but when binding through Explore it does not work.  I can also write the function in the plot like "a * x", but that is not as general as using a function.

How to explore function like that.

1 2 3 4 5 6 7 Last Page 1 of 27