Maple 17 Questions and Posts

These are Posts and Questions associated with the product, Maple 17

Hi

Long story short I had a detailed question and then the session timed out and killed it!

Quickly then, if we calculate something recursively Maple acts differently to other languages.

For example, in Python:

__________________________________________

>>>t=1;

>>>t+=1;

>>>print t;

___________________________________________

Is interpreted as:

__________________________________________

>>>t=1;

>>>t=t+1=2

>>>print t

2

___________________________________________

In Maple:

___________________________________________

>t:=1

>t:=t+1

>print(t)

___________________________________________

Is Interpreted as:

___________________________________________

>t=1

>t=t+1=1+1=2

>print(t); t=t+1=1+1=2

2

____________________________________________
And there in lies my problem. Logically, I wish to use a iterative algorithm to work out an expression of the nth derivative of a function from the (n-1) derivative. However, doing this is in maple brings up "error (in Test) too many levels of recursion".

 

For context, Minimum Working Example:

____________________________________________

>TestFunction:=(x)->cos(exp(-1/x^2))*F(x):

>limit(TestFunction(x),x=0)

F(0)

>TestDerivative:=(x)->eval(diff(TestFunction(y),y),y=x):

>limit(TestDerivative(x),x=0)

D(F)(0)

>for i from 1 to 50 do
print(D^(i)(TestFunction)(0)=limit(TestDerivative(x),x=0));

TestDerivative:=(x)->eval(diff(TestDerivative(y),y),y=x):

od:

D(TestFunction)(0)=D(F)(0)

Error, (in TestDerivative) too many levels of recursion

_______________________________________________

Ideally, this code would output the limit of the second derivative at zero by differentiating the first derivative and then the limit of the third derivative at zero by differentiating the second derivative etc. But what Maple is trying to do is to find the limit of the second derivative by differentiating the function then differentiating the result of that, then to find the limit of the third derivative it will first derivative by differentiate the function, then the second by differentiating the result, then third derivative by differentiating the result of that. If I have the analytic expression for the 5th derivative and I wanted the expression for the 6th derivative, I do not want to work out the 1st, 2nd, 3rd, 4th and then 5th derivative when I've already an of the expression of the 5th derivative!

I will note, it is possible to avoid the problem by using different names at each step but that does not solve the iterative problem.  Is there anyway to force maple to overwrite a function name? Is there a seperate solution? Or is maple just that daft in this case?

 

Thanks for the help,

Hamzaan

Here 'show triangle napoleon considering the sintaxis Maple, to be supplemented and explained with Math Apps.

Napoleon_Triangle.mw

 

Lenin Araujo Castillo

hello please help me for maple worksheet 17

how can i do parametric diff?

i know implicitdiff and diff but i don't know how can i do parametric diff thanks very much

Hi everyone

I'm currently working on some mandate distribution using "Jefforson's Method" but I have run into some problems.

The general form of the calculations I do is as follows:

d:=fsolve(m = floor(v1/x)+floor(v2/x), x)

But in the case of m=5, v1=4969 and v2=208 it does not work. If I change v1 a bit it works as a charm but when 
4960=<v1=<4969 it does not.

Can any of you figure out why?

 

The equation surely has a solution (well, a lot of solutions). I can figure some out just by estimating and trying. Furthermore, wolfram alpha easily gives me several solutions:

http://www.wolframalpha.com/input/?i=5+%3D+floor%284969%2Fx%29%2Bfloor%28208%2Fx%29

So how come I cannot get Maple to solve it?

 

Thanks in advance!

Dears 

I want to sum some series by Maple and plotting. The problem is the sum of series are known like

serer.pdf

the problem is the difference between two graphs at the intersection x-axis and y-axis.

Is there any solution for this problem.

Amr

I've been given a question:

Let pn denote the nth prime number. Then p1 = 2, p2 = 3, p3 = 5, p4 = 7, p5 = 11, . . . .

It is known that the infinite sum 1/p1 + 1/p2 + 1/p3 + · · · + 1/pn + · · · = infinity.

