Difference between revisions of "Infinity (MathObject Class)"

From WeBWorK_wiki
Jump to navigation Jump to search
m (moved Infinity (MathObjets Class) to Infinity (MathObjects Class): Fix misspelling in name)
m (moved Infinity (MathObjects Class) to Infinity (MathObject Class): Fix another typo in name (arg!))
(No difference)

Revision as of 16:31, 2 August 2012

The Infinity Class

The Infinity class handles the positive infinity of the extended reals. This value can be negated and used in intervals, but can be added to Reals (or other MathObjects) and can't be used as an argument to functions like sin() or sqrt(). In Perl code, you can use Infinity to obtain this value, or -(Infinity) to obtain its negation. E.g.,
   Context("Numeric");
   
   $Inf = Infinity;
   $MInf = -(Infinity);
   $I = Interval("(",0,Infinity,"]");   # easier as Interval("(0,infinity]");