A new instance of ArcCos.
Returns a new instance of ArcCos.
367 368 369 370
# File 'lib/graph.rb', line 367 def initialize(n = R.prec) @precMem = R.prec @precLoc = n end
371 372 373 374 375
# File 'lib/graph.rb', line 371 def at(x) R.prec = @precLoc y = R.c(x).acos R.prec = @precMem; y end