Computer V1 is a command-line javascript program that solves polynomial equations of the second degree or lower. The program shows the equation in its reduced form, the degree of the equation, and its solution(s). If it makes sense, the program also shows the polarity of the discriminant.
Where is a polynomial equation in the form A * X^p + B * X^(p-1) + ... + Z * X^0 = 0 where A, B, Z are real numbers. / A,B,Z ∈ ℝ.
To run the program, use the following command:
-
Clone the repository
-
Navigate to the project directory
-
node computor.js "<equation>"Replace<equation>with your polynomial equation.
Here's an example:
node computor.js "5 * X^0 + 4 * X^1 - 9.3 * X^2 = 1 * X^0"
- zael-mab - initial work
This project is a part of the 42 School curriculum.
