5 ++ egcd !: :: schneier's egcd
8 =+ [c=(sun a) d=(sun b)]
9 =+ [u=[c=(sun 1) d=--0] v=[c=--0 d=(sun 1)]]
13 :: ?> ?& =(c (sum (pro (sun a) c.u) (pro (sun b) c.v)))
14 :: =(d (sum (pro (sun a) d.u) (pro (sun b) d.v)))
20 u [(dif d.u (pro q c.u)) c.u]
21 v [(dif d.v (pro q c.v)) c.v]
26Greatest common denominator
28 ~zod/try=> (egcd 20 15)
30 ~zod/try=> (egcd 24 16)
34 ~zod/try=> (egcd (shaf ~ %ham) (shaf ~ %sam))
36 u=59.983.396.314.566.203.239.184.568.129.921.874.787
37 v=38.716.650.351.034.402.960.165.718.823.532.275.722
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list