PHP Classes
elePHPant
Icontem

File: QuickTestFile.php

Recommend this page to a friend!
  Classes of Samuel Adeshina  >  PHP Equation Solver  >  QuickTestFile.php  >  Download  
File: QuickTestFile.php
Role: Unit test script
Content type: text/plain
Description: You can use this test file to quickly solve an equation by just passing it as a get variable
Class: PHP Equation Solver
Solve linear, quadratic and polynomial equations
Author: By
Last change:
Date: 4 years ago
Size: 249 bytes
 

Contents

Class file image Download
<?php
require_once("EquationSolver.php");
       
$equation = "xe2 + 5x - 20 = 8x + 20";
       
$errors = true;
       
$equation = new Solve($equation, $errors);
       
//$var = $equation->solution()[0];
       
$solutions = $equation->solution()[1];
       
print_r($solutions);
?>