Skip to content
This repository was archived by the owner on May 21, 2020. It is now read-only.
Florian Rappl edited this page Dec 21, 2014 · 2 revisions

fplot

Visualizes a given function in form of a graph.

fplot(f)

Visualizes the given function f between -1 and 1 for the x-axis.

Argument f

Function

Returns 1. entry

Plot2D

Example

fplot(sin)

Draws the real plot of the sine function sin(x) with x between -1 and 1.

Example

fplot(x => sin(x) * cos(x))

Draws the real plot of sin(x) * cos(x) with x between -1 and 1.

fplot(f,min,max)

Visualizes the given function f between the given values for x-axis.

Argument f

Function

Argument min

Scalar

Argument max

Scalar

Returns 1. entry

Plot2D

Example

fplot(sin, 0, 2 * pi)

Draws the plot of the sine function between 0 and 2pi.

fplot(f,min,max,precision)

Visualizes the given function f between the given values for the x-axes with the given precision.

Argument f

Function

Argument min

Scalar

Argument max

Scalar

Argument precision

Scalar

Returns 1. entry

Plot2D

Example

fplot(sin, 0, 2 * pi, 10^-3)

Draws the plot of the sine function between 0 and 2pi with a precision of 0.001.

Clone this wiki locally