Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Is there a switch/case statement in Maple?  So that instead of:

 

if (a = a1) then

   b1

elif (a = a2) then

   b2

elif (a = a3) then

  b3

end if

 

Something like:

 

switch (a) {

case: a1 {b1}

case: a2 {b2}

case: a3 {b3}

}

 

???

 

I'm potentially going to have a long list of elif's and might need  more efficient way of doing it.

How do I plot a 3d helicoid?  I can easily plot a helix, but cannot figure out how to fill the plane to the axis, to generate the helicoid?

Leslie

I recently discovered a minor variation on the technique of building a set using a table. The purpose for using a table rather than inserting new items directly into a set is that, in a loop, the latter technique is O(n) rather than O(n).  The way I would normally do this is to assign a counter and an empty table, and then, in a loop, compute the new element, increment the counter, and insert the element into the table at the counter index.  For example,

Hi all,

while studying this ODE

 

Ever wondered how you can create filenames by cycle.

Well, I did, because I needed it. And I came up with something that works and because once i forgot it, I decided this time to put it here. At least, I won't forget again :) If you have a better way to do it, please, say so.

The idea:

>A:=`/home/Data/file_`; B:=`.txt`;

>for i from 1 to 3 do C:=cat(A,i,B); writedata(`C`,[i],integer);od;

Hi,

I have been trying to get a numerical solution to the following ode system for weeks. I am new to Maple, and I think my issues might be with the coding rather than the maths.

I get the error message:

Error, (in dsolve/numeric/checksing) ode system has a removable singularity at t=0. Initial data is restricted to {v(t) = 0., Phi(t) = 0.}

I know there is a singularity at t=0, so I tried setting the 'range' option to something just above 0, but it is still not working.

Hallo thar. I’m new to both Maple and programming. I’ve been searching for a Maple programming introduction online that would allow me to work on the following problem but haven’t turned up anything.  Hoping some of you can point me in the right direction.

.

I have two sets of integers {Y1,Y2..Yn} and {B1,B2…Bn}. For each value in the Y set I need to solve a function F(x) for a number of iterations given by the B value corresponding to the Y value (B1 for Y1).

Hi all,
> deq := diff(theta(t), t, t) = -g*sin(theta(t))/L;

                           2                              

So, Maple is quite helpful in that it will automatically make certain simplifications for me.  But what if I don't want it to.  For example, if I enter 2*(2+x), how do I get it to not just simply return 4+2*x?

 

Consider this to by end goal:

evalb(2*(2+x) = 4+2*x) => false

I have some troubles in solving a system of three trigonometric equations using the function 'solve' of Matleb.The program finds three solutions but a message of 'Warning: Warning, solutions may have been lost' also appears. Does it mean that there are other three solutions? If yes, how can I see also these three numbers?

Thanx!

In particular because the TAB key doesn't work in Maple, is it possible to define a shortcut key for a few spaces? I found this quite annoying that I couldn't simply tab over a few spaces when programming. Is Maple going to fix it in the future? Why doesn't TAB work anyway, did they forget about it?
I have a particular system of partial differential equations to which I want to apply a change of variables involving square roots using PDEtools[dchange]. The result turns out to be not in a simple form due to the square roots. Why is this so ? Is there a better way solving the problem than the one I am suggesting below ? The system of partial differential equations of interest is the following:

Hi all,

While solving a différential equation, I encounter an integral:

 

First 2024 2025 2026 2027 2028 2029 2030 Last Page 2026 of 2223