File: test.php

 Recommend this page to a friend! ReTweet
 Classes of Samuel Adeshina > PHP Equation Solver > test.php > Download
File: test.php Example script text/plain Example script PHP Equation Solver Solve linear, quadratic and polynomial equations By Samuel Adeshina Fixed Some Bugs Made sure Quadratic Equation were properly parsed and solved with high precision and accuracy 4 years ago 3,142 bytes

Contents

 ```         Equation Solver | Solve Your Everyday Maths Equation Problem

Equation Solver

Solve Your Linear, Quadratic, Trinomial or Polynomial Equations All In One Place Without Worrying About Variables!

Show error messages: true  false

solution()[0];         \$solutions = \$equation->solution()[1];         echo "

";         echo "
The equation \"\$equation->equation\" which you asked me to solve is a \"\$equation->equationType Equation\"
The Solution(s) is/are:
";         foreach (\$solutions as \$solution)         {             if (is_nan(\$solution))             {                 \$solution = \$solution . "  (Solution results in Complex Numbers)";             }             if (\$solution == \$solutions[0])             {                 echo "
\$var = \$solution
";             }             else             {                 echo "or
\$var = \$solution
";             }         }         echo "

";     }     else     { echo <<<_END

Examples of equations you can try out (Just copy and paste them into the text box)

1. -1019b + 14b - 81b - 2000 + 48b = 800b - 8080 + 41b
2.
3. 8x + 4x - 3x - 100 = -99x + 11
4.
5. xE2 + 5x - 20 = 8x + 20
6.
7. Ae2 - 1A + 1 = 0
8.
_END;     } ?>

©2015 - Samuel Adeshina <samueladeshina73@gmail.com> | samshaltechs.blogspot.com | @samueladeshina6

```

 Advertise on this site Site map Newsletter Statistics Site tips Privacy policy Contact