Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgContentJComments has a deprecated constructor in /var/www/astarmathsandphysics/plugins/content/jcomments/jcomments.php on line 25 Call Stack: 0.0001 362328 1. {main}() /var/www/astarmathsandphysics/index.php:0 0.0572 1213064 2. Joomla\CMS\Application\SiteApplication->execute() /var/www/astarmathsandphysics/index.php:49 0.0572 1213064 3. Joomla\CMS\Application\SiteApplication->doExecute() /var/www/astarmathsandphysics/libraries/src/Application/CMSApplication.php:267 0.1239 4134216 4. Joomla\CMS\Application\SiteApplication->dispatch() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:233 0.1251 4161544 5. Joomla\CMS\Component\ComponentHelper::renderComponent() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:194 0.1258 4179256 6. Joomla\CMS\Component\ComponentHelper::executeComponent() /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:356 0.1260 4209776 7. require_once('/var/www/astarmathsandphysics/components/com_content/content.php') /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:381 0.1270 4232496 8. ContentController->execute() /var/www/astarmathsandphysics/components/com_content/content.php:42 0.1270 4232496 9. ContentController->display() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:710 0.1743 4909000 10. ContentController->display() /var/www/astarmathsandphysics/components/com_content/controller.php:113 0.1781 5101152 11. Joomla\CMS\Cache\Controller\ViewController->get() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:663 0.1787 5122080 12. ContentViewArticle->display() /var/www/astarmathsandphysics/libraries/src/Cache/Controller/ViewController.php:102 0.1899 5327472 13. Joomla\CMS\Plugin\PluginHelper::importPlugin() /var/www/astarmathsandphysics/components/com_content/views/article/view.html.php:189 0.1899 5327728 14. Joomla\CMS\Plugin\PluginHelper::import() /var/www/astarmathsandphysics/libraries/src/Plugin/PluginHelper.php:182

Algorithms

An algorithm is a sequence of steps carried out in a certain order for solving a certain problem. There may be more than one way of solving the problem, of which an algorithm may be one. Not all problems can be solved by using an algorithm.

For example, we want to solve the quadratic equation

We could use the quadraticformulaIn this caseso Henceor

The above solution however was not obtained by the use of an algorithm. If we wanted to use an algorithm to solve the equation we could complete the square and makethe subject.

We can start by factorising with 3.

Use the identityNow write

We can collect the last two termsso

Now make x the subject. Add 13 over 36 to both sides.

Square root both sides, remembering that there are two square roots, one + and one -.

Subtractfrom both sides.

Both methods give the same answer, but only the second method is the result of an algorithm.