Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
16
Task/Modular-inverse/Bracmat/modular-inverse.bracmat
Normal file
16
Task/Modular-inverse/Bracmat/modular-inverse.bracmat
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
( ( mod-inv
|
||||
= a b b0 x0 x1 q
|
||||
. !arg:(?a.?b)
|
||||
& ( !b:1
|
||||
| (!b.0.1):(?b0.?x0.?x1)
|
||||
& whl
|
||||
' ( !a:>1
|
||||
& div$(!a.!b):?q
|
||||
& (!b.mod$(!a.!b)):(?a.?b)
|
||||
& (!x1+-1*!q*!x0.!x0):(?x0.?x1)
|
||||
)
|
||||
& (!x:>0|!x1+!b0)
|
||||
)
|
||||
)
|
||||
& out$(mod-inv$(42.2017))
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue