9 lines
90 B
Ruby
9 lines
90 B
Ruby
module Math
|
|
|
|
# The `y` root of `x`.
|
|
def self.root(x, y)
|
|
x ** (1.0 / y)
|
|
end
|
|
|
|
end
|