def sum_sq_half

unified-nsga-iii@0.2.2.0 · problems.bend:250

import unified-nsga-iii@0.2.2.0/problems.bend as Problems
import Base

250def sum_sq_half(xs: List<&2, F32>) -> F32:
251  match xs:
252    case Nil{}:
253      0.0
254    case h <> t:
255      F32.add(F32.square(F32.sub(h, 0.5)), sum_sq_half(t))

Uses (5)

Used by (1)