Repository navigation
Polynomial (type)
Polynomial is an entity type used in PapajScript. It stores numerical values.
Its debut was on December 14, 2024 along with release of the 0.5.4 version.
- The order of coefficient of Polynomials is ascending, so
Poly{a b c}representscx^2 + bx + a. - The polynomials react to arithmetical operations:
+,-,*,div,mod
String type supports following artithmetic operations:
Polynomial Polynomial +Polynomial Polynomial -Number Polynomial *Polynomial Polynomial *Polynomial Polynomial divPolynomial Polynomial mod
-
Poly{}representsP(x) = 0 -
Poly{5}representsP(x) = 5 -
Poly{-2 1}representsP(x) = x - 2 -
Poly{-3 -2 1}representsP(x) = x^2 -2x + 3 -
Poly{9 0 -6 2}representsP(x) = 2x^3 -6x^2 + 9
Versions of Papaj:
Pre-builds: Bereshit (v.0.0.1), Shemot (v.0.0.2)
Aleph (v.0.1.0), Bet (v.0.2.0), Gimel (v.0.2.1), Dalet (v.0.3.0)
Hey (v.0.3.1), Vav (v.0.4.0), Zain (v.0.4.1), Chet (v.0.4.2), Tet (v.0.4.3)
Yod (v.0.5.0), Khaf (v.0.5.1), Lamed (v.0.5.2), Mem (v.0.5.3), Nun (v.0.5.4), Samech (v.0.5.5)
Development version: Leviathan
Packages of Papaj:
Vanilla, Array, Console, Date, Math, Number, Polynomial, String
Structures of Papaj:
Conditional, Entity, Loop, Variable
Array, Boolean, DateTime, Exception, LogicalExpression, Function, Number, Null, Polynomial, String
Home, PapajScript, Papaj (interpreter), Papaj REPL