<!DOCTYPE html> <html> <body> <script> var a = prompt("a:",""); var b = prompt("b:",""); if (a==0) if (b==0) alert("Identity equation"); else alert("Contrary equation"); else { var x = -b/a; alert("x = " + x); }; </script> </body> </html>
- Algorithm of division in JavaScript
- Implementation of a Linear equation solving algorithm in JavaScript
- Implementation of the algorithm solving a quadratic equation in JavaScript
- Factorial in JavaScript - iteratively
- Factorial in JavaScript - recursive
- Monte Carlo Calculation of pi in JavaScript
- Sito Eratostenesa w JavaScript