-
Notifications
You must be signed in to change notification settings - Fork 9
fplot
Visualizes a given function in form of a graph.
Visualizes the given function f between -1 and 1 for the x-axis.
Argument f
Function
Returns 1. entry
Plot2D
fplot(sin)
Draws the real plot of the sine function sin(x) with x between -1 and 1.
fplot(x => sin(x) * cos(x))
Draws the real plot of sin(x) * cos(x) with x between -1 and 1.
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
fplot(sin, 0, 2 * pi)
Draws the plot of the sine function between 0 and 2pi.
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
fplot(sin, 0, 2 * pi, 10^-3)
Draws the plot of the sine function between 0 and 2pi with a precision of 0.001.