Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
|
|
@ -0,0 +1,18 @@
|
|||
!YS-v0
|
||||
|
||||
defn main(b):
|
||||
each n range(10):
|
||||
say:
|
||||
format '%.6f':
|
||||
vdc: n b
|
||||
|
||||
defn vdc(n b):
|
||||
loop n n, d 1, vdc 0.0:
|
||||
if n > 0:
|
||||
then:
|
||||
d *=: b
|
||||
r =: n % b
|
||||
n .=: quot(b)
|
||||
vdc +=: r / d
|
||||
recur: n, d, vdc
|
||||
else: vdc
|
||||
Loading…
Add table
Add a link
Reference in a new issue