class Keisan::Functions::Tan
Public Class Methods
new()
click to toggle source
Calls superclass method
Keisan::Functions::CMathFunction::new
# File lib/keisan/functions/tan.rb, line 4 def initialize super("tan") end
Protected Class Methods
derivative(argument)
click to toggle source
# File lib/keisan/functions/tan.rb, line 10 def self.derivative(argument) AST::Exponent.new([AST::Function.new([argument], "cos"), -2]) end