public static double probabilisticSumN(Cons form) {
    switch (form.length()) {
      case 0: 
        return (0.0);
      case 1: 
        return (((FloatWrapper)(form.value)).wrapperValue);
      default:
        { double sum = Logic.probabilisticSumN(form.rest);

          return (((FloatWrapper)(form.value)).wrapperValue + sum + (0 - (((FloatWrapper)(form.value)).wrapperValue * sum)));
        }
    }
  }