i1 : 2/3 2 o1 = - 3 o1 : QQ |
i2 : 2./3 o2 = .666666666666667 o2 : RR (of precision 53) |
If one of the inputs is an RRi, the output is an interval containing all quotients of pairs in the inputs.
i3 : 2/interval(1,3) o3 = [.666666666666667,2] o3 : RRi (of precision 53) |
i4 : interval(-1,2)/interval(1,3) o4 = [-1,2] o4 : RRi (of precision 53) |
i5 : interval(1,2)/interval(1,2) o5 = [.5,2] o5 : RRi (of precision 53) |
This operator may be used as a binary operator in an expression like x/y. The user may install binary methods for handling such expressions with code such as
X / Y := (x,y) -> ...
where X is the class of x and Y is the class of y.