Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/olivierverdier/polynomial
Simple Polynomial class in Python
https://github.com/olivierverdier/polynomial
Last synced: about 5 hours ago
JSON representation
Simple Polynomial class in Python
- Host: GitHub
- URL: https://github.com/olivierverdier/polynomial
- Owner: olivierverdier
- Created: 2010-10-16T13:49:12.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2024-04-26T12:24:35.000Z (7 months ago)
- Last Synced: 2024-04-26T16:28:40.964Z (7 months ago)
- Language: Python
- Homepage:
- Size: 36.1 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Polynomial class in Python/numpy
## Usage
```python
from polynomial import *p = Polynomial([2.,3.])
p(2.) # value of 2 + 3X at 2., i.e., 8p2 = 2 + 3*X
p == p2 # True
p.zeros() # list of zeros
```Check out the [associated notebook](https://gist.github.com/olivierverdier/d939d4e0b4de8fbd9c26328a834721ab).
## Testing
Run:
```bash
pytest test_polynomial.py
```