Class: AppMath::ArcSin

Inherits:
Object
  • Object
show all
Defined in:
lib/graph.rb

Instance Method Summary collapse

Constructor Details

#initialize(n = R.prec) ⇒ ArcSin

Returns a new instance of ArcSin.



319
320
321
322
# File 'lib/graph.rb', line 319

def initialize(n = R.prec)
  @precMem = R.prec
  @precLoc = n
end

Instance Method Details

#at(x) ⇒ Object



323
324
325
326
327
# File 'lib/graph.rb', line 323

def at(x)
  R.prec = @precLoc
  y = R.c(x).asin
  R.prec = @precMem; y
end