Class: AppMath::Exp
- Inherits:
-
Object
- Object
- AppMath::Exp
- Defined in:
- lib/graph.rb
Instance Method Summary collapse
- #at(x) ⇒ Object
-
#initialize(n = R.prec) ⇒ Exp
constructor
A new instance of Exp.
Constructor Details
#initialize(n = R.prec) ⇒ Exp
Returns a new instance of Exp.
331 332 333 334 |
# File 'lib/graph.rb', line 331 def initialize(n = R.prec) @precMem = R.prec @precLoc = n end |
Instance Method Details
#at(x) ⇒ Object
335 336 337 338 339 |
# File 'lib/graph.rb', line 335 def at(x) R.prec = @precLoc y = R.c(x).exp R.prec = @precMem; y end |