生活经验
生活感悟
兴趣爱好
娱乐休闲
主题
外卖卷:非常划算 扫码领劵 省点小钱钱
向量 $a$ 的长度写作: $||a||$
$$ len = \sqrt{x^2 + y^2} $$
function len(x, y) { return Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)) }
function len(...args) { return Math.sqrt([0, ...args].reduce((t, v) => t + Math.pow(v,2))) }
评论