Items tagged with function

hi. i am tottaly new to the maple and i have a problem.

consider function f with variables x & y which are not independent. x & y are functions of t and the relation is unknown.

for example i wanna to the below job:

define f as f=x^2+y^2

differentiate it with respect to t : diff(f,t) which should give me 2(dx/dt)x+2(dy/dt)y

i've googled it alot and i couldn't find anything usefull.

(the problem is how to set x as a function of t with unknown relation and use it in another function and then differentiate it with respect to t)

thanks alot :)



I've tried to find the solution to my problem, but none of my attempts was succesful.

I have a function which is one-to-one in a particular domain which I am interested in. I would like to get the inverse function of it only in this domain. Here is my function and plot for xp=0..10000:

x := xp-> (-1)*720.5668720*sinh(0.2043018094e-3*xp-0.8532729286)+84952.59423+4.014460003*10^5*arcsinh(0.1219272144e-1*sinh(0.2043018094e-3*xp-0.8532729286)-0.2032498888)

I would appreciate any help,



I want to plot in semilog graph the attached function.where b from 1 to 5 and R from 1 to 100000(in logR)I tried with the plot builder but i think i am doing smthing wrong



R = 2*b*(b^2-9*b-6)/(10*b^3+21*b^2+16*b+4)











How to realize the Cantor staircase function in Maple? Mathematica has it.

I'd like to stress the three desired properties:

(i) The virtual Cantor function can be evaluated to arbitrary numerical precision.

(ii) For certain arguments, this function automatically evaluates to exact values.

(iii) Mathematical function, suitable for both symbolic and numeric manipulation.

I want to obtain the taylor series of a function say sin(x) at x=0 up to infinity. I mean that I don't want a trauncated series. I tried using "series" and "taylor" but they just give the truncated series.


I am trying to write 

D= d/dx + y1*d/dy + y*y1/x*d/dy1 

So that I can apply D to some function L(x,y)

But I don't know how to write the derivative like this without them operation on a function. Can somebody help me? 

Thank you


So I am trying to apply the Optimization function to a rather complicated problem I am currently working on, and having some trouble getting maple to cooporate. This is the part of the code that is giving me the error, with error included. All of the variables imputtet when calling OptimizeSpring are constants. If there is any other details I should add, please say so and I will add them promptly :) Thanks alot!
Maple problem

I suspect that it might be related to this suggestion, but I am not sure how to apply it


I am trying to get W(x,y,y')=y*y'/x

I am trying 

omega:=(x, y(x), (diff(y(x),x)))-> (y(x)*(diff(y(x), x))/x);

but get 

Error, invalid parameter; functional operators require their parameters to be of type symbol or (symbol::type)


Can anyone help me out?


thank you


I use a map() command to get the values of function for each element of vector. Here is an example of a simple task:




I would like to do the same with piecewise function but it doesn't work. Here is an example:


h:=x->piecewise( 0<=x and x<= 5, f, 5<x and x <= 10, g ) ;

Is it possible to work with piecewise function? Maybe someone has an idea how to do it in different way?

Kind regards,


Perhaps the question is trivial, but I could not find the solution.

I am solving numerically an ODE (e.g., a simple harmonic oscillator) with the righthand side that contains a random part. For example it is

eq:=diff(a(t),t,t) + a(t) = (1+0.01*R(t))*cos(5*t);

where R(t) is a random function of t. How can I make such a function?

The naive attempt: 

eq:=diff(a(t),t,t) + a(t) = 3.*(1+0.1*rand()/1000000000000.)*cos(5.*t);

gave me a fixed (while random) value, e.g.


But, I need this coefficeint to be random each time step.

Any suggestions are very welcome!





I have a two variable function d(a,b) which i don't want to substitute for the result. How can I make this product distributive,e.g. d(a+b,c)=d(a,c)+d(b,c) with independece of the variables I introduce in the function?

Thank you for the help!

Hi guys,


i want to find d'alembertian of a function of Ricci scalar (f(R)) , but it seems something is wrong .




thanks in advance

Hi!! i am working on assignment.

h:= x-> (x^17-x*sin(x^16))/x^49+exp(sqrt(x+8))*ln(abs((cos^4*(x)-5)));


i want to find the value of the h(10)

i use eval , but it comes out a function, not a solution.!!



I have a problem with creating a function contains n-dimensional independent variables with random function .. The function looks like:

f(x)=sum(U[i] * abs(x[i])^i,i=1..n)

where U is a random between 0 and 1


For 1-dimensional problem, it will be like:


The plot by MATLAB will be:


While, for 2-dimensional problem, it will be like:

f(x[1],x[2])=U[1]*abs(x[1]) - (-U[2]*abs(x[2])^2)


and the plot with MATLAB will be:


The MATLAB code is:

R=1000; % steps resolution

for j=1:length(x1)

    % For 1-dimensional plotting

    % For 2-dimensional plotting
    for i=1:length(x2)







I have used Maple because of its great graphics and animation, and for the mathematical analysis capability. However, to animate the above problem for 1- and 2-dimensional problems, I always fail!

My attempt has been just successed to plot 1-dimensional problem (without animation) .. And it tooks long-time with many codes!


X := Statistics:-RandomVariable(('Uniform')(0, 1));
R := Statistics:-Sample(X, 1000);

Vect := abs(Vector[column]([seq(0 .. 10, 10/999)]));

V := `~`[`-`](Vect, 5);

Mat := Multiply(V, R);

f := ArrayTools:-Diagonal(Mat);

F := abs(f);

Axis := Transpose(V);

f5 := plot(Axis, F, style = line);


And finally I got the graph:


But the problem is:

How can I animate it? Maybe I need to express it with new Maple code?

How can I plot and animate it when n=2?





How do I define this function? s(t) = 5*t1/2

This function shows the pace of a particle. I have to decide the time when the pace of the particle is 2 m/s



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