Skip to content
Simple Polynomial class in Python
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
polynomial.py
test_polynomial.py

README.md

Simple Polynomial class in Python/numpy

Usage

from polynomial import *

p = Polynomial([2.,3.])
p(2.) # value of 2 + 3X at 2., i.e., 8

p2 = 2 + 3*X

p == p2 # True

p.zeros() # list of zeros

Testing

Run:

python test_polynomial.py
You can’t perform that action at this time.