Random JS Package for Educational Purposes
This random JavaScript package was created purely for educational purposes.
Usage
To utilize this package in your project, include the following line at the top of your file:
``
javascript
const solvepoly2 = require('lab8_eqsolver');
``
Function Description
The function solvepoly(a, b, c) accepts three parameters representing the coefficients of a quadratic equation:
$$ax^{2}+b+c$$
It returns an object with the following properties:
isComplex: A boolean indicating whether the roots are complex numbers or not.
x0: The first root of the equation.
x1: The second root of the equation.