March 2014 update
This commit is contained in:
parent
09687c4926
commit
a25938f123
1846 changed files with 21876 additions and 5203 deletions
|
|
@ -0,0 +1,13 @@
|
|||
SetFormat, FloatFast, 0.5
|
||||
for i, v in [2, 3, 4, 5, 6] {
|
||||
seq .= "Base " v ": "
|
||||
Loop, 10
|
||||
seq .= VanDerCorput(A_Index - 1, v) (A_Index = 10 ? "`n" : ", ")
|
||||
}
|
||||
MsgBox, % seq
|
||||
|
||||
VanDerCorput(n, b, r=0) {
|
||||
while n
|
||||
r += Mod(n, b) * b ** -A_Index, n := n // b
|
||||
return, r
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue