Class: AppMath::ArcCot

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

Instance Method Summary collapse

Constructor Details

#initialize(n = R.prec) ⇒ ArcCot

Returns a new instance of ArcCot.



379
380
381
382
# File 'lib/graph.rb', line 379

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

Instance Method Details

#at(x) ⇒ Object



383
384
385
386
387
# File 'lib/graph.rb', line 383

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