Apparently, Pre-Calc isn't useless.

Posted by Shork on Sept. 27, 2006, 1:26 p.m.

Back in my high school pre-calc class, I was convinced that it was useless. It was all fancy algebra with very limited real use. But I was wrong. When I was making an inventory system for my super amazing action RPG, I wanted a "sort" option. I had no idea how to do it, until I remembered a section from my pre-calc book about sorting algorithms. I had no idea why a high school algebra book went into so much detail about computer programming, but anyway, I looked up the bubblesort algorithm and put it into the script and it works. Not only that, but if you delete an item, the other items are automatically resorted to fill the gap left by the deletion. My apologies to the fine math professors at the University of Chicago, your pre-calc book wasn't junk after all.

Comments

Kaz 18 years, 1 month ago

Yay for pre calc!

Cesar 18 years, 1 month ago

no, kaz…

YAY FOR CALC!

Takagi 18 years, 1 month ago

Calc is actually really useful. We just learned the bubble sort algorithm in C++. Really inefficient

Shork 18 years, 1 month ago

I know bubble sort is really bad, but it works and it's easy. They've been using it since like 1958 on punchcards. And I've only got a list of 100 items, so it doesn't need to be to be that fast…