ccccourse / wp108b

網頁設計 -- 108 學年度下學期 (陳鍾誠的課程作業)
2 stars 43 forks source link

習題:陣列函數的練習 #5

Open ccckmit opened 4 years ago

ccckmit commented 4 years ago

請寫出下列函數與測試程式:

一維矩陣

  1. 請算出某陣列的平均值?
    • 範例: mean([1,2,3,4,5]) => 3
  2. 算出某陣列的標準差? (標準差為 (xi-x)^2 的總和)
    • 範例: sd([1,2,3,4,5]) = sqrt((2^2+1^2+0^2+1^2+2^2)/5) = sqrt(2)=1.414。
  3. 寫一個程式做因數分解。
    • 範例:factor(45) => [3, 3, 5]

二維矩陣

  1. 請寫一個函數計算兩矩陣相加?
    • 範例: add([[1,2],[3,4]], [[1,1],[1,1]]) => [[2,3], [4,5]]
  2. 請寫一個函數 neg(A) 傳回某矩陣 A 的負矩陣 -A。
    • 範例: neg([[1,2],[3,4]]) => [[-1,-2],[-3,-4]]
  3. 寫一個程式把矩陣轉置。
    • 範例:transpose([[1,2,3], [3,2,1]]) => [[1,3], [2,2], [3,1]]
FUYUHSUAN commented 4 years ago

資工一110810505傅于軒 HW5

ChiaYunn commented 4 years ago

110810535

SMH642800 commented 4 years ago

資工一110810530 謝孟澔 https://github.com/SMH642800/wp108b/tree/master/homework/javascript/homework%20(%235)

eggwu96007 commented 4 years ago

社工一110814315吳柏翰 https://github.com/eggwu96007/wp108b/tree/master/0424

kalen2019 commented 4 years ago

homework5

JesusDick commented 4 years ago

資工二 110710546 廖振鈞 https://github.com/JesusDick/wp108b/tree/master/homework/javascript/HWJavaSript

WWW-Jack commented 4 years ago

https://github.com/WWW-Jack/wp108b/tree/master/homework/js1 110810503資工一張凱証

NubletZ commented 4 years ago

110810538 資工一 魏美亞 Homework 5

cycyucheng1010 commented 4 years ago

110810504 資工一 陳昱誠 https://github.com/cycyucheng1010/wp108b/blob/master/homework/%E9%99%A3%E5%88%97%E5%87%BD%E6%95%B8%E7%9A%84%E7%B7%B4%E7%BF%92.js

KMC1911 commented 4 years ago

110710545 資工二 陳楷茗 一維矩陣 二維矩陣

kun68 commented 4 years ago

110610306 食品三 林坤毅 https://github.com/kun68/wp108b/tree/master/homework4

ZKX-0326 commented 4 years ago

110810502 資工一 陳彥翔 https://github.com/ZKX-0326/wp108b/tree/master/homework/Javascript/HW5

qweasd049564 commented 4 years ago

110810509 資工一 蘇乾羽 https://github.com/qweasd049564/wp108b/tree/master/homework/%E9%99%A3%E5%88%97%E5%87%BD%E6%95%B8

jifkavnb0205 commented 4 years ago

資工一 110810507 李安博 https://github.com/jifkavnb0205/wp108b/tree/master/javascript

owen4096 commented 4 years ago

資工一 110810515 劉彥廷 https://github.com/owen4096/wp108b/tree/master/homework/0424hw

nohano1l commented 4 years ago

資工一 110810529 張佑豪 HW5

weiian000 commented 4 years ago

國際一 110813110 李維晏 https://github.com/weiian000/wp108b/tree/master/homework/array1

07Nick-kciN21 commented 4 years ago

資工一110810518徐仁鴻 HW5

chenimim commented 4 years ago

hw5 110810526

victor0520 commented 4 years ago

資工一 110810532 汪建同 https://github.com/victor0520/wp108b/tree/master/homework/JavaScript/HW5

Chen-Chun commented 4 years ago

資工一 110810501 陳淳 hw5

zxc21949049 commented 4 years ago

https://github.com/zxc21949049/wp108b/tree/master/homework/H5 資工一 110810508 曾智暐

www-abcdefg commented 4 years ago

https://github.com/www-abcdefg/wp108b/tree/master/homework/JS1 資工一 110810534 柯泓吉

yuanxiii commented 4 years ago

https://github.com/yuanxiii/wp108b/tree/master/hw5 資工一110810512林元璽

xiaotsai commented 4 years ago

110710551 蔡宗樺 https://github.com/xiaotsai/wp108b/tree/master/hw5

mark456tung commented 4 years ago

資工一 110810547 董長茂 HW5

AIONLin commented 4 years ago

資工一 110810521 林妍汝

hung890202 commented 4 years ago

資工一110810533洪嘉駿 陣列練習