9/27/2006

Problem #01: 林翊展

題旨:matlab用於算數的基本操作

QUESTION 1:

>> 200*(20/60)/0.101972 %拉力(kg)*速度(m/s),換算成KW

ans =

653.7742

THE POWER IS 653.7742KW

QUESTION 2:

>> I=110/(1+20+200), %電流=電壓/電阻

I =

0.4977

>> P=110*I, %功率=電壓*電流

P =

54.7511

THE CURRENT IS 0.4977A , THE POWER IS 54.7511W

QUESTION 3:

>> m=650;n=428;o=282;s=(m+n+o)/2;
>> A=(s*(s-m)*(s-n)*(s-o))^(1/2) %海龍公式

A =

4.5233e+004

the area of triangle is 4.5233e+004 平方公分

QUESTION 4:

>> hog=(52000+84300-25000)/600

hog =

185.5000

it can raise 185 hogs.

QUESTION 5:

>> L=4;H=0.9;Q=3.33*[L-0.2*H]^(3/2)

Q =

24.8622

the flow rate is 24.8622 立方呎/秒

討論:
很容易忘記加乘號(*),matlab會以紅字提示格式錯誤的輸入要求,並標出錯誤點.

沒有留言: