Newton Raphson iteration method

This way of solving an equation numerically often converges quickly. It is based on the use of the derivative of the function.

Suppose the equation to be solved is -mathformula2 not MarkupType-
Fatal error: Uncaught Error: Call to undefined method mathformula2::makeTypeDef() in /var/www/vhosts/ent.storkey.uk/html/inc/reporting2.php:365 Stack trace: #0 /var/www/vhosts/ent.storkey.uk/html/inc/dynaPage.php(3473): echo_value('newtonraphson', 'content', Array) #1 /var/www/vhosts/ent.storkey.uk/html/inc/dynaPage.php(718): exercisem->write() #2 /var/www/vhosts/ent.storkey.uk/html/inc/dynaPage.php(179): mainPanel->write('main-panel') #3 /var/www/vhosts/ent.storkey.uk/html/index.php(21): dynaPage->write() #4 {main} thrown in /var/www/vhosts/ent.storkey.uk/html/inc/reporting2.php on line 365