How Do I
Evaluate an Expression?
Maple can evaluate any mathematical expression and display the results inline or on a new line. Maple can also evaluate an expression at a point.
Before you proceed, be sure to familiarize yourself with entering simple mathematical expressions. Open a new worksheet in Document mode, and ensure that you are in Math mode.
Evaluating an Expression Inline
Evaluating an Expression on a New Line
Evaluating at a Point
Related Topics
Follow the steps below to evaluate $\frac{2x}{5}plus;\frac{3x}{7}$ and display the result inline.
Step
Description
Illustration
1
Type $\frac{2x}{5}plus;\frac{3x}{7}$. For instructions on entering this expression, see entering an expression.
2
Press Ctrl + = or Alt + Enter to evaluate the expression inline.
The inline evaluation mechanism, when used with Maple's Context Panel, is one of the fastest methods to perform a string of successive computations.
Follow the steps below to evaluate $\frac{2x}{5}plus;\frac{3x}{7}$ and display the result on a new line.
Press Enter. Maple displays and labels the result of an executed statement on a new line. By default, if this result is the first label in the document, it will be shown as (1). For more information on labels, see the Equation Labels subsection of the How Do I help page.
Equation labels organize the flow of computations. Keep these tips in mind when working with labels:
References can be made to any labeled result.
Labels are automatically numbered in sequence; if any labeled result is removed, then Maple automatically renumbers all equation labels and updates all equation label references.
The display format for labels can be changed. For more information, see the Equation Labels subsection of the How Do I help page.
Follow the steps to evaluate $\sqrt{{x}^{2}\+\mathrm{\pi}}$ at $x\=2$.
Type $\sqrt{{x}^{2}\+\mathrm{\pi}}$ . For instructions on entering this expression, see the How Do I topic on entering an expression.
Click on the expression. In the context panel select Evaluate at a Point.
3
A dialog box appears; enter $x\=2$.
The substitution is made.
4
Note that the result was calculated in symbolic form. If you prefer an approximation, click on the result and, from the context panel, choose Approximate and the desired number of digits.
You can also use the "evaluate at a point" template from the Expression palette.
For example,
The How Do I... topics cover the essentials for doing mathematics in Maple. Learn more about available tools and features, such as palettes and the context panel.
How Do I...
...Enter a Complex Number?
...Enter a Function?
...Enter a Matrix?
...Enter a Simple Expression?
...Import Tabular Data?
...Plot a Function?
...Plot a Straight Line?
...Plot Multiple Functions?
...Solve an Ordinary Differential Equation?
...Work with Random Generators?
Tools and Features
Palettes
Context Panel
Command Completion
Equation Labels
Assistants
Maple Help
Plotting Guide
Applications
Example Worksheets
Manuals
Refer to Help>Quick Reference for basic Getting Started tips.
See Also
MaplePortal
equation labels
evaluation at a point
Expression palette
Note for non-Windows users: The keystrokes given in this document are for Windows. There will be differences for other platforms. If you are using a different platform, see Shortcut Keys.
Download Help Document