Items tagged with function function Tagged Items Feed

I have defined a function 'A' and written a procedure to evaluate it for various variables, as follows:

A := r*sin(m);

Aval := proc (r, m)


end proc;

Aval(1, Pi);

The function defined by its variables is returned:  r*sin(m).

How can I get maple to return the numerical value of the function?

In the attached workbook I define a function that contains an if. This seems to confuse the plot function when I try to plot my function. How do I plot this function?



I have a piecewise function which I require to be transformed to a fourier series.

The function to be transformed is:

         velocity:=piecewise(t<=6, 3*sin(t*Pi/6), t>6, 0);

How can I change this to a fourier series in a simple manner.


Thanks for your advice.



i write a code that solve system of ode. when i ask maple to show my answer its shows following statement:

 sol := dsolve({diff(G(x), x, x)+Le*f(x)*(diff(G(x), x))+(Nt/NB)*diff(T(x), x, x) = 0,diff(f(x), x, x, x)+f(x)*(diff(f(x), x, x))-(2*nn)/(nn+1)*(diff(f(x), x))^2 = 0,diff(T(x), x, x)/Pr+f(x)*(diff(T(x), x))+NB*(diff(T(x), x))*(diff(G(x), x))+Nt*(diff(T(x), x))^2=0,G(0) = 1, G(b) = 0, T(0) = 1, T(b) = 0, f(0) = 0, (D(f))(0) = 1, (D(f))(b) = 0}, numeric);

How to expand a periodic function to form of fourier series

The periodic function such as



i have the following function


f[1](x):=_C2 (e)^x-_C1 (e)^(-x)+1/2 x (e)^(-x) h1+1/2 (e)^(-x) h1+_C3

with thease boundary conditions:   f[1](x))=0,diff(f[1](x),x))=1,diff(f[1](x),x),x=infinity)

i want to find cinstants C1,C2,C3 where h1 is arbitrary parametr.

i write the following code but its doesnt work correctly



I need to do this:



Notice that the elements in A can be lists themselves. How can I define such kind of function?

TIA for the help



I have a set of Matrices of the form [a,b,c,d], now I since the standard = doesnt work with matrices, but I have to instead use verify I wanted to ask how I write a function that returns true or false depending on whether a new matrix is already contained in the set. Or otherwise I want to filter the set so that I only have each matrix once.



I need to create an ellipse and an ellipsoid (ellipse in 3D) through code. How would I be able to do this? Can someone please give me an example for each?


Also, I will need to create a line for an ellipse and a plane for an ellipsoid that intersect. Would I be able to find the intersecting points? Would I be able to find the function for the curve line that is created when a plane intersects an ellipsoid? Also, how would I find the surface area and volume...

Hi, this may be a stupid question, but I have trouble getting it right...

I want to create a matrix from a function that uses some of the arguments of the fuction as indices, but want to carry on the other arguments, here is an example of what I have:


MyMatrix:=Matrix(3,3,(k,l)->MyFunction(a,b,c,k,l)); # this is working but not what I want

MyMatrix now contains a,b,c as variables but not as function parameters ...

I want to calculae the value of "Z" shape strip resistor like below. One end is AB and the other is FG,the thickness is t.
I want to use the Schwarz-Christoffel Mapping for this problem,"Z" shape to rectangle.
I have already find the map from rectangle to half plane,exp function.
But I can't find the analytic form relation from half plane to the "Z" shape.
Can you help me,please?
Thank you in advance.


Good morning. I know what is the function that I report the rank of the controllability matrix for time-invariant systems.?

help me please


I have a procedure that takes multiple parameters, in which I want to fix all but one, and then define a single variable function that maps x to this remaining unspecified parameter, so I can give it to the plot() routine. I would like to define a number of such single variable functions for different values of the parameters and plot them all on the same axes.

Ideally, I would like to find a way to make the following, instead of returning 14, return 21,...


I am trying to simplify the expression s as given below. (I am not sure why it comes up with all the vector caclulus notation in it but it should display okay when you enter it)

Because of the presence of the exponential imaginary fucntions I thought evalc might be useful but when I use it I get a huge expression with csgn appearing in it. To my knowledge csgn appears when assumptions are not correctly specified - is this so? I can't see any assumption...

Hi. I have a function defined like this: 


myfun := proc(a11 ......)

f := a11 * x^2 + 2*a12*x*y + a22*y^2 + 2*a13*x + 2*a23*y + a33;

 end proc; 


When i call this function from my worksheet, the "f" polynomial is printed unformatted. For example the output in my worksheet is




First 12 13 14 15 16 17 18 Page 14 of 21