Polynomial (package) - MrKaszeba19/PapajLang GitHub Wiki
Number is a package of functions for PapajScript. This package contains basic mathematical functions for polynomials. It was released on December 14, 2024.
List of current functions
Notes:
- If you do not want to type
Polynomial.every time, just type@use(Number)before. However, if you want to stop using the package, type@unuse(Polynomial). - The
Polynomial.degreefunction returns-1in case of the polynomialP(x) = 0/
| Package Function | Syntax | Output type | Purpose | Since |
|---|---|---|---|---|
| Polynomial.polyval | POL1 ENT1 function | Entity | Return the value of the polynomial for the specified argument | 0.5.4 |
| Polynomial.degree | POl1 function | Number | Return the degree of polynomial | 0.5.4 |
| Polynomial.roots | POL1 function | Array | Return all the roots of polynomial | 0.5.4 |
| Polynomial.realRoots | POL1 function | Array | Return real roots of polynomial | 0.5.4 |
| Polynomial.derivative | POL1 function | Polynomial | Derivative of polynomial | 0.5.4 |
| Polynomial.integral | POL1 function | Polynomial | Integral of polynomial | 0.5.4 |
| Polynomial.int | POL1 function | Polynomial | Alias for Polynomial.integral |
0.5.4 |