Class AppMath::Sin
In: graph.rb
Parent: Object

function objects for testing Graph#draw_func with functions for which the accuracy of the functions is enforced

Methods

at   new  

Public Class methods

[Source]

     # File graph.rb, line 236
236:   def initialize(n = R.prec)
237:     @precMem = R.prec
238:     @precLoc = n
239:   end

Public Instance methods

[Source]

     # File graph.rb, line 241
241:   def at(x)
242:     R.prec = @precLoc
243:     y = x.sin
244:     R.prec = @precMem; y
245:   end

[Validate]