Product Tips & Techniques

Tips and Tricks on how to get the most about Maple and MapleSim

Hello, I found an error in the following plotting. An error is with discont=true and the range <-5,5>x<-5,5> In other cases it is OK. plot(tan, -5 .. 5, -5 .. 5, discont = true); But when I plot tan as an expression no as a function it works correctly. plot(tan(x), x = -5 .. 5, -5 .. 5, discont = true); The whole document can be visited via View 551_error_tan_plot.mw on MapleNet or Download 551_error_tan_plot.mw
View file details

This example shows that restart command does not work correctly - it means that it does not clear stack memory(internal memory). The following example shows it. In that procedure there are some mistakes, but I think that the restart command should work correctly whith them. If you execute the following procedure three times (maybe twice, it depends on the computer memory capacity, but I do not amount to more than three times), the Maple system falls down with out of memory (execution stop - the stack ) - why? You call the restart command, so where the fatal error is. It does not depend on the correct usage of statements in the procedure.
I have a question about Maple 10 updates. If I would like to update my Maple 10.00 installation which of the updates should I install to get completly Maple 10.06. Thank you. Vladimir
Hello, I use embedded components a lot, but I would like to create them dynamically from my own procedure, e.g. as an output. The reason is, that in new Mathematica 6 is possible to create a plot with slider to show an influence of variable to the plot. I would like to create the similar output in Maple. Thank you. Vladimir

While numerically testing a solution for the February 2007 IBM Ponder This challenge I had to generate a large n×2 Array of random floats uniformly distributed in [0,1).

There was a discussion on comp.soft-sys.maths.maple about how well Maple obtains the Jordan Normal Form of a (square) matrix. LinearAlgebra[JordanForm] is limited to matrices of integers, so it can make severe demands on computer memory; furthermore, in practice, one is often confronted with floating point data. However, linalg[jordan] operates on matrices of both integer and floating point data.
Since the book entries do not yet have their own tracker (like the forums, blogs, etc), I figured I would give a particular entry I crafted on advanced maple programming a bit of a boost by making a blog entry of it, at least until Will get the tracker back online. I did spend a huge amount of time on that book entry, so I want it to get some visibility!

So you have used Maple as a glorified calculator (Maple 101), then wrote a few 1 liners (Maple 201), and even a few larger procedures (Maple 301), where you were both amazed and horrified by 'op'. But when you get serious about programming in Maple, even for not-so-large procedures, what are the fundamental parts of the system that you should know? Other pages in this book talk about particular features. This one is instead a simple list of those Maple commands and concepts you need to know to be able to call yourself a Master Maple Programmer.

The frontend command is a bit tricky. The basic idea is that it replaces expressions in the arguments to a procedure with names, evaluates the procedure with the replaced arguments, then back-substitutes the expressions for the the names in the final result. The first argument passed to frontend is the procedure that is to be evaluated. The second argument is a list containing the arguments to be passed to the procedure. Remaining arguments are optional, we'll get to those in a second.

I had problems with interputing an LaTeX enumeration and continuing it after that. I finally found the solution:

 \begin{enumerate}
   \item ...
   \item ...
   \item \label{it:ob:last}
 \end{enumerate}
 ...
 \begin{enumerate}\setcounter{enumi}{\ref{it:ob:last}}
   \item ...
   \item ...
 \end{enumerate}

thank you to some web sites:

Because my ISP no longer offers home pages, I'm putting the source to maplev-mode here.

maplev-mode is an Emacs major mode for developing Maple code. Its features include:

  • font-lock (highlighting) of Maple keywords
  • automatic indentation
  • syntax checking (via Mint)
  • online Maple help
  • online display of Maple procedures
  • imenu support
  • auto-fill support

It works properly with NTEmacs on a Windows machine and with GNU Emacs on a Linux box. It has been tested with GNU Emacs 21.2. It is supposed to work with Xemacs but the testing done with Xemacs has been minimal. The manual is badly out of date.

The current version supports Maple 11 and previous releases of Maple.

I use a dark background, but the maplev-mode can be configured to use a light background. Clicking on the highlighted "on line 13" message in the mint buffer moves the point to that location in the source buffer. Download 84_maplev.zip
View file details

Maple Equation

Ref: Kahan (Jan 2007): How Futile are Mindless Assessments of Roundoff in Floating-Point Computation ?

I wanted to know, how Maple behaves on the example given in \2475 of that working paper (where other

systems are considered, mostly Matlab) and thought it might be of interest here in the forum.

> restart; Digits:=16; interface(version);

( 1+ c*10^(n+1) ) / ( 1+ c*10^(n) ): 'limit(%,n=infinity)': '%'=%;

                                        (n + 1)
                                1 + c 10
                      lim       --------------- = 10
                 n -> infinity             n
                                   1 + c 10

However if c = 0 then ...

Hello, I have a question about Mathematical Expression Component in document. I tried to use it in my maple document and of course I looked at the help about it. There is a discription about another component, I think. The reason of it is that the dialog of component property is different in a help and in a document. I do not know why. I try to use it in Maple 10.06. The following figures show the situation. Of course, problem of this component is not only in different property dialog but also in functionality. Figure from help Figure from document Problem with this component is described also in the document here. Thank you. Vladimir

restart; interface(version);

  Classic Worksheet Interface, Maple 10.06, Windows, Oct 2 2006 Build ID 255401


expr:=hypergeom([1-I*a,1-I*b],[1],x);
convert(expr, hypergeom, "lower c");

            expr := hypergeom([1 - a I, 1 - b I], [1], x)

                                  0

Digits:=14:
subs(a=1, b=2, c=1, expr):
eval(%,x=2); evalf(%);
#Re(%%%); plot( %, x=-1..0.9); plot( %%, x=1.1 .. 3);

                 hypergeom([1 - I, 1 - 2 I], [1], 2)

               0.010385802579659 + 0.068521539093061 I
First 55 56 57 58 59 60 61 Last Page 57 of 66