Teaching-1

x = linspace(0, 6.283, 6283); y1 = cos(x); y2 = cos(x*180/pi); figure(1) plot(x , y1, x, y2) axis ([0 3.14 -1 1]) grid on figure(2) plot(x , y1, x, y2) axis ([1.5708 4.7124 -1 1]) grid on x = linspace(1.5708, 4.7124, 181); k = linspace(90, 270, 181); y1 = cos(x); y2 = cos(x*pi/180); figure(1) plot(x , y1) #axis ([0 3.14 -1 1]) grid on figure(2) plot(k, y2) #axis ([1.5708 4.7124 -1 1]) grid on

類神經學習筆記(一)

 def km_to_mile(km):     return km / 1.609  # 真實轉換值 # 初始設定 km = float(input("請輸入公里數:")) true_mile = km_to_mile(km) factor = 0.5  #...