Interval package: Difference between revisions

360 bytes removed ,  21 November 2016
→‎Parameter checking: NaI's may now be non-scalar
(→‎Parameter checking: NaI's may now be non-scalar)
Line 199: Line 199:
  if (not (isa (y, "infsupdec")))
  if (not (isa (y, "infsupdec")))
     y = infsupdec (y);
     y = infsupdec (y);
endif
* Methods of class <code>infsupdec</code> as well as methods of class <code>infsup</code> that are not overridden by <code>infsupdec</code> must check parameters using the <code>isnai</code> function and return the NAI value if it is present. This will propagate NAI values through any function evaluations.
if (isnai (x))
    result = x;
    return
  endif
  endif


240

edits