Items tagged with maple

Dear All,

I am new to maple and trying to write a recursive function with two input variables, but when i execute the statement it shows error "Error, (in B) too many levels of recursion"

Following is the set of instructions which i am trying to execute:

if n=1 then  




end if

After execution, i try to access B(1,1) or B(2,1), the following error occurs

B(1, 1);
Error, (in B) too many levels of recursion

I'll be grateful, if someone can help me to fix this problem. 

I created my own package and one procudure inside this package is to calculate the eigenvalues of a identity matrix, as shown below




Then, I use this package in another document, all other procedures work well except the procedure calculating egigenvalues, as shown below




How to solve this problem? Thank you.

Ok so I managed to get my data into a google spreadsheet by using a google app script (JavaScript in the cloud).
The data is updated daily. I now want to access it from Maple. Axel has helped me write the following
procedure to do just that for (https websites and not just http):

X := proc (Url) local theDLL, URLDownloadToFile, myDirectory, myFile, Destination, DL;

theDLL := "C:\\WINDOWS\\SYSTEM32\\urlmon.dll";

URLDownloadToFile := define_external('URLDownloadToFileA', pCaller::(integer[4]), szURL::string, szFileName::string, dwReserved::(integer[4]), lpfnCB::(integer[4]), 'RETURN'::(integer[4]), LIB = theDLL);

myDirectory := "C:\\mydir";
myFile := "data1.csv";
Destination := cat(myDirectory, "\\", myFile);

DL := proc () URLDownloadToFile(0, Url, Destination, 0, 0);
ImportMatrix("C:\\mydir\\data1.csv", source = csv)
end proc;

return DL(), FileTools:-RemoveDirectory("C:\\mydir", recurse = true, forceremove = true)

end proc:



However now I get an error message saying:

Error, (in ImportMatrix) no delimiter found after line 768, column 2

Any ideas how to solve this?

Dear Maple users

Sometimes I would like to place certain Maple content on my website, for example making it possible for the user to rotate 3d objects (created in Maple) directly on the webpage, in the browser. I did that on one of my own webpages, written in Danish though:

If you scroll to the Catenoid shape, almost at the bottom of the page, one should be able to click this object to have a Javaapplett started. I made this years ago with the help of the great tools created by Konrad Polthier:

It wasn't easy, but I made it work. Things have changed since that time, however. Java is more and more "in bad standing". I was blocked when I tried opening it because of security. Banks is looking for alternatives, also because of security. And the mostly used browser now, Chrome, has stopped supporting it.

Now my question: Is there an alternative? Will HTML5 make it possible to make some kind of "Maple plugin" for Interactive Maple objects to be placed on webpages and interacted with in a Webbrowsers?





In a course I am looking at, the system of units is mostly in FPS.  Wich I never use.  But they ask sometime to convert it to SI.  But with Maple, I have a problem:

For Force, it use lb that I cannot convert into N

So what unit should I use to convert FPS to SI for the force.


I know that slug*ft*s^(-2) convert to N with no problem.


Thank you for your help.



Mario Lemelin
Maple 2015 Ubuntu 14.04 - 64 bits
Maple 2015 Win 7 - 64 bits messagerie : téléphone :  (819) 376-0987

What is the best source of learning maple for an abecedarian to become a professional?

i am very new with Maple.

I have the following two equations:



I wish to express the first equation in terms of y1 and x2, so that

x1 = c - b*y1+d*x2;

where c=a-a*d and b=1-d^2. How can I get maple to rearrange the original equation x1 in term of y1, x2, c and b? 



      I am a student doing some self study over the summer trying to work through some of the John Taylor computer problems from his classcial mechanics book. Currently I hit a snag that most likely comes from the fact I am not well acquinted with Maple for solving IVP and DE's (we used Matlab in my DE class). I just need to know how I remove the following error:

Error, (in dsolve/numeric/SC/IVPsetup) initial conditions must be numeric

Here is a copy of my code:

R := 5;
g := 9.8;
deq1 := {diff(x(t), [`$`(t, 2)]) = -g*sin(x(t))/R, x(0) = 20};
/ d / d \ \
{ --- |--- x(t)| = -1.960000000 sin(x(t)), x(0) = 20 }
\ dt \ dt / /
dsol1 := dsolve(deq1, numeric);
Error, (in dsolve/numeric/SC/IVPsetup) initial conditions must be numeric

My hunch is that I need to set x'(0)=0 or something like I do not have enough intial values to solve the problem, but I could be wrong. Anyway anyone who can point out my mistake feel free to do so! Thank you!

In my calculations, I encounter with too small numbers, e.g. 0.4e-10. My question is that how can I make the maple to ignore these small numbers and considers them as zero and not to incorporate them into subsequent calculations???

Thanks in advance.

when using jopenmaple, some maple command will cause jvm crash due to stack overflow exception, but has no trouble if issued in Maple GUI.


after some digging, i found that the stacklimit in Maple GUI is 130941. but if I use jopenmaple to invoke command "kernelopts(stacklimit);", the result is 893.  further more, if i try to increase stacklimit by issuing "kernelopts(stacklimit=894)", maple kenerl tells me that i cant increase it beyond hardlimit.


so here are my questions: 

1. why are the two stacklimits different?

2. is there a way to increase the hardlimit so that i can increase the stacklimit when using java invoking maple commands?

some platform information:

OS: windows 7 64bit

JAVA: jdk1.7 64bit



I have started to use Maple 18 and I have found that my scale starts at 2.*10^16 for all functions I graph no matter if its 3D or 2D. Is there a way to change this scale?


I have a procedure wich is something like 


F:=proc(a,b,l) limit(f(a,b),b=l); end proc;

For my specific problem, the limit always exists and is a well defined function

After that, I would like to generate other functions, depending on F(a,b,l), e.g.:


G:=proc(a,b,N) add(F(a,b,l),l=1..N); end proc;


However, when I tried to do that, Maple inserts in G an unevaluated F, depending on the results of the limits. This makes G not work properly (unevaluated), since the limit is not computed before G. I tried to use some intermediate steps, like using unapply command, but it does not works.

If someone can help, I would appreciate.




sorry for that question, i'm a beginner in maple but i think my question is not as simple.

So, i want to solve numerically this first equation :

but the second term is present only if k*(U*t-x)>μc*m*g  (stick-slip problem)

initial conditions : U=1m/s; x=0m; k=10 for example

My problem is simple, i don't know how to use conditional statement for such an ode in maple.

I've tried > Xr := U*t-x;
> k := 10; m := 1; g := 10; mu := .2;
> if k*Xr > mu*m*g then ode1 := m*(diff(x(t), t, t)) = k.Xr-mu*m*g else ode1 := m*(diff(x(t), t, t)) = k.Xr end if;

But, of course, too optimistic.

Thank to anyone who will solve that (isuppose) simple problem


Hi, I have a function as following:


where d1=0.01..0.06, d2>=d1, d3>=d2, d4>=d3, a1>0,a2>0, a1+a2<0.6.

I want to get  all the solutions of d1,d2,d3,d4,a1,a2, which satify the equation and the constrains, is there any way to solve this problem by using maple?




3 4 5 6 7 8 9 Last Page 5 of 273