Skip to content

python implementation of the jury array as I understand it [CONTROL SYSTEMS EXAM PREP]

Notifications You must be signed in to change notification settings

JamesMura/jury-array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JURY ARRAY

USAGE

from jury import Polynomial
from jury import Term
from jury import JuryArray
p = Polynomial(Term(1,4),Term(0.5,3),Term(0.3,2),Term(2,1),Term(2,0))
    array = JuryArray(p)
    for line in array.generate():
        print line

OUTPUT

[2, 2, 0.3, 0.5, 1]
[1, 0.5, 0.3, 2, 2]
[2, 0.3, 0.5, 1]
[1, 0.5, 0.3, 2]
[0.3, 0.5, 1]
[1, 0.5, 0.3]
[-0.35, -0.7]
[-0.7, -0.35]
[-0.24499999999999997]
[-0.24499999999999997]

RUN TESTS

  • pip install -r pip.txt
  • py.test

About

python implementation of the jury array as I understand it [CONTROL SYSTEMS EXAM PREP]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages