Skip to content

Simple calculator based on Sympy and Wolfram Alpha

License

Notifications You must be signed in to change notification settings

YuguangTong/CalCalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

calcalc

Build logo

Simple calculator based on Sympy and Wolfram Alpha

  • takes string input
  • interprets input as math with Sympy.simplify
  • request Wolfram Alpha for more non-trivial strings

Example:

>>> from calcalc.CalCalc import calculate
>>> calculate('mass of the moon in kg',  return_float=True)
7.3459e+22
>>> calculate('2 * 3 ** 2 * 5 + 10')
100

Install

python setup.py install

Dependency

requests, lxml, sympy, beautifulsoup4

Support

  • python 3.5

About

Simple calculator based on Sympy and Wolfram Alpha

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published