Class: AppMath::Log

Inherits:
Object
  • Object
show all
Defined in:
lib/graph.rb

Instance Method Summary collapse

Constructor Details

#initialize(n = R.prec) ⇒ Log

Returns a new instance of Log.



343
344
345
346
# File 'lib/graph.rb', line 343

def initialize(n = R.prec)
  @precMem = R.prec
  @precLoc = n
end

Instance Method Details

#at(x) ⇒ Object



347
348
349
350
351
# File 'lib/graph.rb', line 347

def at(x)
  R.prec = @precLoc
  y = R.c(x).log
  R.prec = @precMem; y
end