Skip to content

Instantly share code, notes, and snippets.

@yozenci
yozenci / gausse.py
Created August 23, 2012 21:34
Gaussian Elimination to solve linear and non-linear system of equations.
"""
Gaussian Elimination with Partial Pivoting.
This module contains 5 functions which procedurally solve
the linear system Ax = b, A is an nxn matrix and b is a
column vector with n rows.
"""
import numpy
import math
@yozenci
yozenci / imageEdit.py
Created August 23, 2012 20:54
Image Editor
"""
Written by Yusuf Ozenci.
This program simulates a graphics editor. A 2d list is created, wich represents a matrix of colours (i.e. the image).
Text commands can be input into the console to edit the image.
7 Commands can be used, these are:
I M N. Create a new M x N image with all pixels coloured white (O).
C. Clears the table, setting all pixels to white (O).