Showing posts with label Gauss Elimination. Show all posts
Showing posts with label Gauss Elimination. Show all posts

Monday, 26 October 2015

Solving 2 Linear equations

img_01

The next code is based on the Gauss Elimination method for solving a system of linear equations.

# Gauss elimination method for 2 linear equations
import Tkinter as tk

def lab_1(txt, foreground, row, col):
    w = tk.Label(root, text = txt, fg = foreground)
    w.grid(row = row, column = col)
    return w