def iroot
import bend-collections-laws-math@1.0.0.0/src/math/natural.bend as Naturalimport Base
245def iroot(+n: Nat, +k: Nat) -> Result<&2, &2, MathError, Nat>:
246 match k:
247 case 0n:
248 Fail{Domain{}}
249 case 1n+ +kp:
250 Done{iroot_k(n, 1n+kp)}
Uses (4)
Used by (10)
- bend-collections-laws-math@1.0.0.0/spec/math/generic:Iroot.agrees
- bend-collections-laws-math@1.0.0.0/proofs/math/natural/proof:iroot_value
- bend-collections-laws-math@1.0.0.0/proofs/math/natural/roots:iroot_done
- bend-collections-laws-math@1.0.0.0/proofs/math/natural/roots:iroot_zero
- bend-collections-laws-math@1.0.0.0/spec/math/natural:Iroot.done
- …