A new instance of 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
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