To find the equation of a line

To find the equation of a line, follow the following steps
  1. First work out the slope (gradient) of the line. If you have two points,the slope is the difference in y values divided by the difference in x values. The slope is m. -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(189): echo_value('eqnofaline', 'content', Array) #1 /var/www/vhosts/ent.storkey.uk/html/inc/dynaPage.php(742): dynaPage->echo_value('content') #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