Quicksilver Manual > Plug-ins > Pythonic Calculator plug-in
About
The plug-in enables calculation of mathematical expressions utilizing Python's math module.
Usage and Detailed Documentation
After the plug-in has been installed, a new PyCalc plug-in preference pane will be added to Quicksilver's Preferences.
- Activate Quicksilver
- Specify a mathematical expressions via text mode as the direct object in the first pane
- (Hint) You can press
=to access text mode right away
- Set the action to
Pycalculatein the second pane - Press
enter/returnto execute the action
Mathematical expressions
All legal expressions must begin with an equals sign =. Examples of legal mathematical expressions include:
- =1+2
- =1/2
- =1*2
- =1-2
- =1-2j
- =e
- =pi
- =exp(1)
- =sin(pi)
- =cos(pi/2)
- =tan(0)
- =log(e)
- =log10(2)
- =2**7
- =pow(2,7)
- =radians(180)
- =degrees(3.1415926535)
- =hypot(3,4)
For more information on available functions, try 'pydoc math' via the command line in Terminal or examine some on-line documentation.
Requirements
- Quicksilver
Known Issues
- Functions which return something other than a number (e.g. modf and frexp return 2-tuples) are not directly supported – but individual components of the return values may be accessed using indexing notation (e.g. modf(3)[0] and modf(3)[1]).
- Refer to the forum thread for more details.
Notes
- By now it may be obvious, but this module hooks into a Python interpreter in a limited fashion. Consequently, there may be some bumps.

Credits
- Written by ytrewq1
