class Float
When mathn is required, Float
is changed to handle Complex numbers.
Public Instance Methods
**(other)
click to toggle source
Exponentiate by other
# File lib/rubysl/mathn/mathn.rb, line 313 def ** (other) if self < 0 && other.round != other Complex(self, 0.0) ** other else power!(other) end end
Also aliased as: power!