Metadata-Version: 2.1
Name: whiteCalculator
Version: 0.0.3
Summary: A small calculator api for Python
Home-page: https://github.com/WhiteNightAWA/whiteCalculator
Author: White Night
Author-email: evan.tang.2021@gmail.com
License: MIT License
Project-URL: Bug Tracker, https://github.com/WhiteNightAWA/whiteCalculator/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

> # Calculator API for Python
> By White Night
## Install
```shell
# Linux/macOS
python3 -m pip install -U whiteCalculator

# Windows
py -3 -m pip install -U whiteCalculator
```


# QuickStart
```python
>>> from whiteCalculator import Calculator
>>> c = Calculator()
>>> print(c.run("1+8(5^2)"))
201
>>> print(c.run("9Ans"))
1809
```

## Errors
```python
>>> from whiteCalculator import Calculator

>>> c2 = Calculator() # Default is True
>>> c2.run("9/0")
Error: division by zero

>>> c1 = Calculator(skipError=False)
>>> c1.run("9/0")
Traceback (most recent call last):
    ...
ZeroDivisionError: division by zero
```

## Links
> [GitHub](https://github.com/WhiteNightAWA/whiteCalculator/)
> [Pypi](https://pypi.org/project/whiteCalculator/)

## You can use:
- sin / asin / sinh
- cos / acos / cosh
- tan / atan / tanh
- ln / log
- × / •
- ^ / ** / power
- √ / sqrt
- π / pi
- %
- ÷
- Ans

