nm

11558 Reputation

20 Badges

13 years, 135 days

MaplePrimes Activity


These are replies submitted by nm

@Thomas Dean 

Sure. One can always do manual sorting (but it is little tricker than just calling sort, as one has to use same sort order for the eigenvalues to keep the corresponding eiegvectors in same order in the matrix as the now new order of the eigenvalues after sorting).

This is all possible. I could write a wrapper function and call it my_eigenvectors(matrix) and put all this code inside it, so not to have to do it each time.

But my question if there is a way for Maple to keep same order each time the command is used. I do not understand why it gives a different order each time it is called (or may be every other time), as there are no random numbers involved in finding eigenvectors and eigenvalues.

So why does the order change?

 

@Anthrazit 

I do not know anything about "components". I only know about worksheet and document mode.

I would imagine that the vast majority of Maple users use one of these two modes?  So using Latex to generate PDF will solve this problem for the majority of users.

Direct PDF export from document is always going to have some formating issues, specially with graphics and different fonts used, and will never look as good as using Latex as the source to generate PDF.

Btw, similar issues happen in Mathematica when using direct export to PDF. Not all formating will be exported as it shows on the screen using direct export to PDF.

The best long term solution is to convert the document first to Latex, then convert the generated Latex to PDF.

 

@erik10 

I see no issues at all in Maple 2021 when compiling the latex to PDF. This is the PDF generated

 

Which looks exactly like the worksheet on the screen. (good job Maplesoft for the Latex conversion). Here is screen shot of the worksheet to compare with

 

For the above, I just did File->export As ->Latex then typed pdflatex drawing_on_canvas.tex in the terminal.

Now for the issue that students might not know how to do this, or not know how to compile the latex to PDF. 

There is a simple solution to this. Maple should come preinstalled with full TexLive latex distribution. This is completely open source and free Latex distribution.  This is what some other programs actually do. For example, scientific workplace editor does this.

So what will happen, is when one clicks on export to PDF, then Maple, internally, will convert the document to Latex, and call the Latex compiler (which is installed internally now inside Maple installation folder), and generate the PDF that way.

So users do not even have to know anything about Latex or use it. It is all done automatically. (this is what Scientific workplace does).

Problem fixed. 

Attached is the PDF file. (ps. I also did crop on it to remove uneeded white spaces but this is not necessary).

drawing_on_canvas.pdf

Hello;

May be I am missing something. If the student uses Maple to solve the HW problem. Why not have the student just upload the Maple worksheet/document itself to the teacher for grading?

Why does student have to first  convert the Maple document to PDF and then upload the generated PDF file?

Doesn't the teacher also have Maple installed to view it and grade it directly like this?

In addition, Maple 2021 now can export whole document to Latex. This will be a better option to use to convet to PDF if needed than direct conversion.

 

@Axel Vogt 

No problem. I slightly edited my question to make this more clear. I personally prefer the PDF documentaion over the HTML ones. I find PDF easier to read and also can save the PDF on my PC more easily.

@Axel Vogt 

I think you misunderstood me.

I was not asking to post the raw Latex file as the document!  Clearly that would be a ridiculous suggestion.

I was saying why did not Maplesoft convert the Maple documents to Latex, then compile the Latex to PDF, and then post the PDF generated from the Latex.

So user only sees the PDF file, just like now. However, the PDF will be generated from Latex instead, which will produce better output than the current output.

 

@Kitonum 

+1, thanks for the workaround. But I can't actually use this in my program, since I call int and not Int and the program is non-interactive and has to work for many inputs, so it has no idea what trick substituion to use or apply to bypass any issue it finds.

The function simply calls int, and if no error generated and if the integral evaluates, then it calls simplify on the result.

But I like your smart substitution. Unfortunately I can't use it in  my generic function.

@ the classic worksheet has not been part of Maple for many versions now. I do not remember the last Maple version which had the classic worksheet. 

I also liked it and used it all the time.  When it was removed, I had to use worksheet instead. I do not like document mode at all. It feels like I am working inside Microsoft word each time I try it.

I prefer simple and clean interfaces. Not too many bells and whistles and icons and flashy things around.

I do all my programming in Maple using plain texteditor any way. notepad++. And write everything in .mpl files. And use worksheet for quick code and help and to try things and build the .mla and start tests.

There is still a very basic missing feature in the interface, that I really do not understand why Maplesoft can't fix.

When running a long script/loop which prints stuff on the screen for debugging, the worksheet now locks up and will not let one click on the "Remove output from worksheet".

So as the script runs, the worksheet fills up and it seems to become slower and slow to scroll. It will be very useful to allow one to occasionally, if they want, clear the output from the worksheet while the script is still running.  

In Mathematica this is easily done. one can clear the output as it is running.

I do not see why it is so hard to do the same in Maple and why this option becomes disabled when running a command.

Is it possible to fix this in some minor release of Maple 2021? This will help alot.

And thanks for the new release. It has fixed a long standing problem with Maple finally. timelimit() is finally working correctly.

 

@ecterrab 

The change from Latex to latex() was simple. I had to change one line only in my code. Everything else working very well.

All the hangs that used to happen using timelimit() are fixed now. I am running a long script, that used to hang in few places, because timelimit() would not expire, now it work, and does expire. 

This for me is the most important fix in Maple, because it means I can now run longer scripts and not have to keep watching over it, and restart it when it hangs.

Thanks for this important fix and for any one else who worked at it in Maplesoft.

 

@Carl Love 

Sorry, I thought it is a reply to my comment as it was below it, that is I was confused by your reply.

 

 

 

@Carl Love 

I know it does not specify the number of terms. Where did I say it does?

I was simply asking for an example showing the issue.

 

Could you show an example, where order is different from powers on (x-x0)?  since normal use it is the same (difference by 1)

series(exp(x),x=x0,3)  

gives

I do not know why in this forum specially, folks do not bother taking little extra time to give an example to illustrate the issue they are having. An example always helps clarify the question.

A picture is worth a thousand words.

 

 

@Kitonum 

Thanks. I use [] all the time to index, but for some reason I used () here without noticing. 

But why did () work here for the column case and not the row case?

 

How could we reduce the size without losing any quality?

could you show/illustrate one such example?

First 39 40 41 42 43 44 45 Last Page 41 of 90