To use the calculator, invoke Ubiquity (Ctrl-Space) and type gcalc followed by any mathematical expression. The result appears immediately, you don't need to hit Enter. Alternatively, highlight a mathematical expression with the mouse and then invoke Ubiquity and gcalc.
Also check out my other Ubiquity scripts. They are all in the public domain; you can use them in any way you like.