class Keisan::Functions::Csch

Public Class Methods

new() click to toggle source
Calls superclass method Keisan::Functions::CMathFunction::new
# File lib/keisan/functions/csch.rb, line 4
def initialize
  super("csch", Proc.new {|arg| 1 / CMath::sinh(arg)})
end

Protected Class Methods

derivative(argument) click to toggle source
# File lib/keisan/functions/csch.rb, line 10
def self.derivative(argument)
  -AST::Function.new([argument], "cosh") * AST::Exponent.new([AST::Function.new([argument], "sinh"), -2])
end