Friday, October 29, 2010

A Spike of Geekness

It has become totally clear to me that i'm a geek. It's been a while since i have this feeling, but now i'm pretty sure of this.
I had some problems to solve for the Fuzzy Logic course in my master's study, and then there was a problem that needed to calculate a certain function for two sets of values and do some sets operations on them like union, intersection,...
The thing is, instead of getting the calculator and start working, i felt so lazy and decided to write a simple python script to finish it.
Pretty geeky, right :D . Here's the code anyway.
import math

A = [math.exp( (i-4)**2 /-8 ) for i in range(0,11)]
B = [math.exp( (i-8)**2 /-8 ) for i in range(0,11)]

print "A"
for i in range (0,11):
    print i,A[i]

print "\nB"
for i in range (0,11):
    print i,B[i]

print "\nAUB"
Un = [max(A[i],B[i]) for i in range(0,11)]
for i in range (0,11):
    print i,Un[i]

print "\nA^B"
In = [min(A[i],B[i]) for i in range(0,11)]
for i in range (0,11):
    print i,In[i]

print "\nAc"
Ac = [1.0 - A[i] for i in range(0,11)]
for i in range (0,11):
    print i,Ac[i]

print "\nBc"
Bc = [1.0 - B[i] for i in range(0,11)]
for i in range (0,11):
    print i,Bc[i]

print "\nAdB"
for i in range (0,11):
    print i,min(A[i],Bc[i])

print "\nBdA"
for i in range (0,11):
    print i,min(Ac[i],B[i])
Geek In Peace fellas

Friday, October 15, 2010

My favourite lines and quotes from The Matrix Trilogy

Ten days ago, The Matrix Trilogy were played on some channel. Ofcourse i didn't miss the chance to watch them. And i took the chance to write down my favourite lines and quotes from the trilogy. My facebook friends watched me writing them on my wall (yes all of them :D).

Anyway, i created a new page with for the trilogy that contains all of them. And soon i will add more quotes from the AniMatrix and "Enter The Matrix" videogame.