Method: Variable#__derivative__

Defined in:
lib/symcalc.rb

#__derivative__(variable: nil) ⇒ Object



308
309
310
311
312
313
314
# File 'lib/symcalc.rb', line 308

def __derivative__ variable: nil
	if variable == nil || variable == self
		return EquationValue.new 1
	else
		return to_equation(0)
	end
end