Items tagged with text text Tagged Items Feed

I want to write an equation in the text portion of my document.  I do not need it evaluated. I just want to write formulas, like I do in LaTeX. 

Hi there

I'm working with maple 13 (2d input) and I would like to hide the input in a worksheet, as follows:

view > show/hide contents > (unchecking) input

however i want to insert comments as text that will remain in my worksheet. Using '#' doesn't help, coz they get hidden too.

Couldn't sort out how to do this, any tips?


for example i want to save the Square root of 2 to 1000000 decimal place to an ascii text file ...

i used the writeto command after evalf[100](sqrt(2)) for but it contains line breaks and \ character in output !

but i only need the pure continues 1000000 digits !

please guide me on this simple request ?

Dear all,

I want to compute the charateristic polynomials of some matrices (the number of matrices is more than 10000), and write the coefficients of the resulting polynomials to a text file. The entries of the given matrices are stored in a text file. More specifically, suppose that M_1, M_2 and M_3 are three matrices, and the entries of them are stored in a text file named "data.txt" in the following form:

1 2 3

4 5 6

7 8 9


1 -1 0

2 3 6

-3 0 2


2 1 -1

1 -1 -2

0 1 2

The resulting output file should be of the following format:

1, -15, 18, 0

1, -6, 13, -28

1, -3, 1, 3

I don't know how to repeatedly read the data from the given text file. I think the procedure should be as follows.





>fid_1:=Open("data_1.txt"): #data_1 is the output file

>ReadFile(fid); #since the number of matrices is very large, I want the data to be read once


>for i from 1 to numlines do

       here I need repeatedly read the data to a matrix M (I don't know how to do);


       writedata[APPEND]("data_1.txt",map(i-> coeff(p, x, i), [seq(i, i = 0 .. degree(p, x))]));  #this statement cannot write the coefficients of a polynomial in the same row

>end do;



Now as I'm pretty new to Maple, I don't know any better and can't seem to get any information out of the help documents. 

Thanks a lot.


I am programing the RSA-Algorithm. Somewhere in the program the user gets the choice to get a rough summary of the algorithm and the various steps used.

To do that I wrote a 1 1/2 page summary in Word. To see how the text is displayed withing the Window I took the first paragraph of my summary and put it in the following code:


mapletExplainRSA := Maplet(Window('title' = "Erfahre mehr über RSA",

["Das verschlüsseln und entschlüsseln einer Nachricht dient der sicheren Kommunikation. Es existieren bereits Methoden der sicheren Kommunikation. Eine davon nennt man „one way ciphers“ oder „trap door ciphers“.  „One way“ da obwohl alle eine Nachricht verschlüsseln können, nur einer sie entschlüsseln kann. Für jedes Verschlüsselungsverfahren gibt es einen Schlüssel für das verschlüsseln und einen anderen Schlüsseln für das entschlüsseln.",

[Button("Nachricht verschlüsseln", Shutdown("True")), Button("Abbrechen", Shutdown())]]));



The problem is that when I run this code the whole paragraph is written on the same line and hence does not even fit in the Maplet Window. Is there a way so that my rather long text will be formatet nicely within the Maplet window. Just like it would be displayed using Word. That is a text in paragraph style where sentences are wrapped automatically.



We have two texts in a certain language, represented as Maple  strings,  e. g.
"die einkommen der landwirte sind fuer die abgeordneten ein
buch mit sieben siegeln um dem abzuhelfen muessen dringend alle
subventionsgesetze verbessert werden" and
"die steuern auf vermoegen und einkommen sollten nach meinung
der abgeordneten nachdruecklich erhoben werden dazu muessen die
kontrollbefugnisse der finanzbehoerden dringend verbessert werden".
We have to find the maximal common subsequence of the words in the both texts,
i.e. "die  einkommen der abgeordneten muessen dringend verbessert werden" for
the above. If there are a few such ones, then only one is enough. How to program
that by SringTools and/or EssayTools in maximum efficient way? A compiled procedure is welcome.

The meaning of \%1...

April 29 2014 taro 100

Hello those who attends Mapleprimes,


I have a question.

A programme was written in a text:



if n=0 then


elif n=1 then


elif n=2 then


elif n=3 then


else error "bad argument: \%1", n;

end if; 


The answer of this programme was 

 error bad argument.


What I couldn't understand was the meaning of \%1

Could you tell me about it to me?


Thanks in advance.


I have a vector that looks like this:


Now in order to make the api call it has to be expressed as:,GOOG.NASDAQ_AAC.4,GOOG.NASDAQ_AACC.4

or as:


How would I make that transformation?
It looks simple but it is difficult ie string notation and you cant copy past (thousands of stocks). 


Dear All,

please help me with my problem. i have quite a big program all parts of which are distributed in the several code edit regions and in the main text. i'd like to find all occurenses of gven text in all open documents including code edit regions. i know how to do it manually by openening each code edit regiong and pressing Ctrl-F. however it is very time consuming and defocuses me apart from my main tasks. i'd prefer to use some combinations of 'hot keys' on the keybord or one or two mouse clicks as for example in MS Visual Studio.  

 Can't copy from Maple worksheet and paste here in the Mapleprimes text editor. It's very cumbersome when one needs to detail technical examples. Is there a way to copy and paste?Thanks


I'm very new to Maple and need some help.

I have a Matrix with the structure

M:= Matrix([[2013-08-13T00:29:24+0000,"text1"],[2013-08-14T00:29:24+0000,"text2"],[2013-08-15T00:29:24+0000,"text1"],[2013-08-16T00:29:24+0000,"text1"]])


and would like to plot this. Now problem one obviously is, it contains a timestamp. How can I use this in Maple? Second problem is, "text1" is a string, so I cannot use plotlist because it can not be converted to a float.


I installed Maple 17 on Slackware Linux 14.0 today and everything seems to work except that when I want to search for something through Maple Help my mouse doesn't seem to activate the text search field. Is this happening with anyone else or is this just because I am running under Slackware?




How do I copy Maple input without any modifications?

Here is my problem:Consider the MAPLE input below (Copy Example). Copy and paste results in:

restart; with(VectorCalculus); SpaceCurve(`<,>`(VectorCalculus:-`*`(2, cos(t)), VectorCalculus:-`*`(2, sin(t)), t), t = 0 .. VectorCalculus:-`*`(2, Pi), axes = boxed, thickness = 2, color = black)

which is not the same as the input. I need the unmodified Maple input for a documentation, which is published...

How do I export a procedure written inside the GUI (i.e. Document mode) into an external file format that is directly supported by a read of a package module?

Every export format I tried requires post editting by a text editor to "fix-it".  And it seems most export options drop the comment text (i.e. text after a #).


Hey guys.


I've been using a format where everything, math and text, is in black. The awnsers come out in blue.

Some coleges use a (ugly?) format where the equations are in red and are, in my opinion, less easy to read and take longer to type down.


So my question is simply this: Can I do everything using the black format I'm used to, or are there certain things that I MUST use the red format to compute?

If there are...

1 2 3 Page 1 of 3