Will

1781 Reputation

16 Badges

18 years, 245 days
Maplesoft
Developer
Waterloo, Ontario, Canada

Social Networks and Content at Maplesoft.com

Maple Application Center

Will Spaetzel is a Software Architect in the Maple T.A. Team at Maplesoft.

He started at Maplesoft in May of 2004 for a 16 month internship while completing his Bachelor of Computer Science from the University of Western Ontario. During his final year at UWO, he continued on as moderator for MaplePrimes. He joined Maplesoft full-time in May 2006 and moved to the web team in Jan 2007. In December of 2010, Will moved to the Maple T.A. team. 

Will was born and grew up in Ontario, Canada. He maintains a personal blog, dabbles in photography builds web applications in his spare time.

MaplePrimes Activity


These are Posts that have been published by Will

MaplePrimes is a free service provided to users by Maplesoft, A division of Waterloo Maple Inc. By posting on MaplePrimes, you agree to be bound by the following terms and conditions. If you do not wish to be bound by these terms, then please do not use MaplePrimes.

You understand that all messages appearing here are the sole responsibility of those persons posting the message. This means that you, and not Waterloo Maple Inc., are entirely responsible for all information and material that you post on MaplePrimes. Waterloo Maple Inc. does not control the content of any messages posted on MaplePrimes and does not guarantee the accuracy, integrity or quality of anything on MaplePrimes or any products or services that may appear here. You understand that by using MaplePrimes, you may be exposed to content that is offensive, indecent or objectionable. Under no circumstances will Waterloo Maple Inc. be liable for any errors or omissions in any postings or for any loss or damages of any kind incurred as a result of the use of any information contained in MaplePrimes.


Here is an example to illustrate the problem.
  
 > y := SQRT(4);
                                   y := SQRT(4)
To get the square root function, you must use the name "sqrt", because Maple is case sensitive. Other examples of this are:
  • use "Pi" rather than "pi" to get 3.141etc
  • use "exp(1)" rather than "e" to get 2.718etc
  • use "I" rather than "i" to get the square root of minus 1
Also note that, for example, "Int" and "int" are both Maple commands, but work differently.

Here are some examples to illustrate syntax errors.
 > fsolve((1-x)/x^2),x);
 `)` unexpected
In this case, I made a typing error; there is an extra right parenthesis after the "2". Removing it fixes the problem.
 
 > fsolve((1-x)/x^2,x);
                                        1.
 
 > y : = sqrt(4);
 `=` unexpected
In this case, the problem is that the ":=" has a blank separating the ":" and the "=".
 
 > y := sqrt(4);
                                      y := 2
 
 > by:=3;
 `:=` unexpected
In this case, the problem is that the variable name "by" is a word

Here are some examples illustrating this problem
 
 > x:=3;
   ...various other calculations, during which you forget that you
      gave x a value
 > solve(2*x=1,x);
 Error, (in solve) invalid arguments
 
 > plot(2*x,x=-1..1);  No complaint is written out, but the plot is
                       just the line y=6.
Here x already equals 3, so it doesn't make sense to use it in an assertion like "2*x=1", and plotting "2*x" is just plotting "6". Just as the above section shows an example of having too many indeterminates, this example shows what happens when there are too

Here are two correct ways to define functions.
 
 > f:=2-x;           One way is by assigning a formula to a name.
 > plot(f,x=-1..1);  If you use this method you can refer to f,
 > solve(f=0,x);     BUT referring to "f(x)" yields nonsense.
 > f(x);      WRONG      
                                     2 - x(x)
 
 
 > f:=x->x^2;          Another way is by using an arrow. 
 > f(x);               If you use this method you can refer to f(x),
 > f(1);               BUT referring to just "f" only yields "f",
 > plot(f(x),x=-1..1); not the function.
 > solve(f(x)=0,x);
First 19 20 21 22 23 Page 21 of 23