Expression derive(String toVar)

Derives this expression with respect to the given variable.

Source

Expression derive(String toVar) => name == toVar ? new Number(1.0) : new Number(0.0);