Items tagged with function function Tagged Items Feed

I have written lists of parameter values and functional forms which I read at the top of the worksheet and use subsequently when I need numerical output.

For instance,

Parameters1 := [ s = 2 ];
Functions1 := [ U = 'proc(c) (c^(1-s)-1)/(1-s); end proc' ];
eval(eval(U(c), Functions1), Parameters1);
                             ...

Download dgil.mw

Hello,

I'm trying to solve a derivation of a function, that consists of parameters and varaibles (i want to find the value of x that setup the derivation to zero).

The solve function give me starnge results..

Follow up the file.

Can someone suggest me another solution to the problem?

Thanks 

 

Gil

Hi,

I am working on my project related to bioinformatics. I am using Maple 11 for calculations related to matrices.

I need to calculate  Moore-penrose Pseudoinverse. I need to know the algorithm used by Maple function

'MatrixInverse' for calculating pseudo inverse of matrix.

 

Thanks

I have a piecewise function which I want to curve fit automatically in Maple. The conditions are:

  • The new smooth curve must have the same area.
  • The new curve mus start and end at the same location.

An image of this is shown below. How can I do this in Maple?

Image Link: http://dump.omertabeyond.com/?di=1613174606062

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)

evalf(A);

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?

PlotFunctionWithI.mw

 

Thanks

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.

hi

 

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

exp(lambda(exp(I*t)-1))

hi

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

s1:=simplify(subs(x=0,f[1](x))=0);
s2:=simplify(subs(x=0,diff(f[1](x),x))=1);

Hi,

I need to do this:

A:=[1,3,5,2,7];
B:=[2,5];

f(B,A)=[3,7]

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

TIA for the help

Hey,

 

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.

 

Thanks!

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:

MyFunction:=(a,b,c,k,l)->a+b+c+k+l;

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.

 

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