From cc184fe0e51cb05a56d5ca1b193a581e297e370d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=B8rge=20Haugset?= <borgeha@ntnu.no> Date: Thu, 15 Oct 2020 13:21:21 +0200 Subject: [PATCH] =?UTF-8?q?litt=20sm=C3=A5endringer=20av=20strengeksemplen?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uke42/linspace.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 uke42/linspace.py diff --git a/uke42/linspace.py b/uke42/linspace.py new file mode 100644 index 0000000..48fc342 --- /dev/null +++ b/uke42/linspace.py @@ -0,0 +1,7 @@ +import numpy as np + +x = np.linspace(-3.14, 3.14, 21) +y = np.cos(x) + +print("x:", x) +print("y:", y) \ No newline at end of file -- GitLab