Category: math
This is a possible interview question. Q: List three methods of checking whether any given integers are the power of 2. i.e. and compare the algorithm complexity and performance. …
July 16, 2012
algorithms, batch script, beginner, brute force, implementation, math, programming languages, technical, tricks, windows, windows command shell
Windows Batch File (*.bat, *.cmd) is probably the most well-known exectuable file formats because of its simplicity, i.e. each line corresponds to a command for shell to execute. This …
In and , the interesting equations are introduced to compute the math constant . Let’s review that the following equation: It can be also equivalent to the following: Compared …
In , mathematical constant is introduced. Below, a simple equation is presented to compute its value. , when . Therefore, is a infinity loopless irrational number. #!/usr/bin/env python from …
, the base of the natural logarithm (e.g. ) can be expressed as the following equation: The Euler’s formula involves , which is: The Euler’s Identity is the special …