logOp property Null safety
final
Implementation
static final NormalOperation logOp = NormalOperationShiftedArg.floatOnly(
programListingArgName: 'g C',
argShift: Operations.gShift,
floatCalc: (Model m) {
double x = m.xF;
if (x <= 0) {
throw CalculatorError(0);
}
m.resultXF = log(x) / ln10;
},
complexCalc: (Model m) {
m.resultXC = _checkResultC(m.xC.ln, 0) / const Complex(ln10, 0);
},
name: 'log');