summaryrefslogtreecommitdiff
path: root/hw2/prob_5.py
diff options
context:
space:
mode:
Diffstat (limited to 'hw2/prob_5.py')
-rw-r--r--hw2/prob_5.py5
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))
Copyright 2019--2024 Marius PETER