AppleScript名:ベクトルの長さを求める |
set vL to getVectorLength(5, 2) of me
–ベクトルの長さを求める on getVectorLength(a, b) return getSQR(a ^ 2 + b ^ 2) of me end getVectorLength –平方根を求める on getSQR(aNum) return (aNum ^ 0.5) end getSQR |
More from my site
(Visited 29 times, 1 visits today)