Class: AppMath::Exp

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

Instance Method Summary collapse

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