Name:
mid
gives the middle of an interval.
Library name:
sollya_obj_t sollya_lib_mid(sollya_obj_t)
Usage:
mid(I) : range -> constant
mid(x) : constant -> constant
Parameters:
- I is an interval.
- x is a real number.
Description:
- Returns the middle of the interval I. If the middle is not exactly
representable at the current precision, the value is returned as an
unevaluated expression.
- When called on a real number x, mid behaves like the identity.
Example 1:
> mid([1;3]);
2
> mid(17);
17
Go back to the list of commands