Class: AppMath::ArcTan
- Inherits:
-
Object
- Object
- AppMath::ArcTan
- Defined in:
- lib/graph.rb
Instance Method Summary collapse
- #at(x) ⇒ Object
-
#initialize(n = R.prec) ⇒ ArcTan
constructor
A new instance of ArcTan.
Constructor Details
#initialize(n = R.prec) ⇒ ArcTan
Returns a new instance of ArcTan.
355 356 357 358 |
# File 'lib/graph.rb', line 355 def initialize(n = R.prec) @precMem = R.prec @precLoc = n end |
Instance Method Details
#at(x) ⇒ Object
359 360 361 362 363 |
# File 'lib/graph.rb', line 359 def at(x) R.prec = @precLoc y = R.c(x).atan R.prec = @precMem; y end |