14 lines
175 B
Ruby
14 lines
175 B
Ruby
module Math
|
|
|
|
# Cosecans hyperbolicus of `x`.
|
|
def self.csch(x)
|
|
1.0 / sinh(x)
|
|
end
|
|
|
|
# Cosecans hyperbolicus of `x`.
|
|
def self.cosech(x)
|
|
1.0 / sinh(x)
|
|
end
|
|
|
|
end
|