class Keisan::Functions::Coth

Public Class Methods

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

Protected Class Methods

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