Tag: number theory
May 31, 2013
compiler, delphi, floating point, implementation, interpreter / compiler, math, object pascal, optimization, programming languages, technical, tricks, windows
In Delphi, you can use the keyword absolute to force the union variable. e.g. Two variables share the same memory location, which is good to do some tricky things, for example, …
It looks like it has been a while since last time I submitted code to codeforces. I almost forgot the fun of solving problems. Again, I choose solving easy …
April 16, 2013
algorithms, beginner, c #, code, code library, floating point, implementation, math, optimization, programming languages, tricks
Mathematical function log10can be quite time consuming. If it is not available, for some languages such as VBScript, you have to compute it base on the fact. and therefore, we …
The math constant e can be computed using the following series (also see this, this and this post): i.e. If we combine every two iterations, we will get something like, If …
December 30, 2012
algorithms, brute force, implementation, javascript, math, programming languages, python, string, tools / utilities, tricks, vbscript
In , the base 62 number conversion to base 10 is implemented. To extend the conversion to arbitrary bases, we can use base 10 as the intermediate base, i.e. …