This is
a weird time to write this. Sorry, but I won’t tell you why it’s so.

Human beings are a strange race. But maybe I see this and comment
so only because I’ve seen the race from up close. If I’d taken the trouble to
see petunias or metamorphic rocks from up close, I might have had to conclude
the same about them. The reason we can notice differences in faces and
characters so much is that we have zoomed in so much. Now if we were someone
who was making a chart of the universe we wouldn’t be bothered about the
differences between people, just like we wouldn’t be bothered about the
differences between the individuals of the same species of squid.

My suspicion is that we can zoom in on anything. There’s a lot of
space to zoom in on anything. That’s why there are so many specialists. There
are spelunkers and hairdressers and herpetologists. You start zooming into
something and you see that there are pictures in the greater megapixels too. Of
course, beyond a certain zoom the picture that emerges is singular, the same no
matter where you have started zooming from. That’s because nature only uses the longest threads to weave her tapestry.



Tags: ,

Add comment in external guestbook (no need for Windows Live account or sign-in.)

Python Programs

Hi, everyone. Blogging after a long time. This is because the college machines all run on linux, despite the fact that they all came with the latest distro of Vista, one CD each. What a loss. It’s what you get when you have a bunch of ideologists running the computer dept. It’s a pain blogging on linux. Even if the machines ran Windows, it would be awkward going to college to blog.
And I don’t have a laptop yet.
Hence the delay.
Anyway, I called to say that I’ve been learning Python, the programming language, in college, and I’ve made a few programs I want to share. Not all the programs have been made into executables in linux (although most have been). So in linux, start the terminal and type python <program name>.py, as usual. This will run all of the programs below. The Number Picture program is complete, except I haven’t had time to include a documentation about what exactly it is that it’s doing. I’ll try to do that soon.


Displays Fibonacci numbers up to the count you specify  and also their successive ratios that converge to the Golden Ratio.


Displays Prime numbers, upto a number or upto a count. Checks whether a number is prime. Also returns nth prime for given n.


Prints coordinates of 2 masses in a binary system. You can set masses, initial positions and initial velocities of the two bodies. Resulting file, plotted in gnuplot with lines, gives orbit of both.


Generates a data file plotting the position (x,y) of a projectile. Projected particle is slowed down by air friction as in real life, and hits ground and rebounds (losing energy) as in real life. You can set the launch position, launch angle, launch velocity, viscous force constant and coefficient of restitution.


Accepts a number from user. Takes a point at origin. Gives it successive unit translations along 1 of 10 different directions, depending on the value of successive digits of the number. The directions form a regular polygon with 0 upwards. Successive coordinates are printed to a file that can be plotted with gnuplot.

The zip file contains the program itself, and a PDF help file where everything has been explained.

If you modify and/or redistribute these programs, you cannot charge money for them. Also, I’d like it if you acknowledge my authorship, although I wouldn’t mind if you add your name to it.


Tags: , programs,

Add comment in external guestbook (no need for Windows Live account or sign-in.)