Items tagged with function function Tagged Items Feed

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

i am implementing q-Laplace

http://perso.uclouvain.be/alphonse.magnus/gbang/qbook712.pdf

when there are quite many differentiation rules

how to do a function for a new kind differentiation like a maple do?

Hi

Is it possible to plot WKB solutions such as exp(-I*f(x)*x)/sqrt(f(x); where f(x) is any generic function of x e.g. sin^2x ? I have been trying in maple but can't get it to give me a plot.

I dont know what to do any further...

I have some function containing HeunG as a function

it is of the following form

f(k)=argument(functions containing HeunG) - ln(2)*k

now plotting this works...

But when differentiating with respect to k and then plotting it gives me the following message:

Warning, expecting only range variable k in expression (I*((1/2)^(1/2*I*k))^2*HeunG(3,-9/2+3/4*I*k-3/4*k^2,-1+1/2*I*k,-1/2+1/2*I*k,1/2,1+I*k,1/2...

People:

 

I wrote a Maple 15 worksheet containing a function that calls two other functions defined earlier in the worksheet.  The main function didn't work, so I replaced one of the functions that was called, by cut-and-pasting its definition into the main function.  This is obviously inconvenient because I want to alter the function that I cut-and -pasted and whenever I do it I will have to cut-and-paste again.  It also detracts from the...

Hello,

I have created a test document to check an equation and I would like to feed a range of k values (ranging from 0 to say 512) in increments of 1) to the main function, and then plot the result as a graph of Zuncomp (y-axis) vs k(x-axis).

I can verify the values of the function by typing say Zuncomp(0) or Zuncomp(10) etc but how do you run this so that you do Zuncomp(k) to read all values of k and generate the output to plot?

Using Maple 13 (Windows 7...

Hi 

In trying to solve:

 a := diff(u(t), t$2)+(p^2-I+t^2)*u(t) = 0;
I get the following solutions,              
sol1 := u(t) = _C1*WhittakerM(-1/4-(1/4*I)*p^2, 1/4, I*t^2)/sqrt(t)+_C2*WhittakerW(-1/4-(1/4*I)*p^2, 1/4, I*t^2)/sqrt(t)        
 
It should be possible to expand these into parabolic cylinder functions and but im not sure how, i would appreciate any help.
thanks

Hi everyone,

 

I am trying to understand how can I create a function based on the differentiate of a matrix.

 

For instance:
 

And I would like to create the matrix FF based on the derivative of F with respect to x and then be able to use FF and a function.

I tried to combine, unapply, map and diff but I can't reach what I'm looking for.

Hi,

I want to create a tangent function.

I know that you can create tan(x) but how can you create the tangent function when the solutions are only:

x in [0.19740;0.91510[ union [3.3390;4.0567 ?

 

Another explanation:

How you can graphically show the valid values of x in this inequality?

                  0.2 ≤ tan x < 1.3
Best regards
fattali

Hi guys. I need to do a Runge-Kutta method to solve two equations and I'm having trouble at using functions. My program is as shown below:

restart; A := Matrix();

dt := 0.1e-2;

diff(x(t), t) := v;

diff(v, t) := a(x(t), v);

xo := 0; vo := 0;

for i to 1000 do

xn := xo+v.dt;

vn := vo+a.dt;

dx1 := vn.dt; dv1 := a.dt;

dx2 := (vn+(1/2)*dv1)*dt; dv2 := a(x(t)+(1/2)*dx1, (1/2)*dv1)*dt;

dx3 := (vn+(1/2...

Let function f:\mathbb{R}\to\mathbb{R} so that

5 6 7 8 9 10 11 Last Page 7 of 20