def sq_n
import bend-collections-laws-math@1.0.0.0/src/math/f64.bend as F64import Base
import bend-collections-laws-math@1.0.0.0/src/math/u64.bend as W
import bend-collections-laws-math@1.0.0.0/src/math/w64.bend as X
487def sq_n(+e: Nat, +m: W.U64, odd: Bool) -> F64:
488 match odd:
489 case True{}:
490 sq_even(e, m)
491 case False{}:
492 sq_even(Nat.sub(e, 1n), X.add(m, m))
Uses (7)
Used by (10)
- bend-collections-laws-math@1.0.0.0/src/math/f64:sq_pos
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/f64sqc:sR_c
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/f64sqc:sqfin
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/f64sqc:sqn_c
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/f64sqc:sqn_f
- …