class Keisan::Functions::Tanh

Public Class Methods

new() click to toggle source
Calls superclass method Keisan::Functions::CMathFunction::new
# File lib/keisan/functions/tanh.rb, line 4
def initialize
  super("tanh")
end

Protected Class Methods

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