|
Inf, -Inf |
Top Previous Next |
|
These values are plus and minus infinity. Inf is a very large positive number. –Inf is a very large in absolute value negative number. They may be used in an assignment as follows (specval.gms)
z$y=x/y; if(y =0,z=inf); z$y=-x/y; if(y =0,z=-inf);
through such mechanisms one can reflect cases where infinite results arise. |