1 / 2

Problem 6 numpy 之矩陣運算

Problem 6 numpy 之矩陣運算. 使用 numpy 定義一三角形 Import numpy as np Import math Tri = np.matrix (‘2,2,1; 6,2,1; 6,4,1’) 寫出一個將三角形逆時鐘旋轉特定角度 ( 如 math.pi /2) 的程式,並將結果印 出。. How to generate a random number. Import random Generate a random x, so that a<=x<=b: x= random.uniform ( a,b ).

chacha
Download Presentation

Problem 6 numpy 之矩陣運算

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Problem 6 numpy之矩陣運算 使用numpy定義一三角形 Import numpy as np Import math Tri = np.matrix(‘2,2,1; 6,2,1; 6,4,1’) 寫出一個將三角形逆時鐘旋轉特定角度(如math.pi/2)的程式,並將結果印出。

  2. How to generate a random number • Import random • Generate a random x, so that a<=x<=b: x=random.uniform(a,b)

More Related