Trying to show correctness of a linear equation for a given graphed line. The code below works if I take the initialLatex: “y=” line out. Does not work if it is in. Any advice on how to get this to work? Thanks in advance.

initialLatex: “y=”

p = patterns

sumPattern = p.sum(p.expression,p.expression)

difPattern = p.difference(p.expression,p.expression)

productPattern = p.product(p.expression,p.expression)

valid = sumPattern.matches(this.latex) or difPattern.matches(this.latex)

correct =

xyLine(this.latex).slope = -0.5 and

xyLine(this.latex).yIntercept = 3 and

valid

correct: correct