class MoreMath::ContinuedFraction

def b(n, x = nil)

Returns the value for b_n or b_n(x).
def b(n, x = nil)
  result = if x
    @b[n, x]
  else
    @b[n]
  end and result.to_f
end