freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基礎(chǔ)知識編寫簡單的mathematica程序圖形處理(二維、三維-文庫吧

2025-09-13 18:00 本頁面


【正文】 f [x_]:= If [ x=0, 0, If [x2, x^2, x ] ] ③ 使用 Which定義: f [x_]:= Which [ x=0, 0, x2, x^2, True, x ] 2 輸出語句 Print 3 循環(huán)語句 ◆ Do 語句 語法: Do[expr, {i, imin, imax, di}] 計(jì)算 expr, i=imin,…,imax , 步長為 di ◆ While 語句 語法: While[test, body] 當(dāng) test為 True時(shí),計(jì)算 body ◆ For 語句 語法: For[start, test, incr, body] 以 start為起始值,重復(fù)計(jì)算 body和 incr, 直到 test為 False時(shí)為止 ◆ 循環(huán)控制語句 Break和 Continue Break[] 退出最里面的循環(huán) Continue[] 轉(zhuǎn)入當(dāng)前循環(huán)的下一步 1. 基本二維圖形 ① Plot[ f, { x, xmin, xmax}], 用于繪制形如 y =f (x)的函數(shù)的圖形。 當(dāng)將多個(gè)圖形繪制在同一坐標(biāo)系上時(shí),形如: Plot[{ f1,…, fn},{x, xmin, xmax}] 注意:有時(shí)需要使用 Evaluate函數(shù)。 第三章 圖形處理 例:在同一坐標(biāo)系下繪出 sinx, sin2x, sin3x, sin4x, sin5x 的圖形。 常用的選項(xiàng): PlotStyle- Hue[a] 設(shè)置線條顏色 PlotRange- {a,b} 控制顯示范圍 DisplayFunction 控制圖形顯示 AspectRatio 圖形的寬、高比 AxesOrigin 設(shè)置原點(diǎn)坐標(biāo) 形為間隔時(shí),繪出這組圖,以變化到從當(dāng),??? 157515)(2s e c)( t a n 02022??? ???? vgvgxxy程序: 例:有如下的拋物線簇 : Clear a , y , xv 200 。 g 。y a_ , x_ : Tan a x g x ^ 2 Sec a ^ 2 2 v ^ 2 。Plot Evaluate Table y i , x , i , Pi 12 , 5 Pi 12 , Pi 12 ,x , 0 , 4000② ListPlot [List], 用于繪制散點(diǎn)圖。 注意, List的形式應(yīng)為: }},{,},{},{{ 1100 nn yxyxyx ??例:在同一坐標(biāo)系下繪制下列兩組散點(diǎn)圖 p1={{0,0},{0,45},{,},{,}}。 p2={{0,0},{,},{,},{27,}}。 程序: g1=ListPlot[p1,PlotJoinedTrue, DisplayFunction Identity]。 g2=ListPlot[p2,PlotJoined True, DisplayFunction Identity]。 Show[g1,g2,DisplayFunction $DisplayFunction]。 ③ ParametricPlot [{ fx , fy},{t,tmin,tmax}] 用于繪制形如 {x = fx(t) , y = fy(t)}的參數(shù)方程圖形。 例:繪制以點(diǎn)( 3,4)為圓心,半徑為 2的圓。 ParametricPlot[{3+2Cos[t],4+2Sin[t]}, {t,0,2Pi}] 可增加如下選項(xiàng): AspectRatio1, AxesOrigin{0,0} 2. 其它二維圖形 ① ContourPlo
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1