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 pl: 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)