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