Find the smallest positive integer N so that 1/p1 + 1/p2 +1/p3 + · · · + 1/pN−1 + 1/pN > e. [Hint : ithprime(n) generates the nth prime number.]

How do I start off?

Many thanks!

Usually maple returns the behaviour about the expansion point, but now I get a series in terms of weird powers...

I think the behaviour is logarithmic, but thats not what maple reproduces.

What results in this behaviour of maple?

limitxkl.mw

restart; with(MultiSeries); assume(omega > 0, s > 0, s < 1); x := arctanh(sqrt((1-s)/(1+s))*tanh((1/2)*omega*t)); xinf := limit(x, t = infinity)

arctanh(((1-s)/(1+s))^(1/2))

(1)

y := solve(.9*xinf = x, t)

2.*arctanh(tanh(.9000000000*arctanh(((1.-1.*s)/(1.+s))^(1/2)))/((1.-1.*s)/(1.+s))^(1/2))/omega

(2)

y := 2*arctanh(sqrt((1+s)/(1-s))*tanh(.6*arctanh(sqrt((1-s)/(1+s)))))/omega

2*arctanh(((1+s)/(1-s))^(1/2)*tanh(.6*arctanh(((1-s)/(1+s))^(1/2))))/omega

(3)

series(y, s = 0)

23.71899812/omega-0.1319507911e11*s^.6000000000/omega+0.1000000000e11*s^1./omega+0.8705505636e20*s^1.200000000/omega-0.1319507911e21*s^1.600000000/omega-0.7657989038e30*s^1.800000000/omega+O(s^2.000000000)

(4)

NULL



Download limitxkl.mw

 

I am trying to use Maple17 to create practice integration problems in which the integrands contain square roots.  I want the students to practice converting square roots, perhaps with fractions, to fractional and/or negative powers.  Hopefully Maple can typeset the integrals if I use the inert form "Int", and also do the integrals for me so I can find the answers quicker than doing it by hand, and not have to worry about making a careless mistake.  The trouble is, Maple is converting the square roots to fractional exponents:

Download DisplaySquareRoot.

Download DisplaySquareRoot.mw

I hope at least one of these works.  To make a long story short, when I display an integral using "Int", how do I prevent Maple from converting square roots to fractional exponents?

 

GS

 

 

Good morning sir.

 

I request your kind support to the above cited question.

 

 

With thanks & Regards

 

M.Anand

Assistant Professor in Mathematics

SR International Institute of Technology,

Hyderabad, Andhra Pradesh, INDIA.

i have a piecewise like " g "

g := piecewise(0 <= t and t <= 0.2e-1, 122.63, 0.2e-1 < t and t < .287, 0, .287 <= t and t <= .307, 122.63, .307 < t and t < .335, 0); plot(g, t = 0 .. .335)

this function is semi periodic just for 10 times consecutive . i want to define it

example     k=[g g g g g g g g g g  g ] or somthing like that.

 

1.mw 

 

i want to plot fft form of final piecewise function

and then filter it . and plot them.

I recently installed Maple 17 from my university and greek letters do not work. For instance if I type alpha or any other greek letter, Maple just outputs a capital A in a box. I still have Maple 15 installed and it works on there and all the preferences seem the same.

Thanks


I have 2nd order nonlinear ode I try to solve with Runge Kutta 4th order method in maple but all I get from the outcome was 1 and 0.This is the equation:theta_ode1.mw . How do I do it Or how do I write the code to solve it with maple using  Runge Kutta 4th order method?

I have 2nd order nonlinear ode I try to solve with Runge Kutta 4th order method in maple but all I get from the out is 1 and 0.This is the equation: theta_ode.mw . How do I do it Or how do I write the code to solve it with maple using  Runge Kutta 4th order method?

diff(sin(x)^2,x$n); # Maple fails

# then I tried:

combine(sin(x)^2);diff(%,x$n);

# this works, but Maple should drop the pochhammer term (derivation of a constant)

 

What is the reasoning behind the output?

First 43 44 45 46 47 48 49 Last Page 45 of 61