diff options
Diffstat (limited to 'hw2/prob_5.py')
-rw-r--r-- | hw2/prob_5.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw2/prob_5.py b/hw2/prob_5.py new file mode 100644 index 0000000..98d74f4 --- /dev/null +++ b/hw2/prob_5.py @@ -0,0 +1,5 @@ +import numpy as np + +p = [1, 2, 3, 8, 8] +r = np.roots(p) +print(np.around(r, 2)) |