Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Function calculator

`funtool`

`funtool`

is a visual function
calculator that manipulates and displays functions of one variable.
At the click of a button, for example, `funtool`

draws
a graph representing the sum, product, difference, or ratio of two
functions that you specify. `funtool`

includes a
function memory that allows you to store functions for later retrieval.

At startup, `funtool`

displays graphs of a
pair of functions, `f(x) = x`

and ```
g(x) =
1
```

. The graphs plot the functions over the domain ```
[-2*pi,
2*pi]
```

. `funtool`

also displays a control
panel that lets you save, retrieve, redefine, combine, and transform `f`

and `g`

.

The top of the control panel contains a group of editable text fields.

| Displays a symbolic expression representing |

| Displays a symbolic expression representing `g` .
Edit this field to redefine `g` . |

| Displays the domain used to plot |

| Displays a constant factor used to modify |

`funtool`

redraws `f`

and `g`

to
reflect any changes you make to the contents of the control panel's
text fields.

The bottom part of the control panel contains an array of buttons
that transform `f`

and perform other operations.

The first row of control buttons replaces `f`

with
various transformations of `f`

.

| Derivative of |

| Integral of |

| Simplified form of |

| Numerator of |

| Denominator of |

| Reciprocal of |

| Inverse of |

The operators **int f** and **finv** can fail if the corresponding symbolic
expressions do not exist in closed form.

The second row of buttons translates and scales `f`

and
the domain of `f`

by a constant factor`.`

To
specify the factor, enter its value in the field labeled **a=** on the calculator control panel. The operations
are

| Replaces |

| Replaces |

| Replaces |

| Replaces |

| Replaces |

| Replaces |

| Replaces |

The first four buttons of the third row replace `f`

with
a combination of `f`

and `g`

.

| Replaces |

| Replaces |

| Replaces |

| Replaces |

The remaining buttons on the third row interchange `f`

and `g`

.

| Replaces |

| Replaces |

The first three buttons in the fourth row allow you to store and retrieve functions from the calculator's function memory.

| Adds |

| Replaces |

Delete | Deletes |

The other four buttons on the fourth row perform miscellaneous functions:

| Resets the calculator to its initial state. |

| Displays the online help for the calculator. |

| Runs a short demo of the calculator. |

| Closes the calculator's windows. |

Was this topic helpful?