We all feel that some rectangles are more pleasing to the eye than others. Many great artists, architects, and designers believe that those, whose length and width satisfy the following proportion, are the most beautiful rectangles:
You may wonder what type of rectangle this is and what the ratio of length to width might be. When starting to search for an answer, you may also find out that the statement in ordinary speech is a bit too long and/or too complicated to follow. However, this verbal statement can be easily written in algebraic form:
To further simplify the algebraic form (remember we want to find out the ratio?), we use a symbol ø (Greek letter phi) to represent the ratio of the length and the width "l / w". Thus, the above proportion will become the following equation:
| NUMBER THEORY (HISTORY) Greatest Common Divisor (GCD) The best GCD algorithm so far is Euclid's Algorithm intGCD( int m, int n) LCM (m,n) = (m * n) / GCD (m,n) Square Root Aproximation Recursive float SQRT_r(float n,float guess) float SQRT(float n) Caculating m power nRunning Time O( lg(n) ) Running Time O(n)
BASE CONVERSION Here is one good implementation for base conversion Implementation of Base Conversion |