Items tagged with function function Tagged Items Feed

Function in Maple

May 21 2012 by hsadeghi 0 Maple

I used to work with Matlab and recently I've started to use Maple. In Matlab you can make a function with several commands that does some calculations and calculates one parameter and you can call that function in another function. I need to the same in Maple (i.e. define a function with several commands that calculates a parameter and use the result of that function in another function). Any suggestion?

Hi! I have 4 function. I wanna plot two of them in x=-0.5..0 range; the other two in x=0..0.5 range. How can I display that four function in one plot? Thanks!

 

E := proc (phi) options operator, arrow; int(1/(1-(1-1/kappa^2)*sin(phi)^2)^(1/2), phi = 0 .. phi) end proc

E(pi/2)

 

Is there a way to get this function to work properly without having to simplify the integral manually ?

kappa is a constant (with a value of 12.4)

 

Thanks in advance!

Hi,

I'm trying to creat u which is a function of ξ. but I do not have the full definition of u yet. how can i write it in a way where when i differentiate it, it'll give me something like u(ξ),ξ? And that i can differentiate it once more with ξ and it gives me u(ξ),ξξ and so on?

please advice. Thanks.

Given:

f:=proc(a) x->modp(a*x,256); end proc:

Determine for which values of a in Z[256] the functions f(a) are onto.

I know that I need to use evalb to check if the image and coDomain are the same. I just cannot get it to work.

Given Maple expressions f(g,x) and g(x) how would you replace g in f  to show a function in x.

Hi. I have a question that concerns indices of vector of functions within for-loop.

I have a following piece of code:

Hi, 
I'm trying to visualize a 3-Dimensional function, the color being the 4th dimension. All the examples that I have found of the so called plot3d function only involve 2D functions, the third dimension really being the return value of the function. I need more: I have a 3D function which takes in (x,y,z) if you like, and outputs one number. I'd like to visualize this function in maple. 

 

Thanks, 
~Austen 

Hi all, I found that the expression:

(2x+7)/5+(6x-3)/3

automatically simplifies to

12/5*x+2/5

Is there a function that will return

(12x+2)/5

which is one fraction, instead?

still have problems,
1.
restart:
f := proc (x) options operator, arrow; piecewise(0 <= x and x < 4, 50, 4 <= x and x < 5, 0, 5 <= x, f(x-5)) end proc;

plot(proc (t) options operator, arrow; evalf(Int(f, 0 .. t, epsilon = 0.1e-3, digits = 15)) end proc, 0 .. 20);


in the above figure,there is a discont point in the interval [16..18],but in fact,it's a continuous curve.

2.
how to use fsolve deal with two periodic functions?

How does this function

March 23 2012 by herclau 933 Maple

How does this  function  work:

rtable_scanblock( M, [rtable_dims(M)],

    (val,ind,res) -> `if`(val > res[2],[ind,val],res),

    [[1,1],-infinity]);

 

Please could comment on each statement.


Taken from  http://www.mapleprimes.com/questions/131889-Finding-A-Max-In-A-3d-Plot#comment131997

Gracias

I am trying to compute the diffusion coefficient from the diffusion equation. I can compute the analytical solution and evaluate it for the parameters I know and for the known time t to get this function:

f:=x->
646.0548255+(309.8026777+568.8289152*I)*((.8781989023+.4782956073*I)*ln(1.+(-.8781989023+I*((-1)*.4782956073))*exp(10000000*((-1)*9.013850411)*Dif+(61.46924721*I)*x))+(.8781989023+.4782956073*I)*ln(1.+(-.8781989023+I*((-1)*.4782956073...

How to define a function?

February 28 2012 by toandhsp 55 Maple

I have a function 

f:=x->(x^2 + 2*m*x + m + 1)/(x -1);
Now I want to define a function as simplify(diff(f(x),x)), i did 
g:=x->simplify(diff(f(x),x)). Then, i could not calculate g(3). Please help me. Thank you.

http://aw.twi.tudelft.nl/~koekoek/askey/ch3/par28/par28.html

Which function represent phi in 3.28.1

Rewrite a function

February 24 2012 by MC420 0 Maple

Hello,

I have a question. I need to rewrite the following function

Vo:= (1/((1/R2+1/(1.5*10^6))*(1/(1/R2+1/(1.5*10^6))+2.45*10^3-R2)));

To this form

R2:= ....Vo....

How can i do this in maple? 

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