Convert constant subexpressions to intervals
MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.
MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.
interval(object) converts all constant subexpressions
object to floating point
interval is the analogue of
float. While the latter
converts exact numbers and numerical expressions to floating-point
interval converts numbers and numerical
expressions to enclosing floating-point intervals.
object is an arithmetical expression,
descends into the subexpressions of
replaces all integers,rationals, and floating
point numbers as well as the constants CATALAN, EULER and PI by floating-point intervals enclosing them.
Afterwards, the resulting expression is evaluated via interval arithmetic.
object is not an arithmetical expression,
the object unchanged.
Only constant expressions such as numbers 1, , 0.123
+ 4.5 i etc. and numerical expressions
sin(PI/24) etc. are converted
to floating-point intervals. Symbolic objects such as identifiers,
indexed identifiers etc. are left untouched:
interval(4*x + PI*x^2/sin(1) + 1/4)
interval(f(g(2 + x) + sin(1)*sqrt(PI)))
interval(CATALAN), interval(EULER), interval(PI)
An arbitrary MuPAD object