Difference between revisions of "Infinity (MathObject Class)"

From WeBWorK_wiki
Jump to navigation Jump to search
(Created page)
 
m (moved MathObjects Infinity to Infinity (MathObjets Class): Better alphabetizing of class pages)
(No difference)

Revision as of 15:26, 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]");