class InfinityClass

Public Class Methods

new() click to toggle source
# File lib/m500.rb, line 1166
def initialize
end
new!() click to toggle source
# File lib/m500.rb, line 1162
def InfinityClass.new!
  new
end

Public Instance Methods

*(a) click to toggle source
# File lib/m500.rb, line 1178
def * (a)
  a === infinity ? nan : self
end
**(a) click to toggle source
# File lib/m500.rb, line 1184
def ** (a)
  self
end
+(a) click to toggle source
# File lib/m500.rb, line 1172
def + (a)
 self
end
-(a) click to toggle source
# File lib/m500.rb, line 1175
def - (a)
 self
end
/(a) click to toggle source
# File lib/m500.rb, line 1181
def / (a)
  a === infinity ? nan : 0 # infinitesimal
end
<(other) click to toggle source
# File lib/m500.rb, line 1220
def < (other)
  false
end
==(other) click to toggle source
# File lib/m500.rb, line 1226
def == (other)
  other.kind_of?(InfinityClass) ? true : false
end
>(other) click to toggle source
# File lib/m500.rb, line 1223
def > (other)
  true
end
coerce(a) click to toggle source
# File lib/m500.rb, line 1229
def coerce(a)
  [infinity, infinity]
end
is_0?() click to toggle source
# File lib/m500.rb, line 1169
def is_0?
  false
end
next() click to toggle source
# File lib/m500.rb, line 1214
def next
  self
end
succ() click to toggle source
# File lib/m500.rb, line 1217
def succ
  self
end
to_Dec() click to toggle source
# File lib/m500.rb, line 1208
def to_Dec
  self
end
to_Frac() click to toggle source
# File lib/m500.rb, line 1202
def to_Frac
  self
end
to_N() click to toggle source
# File lib/m500.rb, line 1196
def to_N
  self
end
to_Q() click to toggle source
# File lib/m500.rb, line 1205
def to_Q
  self
end
to_R() click to toggle source
# File lib/m500.rb, line 1211
def to_R
  self
end
to_Z() click to toggle source
# File lib/m500.rb, line 1199
def to_Z
  self
end
to_f() click to toggle source
# File lib/m500.rb, line 1190
def to_f
  nil
end
to_i() click to toggle source
# File lib/m500.rb, line 1187
def to_i
  nil
end
to_s() click to toggle source
# File lib/m500.rb, line 1193
def to_s
  "\u221E".encode('utf-8')
end
to_sgml() click to toggle source
# File lib/m500.rb, line 1159
def to_sgml
  "<mn #{sgml_id}class='infinity'>&infin</mn>"
end