Skip to content

olivierverdier/polynomial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Check out the associated notebook.

Testing

Run:

pytest test_polynomial.py

About

Simple Polynomial class in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published