Shital's Icel logo Shital's Icel

 
My Weblog



    Home 

    Stuff 2 Do 

    Cool Books 

    Downloads 

    Geeks Only 

    Essays 

    Photo Albums 

    Share 

    Say Something 

    My Blog 

    About me 

    About Site 




Some blogs on Gizmos, music, science, math, physics, hikes, adventure outings, programming, books and such stuff...

Subscribe feeds: RSS 2.0 | Atom 1.0 | CDF

 Monday, August 08, 2005
World's Most Beautiful Equation 8/8/2005 10:22:07 AM (Pacific Daylight Time, UTC-07:00)


UPDATE: Check out my article on detailed HowTo for this topic.

A weekend worth of effort has paid off so I can finally write about this equation. For those who wants to write about mathematics in their blogs knows what I'm talking about. Quite ironically, there is no built-in support for writing math equations in HTML. Of all types of knowledges, mathematics is something that remains invariant over time, cultures, languages. But the fact that the Internet, the largest knowledge resource of our times, does not yet have the capability to easily represent theses crown jewels is ironic.

That got to be changed. Thanks to John Forkosh who authored MimeTeX, the C code that parses equations in TeX format and renders them in to images. The code could be compiled as CGI executable to run under Windows. But my goal is different. I want to enable all forums, blogs, wikis and even desktop apps like Yahoo/MSN messenger so users can quickly write math equations. Considering some of forums and wikis have thousands of simultaneous users, the CGI executable just won't cut it. Neither it's usable for integration with desktop apps. So my decision was to convert original MimeTex code in to Win32 DLL and that's were the trouble begins (and weekend plans ends). I realized the MimeTeX code had several memory leaks which don't matter that much when you run it as a CGI EXE but could bring down the server if I'd to run it in-proc. Fortunately I was able to fix those leaks in just a weekend worth of effort and finally have my C# test app talking to MimeTeX Win32 DLL and displaying equations as I type! However the coolest part of the whole process was the long long emails with John Forkosh over next few days discussing every change I made in his code, carefully scrutinizing it, sending back and forth our changes to each other. While John would be updating his distro soon, you can download the code with fixes along with VB.Net and C# samples, DLL for desktop apps and my HttpHandler HttpModule code. This will enable you to integrate this functionality in any website or desktop app and let your users write equations as simply as:

Fermat's Last Theorem is <img src="$x^n + y^n = z^n$">

And Now without further ado, here's the answer to life, the universe and everything (and no, it's not 42):

Known as Euler's Identity, this equation reflects the relationship between four most fundamental numbers in the universe. There are not many important mathematical and physical equations where , or hasn't invaded yet and that in essence implies that these fundamental constants very tightly controls the ways the universe works (did you noticed ). So in nutshell, this equation just might be the concise definition of the universe ;).


More : Mathematics Permanent Link: #
 



Back To Latest Entries

Past entries at...

Archive 1

Archive 2

   

~ Archives ~

Past entries:
(Since Oct 2002)

Archive 1

Archive 2



~ Search ~


~ Categories ~




Subscribe feeds: RSS 2.0 | Atom 1.0 | CDF


Get these blogs in your email:

I'm jotting down these blogs in real time and that means that content (the "soul") has more priority than grammatical accuracy and spellings (the "body").
I use newtelligence dasBlog 1.8.5223.2 as my blog engine. Its not perfact but hey its with source!
Sign In

  © Shital Shah, 1998-2007. You may freely copy and distribute material available on this site created by myself. All rights reserved. Please read the Copyright, Terms Of Use and Desclaimer