def sq_n
import bend-collections@1.0.0.0/src/math/f64.bend as F64import Base
import bend-collections@1.0.0.0/src/math/u64.bend as W
import bend-collections@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))