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