Looking for calculator source code, BSD-licensed

Posted by Horace Ho on Stack Overflow See other posts from Stack Overflow or by Horace Ho
Published on 2010-04-29T02:17:21Z Indexed on 2010/04/29 2:27 UTC
Read the original article Hit count: 571

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about source-code

Related posts about calendar