9 lines
79 B
Ruby
9 lines
79 B
Ruby
module Math
|
|
|
|
# 2 to the power +x+
|
|
def self.exp2(x)
|
|
2.0 ** x
|
|
end
|
|
|
|
end
|