First time here? Check out the FAQ!
The commands A1.<x>=AffineSpace(1, QQ) X=A1.subscheme([x^1789+x]) Q=X([0]) Q.multiplicity() result in 1789. There seems to be a bug in the multiplicity command for subschemes of the line.
A1.<x>=AffineSpace(1, QQ) X=A1.subscheme([x^1789+x]) Q=X([0]) Q.multiplicity()