SlideShare a Scribd company logo
Soumettre la recherche
Mettre en ligne
ncuma_函數畫圖.pptx
Signaler
Partager
NCU MCL
Software Developer à NCU MCL
Suivre
•
0 j'aime
•
4,309 vues
1
sur
9
ncuma_函數畫圖.pptx
•
0 j'aime
•
4,309 vues
Signaler
Partager
Télécharger maintenant
Télécharger pour lire hors ligne
Technologie
ncuma_函數畫圖
Lire la suite
NCU MCL
Software Developer à NCU MCL
Suivre
Recommandé
Ppt 127-135 par
Ppt 127-135
hungchiayang1
1.5K vues
•
9 diapositives
Ppt 127-135 par
Ppt 127-135
hungchiayang1
39 vues
•
9 diapositives
函數微分_範例.pptx par
函數微分_範例.pptx
mclmath
40 vues
•
5 diapositives
ncuma_函數微分計算.pptx par
ncuma_函數微分計算.pptx
NCU MCL
2.2K vues
•
5 diapositives
Ppt 136-140 par
Ppt 136-140
hungchiayang1
270 vues
•
5 diapositives
Ppt 138-142 par
Ppt 138-142
hungchiayang1
8.4K vues
•
5 diapositives
Contenu connexe
Similaire à ncuma_函數畫圖.pptx
Appendix B 教學 par
Appendix B 教學
hungchiayang1
315 vues
•
9 diapositives
Sym py edu par
Sym py edu
Alisha Smile
4.6K vues
•
39 diapositives
Appendix B par
Appendix B
Alisha Smile
21 vues
•
12 diapositives
ncuma_Taylor 多項式.pptx par
ncuma_Taylor 多項式.pptx
NCU MCL
33 vues
•
6 diapositives
Java SE 8 的 Lambda 連鎖效應 - 語法、風格與程式庫 par
Java SE 8 的 Lambda 連鎖效應 - 語法、風格與程式庫
Justin Lin
11K vues
•
59 diapositives
Ch11 範例 par
Ch11 範例
hungchiayang1
832 vues
•
15 diapositives
Similaire à ncuma_函數畫圖.pptx
(20)
Appendix B 教學 par hungchiayang1
Appendix B 教學
hungchiayang1
•
315 vues
Sym py edu par Alisha Smile
Sym py edu
Alisha Smile
•
4.6K vues
Appendix B par Alisha Smile
Appendix B
Alisha Smile
•
21 vues
ncuma_Taylor 多項式.pptx par NCU MCL
ncuma_Taylor 多項式.pptx
NCU MCL
•
33 vues
Java SE 8 的 Lambda 連鎖效應 - 語法、風格與程式庫 par Justin Lin
Java SE 8 的 Lambda 連鎖效應 - 語法、風格與程式庫
Justin Lin
•
11K vues
Ch11 範例 par hungchiayang1
Ch11 範例
hungchiayang1
•
832 vues
Ppt 78-100 par hungchiayang1
Ppt 78-100
hungchiayang1
•
8.4K vues
Ppt 78-100 par hungchiayang1
Ppt 78-100
hungchiayang1
•
58 vues
ncuma_SymPy符號運算套件.pptx par NCU MCL
ncuma_SymPy符號運算套件.pptx
NCU MCL
•
884 vues
Ch5 教學 par hungchiayang1
Ch5 教學
hungchiayang1
•
1.1K vues
Ch5 par Alisha Smile
Ch5
Alisha Smile
•
193 vues
Taylor example par Alisha Smile
Taylor example
Alisha Smile
•
4.3K vues
SymPy在微積分上的應用.ppt par mclmath
SymPy在微積分上的應用.ppt
mclmath
•
424 vues
Ch8 par Alisha Smile
Ch8
Alisha Smile
•
104 vues
Ch8 教學 par hungchiayang1
Ch8 教學
hungchiayang1
•
740 vues
Ch9 教學 par hungchiayang1
Ch9 教學
hungchiayang1
•
467 vues
Python - Matplotlib basic - v01 par ssuser5e7722
Python - Matplotlib basic - v01
ssuser5e7722
•
460 vues
Appendix B 範例 par hungchiayang1
Appendix B 範例
hungchiayang1
•
195 vues
Ch12 par Alisha Smile
Ch12
Alisha Smile
•
17 vues
Ch9 par Alisha Smile
Ch9
Alisha Smile
•
130 vues
Plus de NCU MCL
函數畫圖_習題4.pptx par
函數畫圖_習題4.pptx
NCU MCL
229 vues
•
1 diapositive
數值積分法_3.pptx par
數值積分法_3.pptx
NCU MCL
679 vues
•
1 diapositive
數值積分法_2.pptx par
數值積分法_2.pptx
NCU MCL
40 vues
•
1 diapositive
數值積分法_1.pptx par
數值積分法_1.pptx
NCU MCL
46 vues
•
1 diapositive
數值求根習題_1.pptx par
數值求根習題_1.pptx
NCU MCL
82 vues
•
1 diapositive
函數微分習題_3.pptx par
函數微分習題_3.pptx
NCU MCL
526 vues
•
3 diapositives
Plus de NCU MCL
(20)
函數畫圖_習題4.pptx par NCU MCL
函數畫圖_習題4.pptx
NCU MCL
•
229 vues
數值積分法_3.pptx par NCU MCL
數值積分法_3.pptx
NCU MCL
•
679 vues
數值積分法_2.pptx par NCU MCL
數值積分法_2.pptx
NCU MCL
•
40 vues
數值積分法_1.pptx par NCU MCL
數值積分法_1.pptx
NCU MCL
•
46 vues
數值求根習題_1.pptx par NCU MCL
數值求根習題_1.pptx
NCU MCL
•
82 vues
函數微分習題_3.pptx par NCU MCL
函數微分習題_3.pptx
NCU MCL
•
526 vues
SymPy 在微積分上的應用_3.pptx par NCU MCL
SymPy 在微積分上的應用_3.pptx
NCU MCL
•
27 vues
SymPy 在微積分上的應用_2.pptx par NCU MCL
SymPy 在微積分上的應用_2.pptx
NCU MCL
•
26 vues
SymPy 在微積分上的應用_1.pptx par NCU MCL
SymPy 在微積分上的應用_1.pptx
NCU MCL
•
30 vues
極座標畫圖_3.pptx par NCU MCL
極座標畫圖_3.pptx
NCU MCL
•
12 vues
極座標畫圖_2.pptx par NCU MCL
極座標畫圖_2.pptx
NCU MCL
•
15 vues
極座標畫圖_1.pptx par NCU MCL
極座標畫圖_1.pptx
NCU MCL
•
12 vues
Taylor 多項式_3.pptx par NCU MCL
Taylor 多項式_3.pptx
NCU MCL
•
7 vues
Taylor 多項式_2.pptx par NCU MCL
Taylor 多項式_2.pptx
NCU MCL
•
10 vues
Taylor 多項式_1.pptx par NCU MCL
Taylor 多項式_1.pptx
NCU MCL
•
8 vues
微分方程式求解_3.pptx par NCU MCL
微分方程式求解_3.pptx
NCU MCL
•
38 vues
微分方程式求解_2.pptx par NCU MCL
微分方程式求解_2.pptx
NCU MCL
•
28 vues
微分方程式求解_1.pptx par NCU MCL
微分方程式求解_1.pptx
NCU MCL
•
22 vues
牛頓迭代法_3.pptx par NCU MCL
牛頓迭代法_3.pptx
NCU MCL
•
18 vues
牛頓迭代法_2.pptx par NCU MCL
牛頓迭代法_2.pptx
NCU MCL
•
16 vues
ncuma_函數畫圖.pptx
1.
函數畫圖 1 簡要 python 學習講義
2.
畫圖步驟 (一) 1. 使用
pylab 套件畫圖:import pylab 2. 設定函式: def f(x) : return pylab.sin(2*x) + pylab.sqrt(x) def g(x) : return x**3 - 2*x + pylab.cos(x/3) def h(x) : return pylab.sin( exp(x) ) 2 國立中央大學數學系
3.
畫圖步驟 (二) def s(x)
: return pylab.log(x) + 2 * pylab.log10(x) def t(x) : return pylab.sin( pylab.sqrt( abs(5*x) ) ) ) def u(x) : return pylab.maximum(pylab.sin(x),pylab.cos(x)**2) def v(x) : return pylab.minimum(pylab.sin(x),pylab.cos(2*x)) 3 國立中央大學數學系
4.
畫圖步驟 (三) 3. 設定畫圖區間
[a,b] 與點數 n : a , b , n = 0 , 10 , 100 a , b , n = -pylab.pi , pylab.pi , 100 pi = pylab.pi a , b , n = -pi , pi , 100 4. 產生所有 x 座標點於 xs: xs = pylab.linspace(a,b,n) 5. 產生所有 y 座標於 ys: ys = f(xs) ys = g(xs) 4 國立中央大學數學系
5.
畫圖步驟 (四) 6. 輸入
xs 與 ys 畫函數圖: pylab.plot(xs,ys) pylab.plot(xs,f(xs)) 7. 設定圖形屬性: pylab.grid():顯示背景格線 pylab.title(’bar’):產生圖形標頭 bar pylab.xlabel("X"):X 軸字串 pylab.ylabel("Y"):Y 軸字串 8. 儲存圖形於檔案: pylab.savefig(’foo.jpg’) pylab.savefig(’foo.png’) 9. 顯示圖形於螢幕: pylab.show() 5 國立中央大學數學系
6.
函數畫圖 : 簡單版
(一) 6 國立中央大學數學系
7.
函數畫圖 : 簡單版
(二) 7 國立中央大學數學系 import pylab # 設定函式 def f(x) : return pylab.sin(x) + pylab.cos(2*x) # 設定 x 範圍 [a,b] 之間,n 為座標點數 a , b , n = 0 , 2*pylab.pi , 100 ## 在 [a,b] 之間產生 n 個點存到 xs xs = pylab.linspace(a,b,n) ## 畫圖:(xs,f(xs)) pylab.plot(xs,f(xs)) ## 格線 pylab.grid() ## 螢幕顯示圖形 pylab.show() 簡單版本:
8.
函數畫圖 : 詳細版
(一) 8 國立中央大學數學系
9.
函數畫圖 : 詳細版
(二) 9 國立中央大學數學系 import pylab # 設定函式 def f(x) : return pylab.sin(x) + pylab.cos(2*x) pi = pylab.pi # 設定 x 範圍 [a,b] 之間,n 為座標點數 a , b , n = 0 , 2*pi , 100 ## 在 [a,b] 之間產生 n 個點存到 xs xs = pylab.linspace(a,b,n) ## ys 為所有 xs 的 y 值 ys = f(xs) ## 畫紙底色為 white pylab.figure(facecolor=’w’) ## 畫圖 pylab.plot(xs,ys) ## 顯示背景格線 pylab.grid() # 設定 X 與 Y 軸 pylab.xlabel("X") pylab.ylabel("Y") # 設定標頭 pylab.title("sin(x)+cos(2x)") ## 螢幕顯示圖形 pylab.show() 詳細版本: