| Hosted by CoCalc | Download
# 1. Beispiel: eindeutig lösbares System # Matrix definieren A = matrix([[1,2],[1,-1]]) show(A)
(1211)\displaystyle \left(\begin{array}{rr} 1 & 2 \\ 1 & -1 \end{array}\right)
# rechte Seite des Systems b = vector([1,-2]) show(b)
(1,2)\displaystyle \left(1,\,-2\right)
# Loesung des LGS x=A.solve_right(b) show(x)
(1,1)\displaystyle \left(-1,\,1\right)
var('x') y1=1/2-1/2*x y2=x+2 p3=point((-1,1),size=60, color='green') p1=plot(y1, (x, -2, 2), gridlines=True, axes_labels=['$x$','$y$'], fontsize=14, color='blue') p2=plot(y2, (x, -2, 2), gridlines=True, axes_labels=['$x$','$y$'], fontsize=14, color='red') show(p3+p1+p2) #Die Lösung ist der grüne Punkt...
x