ECalc is a calculator plug-in for Eclipse that provides the ability to evaluate mathematical expressions. Note the low version number. At this stage the software should be considered a prototype, although it does work pretty well.
To install, just put the jar from the zip-files in your plugin-directory and restart eclipse. To uninstall, remove the jar-file and the directory .metadata/.plugin/se.fnord.ecalc from your workspace directory/directories.
Since this thing has a UI, I suppose I should provide some screenshots:
Downloads:
- Version 0.3.0: Binary / Sources - Latest version. Code cleanups, exception handling fix, user-defineable functions and sane state-store-format.
- Version 0.2.0: Binary / Sources - Some fixes, added bitwise operators, display radix options, ability to input numbers in different radices. More functions, saves/restores settings.
- Version 0.1.1: Binary / Sources - Catch an uncaught error and fix a bug in the history-view.
- Version 0.1.0: Binary / Sources - Initial release.
Features:
- Command-history.
- Functions (sin, cos, tan, asin, acos, atan, min, max, hypot, sqrt, random, round, ceil, floor).
- Ability to switch between radians and degrees.
- The basic operators (+, -, *, /, % (modulus), ^ (power)).
- Bitwise operators (>>, <<, &, |).
- Input and output in binary, octal, decimal or hexadecimal.
- The constants pi and e.
- Variables.
- User-defineable functions (eg. 'def f(x) { x*2 }', 'def g(x,y) { x*sin(y) }').
- Probably some things that I forgot.
Todo:
- Package ECalc as a feature.
- More built-in functions.
- Fix annoying parser-bug.
- Refactor code in general and clean the parser code in particular.
- Ability to list/manage variables and functions.
- Some kind of context-menu.
- Fix the TODOs in the source.
- Make this page interesting.
- Fix the bugs you tell me about. :)
- What else? Let me know!