MaplePrimes - Newest Questions and Posts
http://www.mapleprimes.com
en-us2015 Maplesoft, A Division of Waterloo Maple Inc.Maplesoft Document SystemSun, 25 Jan 2015 10:13:12 GMTSun, 25 Jan 2015 10:13:12 GMTThe latest questions and posts added to MaplePrimeshttp://www.mapleprimes.com/images/mapleprimeswhite.jpgMaplePrimes - Newest Questions and Posts
http://www.mapleprimes.com
Is there a way to export high quality images from maple?
http://www.mapleprimes.com/questions/203341-Is-There-A-Way-To-Export-High-Quality?ref=Feed:MaplePrimes:New Questions & Posts
<p>Hi every one.</p>
<p>I want to export some plots from maple as images in ".jpg" or ".png" formats. I was wondering that is there a way to specify the resolution of the exported pictures? I need high quality pics.</p><p>Hi every one.</p>
<p>I want to export some plots from maple as images in ".jpg" or ".png" formats. I was wondering that is there a way to specify the resolution of the exported pictures? I need high quality pics.</p>203341Sun, 25 Jan 2015 08:30:33 ZH-RH-RIt want me to install a older version of Java to use Maple?!
http://www.mapleprimes.com/questions/203340-It-Want-Me-To-Install-A-Older-Version?ref=Feed:MaplePrimes:New Questions & Posts
<p>I just bought Maple Student edition. I won't allow me to validate myself and won't allow me to install the software unless I remove Java 8 and install the much older Java 6?!</p>
<p>Please help.</p><p>I just bought Maple Student edition. I won't allow me to validate myself and won't allow me to install the software unless I remove Java 8 and install the much older Java 6?!</p>
<p>Please help.</p>203340Sat, 24 Jan 2015 17:43:32 ZRasmusEuRasmusEuWarning, solution may have been lost
http://www.mapleprimes.com/questions/203339-Warning-Solution-May-Have-Been-Lost?ref=Feed:MaplePrimes:New Questions & Posts
<p>Hi! when i'm trying to solve, i get the following warning: Warning, solutions may have been lost.</p>
<p>The equations i'm trying to solve are as the following:</p>
<p>>A=0.1;</p>
<p>> D=0.19;</p>
<p>> eqns:={y^1.5-9/8*B^0.5*y+3/4*x*y^0.5-3/4*(Pi/3)^0.5*[1+(1+3/4*(Pi/3)*(B*(1+x^2))^0.5)*x^2]/(1+x^2)^0.5=0, Pi/2-3*D=8/3*y^3+x*y^2+4*B^0.5*[1/3*B*y^1.5-2/45*B^2.5-3/2*y^2.5]-9/2*B*(1/3*B*y-3/40*B^2-3/4*y^2)-3*x*B^0.5*[1/3*B*y^0.5-1/7*B^1.5-1/2*y^1.5],B=A/(1+x^2)};</p>
<p>> vars:={x,y,B};</p>
<p>> solve(eqns,vars);</p>
<p>Warning, solutions may have been lost</p>
<p><span>What am i doing wrong?</span></p>
<p><span>Many thanks!</span></p><p>Hi! when i'm trying to solve, i get the following warning: Warning, solutions may have been lost.</p>
<p>The equations i'm trying to solve are as the following:</p>
<p>>A=0.1;</p>
<p>> D=0.19;</p>
<p>> eqns:={y^1.5-9/8*B^0.5*y+3/4*x*y^0.5-3/4*(Pi/3)^0.5*[1+(1+3/4*(Pi/3)*(B*(1+x^2))^0.5)*x^2]/(1+x^2)^0.5=0, Pi/2-3*D=8/3*y^3+x*y^2+4*B^0.5*[1/3*B*y^1.5-2/45*B^2.5-3/2*y^2.5]-9/2*B*(1/3*B*y-3/40*B^2-3/4*y^2)-3*x*B^0.5*[1/3*B*y^0.5-1/7*B^1.5-1/2*y^1.5],B=A/(1+x^2)};</p>
<p>> vars:={x,y,B};</p>
<p>> solve(eqns,vars);</p>
<p>Warning, solutions may have been lost</p>
<p><span>What am i doing wrong?</span></p>
<p><span>Many thanks!</span></p>203339Sat, 24 Jan 2015 12:14:02 ZwangxjwangxjNumerica multiple integration
http://www.mapleprimes.com/questions/203336-Numerica-Multiple-Integration?ref=Feed:MaplePrimes:New Questions & Posts
<p>Hi, all</p>
<p>I use INT to calculate multiple integration as below. It runs more than 20 hours without results. I wander is there any problem in my codes.</p>
<p>restart;<br>A := sin(k*Pi*(x-h*cos(theta))/a)*sin(l*Pi*(y-h*sin(theta))/b)*sin(k[0]*h)*sin(k*Pi*x/a)*sin(l*Pi*y/b);</p>
<p>W := evalf[5](int(int(int(int(A, h = 0 .. (x-a)/cos(theta)), theta = Pi+arctan((b-y)/(a-x)) .. 3*Pi*(1/2)), x = 0 .. a), y = 0 .. b, numeric))</p>
<p> </p>
<p>Thanks</p><p>Hi, all</p>
<p>I use INT to calculate multiple integration as below. It runs more than 20 hours without results. I wander is there any problem in my codes.</p>
<p>restart;<br />A := sin(k*Pi*(x-h*cos(theta))/a)*sin(l*Pi*(y-h*sin(theta))/b)*sin(k[0]*h)*sin(k*Pi*x/a)*sin(l*Pi*y/b);</p>
<p>W := evalf[5](int(int(int(int(A, h = 0 .. (x-a)/cos(theta)), theta = Pi+arctan((b-y)/(a-x)) .. 3*Pi*(1/2)), x = 0 .. a), y = 0 .. b, numeric))</p>
<p> </p>
<p>Thanks</p>203336Sat, 24 Jan 2015 08:23:47 ZHapseekerHapseekerWhy the disparity in solution
http://www.mapleprimes.com/questions/203335-Why-The-Disparity-In-Solution?ref=Feed:MaplePrimes:New Questions & Posts
<p>Why the disparity in the solution of P1 and P2? P1 uses finite difference while P2 uses midrich.</p>
<p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left">See them here <a style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" href="/view.aspx?sf=203335_question/P1.mw">P1.mw</a> and <a href="/view.aspx?sf=203335_question/P2.mw">P2.mw</a></p><p>Why the disparity in the solution of P1 and P2? P1 uses finite difference while P2 uses midrich.</p>
<p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left">See them here <a style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" href="/view.aspx?sf=203335_question/P1.mw">P1.mw</a> and <a href="/view.aspx?sf=203335_question/P2.mw">P2.mw</a></p>203335Sat, 24 Jan 2015 08:00:27 Zemmantopemmantopzooming and paning
http://www.mapleprimes.com/questions/203334-Zooming-And-Paning-?ref=Feed:MaplePrimes:New Questions & Posts
<p>Hello,</p>
<p>What is the combination key for zooming in/out on a Maple 3D graphic?</p>
<p>It seems I have forgotten... (CTRL+left mouse button does not work)</p>
<p>Thankx</p>
<p>JMC</p><p>Hello,</p>
<p>What is the combination key for zooming in/out on a Maple 3D graphic?</p>
<p>It seems I have forgotten... (CTRL+left mouse button does not work)</p>
<p>Thankx</p>
<p>JMC</p>203334Sat, 24 Jan 2015 06:54:48 ZjmcollardjmcollardHow to use writedata to a series of files
http://www.mapleprimes.com/questions/203333-How-To-Use-Writedata-To-A-Series-Of-Files?ref=Feed:MaplePrimes:New Questions & Posts
<p>Hi,</p>
<p> </p>
<p> Suppose I would like to use writedata for a series of files, e.g. test1.txt, test2.txt, test3.txt. </p>
<p>I tried</p>
<p>***</p>
<p>a_min:=1;a_max:=3;<br>b_min:=1;b_max:=3;<br>A:=array(a_min..a_max,b_min..b_max);</p>
<p><br>for i from a_min to a_max do<br> for j from b_min to b_max do <br> A[i,j]:=i*j;<br> end do;<br>end do;</p>
<p>for i from 1 to 3 do<br> file_name:=`test||i`;<br> writedata[APPEND](file_name,A);<br>end do;</p>
<p>****</p>
<p>Seems "||" inside `` does not work, is there any robust solution for this issue? </p>
<p> </p>
<p>Thank you very much</p>
<p> </p><p>Hi,</p>
<p> </p>
<p> Suppose I would like to use writedata for a series of files, e.g. test1.txt, test2.txt, test3.txt. </p>
<p>I tried</p>
<p>***</p>
<p>a_min:=1;a_max:=3;<br />b_min:=1;b_max:=3;<br />A:=array(a_min..a_max,b_min..b_max);</p>
<p><br />for i from a_min to a_max do<br /> for j from b_min to b_max do <br /> A[i,j]:=i*j;<br /> end do;<br />end do;</p>
<p>for i from 1 to 3 do<br /> file_name:=`test||i`;<br /> writedata[APPEND](file_name,A);<br />end do;</p>
<p>****</p>
<p>Seems "||" inside `` does not work, is there any robust solution for this issue? </p>
<p> </p>
<p>Thank you very much</p>
<p> </p>203333Sat, 24 Jan 2015 03:39:19 Zsmith_alphasmith_alphatype definition
http://www.mapleprimes.com/questions/203332-Type-Definition?ref=Feed:MaplePrimes:New Questions & Posts
<p>I am trying to define a new typt and I am beating my head against the wall...</p>
<p>What I have working:</p>
<p>TypeTools:-AddType(Element,'record(l,R)');<br> <br>This defines a type which I can then use in type(xpr,Element) to be false or true depending on whether xpr is a record containing (at least) entries l and R or not.</p>
<p>Now I want to define a type ExpandedLine that is a Vector of Element (Element in the sense above). In fact, in the context of my application I am willing to settle for ExpandedLine being a Vector of record.</p>
<p>Tried various approaches (and making sure Vector is in uneval quotes in the AddType statement) like:</p>
<p>TypeTools:-AddType(ExpandedLine,'Vector'(record));</p>
<p>and variations but no luck.</p>
<p>Any help is appreciated.</p>
<p>Mac Dude</p>
<p> </p><p>I am trying to define a new typt and I am beating my head against the wall...</p>
<p>What I have working:</p>
<p>TypeTools:-AddType(Element,'record(l,R)');<br> <br>This defines a type which I can then use in type(xpr,Element) to be false or true depending on whether xpr is a record containing (at least) entries l and R or not.</p>
<p>Now I want to define a type ExpandedLine that is a Vector of Element (Element in the sense above). In fact, in the context of my application I am willing to settle for ExpandedLine being a Vector of record.</p>
<p>Tried various approaches (and making sure Vector is in uneval quotes in the AddType statement) like:</p>
<p>TypeTools:-AddType(ExpandedLine,'Vector'(record));</p>
<p>and variations but no luck.</p>
<p>Any help is appreciated.</p>
<p>Mac Dude</p>
<p> </p>203332Fri, 23 Jan 2015 21:29:38 ZMac DudeMac Dudelatex output from ShowSolution
http://www.mapleprimes.com/questions/203331-Latex-Output-From-ShowSolution-?ref=Feed:MaplePrimes:New Questions & Posts
<p>I want to put the solution obtained from ShowSolution() command of Student[Calculus1] into my LaTeX file. How I can achieve that?</p>
<p>I succeeded in getting latex of ExpandSteps because it was a module, but ShowSolution() is not a module.</p><p>I want to put the solution obtained from ShowSolution() command of Student[Calculus1] into my LaTeX file. How I can achieve that?</p>
<p>I succeeded in getting latex of ExpandSteps because it was a module, but ShowSolution() is not a module.</p>203331Fri, 23 Jan 2015 16:24:10 ZAthar KharalAthar KharalSolve highly nonlinear partial differential equation system
http://www.mapleprimes.com/questions/203329-Solve-Highly-Nonlinear-Partial-Differential?ref=Feed:MaplePrimes:New Questions & Posts
<p>Hello everyone,<br><br>I have nonlinear partial differential equations (see the attached file) need to be solved:<br><br><a href="https://drive.google.com/file/d/0B141s-K48fmVWnM5RmFuT1BfVGc/view?usp=sharing">https://drive.google.com/file/d/0B14...ew?usp=sharing</a><br><br>With initial condition: h(x, y) = K1 (constant), dh/dx = K2 (constant); dh/dy = K3 (constant); And h(x,y) is function of (x,y) other factors are constant. Could anyone tell me how to solve these equations by using numerical method? Do you know any library in c/ c++ language that can solve these equations??</p>
<p>I have tried with Maple 17 and the response is: "Error, (in pdsolve/info) first argument is not a differential equation". Whole of my input:</p>
<p> </p>
<p><em><strong>with(PDEtools); declare(U1(x, y), U2(x, y), U3(x, y));</strong></em></p>
<p><em><strong>PDEs = [diff(U1(x, y), y) = U2(x, y), </strong></em></p>
<p><em><strong>diff(U1(x, y), x) = U3(x, y), </strong></em></p>
<p><em><strong>(diff(U2(x, y), y))*((L-U1(x, y))^2+(D2+tan(alpha)*(L+U1(x, y)))^2)+.5*U2(x, y)*(2*tan(alpha)*U1(x, y)-D2) = 0,</strong></em></p>
<p><em><strong> (diff(U3(x, y), x))*((L-U1(x, y))^2+D1^2*cos(alpha+2*U2(x, y))^2)+.5*U3(x, y)*D1*cos(alpha+2*U2(x, y))+.5*D1*sin(alpha+2*U2(x, y))*(L-U1(x, y)) = 0];</strong></em></p>
<p> </p>
<p>[ d d / d <br>PDEs = [--- U1(x, y) = U2(x, y), --- U1(x, y) = U3(x, y), |--- U2(<br> [ dy dx \ dy</p>
<p>\ / 2 2\<br> x, y)| \(L - U1(x, y)) + (D2 + tan(alpha) (L + U1(x, y))) /<br> /</p>
<p>/ d <br> + 0.5 U2(x, y) (2 tan(alpha) U1(x, y) - D2) = 0, |--- U3(x, y)<br> \ dx</p>
<p>\ / 2 2 2\<br> | \(L - U1(x, y)) + D1 cos(alpha + 2 U2(x, y)) /<br> /</p>
<p>+ 0.5 U3(x, y) D1 cos(alpha + 2 U2(x, y))</p>
<p>]<br> + 0.5 D1 sin(alpha + 2 U2(x, y)) (L - U1(x, y)) = 0]<br> ]</p>
<p><em><strong>pdsolve(PDEs);</strong></em><br>Error, (in pdsolve/info) first argument is not a differential equation</p>
<p> </p>
<p><br>I will be very appreciated with your help!!!</p><p>Hello everyone,<br><br>I have nonlinear partial differential equations (see the attached file) need to be solved:<br><br><a href="https://drive.google.com/file/d/0B141s-K48fmVWnM5RmFuT1BfVGc/view?usp=sharing" target="_blank">https://drive.google.com/file/d/0B14...ew?usp=sharing</a><br><br>With initial condition: h(x, y) = K1 (constant), dh/dx = K2 (constant); dh/dy = K3 (constant); And h(x,y) is function of (x,y) other factors are constant. Could anyone tell me how to solve these equations by using numerical method? Do you know any library in c/ c++ language that can solve these equations??</p>
<p>I have tried with Maple 17 and the response is: "Error, (in pdsolve/info) first argument is not a differential equation". Whole of my input:</p>
<p> </p>
<p><em><strong>with(PDEtools); declare(U1(x, y), U2(x, y), U3(x, y));</strong></em></p>
<p><em><strong>PDEs = [diff(U1(x, y), y) = U2(x, y), </strong></em></p>
<p><em><strong>diff(U1(x, y), x) = U3(x, y), </strong></em></p>
<p><em><strong>(diff(U2(x, y), y))*((L-U1(x, y))^2+(D2+tan(alpha)*(L+U1(x, y)))^2)+.5*U2(x, y)*(2*tan(alpha)*U1(x, y)-D2) = 0,</strong></em></p>
<p><em><strong> (diff(U3(x, y), x))*((L-U1(x, y))^2+D1^2*cos(alpha+2*U2(x, y))^2)+.5*U3(x, y)*D1*cos(alpha+2*U2(x, y))+.5*D1*sin(alpha+2*U2(x, y))*(L-U1(x, y)) = 0];</strong></em></p>
<p> </p>
<p>[ d d / d <br>PDEs = [--- U1(x, y) = U2(x, y), --- U1(x, y) = U3(x, y), |--- U2(<br> [ dy dx \ dy</p>
<p>\ / 2 2\<br> x, y)| \(L - U1(x, y)) + (D2 + tan(alpha) (L + U1(x, y))) /<br> /</p>
<p>/ d <br> + 0.5 U2(x, y) (2 tan(alpha) U1(x, y) - D2) = 0, |--- U3(x, y)<br> \ dx</p>
<p>\ / 2 2 2\<br> | \(L - U1(x, y)) + D1 cos(alpha + 2 U2(x, y)) /<br> /</p>
<p>+ 0.5 U3(x, y) D1 cos(alpha + 2 U2(x, y))</p>
<p>]<br> + 0.5 D1 sin(alpha + 2 U2(x, y)) (L - U1(x, y)) = 0]<br> ]</p>
<p><em><strong>pdsolve(PDEs);</strong></em><br>Error, (in pdsolve/info) first argument is not a differential equation</p>
<p> </p>
<p><br>I will be very appreciated with your help!!!</p>203329Fri, 23 Jan 2015 06:21:20 Zleoteoleoteostoring a value in a list/array/sequence
http://www.mapleprimes.com/questions/203327-Storing-A-Value-In-A-Listarraysequence-?ref=Feed:MaplePrimes:New Questions & Posts
<p>I need to convert a base 10 int(defined as num) to its base 3 format using a while loop. I would like to store the remainder of the num%3 to a list/sequence/array in maple. Now, if I were to use a sequence, I would need a pre-defined range. How do I solve this issue?</p><p>I need to convert a base 10 int(defined as num) to its base 3 format using a while loop. I would like to store the remainder of the num%3 to a list/sequence/array in maple. Now, if I were to use a sequence, I would need a pre-defined range. How do I solve this issue?</p>203327Fri, 23 Jan 2015 01:45:24 ZGuruYerramGuruYerramPlotting a function over a range
http://www.mapleprimes.com/questions/203326-Plotting-A-Function-Over-A-Range?ref=Feed:MaplePrimes:New Questions & Posts
<p>I've got a piece-wise function(for which I've made the procedure) f defined over x<=-1, -1<x<1 and x>=1 which I am trying to plot over the range of (-2,2). I've tried using plot(f,-2..2) but it doesn't show any curve. Should I add a few more parameters to plot()?</p><p>I've got a piece-wise function(for which I've made the procedure) f defined over x<=-1, -1<x<1 and x>=1 which I am trying to plot over the range of (-2,2). I've tried using plot(f,-2..2) but it doesn't show any curve. Should I add a few more parameters to plot()?</p>203326Fri, 23 Jan 2015 00:44:20 ZGuruYerramGuruYerramChecking lists for equality
http://www.mapleprimes.com/questions/203324-Checking-Lists-For-Equality?ref=Feed:MaplePrimes:New Questions & Posts
<p>I've got the following lists :</p>
<p>list1:=[1, 5, 14, 30, 55, 91, 140, 204, 285, 385, 506, 650, 819, 1015,</p>
<p>1240, 1496, 1785, 2109, 2470, 2870]<br>list2:=[1, 5, 14, 30, 55, 91, 140, 204, 285, 385, 506, 650, 819, 1015,</p>
<p>1240, 1496, 1785, 2109, 2470, 2870]</p>
<p>each generated by a procedure I defined. I need to verify that they are equal, which is the case. However, when I tried to use the evalb function as well as a flag that I was updating during a loop, in both cases, I got 'false' as the answer along with the error message: </p>
<p>"error, final value in a for loop must be numeric or a character"</p>
<p>What I am doing wrong?</p><p>I've got the following lists :</p>
<p>list1:=[1, 5, 14, 30, 55, 91, 140, 204, 285, 385, 506, 650, 819, 1015,</p>
<p>1240, 1496, 1785, 2109, 2470, 2870]<br>list2:=[1, 5, 14, 30, 55, 91, 140, 204, 285, 385, 506, 650, 819, 1015,</p>
<p>1240, 1496, 1785, 2109, 2470, 2870]</p>
<p>each generated by a procedure I defined. I need to verify that they are equal, which is the case. However, when I tried to use the evalb function as well as a flag that I was updating during a loop, in both cases, I got 'false' as the answer along with the error message: </p>
<p>"error, final value in a for loop must be numeric or a character"</p>
<p>What I am doing wrong?</p>203324Fri, 23 Jan 2015 00:25:54 ZGuruYerramGuruYerramInitializing a list of given size in Maple
http://www.mapleprimes.com/questions/203323-Initializing-A-List-Of-Given-Size-In-Maple?ref=Feed:MaplePrimes:New Questions & Posts
<p>I am required to generate a list containing the square of numbers 1 through k where k is an arbitrary int,defined from 1 to n. To do this, I've currently got the following commands:</p>
<p>local k, mylist:=[];</p>
<p>for k from 1 to n do</p>
<p>mylist[k]=sumsquare(k);</p>
<p>end do;</p>
<p>where sumsquare() is a procedure I defined to compute the sum of the squares of 1 through a number passed as an argument</p>
<p>At present this gives me an out of bounds error. </p>
<p>How can I initialize mylist to be of size n, like in other languages such as C++?</p>
<p> </p><p>I am required to generate a list containing the square of numbers 1 through k where k is an arbitrary int,defined from 1 to n. To do this, I've currently got the following commands:</p>
<p>local k, mylist:=[];</p>
<p>for k from 1 to n do</p>
<p>mylist[k]=sumsquare(k);</p>
<p>end do;</p>
<p>where sumsquare() is a procedure I defined to compute the sum of the squares of 1 through a number passed as an argument</p>
<p>At present this gives me an out of bounds error. </p>
<p>How can I initialize mylist to be of size n, like in other languages such as C++?</p>
<p> </p>203323Thu, 22 Jan 2015 23:15:43 ZGuruYerramGuruYerramhow do I solve this confusing puzzel
http://www.mapleprimes.com/questions/203322-How-Do-I-Solve-This-Confusing-Puzzel?ref=Feed:MaplePrimes:New Questions & Posts
<p>It's Alan's birthday and he's having a</p>
<p>party. Seven other people will attend.</p>
<p>Everyone will sit around the dining table.</p>
<p>The seating arrangement must meet the</p>
<p>following conditions:</p>
<p>* Amy and Alan sit together. Brad and</p>
<p>Beth sit together.</p>
<p>* Charles sits next to either Debbie or</p>
<p>Emily.</p>
<p>* Frances sits next to Debbie.</p>
<p>* Amy and Alan do not sit next to either</p>
<p>Brad or Beth.</p>
<p>* Brad does not sit next to Charles or</p>
<p>Frances.</p>
<p>* Debbie and Emily do not sit next to</p>
<p>each other.</p>
<p>* Alan does not sit next to either Debbie</p>
<p>or Emily.</p>
<p>* Amy does not sit next to Charles.</p>
<p>Who should sit where?</p><p>It's Alan's birthday and he's having a</p>
<p>party. Seven other people will attend.</p>
<p>Everyone will sit around the dining table.</p>
<p>The seating arrangement must meet the</p>
<p>following conditions:</p>
<p>* Amy and Alan sit together. Brad and</p>
<p>Beth sit together.</p>
<p>* Charles sits next to either Debbie or</p>
<p>Emily.</p>
<p>* Frances sits next to Debbie.</p>
<p>* Amy and Alan do not sit next to either</p>
<p>Brad or Beth.</p>
<p>* Brad does not sit next to Charles or</p>
<p>Frances.</p>
<p>* Debbie and Emily do not sit next to</p>
<p>each other.</p>
<p>* Alan does not sit next to either Debbie</p>
<p>or Emily.</p>
<p>* Amy does not sit next to Charles.</p>
<p>Who should sit where?</p>203322Thu, 22 Jan 2015 20:55:05 Zthailothailo