Jump to content

Benford's law: Difference between revisions

→‎{{header|ALGOL 68}}: Avoid line-wrap
(→‎{{header|ALGOL 68}}: Avoid line-wrap)
Line 376:
PROC compare to benford = ( []REAL actual )VOID:
FOR i TO 9 DO
print( ( "Benford: ", fixed( log( 1 + ( 1 / i ) ), -7, 3 ), " actual: ", fixed( actual[ i ], -7, 3 ), newline ) )
, " actual: ", fixed( actual[ i ], -7, 3 )
, newline
)
)
OD # compare to benford # ;
# generate 1000 fibonacci numbers #
Line 399 ⟶ 403:
Benford: 0.046 actual: 0.045
</pre>
 
=={{header|Arturo}}==
 
3,038

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.