
Math
screaming
这个作者很懒,什么都没留下…
展开
-
Triangle inequality
Triangle inequalityFrom Wikipedia, the free encyclopediaThis article is about the basic inequality z ≤ x + y. For other inequalities associated with triangles, see List of triangle i转载 2016-05-24 22:10:57 · 3084 阅读 · 0 评论 -
Common Multiple and Least Common Multiple(LCM)
A multiple of two or more numbers.A common multiple is a number that is a multiple of two or more numbers. The common multiples of 3 and 4 are 0, 12, 24, .... The least common multiple (LCM)转载 2016-04-24 12:53:51 · 424 阅读 · 0 评论 -
Greatest Common Divisor (GCD) - Euclidean algorithm
The Euclidean algorithm calculates the greatest common divisor (GCD) of two natural numbers a and b. The greatest common divisor g is the largest natural number that divides both a and b without lea转载 2016-04-24 12:54:28 · 1567 阅读 · 0 评论 -
How do you design a rand7 function
How do you design a rand7 function using a rand5 function?My solution is:def rand7(): n = rand5() + rand5() + rand5() + rand5() + rand5() + rand5() + rand5() + rand5()转载 2016-11-12 23:11:17 · 521 阅读 · 0 评论