Class: AppMath::Log
- Inherits:
-
Object
- Object
- AppMath::Log
- Defined in:
- lib/graph.rb
Instance Method Summary collapse
- #at(x) ⇒ Object
-
#initialize(n = R.prec) ⇒ Log
constructor
A new instance of Log.
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 |