From c64243edde3ac604ee9c96bdd613b36d319ce862 Mon Sep 17 00:00:00 2001 From: Jae Yeong Park Date: Wed, 23 Mar 2022 14:37:40 +0900 Subject: [PATCH] Example --- Example.py | 13 +++++++++++++ linear_model.py | 1 + 2 files changed, 14 insertions(+) create mode 100644 Example.py diff --git a/Example.py b/Example.py new file mode 100644 index 0000000..4b8d96d --- /dev/null +++ b/Example.py @@ -0,0 +1,13 @@ +import numpy as np + +a = np.zeros((2, 3)) +print("a =", a) + +b = np.ones((2, 2)) +print("b =", b) + +c = np.full((3, 2), 3) +print("c =", c) + +d = np.eye(2) +print("d =", d) \ No newline at end of file diff --git a/linear_model.py b/linear_model.py index 896ede1..05b3631 100644 --- a/linear_model.py +++ b/linear_model.py @@ -1,3 +1,4 @@ +import matplotlib.pyplot as plt from scipy.optimize import curve_fit def linear_model(x, a, b):