Tag: math
July 11, 2012
algorithms, batch script, beginner, code, code library, implementation, linux, multithreading, programming languages, tricks
In , the implementation of a sleep-sort algorithm is presented via the Python code. This article will shortly presents the implementation in Linux BASH Shell Script, which demonstrates the …
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 …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/26/A The input range is small which means even the worst brute-force methods can pass the test. The straightforward implementation is . Defining a …