+
Basis Polynomial L{step.termIndex}(x)
+
+ General form: L{step.termIndex}(x) = ∏k≠{step.termIndex}
+
+ (x - xk) / (x{step.termIndex} - xk)
+
+
+
+ Actual L{step.termIndex}(x) =
+
+
+
+ =
+
+
+
+
+ {/* Section 2: Evaluation */}
+
+
Evaluating L{step.termIndex}(x) at x = {result.interpolationPoint?.toString()}
+
+ L{step.termIndex}({result.interpolationPoint?.toString()}) =
+
+
+
+ =
+
+ = {step.basisPolynomialValueAtX.toFixed(6)}
+
+
+
+ {/* Section 3: Term Contribution */}
+
+
Term Contribution: y{step.termIndex} · L{step.termIndex}({result.interpolationPoint?.toString()})
+ { form.getValues("dataPoints").length > 1 && (step.basisNumeratorSymbolic !== "1" || step.basisDenominatorSymbolic !== "1" || step.basisDenominatorValue !== 1.0) &&
+
+ Symbolic Term{step.termIndex} =
+ {step.yValue.toFixed(4)} · ({step.basisNumeratorSymbolic || "1"})
+ }
+ denominator={step.basisDenominatorValue.toFixed(6)}
+ />
+
+ }
+ { (form.getValues("dataPoints").length === 1 || (step.basisNumeratorSymbolic === "1" && step.basisDenominatorSymbolic ==="1" && step.basisDenominatorValue === 1.0)) &&
+
+ Symbolic Term{step.termIndex} = {step.yValue.toFixed(4)}
+
+ }
+
+
+ Numerical Term{step.termIndex} = {step.yValue.toFixed(4)} · {step.basisPolynomialValueAtX.toFixed(6)}
+
+
+ = {step.termValueAtX.toFixed(6)}
+
+
+