nm

11373 Reputation

20 Badges

13 years, 42 days

MaplePrimes Activity


These are questions asked by nm

Sorry for a basic question, but I am not able to find a setting for this, and I am stil newbie in using Maple UI.

A simple problem. When I copy some Maple code from the net, such as a proc() posted here or else where, then paste the code right into my open worksheet, then each line will show up with ">" at the left.

Is there a way to remove these ">" other than the way I do it now, which is manual process.

Having a ">" at start of each line does not seem to affect anything. The proc() gets defined fine, and I can call it. But normally when I write a proc(), there is no ">" to the left of each line, since those come only when hitting a RETURN. And that is what confuses me.

But what I am looking for, is a way to select some lines, and tell Maple to remove all the ">". Here is a screen shot of some code I just pasted to the worksheet:

 

 

I am on windows 7, 64 bit, using Maple 17.02. When opening the command line Maple, and typing:

But on the GUI, it works:

?index,packages;

and I get a new window open with the list of package.
In the command line, it works if I use ?index,package;  i.e. without the extra `s` at the end.

On a side question, I was looking at a Maple book, where it said to use ?index[packages];  but this no longer works, even in the GUI, and had to use ?index,packages;  syntax. I wonder when this change happens. The book is old, using Maple 7.

I started to notice that Maplesoft web site is not in English any more. This makes it hard to read for me. (it seems to be in French?)  I was wondering why this change?

I think it is best to keep it in the English language, since English is the most common language. I visit the site from the US where I live, and I use the same browser, firefox, same OS, windows 7, and I have changed nothing on my end. Here is a screen shot:

 

Warning: I am newbie in Maplem so if I am missing something obvious, please do not scream at me.

I noticed something strange here. I was trying to simplify this expression to sinh(x). The first step is to convert it to exp() form. Then the next step should have been just another convert to sinh since the resulting exp() expression from the first step was clearly a sinh(). Yet, I find that expand() and also simplify() in order for Maple to see this.

So my question is, what are the rules of the game here? Does one really have to baby step the simplification process like this to the extent of telling Maple that

is the same as

by using simplify(), before getting the result needed?

Here is the code: (the goal again is to obtain sinh(x) as final simplification)

%------ this works --------------
s:=(1/2)*exp((1/2)*x)*(cosh((1/2)*x)-cosh((3/2)*x)+sinh((1/2)*x)+sinh((3/2)*x));
convert(s,exp);
expand(%);
simplify(%);   %-----> without this, will not work
convert(%,sinh);
%--------------------------

but

%---- this does not ----------------
s:=(1/2)*exp((1/2)*x)*(cosh((1/2)*x)-cosh((3/2)*x)+sinh((1/2)*x)+sinh((3/2)*x));
convert(s,exp);
expand(%); 
convert(%,sinh);  % is simplify really needed BEFORE this step?
simplify(%);  % 
----------------------------

Fyi, in Mathematica, I only needed to convert to exp() and back again to Trig to get the answer:

Or using Simplify

I am not able to find way to do this very basic and common operation.

I use worksheet mode, and many times I'd like to split/divide a large execution group I've build of some code to 2 execution groups at some place. i.e. I'd like to point my mouse at a line and say divide here. Here is an example:

I see only the options Insert->Execution group-> After Cursor or Before cursor. Both of which do not do what I want. I want to divide it at that point.  So what I end up doing is to make a new execution group manually (using the Insert command), then go back and cut and paste the code I want in the new group.

I hope there is an option to do this. I do these sorts of things all the time when using Mathematica, which has Divide cell, Merge cells and other options. A cell in Mathematica is similar to execution group in Maple. Are there other options to maniuplate execution groups other insert before/after cursor that I might have missed? I am using 17.02 on windows 7.

Please note, I only use worksheet mode.

 

First 195 196 197 198 199 200 Page 197 of 200