Items tagged with function function Tagged Items Feed

I would like to define a function f(a,b,c,....) sub that x * f(a,b,c,...) would return f(x*a,x*b,x*c,...). Is this something that is simple to do in the function definition or do I need to create a rule to apply?

How to solve this problem in maple?
Decide which of three lines given are tangent to the graph of f(x) at given points.
The function to define is f(x)=2x^3-4x^2+3x-5
The possible tangent lines are:
y = x - 5
y = 2x - 5
y = 3x - 5

1. What is/are the zero(es) for this function? In other words, what is the solution for f(x)= 0

2.  What axes values (x- and y- ranges) are appropriate for this graph?

3. When plotting each linear function with f(x...

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);



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?





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.



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:

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...

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