Skip to content

習題 6 -- JavaScript 練習 2 #13

@ccckmit

Description

@ccckmit
  1. 寫出向量相加 vadd(a,b) 的函數並測試
  2. 寫出向量內積 vdot(a,b) 的函數並測試
  3. 寫出矩陣相加 madd(a,b) 的函數並測試
  4. 寫出矩陣相乘 mmul(a,b) 的函數並測試
  5. 寫出 repeat(f,n) 函數,將 f 呼叫 n 次的結果放入一個陣列後傳回
    • 然後用 repeat(Math.random, 10) 傳回 10 個隨機數

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions