Looking for calculator source code, BSD-licensed
- by Horace Ho
I have an urgent project which need many functions of a calculator (plus a few in-house business rule formulas). As I won't have time to re-invent the wheel so I am looking for source code directly.
Requirements:
BSD licensed (GPL won't help)
in c/c++ programming language
32-bit CPU
minimum dependency on platform API/data structure
best with both RPN and prefix notation supported
emulator/simulator code also acceptable (if not impossible to add custom formula)
with following functions (from wikipedia)
Scientific notation for calculating large numbers
floating point arithmetic
logarithmic functions, using both base 10 and base e
trigonometry functions (some including hyperbolic trigonometry)
exponents and roots beyond the square root
quick access to constants such as pi and e
plus
hexadecimal, binary, and octal calculations, including basic Boolean math
fractions
optional
statistics and probability calculations
complex numbers
programmability
equation solving