A new instance of Erf.
Returns a new instance of Erf.
391 392 393 394
# File 'lib/graph.rb', line 391 def initialize(n = R.prec) @precMem = R.prec @precLoc = n end
395 396 397 398 399
# File 'lib/graph.rb', line 395 def at(x) R.prec = @precLoc y = R.c(x).erf R.prec = @precMem; y end