diff --git a/src/sequences/Formula.ts b/src/sequences/Formula.ts index 31c515fe..e6bab02f 100644 --- a/src/sequences/Formula.ts +++ b/src/sequences/Formula.ts @@ -2,7 +2,7 @@ import {Cached} from './Cached' import {SequenceExportModule} from './SequenceInterface' import {math, MathFormula} from '@/shared/math' -import type {GenericParamDescription} from '@/shared/Paramable' +import type {ParamValues, GenericParamDescription} from '@/shared/Paramable' import {ParamType} from '@/shared/ParamType' /** md @@ -114,6 +114,11 @@ class Formula extends Cached(paramDesc) { this.name = formulaMark + this.formula.source } + assignParameters(realized?: ParamValues) { + this.nErrors = 0 + return super.assignParameters(realized) + } + calculate(n: bigint) { let result = 0 let resultType = ''