Class RealConst
In: lib/rapfp/Real.rb
Parent: Object

Methods

e   half   minus_one   minus_two   new   one   pi   ten   two   zero  

Public Class methods

[Source]

     # File lib/rapfp/Real.rb, line 335
335: def initialize
336:         @zero = Real.new(0.0,Float::EPSILON)
337:         @one = Real.new(1.0,Float::EPSILON)
338:         @two = Real.new(2.0,Float::EPSILON)
339:         @ten = Real.new(10.0,Float::EPSILON)
340:         @half = Real.new(0.5,Float::EPSILON)
341:         @minus_one = Real.new(-1.0,Float::EPSILON)
342:         @minus_two = Real.new(-2.0,Float::EPSILON)
343:         @pi = Real.new(Math::PI,Float::EPSILON)
344:         @e = @one.exp
345: end

Public Instance methods

[Source]

     # File lib/rapfp/Real.rb, line 368
368: def e
369:         @e
370: end

[Source]

     # File lib/rapfp/Real.rb, line 371
371: def half
372:         @half
373: end

[Source]

     # File lib/rapfp/Real.rb, line 353
353: def minus_one
354:         @minus_one
355: end

[Source]

     # File lib/rapfp/Real.rb, line 356
356: def minus_two
357:         @minus_two
358: end

[Source]

     # File lib/rapfp/Real.rb, line 350
350: def one
351:         @one
352: end

[Source]

     # File lib/rapfp/Real.rb, line 362
362: def pi
363:         @pi
364: end

[Source]

     # File lib/rapfp/Real.rb, line 365
365: def ten
366:         @ten
367: end

[Source]

     # File lib/rapfp/Real.rb, line 359
359: def two
360:         @two
361: end

[Source]

     # File lib/rapfp/Real.rb, line 347
347: def zero
348:         @zero
349: end

[Validate]