2^18;is an output you might want to see, but you probably want to supress the output for
int( 1/(x^50*sqrt(3+x)), x);
+, -, *, and
/for addition, subtraction, multiplication and division,
^for exponentiation and
!for factorial. The order in which operations are executed follow the standard mathematical rules. If there are any ambiguities, uses parentheses.
x = a..bdenotes x in the interval . This can be used to enter a domain or range in a
plotcommand or endpoints of integration for a definite integral in the
intcommand as well as in other contexts.
commandname(parameter1, parameter2, . . .);Maple is case-sensitive so it is important to be careful when entering the command name. The parameters for the command can be Maple expressions, numbers, other Maple commands or previously generated Maple output. If you are uncertain about a particular command, you should use the Help Browser or Keyword search to determine the appropriate usage of the command.
with(packagename):. After the package is loaded, any command in the package can be accessed as above. For example, we will often type with(plots): with(linalg):
:=operator can be used to assign a Maple expression to a variable name. This expression could be anything from a constant to the output of a Maple command. This is particularly useful if the output will be used in subsequent Maple commands. For example, the command
r:= 5;assigns the value 5 to the variable r. The command
area:= int(1/x, x = 1..3);computes the definite integral and assigns that value to a variable.
In order to unassign a previously assigned variable use a command like
r:= 'r';Note that these quotation marks are the ``forward apostrophe.''
->which is built up from
>. For example to define enter
h:= x -> x^2*sin(x);To define enter
g:= (x,y) -> exp(-(x^2 + y^2));
After these functions have been defined, they can be evaluated at a point
or used in a subsequent
Maple command. For example
g(-1,2) are valid
commands and yield numbers.
A function is different than an expression:
f:= x^2*sin(x);is a valid assignment, but the expression f(Pi) does NOT make sense because f is not a function. If you want the value of the expression at , try subs( x=Pi, f );.