software
Line Codes - Matlab / GNU Octave Code
Jul 19, 2012
I came up with the following approach to do line coding without for loops. My approach involves a bit of system theory, modulo 2 arithmetic, and sometimes just tricks founded on simple coincidence. So one is advised to be a little careful while sifting through the logic. But ultimately, the code is terse and fairly elegant.
Resistor Color Codes Script
Mar 17, 2012
I just decided to write a Python script to convert resistor color codes to resistance values. Later, I also wrote a script to do the reverse - namely to find the color code of a given resistor.
Tags: electronics, python, software, project
Signal Operations Applet
Mar 17, 2012
This is actually a set of two "applets" we did as part of an assignment for "Signals and Systems" in the fourth semester of college. The goal was to write an application which illustrated basic signal operations such as shifting, scaling, folding and also signal addition and multiplication.
Stochastic Simulation
Mar 17, 2012
This is a loose collection of programs we wrote as part of a course on "Stochastic Models" we had in the fourth semester of college. This includes a couple of pseudo random number generators (the Von Neumann middle square PRNG and the linear congruential generator PRNG), an implementation of the Monte Carlo method to determine area of an arbitrarily shaped figure and a simple simulation of birth-death process.
Tic Tac Toe
Mar 17, 2012
Sudhakar and I did the coding at the end of our first semester in college (actually, during our semester examinations!). We just wanted to kick start our entry into AI programming and thought teaching the computer to play tic tac toe might be a good start. We may do far greater things, but this is the first proper project we did and hence we are obviously proud of it!