https://github.com/dahlitzflorian/python-zero-calculator
A simple and basic zero calculator using bisectioning - implemented in Python
https://github.com/dahlitzflorian/python-zero-calculator
calculator calculator-python educational-project package python python-3 python-package python3
Last synced: 2 months ago
JSON representation
A simple and basic zero calculator using bisectioning - implemented in Python
- Host: GitHub
- URL: https://github.com/dahlitzflorian/python-zero-calculator
- Owner: DahlitzFlorian
- License: mit
- Created: 2018-05-17T16:13:13.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-23T19:00:24.000Z (about 6 years ago)
- Last Synced: 2025-01-08T13:27:39.076Z (4 months ago)
- Topics: calculator, calculator-python, educational-project, package, python, python-3, python-package, python3
- Language: Python
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Zero Calculator #
[](https://travis-ci.org/DahlitzFlorian/python-zero-calculator)

[](https://cloud.docker.com/u/floriandahlitz/repository/docker/floriandahlitz/python-zero-calculator)
## Description ##
This package includes a basic zero calculator implemented in Python.
It's using bisectioning to compute the zero in a given interval. It was
developed more for educational purposes than for productive usage.version 0.3.1
## Features ##
### Available ###
By know you are able to calculate certain things by importing the
package. Examples are provided beneath.```python3
>>> from calculator.calculator import Calculator
>>> func = "2 ** 3 + 9 / 3"
>>> c = Calculator(func)
>>> c.evaluate()
11
``````python3
>>> from calculator.calculator import Calculator
>>> func = "x ** 3 + 8 / x"
>>> c = Calculator(func, 2)
>>> c.evaluate()
12
```### Planned ###
- Zero Calculation using bisectioning## Using Docker ##
If you want to test the package without messing up your local
dependencies, use docker instead:```PowerShell
$ git clone
$ cd python-zero-calculator
$ docker image build -t zero-calculator .
$ docker container run -it --rm --name zero zero-calculator
```And from within the REPL import the package:
```python3
>>> from calculator import calculator
```## Contribute ##
All contributions are welcomed. Make sure, that your Code is
[PEP8](https://www.python.org/dev/peps/pep-0008/) compliant. While
developing this project [flake8](http://flake8.pycqa.org/en/latest/)
was used as Python linter. Using [Black](https://github.com/ambv/black)
simplifies that.If you want to report any issues, make use of the [Issue Tracker](https://github.com/DahlitzFlorian/python-zero-calculator/issues) provided by GitHub.