Commit d99bc847 authored by Stefano Sabatini's avatar Stefano Sabatini

doc/eval: fix/extend documentation for root() function

parent cdf0877b
......@@ -175,8 +175,17 @@ When the series does not converge the results are undefined.
Return the current (wallclock) time in seconds.
@item root(expr, max)
Finds x where f(x)=0 in the interval 0..max.
f() must be continuous or the result is undefined.
Find an input value for which the function represented by @var{expr}
with argument @var{ld(0)} is 0 in the interval 0..@var{max}.
The expression in @var{expr} must denote a continuous function or the
result is undefined.
@var{ld(0)} is used to represent the function input value, which means
that the given expression will be evaluated multiple times with
various input values that the expression can access through
@code{ld(0)}. When the expression evaluates to 0 then the
corresponding input value will be returned.
@end table
The following constants are available:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment