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

正文內(nèi)容

基礎(chǔ)知識編寫簡單的mathematica程序圖形處理二維、三維-在線瀏覽

2024-12-20 18:00本頁面
  

【正文】 變量,鍵入p/.{x → 1 , y → 2} 即可。 f[0]= 1。 1amp。test 僅當(dāng) test為 True時(shí)才執(zhí)行賦值語句 ◆ If 語句 語法: If [test, then, else] 若 test為 True, 則執(zhí)行 then, 若 test為False, 則執(zhí)行 else. ◆ Which 語句 語法: Which [test1, value1, test2,…] 依次計(jì)算 testi, 給出對應(yīng)第一個 test為 True 的 value ◆ Switch[expr,form1,value1,form2,…] 比較 expr與 formi, 給出與第一個 form值匹配的 value 例 1. 定義如下的函數(shù): ??????????220002 xxxxx① 使用 /。x=0 f [x_]:= x /。amp。 x2 ② 使用 If 定義: f [x_]:= If [ x=0, 0, If [x2, x^2, x ] ] ③ 使用 Which定義: f [x_]:= Which [ x=0, 0, x2, x^2, True, x ] 2 循環(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ù)的圖形。 第三章 圖形處理 例:在同一坐標(biāo)系下繪出 sinx, sin2x, sin3x, sin4x, sin5x 的圖形。 g 。Plot Evaluate Table y i , x , i , Pi 12 , 5 Pi 12 , Pi 12 ,x , 0 , 4000② ListPlot [List], 用于繪制散點(diǎn)圖。 p2={{0,0},{,},{,},{27,}}。 g2=ListPlot[p2,PlotJoined True, DisplayFunction Identity]。 ③ ParametricPlot [{ fx , fy},{t,tmin,tmax}] 用于繪制形如 {x = fx(t) , y = fy(t)}的參數(shù)方程圖形。 ParametricPlot[{3+2Cos[t],4+2Sin[t]}, {t,0,2Pi}] 可增加如下選項(xiàng): AspectRatio1, AxesOrigin{0,0} 2. 其它二維圖形 ① ContourPlot[ f, {x,xmin,xmax}, {y,ymin, ymax}], 用于繪制形如 z =f (x, y)的函數(shù)的等高線圖。 例:繪制函數(shù) f=sinx 3. 三維圖形 ① Plot3D[ f,{x,xmin,xmax},{y,ymin,ymax}] 繪制形如 Z = f (x, y)的三維圖形。 202022,2],0[],32,0[s i nc
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1