summaryrefslogtreecommitdiff
path: root/hw2/prob_5.py
diff options
context:
space:
mode:
authorMarius Peter <blendoit@gmail.com>2019-07-11 17:14:32 -0700
committerMarius Peter <blendoit@gmail.com>2019-07-11 17:14:32 -0700
commitfeaa9144eb28dd263ef79577ab369174b8c6c83b (patch)
tree23b736616707789752b9d243f800901432325e31 /hw2/prob_5.py
parente01b5ffedbc57671e5b7f2e900276ffd14882a88 (diff)
the typa guy to flex: "new plots"
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