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