programlibs/Polynomials/demos/notation.xtl

Polynomials written as maths: p_oly< reads the notation when the program is compiled and writes the coefficients in its place. Run with "just demo Polynomials notation".

source · imports py: libs/Polynomials/src/Polynomials.xtl libs/Polynomials/src/Polynomials.xtlm

p : Float

value · line 7
p ← @ ᵖʸp̲oly< "3x^2 - 2x + 1"
ᵖʸp̲oly< expands to
(3.0 -2.0 1.0)