Maple people:

The title is the question. I defined a function in Maple, which works. I am trying to get Maple to compute its derivatives. I want to save the derivatives as functions. Here is a code snippet. The function itself works. I have uploaded the worksheet. Mapleprimes seems to have copied the entire worksheet into this question when I uploaded the worksheet.

[begin code snippet]

a := f(x,y) = f(y,x)

how to get x and y from left side f(x,y)

and get y and x from right side f(y,x)?

how can i define a matrix as a sunction of a variable so that when i chande the independet variable,the elements of the matrix also change?A(t):=[a[t],b[t],c[t]] ; i want to define a function like this,so that by changing the time t,the elements of the matrix also change,what should i do?

hi

I have an unkhown function as f(r) which i want to solve it at the end of calculation. How can i define it in beggining?

I want to write g as a function of sigma^2.

but

yields an error. how to do?

It's interesting that every continuous piecewise linear function can be specified by one explicit equation with absolute values. The procedure JoggedLine carries out such conversion.

Formal arguments of the procedure:

A - a list of the coordinates of the vertices of the polyline or the continuous piecewise linear expression defined on the entire real axis.

B (optional) - a point on the left "tail"...

The expression below is not producing any plot, although the axes and sliders are set :

How to plot x versus theta of the following implicit function

sin(theta)-2*sin(2*x-theta+(1/3)*Pi)/sin(x+(1/3)*Pi-theta)=0

where x is the implicit function of theta

now how can I plot the relationship between x and theta(condition:-Pi<theta<Pi,-Pi<x<Pi)

For a function of one variable, I use the map command quite a bit to evaluate the function at several values of the independent variable. For example,

f:=x->x^2:

xlist:=[1,2,3]:

map(f,xlist)

How may I do something similar for a function of two variables? For example,

f:=(x,y)->x^2+y^2:

xylist:=[[1,1],[1,2],[2,1],[2,2]]:

Can the map command be used to evaluate f at each ordered pair? Maybe I'm not even using the correct data structure. Thanks!

my function is:

f := proc (x) if 0 < x and x < evalf(Pi) then 1 elif evalf(Pi) < x and x < evalf(2*Pi) then -1 end if end proc

now it tried:

f1 := add((-1)^n*f(x-evalf(2*n*Pi)), n = 0 .. 10)

to get a periodic function.

but unfortunately it says:

Error, (in f) cannot determine if this expression is true or false: 0 < x and x < 3.141592654

already when trying to calc the sum.

Good afternoon everybody,

I have a problem with the evaluation of a function. You can see the test programm I have written to test the use of functions and in the end I don't get values but the expression in letters. I think the problem lies in the definition of g but I don't know how to solve the problem.

Thank you for your help,

ssteve

I'm trying to add the output of my function FunctionToTree,which gets all elements from an expression, to a graph using the Graph function but I'm getting erros even when I add it as a list.with(GraphTheory):with(SpecialGraphs):FunctionToTree:=proc(expr) local elem; local Tree:=NULL; local exprType := convert(whattype(expr),string); local newExpr:=convert(expr,string); if (nops(expr) <> 1) or (nops(op(1,expr)) <> 1) then for elem in op(expr) do :

Hi,

Presently, I am trying to find a way to replace functional expressions by a variable

For example I have an expression as follows:

p:=f(x)^2 + g(x)^3

I would like to get this to look like

q:= f^2 + g^3

Does anybody have an idea of how to do this in Maple?

Thanks,

Willem

Hello, I have a problem in plotting the vector field of dx/dt=sinx/sint

It shows me an error:

Error, (in DEtools/dfieldplot) unable to evaluate function `sin(x)` in evalhf

Dunno how to fix it

Here is my code:

DE := [diff(x(t), t) = sin(x)(t)/sin(t)];with(DEtools):DC:=[sin(x)/sin(t),.1]:dfieldplot(DE, x(t), t = -2 .. 2, x = -1 .. 2, arrows = medium, title = 'Diff', color = DC);

Hello everybody,

I'm completely new to Maple (installed it today) and have a question about the use of multi variabele expressions. I wanted to use a function B depending from the variables a, b, c and d without describing the expression explicit.

For example: B:= (a, b, c, d); [without the -> a....]

Then I wanted to take the taylor expansion of the first order for [a=e, b=f, c=g, d=h...

You must be logged into your Facebook account in order to share via Facebook.

Click the button below to share this on Google+. A new window will open.

You must be logged in to your Twitter account in order to share. Click the button below to login (a new window will open.)

Please log-in to your MaplePrimes account.

Wrong Email/Password. Please try again.