Truely Tail-Recursive modInverse() in Prolog

后端 未结 0 997
旧时难觅i
旧时难觅i 2020-12-11 04:56

Rosetta code delivers me the following code snippet for modinv/3. It does calculate extended GCD via egcd/4 and then derives from it modinv/3:

egcd(_, 0, 1, 0         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题