MaplePrimes - Questions and Posts tagged with maple
http://www.mapleprimes.com/tags/maple
en-us2015 Maplesoft, A Division of Waterloo Maple Inc.Maplesoft Document SystemSat, 05 Sep 2015 07:43:57 GMTSat, 05 Sep 2015 07:43:57 GMTThe most recent questions and posts on MaplePrimes tagged with maplehttp://www.mapleprimes.com/images/mapleprimeswhite.jpgMaplePrimes - Questions and Posts tagged with maple
http://www.mapleprimes.com/tags/maple
Hollywood Math Webinar Returns This September!
http://www.mapleprimes.com/maplesoftblog/201224-Hollywood-Math-Webinar-Returns-This-September?ref=Feed:MaplePrimes:Tagged With maple
<p><span>The first instalment in the Hollywood Math webinar series will be returning live this September 17<sup>th</sup>! It will be presented by Daniel Skoog, our Maple Product Manager.</span></p>
<p><span>Over its storied and intriguing history, Hollywood has entertained us with many mathematical moments in film. John Nash in “A Beautiful Mind,” the brilliant janitor in “Good Will Hunting,” the number theory genius in “Pi,” and even Abbott and Costello are just a few of the Hollywood “mathematicians” that come to mind.</span></p>
<p><span>During this webinar we will present a number of examples of mathematics in film, including those done capably, as well as questionable and downright “creative” treatments. See relevant, exciting examples that you can use to engage your students, or attend this webinar simply for its entertainment value. Have you ever wondered if the bus could really have jumped the gap in “Speed?” We’ve got the answer! Anyone with an interest in mathematics, especially high school and early college math educators, will be both entertained and informed by attending this webinar. </span></p>
<p><span>To join us for the live presentation, <a href="http://www.maplesoft.com/webinars/live/register.aspx?id=958&p=TC-5270"><span>click here to register</span></a>.</span></p><p><span>The first instalment in the Hollywood Math webinar series will be returning live this September 17<sup>th</sup>! It will be presented by Daniel Skoog, our Maple Product Manager.</span></p>
<p><span>Over its storied and intriguing history, Hollywood has entertained us with many mathematical moments in film. John Nash in “A Beautiful Mind,” the brilliant janitor in “Good Will Hunting,” the number theory genius in “Pi,” and even Abbott and Costello are just a few of the Hollywood “mathematicians” that come to mind.</span></p>
<p><span>During this webinar we will present a number of examples of mathematics in film, including those done capably, as well as questionable and downright “creative” treatments. See relevant, exciting examples that you can use to engage your students, or attend this webinar simply for its entertainment value. Have you ever wondered if the bus could really have jumped the gap in “Speed?” We’ve got the answer! Anyone with an interest in mathematics, especially high school and early college math educators, will be both entertained and informed by attending this webinar. </span></p>
<p><span>To join us for the live presentation, <a href="http://www.maplesoft.com/webinars/live/register.aspx?id=958&p=TC-5270"><span>click here to register</span></a>.</span></p>201224Tue, 01 Sep 2015 15:39:07 Zkkoserskikkoserskidifferences between professional and personal Maple editions
http://www.mapleprimes.com/questions/205248-Differences-Between-Professional-And?ref=Feed:MaplePrimes:Tagged With maple
<p>Could someone explain what are the main (functional) differences between professional and personal Maple editions for 2845$ and 299$ respectively?</p>
<p>Tx, Andras</p><p>Could someone explain what are the main (functional) differences between professional and personal Maple editions for 2845$ and 299$ respectively?</p>
<p>Tx, Andras</p>205248Sun, 30 Aug 2015 12:50:45 Za_simsima_simsimHow to write a recursive function with two variables in Maple?
http://www.mapleprimes.com/questions/205162-How-To-Write-A-Recursive-Function-With?ref=Feed:MaplePrimes:Tagged With maple
<p>Dear All,</p>
<p>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"</p>
<p>Following is the set of instructions which i am trying to execute:</p>
<p><strong>if n=1 then </strong></p>
<p><strong>B(m,n):=omega(m); </strong></p>
<p><strong>else </strong></p>
<p><strong>B(m,n):=sum(omega(j)*B(m-j,n-1),j=1..m-1)</strong></p>
<p><strong>end if</strong></p>
<p><strong><br></strong>After execution, i try to access B(1,1) or B(2,1), the following error occurs</p>
<p><em><strong>B(1, 1);</strong></em><br><em><strong>Error, (in B) too many levels of recursion</strong></em></p>
<p><strong><br></strong>I'll be grateful, if someone can help me to fix this problem. </p><p>Dear All,</p>
<p>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"</p>
<p>Following is the set of instructions which i am trying to execute:</p>
<p><strong>if n=1 then </strong></p>
<p><strong>B(m,n):=omega(m); </strong></p>
<p><strong>else </strong></p>
<p><strong>B(m,n):=sum(omega(j)*B(m-j,n-1),j=1..m-1)</strong></p>
<p><strong>end if</strong></p>
<p><strong><br></strong>After execution, i try to access B(1,1) or B(2,1), the following error occurs</p>
<p><em><strong>B(1, 1);</strong></em><br><em><strong>Error, (in B) too many levels of recursion</strong></em></p>
<p><strong><br></strong>I'll be grateful, if someone can help me to fix this problem. </p>205162Sun, 23 Aug 2015 18:30:38 ZjdfortunejdfortuneEigenvalues are not calculated
http://www.mapleprimes.com/questions/205156-Eigenvalues-Are-Not-Calculated-?ref=Feed:MaplePrimes:Tagged With maple
<p>I created my own package and one procudure inside this package is to calculate the eigenvalues of a identity matrix, as shown below</p>
<p><img src="/view.aspx?sf=205156_question/packageSource.jpg" alt=""></p>
<p> </p>
<p> </p>
<p> </p>
<p>Then, I use this package in another document, all other procedures work well except the procedure calculating egigenvalues, as shown below</p>
<p><img src="/view.aspx?sf=205156_question/UsePackage.jpg" alt=""></p>
<p> </p>
<p> </p>
<p> </p>
<p>How to solve this problem? Thank you.</p><p>I created my own package and one procudure inside this package is to calculate the eigenvalues of a identity matrix, as shown below</p>
<p><img src="/view.aspx?sf=205156_question/packageSource.jpg" alt=""></p>
<p> </p>
<p> </p>
<p> </p>
<p>Then, I use this package in another document, all other procedures work well except the procedure calculating egigenvalues, as shown below</p>
<p><img src="/view.aspx?sf=205156_question/UsePackage.jpg" alt=""></p>
<p> </p>
<p> </p>
<p> </p>
<p>How to solve this problem? Thank you.</p>205156Sat, 22 Aug 2015 11:38:47 ZyunlongwangyunlongwangThe application will not run
http://www.mapleprimes.com/questions/205129-The-Application-Will-Not-Run?ref=Feed:MaplePrimes:Tagged With maple
<div id="tw-target-text-container" class="tw-ta-container tw-nfl">
<pre id="tw-target-text" class="tw-data-text vk_txt tw-ta tw-text-small" dir="ltr" data-placeholder="Translation" data-fulltext=""><span lang="en">The software was already running but suddenly no longer applicable (when i double click) , in maple 18</span></pre>
<p><span lang="en"> </span></p>
<pre class="tw-data-text vk_txt tw-ta tw-text-small" lang="en"> </pre>
</div>205129Wed, 19 Aug 2015 14:11:04 ZpsalehverdipsalehverdiError in ImportMatrix
http://www.mapleprimes.com/questions/205086-Error-In-ImportMatrix-?ref=Feed:MaplePrimes:Tagged With maple
<p>Ok so I managed to get my data into a google spreadsheet by using a google app script (<span>JavaScript in the cloud</span>). <br>The data is updated daily. I now want to access it from Maple. Axel has helped me write the following<br>procedure to do just that for (https websites and not just http):<br><br></p>
<p>X := proc (Url) local theDLL, URLDownloadToFile, myDirectory, myFile, Destination, DL;</p>
<p>theDLL := "C:\\WINDOWS\\SYSTEM32\\urlmon.dll";</p>
<p>URLDownloadToFile := define_external('URLDownloadToFileA', pCaller::(integer[4]), szURL::string, szFileName::string, dwReserved::(integer[4]), lpfnCB::(integer[4]), 'RETURN'::(integer[4]), LIB = theDLL);</p>
<p>FileTools:-MakeDirectory("C:\\mydir"); <br>myDirectory := "C:\\mydir"; <br>myFile := "data1.csv"; <br>Destination := cat(myDirectory, "\\", myFile);</p>
<p>DL := proc () URLDownloadToFile(0, Url, Destination, 0, 0); <br>ImportMatrix("C:\\mydir\\data1.csv", source = csv) <br>end proc;</p>
<p>return DL(), FileTools:-RemoveDirectory("C:\\mydir", recurse = true, forceremove = true)</p>
<p>end proc:</p>
<p><br>X("https://docs.google.com/spreadsheets/d/1L5-yUB0EWeBdJNMdELKBRmBQ1JJ0QymrtDLkVhHCVn8/edit?usp=sharing");</p>
<p> </p>
<p>However now I get an error message saying:<br><br></p>
<p>Error, (in ImportMatrix) no delimiter found after line 768, column 2</p>
<p><br>Any ideas how to solve this?</p><p>Ok so I managed to get my data into a google spreadsheet by using a google app script (<span>JavaScript in the cloud</span>). <br>The data is updated daily. I now want to access it from Maple. Axel has helped me write the following<br>procedure to do just that for (https websites and not just http):<br><br></p>
<p>X := proc (Url) local theDLL, URLDownloadToFile, myDirectory, myFile, Destination, DL;</p>
<p>theDLL := "C:\\WINDOWS\\SYSTEM32\\urlmon.dll";</p>
<p>URLDownloadToFile := define_external('URLDownloadToFileA', pCaller::(integer[4]), szURL::string, szFileName::string, dwReserved::(integer[4]), lpfnCB::(integer[4]), 'RETURN'::(integer[4]), LIB = theDLL);</p>
<p>FileTools:-MakeDirectory("C:\\mydir"); <br>myDirectory := "C:\\mydir"; <br>myFile := "data1.csv"; <br>Destination := cat(myDirectory, "\\", myFile);</p>
<p>DL := proc () URLDownloadToFile(0, Url, Destination, 0, 0); <br>ImportMatrix("C:\\mydir\\data1.csv", source = csv) <br>end proc;</p>
<p>return DL(), FileTools:-RemoveDirectory("C:\\mydir", recurse = true, forceremove = true)</p>
<p>end proc:</p>
<p><br>X("https://docs.google.com/spreadsheets/d/1L5-yUB0EWeBdJNMdELKBRmBQ1JJ0QymrtDLkVhHCVn8/edit?usp=sharing");</p>
<p> </p>
<p>However now I get an error message saying:<br><br></p>
<p>Error, (in ImportMatrix) no delimiter found after line 768, column 2</p>
<p><br>Any ideas how to solve this?</p>205086Sat, 15 Aug 2015 21:15:48 Zmarc005marc005Alternatives of Java to display interactive Maple objects?
http://www.mapleprimes.com/questions/204900-Alternatives-Of-Java-To-Display-Interactive?ref=Feed:MaplePrimes:Tagged With maple
<p>Dear Maple users</p>
<p>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:</p>
<p><a href="http://www.matematiksider.dk/soapbubbles.html">http://www.matematiksider.dk/soapbubbles.html</a></p>
<p>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:</p>
<p><a href="http://www.javaview.de/maple/index.html">http://www.javaview.de/maple/index.html</a></p>
<p>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.</p>
<p>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?</p>
<p>Erik</p>
<p> </p><p>Dear Maple users</p>
<p>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:</p>
<p><a href="http://www.matematiksider.dk/soapbubbles.html">http://www.matematiksider.dk/soapbubbles.html</a></p>
<p>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:</p>
<p><a href="http://www.javaview.de/maple/index.html">http://www.javaview.de/maple/index.html</a></p>
<p>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.</p>
<p>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?</p>
<p>Erik</p>
<p> </p>204900Tue, 28 Jul 2015 15:45:20 Zerik10erik10A problem of conversion of units SI to FPS
http://www.mapleprimes.com/questions/204887-A-Problem-Of-Conversion-Of-Units-SI-To-FPS?ref=Feed:MaplePrimes:Tagged With maple
<p>Hello,</p>
<p> </p>
<p>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:</p>
<p>For Force, it use lb that I cannot convert into N</p>
<p>So what unit should I use to convert FPS to SI for the force.</p>
<p> </p>
<p>I know that slug*ft*s^(-2) convert to N with no problem.</p>
<p> </p>
<p>Thank you for your help.</p>
<p> </p>
<!--break-->
<p> </p>
<pre>--------------------------------------
Mario Lemelin</pre>
<pre>Maple 2015 Ubuntu 14.04 - 64 bits<br>Maple 2015 Win 7 - 64 bits
messagerie : mario.lemelin@cgocable.ca
téléphone : (819) 376-0987</pre><p>Hello,</p>
<p> </p>
<p>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:</p>
<p>For Force, it use lb that I cannot convert into N</p>
<p>So what unit should I use to convert FPS to SI for the force.</p>
<p> </p>
<p>I know that slug*ft*s^(-2) convert to N with no problem.</p>
<p> </p>
<p>Thank you for your help.</p>
<p> </p>
<!--break-->
<p> </p>
<pre>--------------------------------------
Mario Lemelin</pre>
<pre>Maple 2015 Ubuntu 14.04 - 64 bits<br />Maple 2015 Win 7 - 64 bits
messagerie : mario.lemelin@cgocable.ca
téléphone : (819) 376-0987</pre>204887Mon, 27 Jul 2015 22:17:57 ZlemelinmlemelinmBest source for learning maple
http://www.mapleprimes.com/questions/204872-Best-Source-For-Learning-Maple-?ref=Feed:MaplePrimes:Tagged With maple
<p>What is the best source of learning maple for an abecedarian to become a professional?</p><p>What is the best source of learning maple for an abecedarian to become a professional?</p>204872Sun, 26 Jul 2015 21:42:38 Zmaple2015maple2015Rearranging the expression of equations
http://www.mapleprimes.com/questions/204824-Rearranging-The-Expression-Of-Equations?ref=Feed:MaplePrimes:Tagged With maple
<p>i am very new with Maple.</p>
<p>I have the following two equations:</p>
<p>x1=a-y1-d*y2;</p>
<p>x2=a-y2-d*y1;</p>
<p>I wish to express the first equation in terms of y1 and x2, so that</p>
<p>x1 = c - b*y1+d*x2;</p>
<p>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? </p>
<p> </p><p>i am very new with Maple.</p>
<p>I have the following two equations:</p>
<p>x1=a-y1-d*y2;</p>
<p>x2=a-y2-d*y1;</p>
<p>I wish to express the first equation in terms of y1 and x2, so that</p>
<p>x1 = c - b*y1+d*x2;</p>
<p>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? </p>
<p> </p>204824Tue, 21 Jul 2015 05:50:49 ZIVP Dsolve Error
http://www.mapleprimes.com/questions/204739-IVP-Dsolve-Error?ref=Feed:MaplePrimes:Tagged With maple
<p>Hello, </p>
<p> 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:</p>
<p>Error, (in dsolve/numeric/SC/IVPsetup) initial conditions must be numeric</p>
<p>Here is a copy of my code:</p>
<p>R := 5;<br> 5<br>g := 9.8;<br> 9.8<br>deq1 := {diff(x(t), [`$`(t, 2)]) = -g*sin(x(t))/R, x(0) = 20};<br> / d / d \ \ <br> { --- |--- x(t)| = -1.960000000 sin(x(t)), x(0) = 20 }<br> \ dt \ dt / / <br>dsol1 := dsolve(deq1, numeric);<br>Error, (in dsolve/numeric/SC/IVPsetup) initial conditions must be numeric</p>
<p>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!</p><p>Hello, </p>
<p> 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:</p>
<p>Error, (in dsolve/numeric/SC/IVPsetup) initial conditions must be numeric</p>
<p>Here is a copy of my code:</p>
<p>R := 5;<br /> 5<br />g := 9.8;<br /> 9.8<br />deq1 := {diff(x(t), [`$`(t, 2)]) = -g*sin(x(t))/R, x(0) = 20};<br /> / d / d \ \ <br /> { --- |--- x(t)| = -1.960000000 sin(x(t)), x(0) = 20 }<br /> \ dt \ dt / / <br />dsol1 := dsolve(deq1, numeric);<br />Error, (in dsolve/numeric/SC/IVPsetup) initial conditions must be numeric</p>
<p>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!</p>204739Sat, 11 Jul 2015 16:03:23 ZWhittmanCWhittmanCtoo small numbers
http://www.mapleprimes.com/questions/204682-Too-Small-Numbers?ref=Feed:MaplePrimes:Tagged With maple
<p>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???</p>
<p>Thanks in advance.</p><p>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???</p>
<p>Thanks in advance.</p>204682Mon, 06 Jul 2015 08:32:37 ZaamirkhanaamirkhanHow to change stacklimit in OpenMaple?
http://www.mapleprimes.com/questions/204677-How-To-Change-Stacklimit-In-OpenMaple?ref=Feed:MaplePrimes:Tagged With maple
<p>when using jopenmaple, some maple command will cause jvm crash due to stack overflow exception, but has no trouble if issued in Maple GUI.</p>
<p> </p>
<p>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.</p>
<p> </p>
<p>so here are my questions: </p>
<p>1. why are the two stacklimits different?</p>
<p>2. is there a way to increase the hardlimit so that i can increase the stacklimit when using java invoking maple commands?</p>
<p>some platform information:</p>
<p>OS: windows 7 64bit</p>
<p>JAVA: jdk1.7 64bit</p>
<p> </p>
<p>thanks.</p><p>when using jopenmaple, some maple command will cause jvm crash due to stack overflow exception, but has no trouble if issued in Maple GUI.</p>
<p> </p>
<p>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.</p>
<p> </p>
<p>so here are my questions: </p>
<p>1. why are the two stacklimits different?</p>
<p>2. is there a way to increase the hardlimit so that i can increase the stacklimit when using java invoking maple commands?</p>
<p>some platform information:</p>
<p>OS: windows 7 64bit</p>
<p>JAVA: jdk1.7 64bit</p>
<p> </p>
<p>thanks.</p>204677Mon, 06 Jul 2015 04:17:21 Zspark1631spark1631How do I change the 2D and 3D plot scale in Maple 18
http://www.mapleprimes.com/questions/204675-How-Do-I-Change-The-2D-And-3D-Plot-Scale?ref=Feed:MaplePrimes:Tagged With maple
<p>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?</p><p>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?</p>204675Sun, 05 Jul 2015 21:48:35 ZchiefjazzdiewltrchiefjazzdiewltrWrite a function after computing a limit
http://www.mapleprimes.com/questions/204649-Write-A-Function-After-Computing-A-Limit?ref=Feed:MaplePrimes:Tagged With maple
<p>Hello,</p>
<p>I have a procedure wich is something like </p>
<p> </p>
<p>F:=proc(a,b,l) limit(f(a,b),b=l); end proc;</p>
<p>For my specific problem, the limit always exists and is a well defined function</p>
<p>After that, I would like to generate other functions, depending on F(a,b,l), e.g.:</p>
<p> </p>
<p>G:=proc(a,b,N) add(F(a,b,l),l=1..N); end proc;</p>
<p> </p>
<p>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.<br><br></p>
<p>If someone can help, I would appreciate.</p>
<p> </p>
<p> </p><p>Hello,</p>
<p>I have a procedure wich is something like </p>
<p> </p>
<p>F:=proc(a,b,l) limit(f(a,b),b=l); end proc;</p>
<p>For my specific problem, the limit always exists and is a well defined function</p>
<p>After that, I would like to generate other functions, depending on F(a,b,l), e.g.:</p>
<p> </p>
<p>G:=proc(a,b,N) add(F(a,b,l),l=1..N); end proc;</p>
<p> </p>
<p>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.<br /><br /></p>
<p>If someone can help, I would appreciate.</p>
<p> </p>
<p> </p>204649Thu, 02 Jul 2015 07:17:34 Zfernandonobregafernandonobrega