A new instance of ArcTan.
Returns a new instance of ArcTan.
355 356 357 358
# File 'lib/graph.rb', line 355 def initialize(n = R.prec) @precMem = R.prec @precLoc = n end
359 360 361 362 363
# File 'lib/graph.rb', line 359 def at(x) R.prec = @precLoc y = R.c(x).atan R.prec = @precMem; y end