xEQ0_15 property Null safety

BranchingOperation xEQ0_15
final

Implementation

static final BranchingOperation xEQ0_15 = BranchingOperation(
    name: 'x==0',
    calc: (Model m) {
      if (m.x.asMatrix != null) {
        m.program.doNextIf(false);
      } else if (m.isComplexMode) {
        m.program.doNextIf(m.xC == Complex.zero);
      } else {
        m.program.doNextIf(m.xF == 0.0);
      }
    });