Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,7 @@
|
|||
gen_dict =: (({. , #)/.~@:,@:(+/&>)@:{@:(# <@:>:@:i.)~ ; ^)&x:
|
||||
|
||||
beating_probability =: dyad define
|
||||
'C0 P0' =. gen_dict/ x
|
||||
'C1 P1' =. gen_dict/ y
|
||||
(C0 +/@:,@:(>/&:({."1) * */&:({:"1)) C1) % (P0 * P1)
|
||||
)
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
10 5 (;x:inv)@:beating_probability 7 6
|
||||
┌─────────────────────┬────────┐
|
||||
│3781171969r5882450000│0.642789│
|
||||
└─────────────────────┴────────┘
|
||||
4 9 (;x:inv)@:beating_probability 6 6
|
||||
┌─────────────────┬────────┐
|
||||
│48679795r84934656│0.573144│
|
||||
└─────────────────┴────────┘
|
||||
Loading…
Add table
Add a link
Reference in a new issue