Class: AppMath::ArcCot
- Inherits:
-
Object
- Object
- AppMath::ArcCot
- Defined in:
- lib/graph.rb
Instance Method Summary collapse
- #at(x) ⇒ Object
-
#initialize(n = R.prec) ⇒ ArcCot
constructor
A new instance of ArcCot.
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 |