Source
num newtonRoot(MathFunction f, num startValue) {
MathFunction g = f.derive(f.getParam(0).name); // should be one-dimensional
return _newtonRoot(f, g, startValue);
}
num newtonRoot(MathFunction f, num startValue) {
MathFunction g = f.derive(f.getParam(0).name); // should be one-dimensional
return _newtonRoot(f, g, startValue);
}