Summation

程度★ 難度★★★

Kahan Summation Algorithm

http://en.wikipedia.org/wiki/Kahan_summation_algorithm

可以用來加總一連串大小差異很大的浮點數並保持精確。

fast square and cubic

n^2 = 1+3+5+7+9+...,畫成L形,最後形成正方形。

Multiplication

程度★ 難度★★

直式乘法

就是小學有教的直式乘法。這裡提供視覺化的直式乘法影片。

http://www.youtube.com/watch?v=aD0lp5pzHuM

Russian Peasant Multiplication

除了直式乘法以外,另一種兩數求乘積的方法,相當有趣。原理就跟快速次方運算是一樣的。

http://mathforum.org/dr/math/faq/faq.peasant.html

Factorial

程度★ 難度★★★

Binary Splitting

http://hi.baidu.com/qingmuxiaoyao/blog/item/40e56f34a795f33f5bb5f587.html

可以用來加速階乘和許多數值的運算。