lnOp property Null safety

NormalOperation lnOp
final

Implementation

static final NormalOperation lnOp = NormalOperationShiftedArg.floatOnly(
    argShift: Operations.gShift,
    programListingArgName: 'g B',
    floatCalc: (Model m) {
      double x = m.xF;
      if (x <= 0) {
        throw CalculatorError(0);
      }
      m.resultXF = _checkResult(() => log(x), 0);
    },
    complexCalc: (Model m) {
      m.resultXC = _checkResultC(m.xC.ln, 0);
    },
    name: 'ln');