Evaluate an expression - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Getting Started : How Do I... : Evaluate an expression

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

Evaluating an Expression Inline

Follow the steps below to evaluate 2 x5+3 x7 and display the result inline.

 

Step

Description

Illustration

1

Type 2 x5+3 x7. 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.

Evaluating an Expression on a New Line

Follow the steps below to evaluate 2 x5+3 x7 and display the result on a new line.

 

Step

Description

Illustration

1

Type 2 x5+3 x7. For instructions on entering this expression, see entering an expression.

2

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.

Evaluating at a Point

Follow the steps to evaluate x2+π at x=2.

Step

Description

Illustration

1

Type x2+π . For instructions on entering this expression, see the How Do I topic on entering an expression.

2

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,

Related Topics

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.