Browse Source

Example

master
Jae Yeong Park 4 years ago
parent
commit
c64243edde
  1. 13
      Example.py
  2. 1
      linear_model.py

13
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)

1
linear_model.py

@ -1,3 +1,4 @@
import matplotlib.pyplot as plt
from scipy.optimize import curve_fit from scipy.optimize import curve_fit
def linear_model(x, a, b): def linear_model(x, a, b):

Loading…
Cancel
Save