class Keisan::Functions::Csc
Public Class Methods
new()
click to toggle source
Calls superclass method
Keisan::Functions::CMathFunction::new
# File lib/keisan/functions/csc.rb, line 4 def initialize super("csc", Proc.new {|arg| 1 / CMath::sin(arg)}) end
Protected Class Methods
derivative(argument)
click to toggle source
# File lib/keisan/functions/csc.rb, line 10 def self.derivative(argument) -AST::Function.new([argument], "cos") * AST::Exponent.new([AST::Function.new([argument], "sin"), -2]) end