class Keisan::AST::UnaryIdentity
Public Class Methods
symbol()
click to toggle source
# File lib/keisan/ast/unary_identity.rb, line 12 def self.symbol nil end
Public Instance Methods
differentiate(variable, context = nil)
click to toggle source
# File lib/keisan/ast/unary_identity.rb, line 20 def differentiate(variable, context = nil) context ||= Context.new child.differentiate(variable, context).simplify(context) end
evaluate(context = nil)
click to toggle source
# File lib/keisan/ast/unary_identity.rb, line 8 def evaluate(context = nil) child.evaluate(context) end
simplify(context = nil)
click to toggle source
# File lib/keisan/ast/unary_identity.rb, line 16 def simplify(context = nil) child.simplify(context) end
value(context = nil)
click to toggle source
# File lib/keisan/ast/unary_identity.rb, line 4 def value(context = nil) child.value(context) end