Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Solve fails

gr=Polyhedron(ieqs=[(10,-1,0),(-12,0,1)]) p1=gr.plot() x_0, x_1 = var('x_0 x_1') lin=solve([70==6x_0+18x_1],x_1) p2=plot(lin, (x,8,14)) p1+p2

Solve fails

I wonder why the Variable 'x_0' not found

 gr=Polyhedron(ieqs=[(10,-1,0),(-12,0,1)])
p1=gr.plot()
x_0, x_1 = var('x_0 x_1')
lin=solve([70==6x_0+18x_1],x_1)
lin=solve([70==6*x_0+18*x_1],x_1)
p2=plot(lin, (x,8,14))
p1+p2

p1+p2