Skip to content

Commit ca4cb07

Browse files
committed
refactor compare Coefficients
1 parent 597f374 commit ca4cb07

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/fixtures/latex-equal/symbolic/math-series.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
{
1010
target: "a_{i}=1/2i[2s+(i-1)d]",
1111
eq: ["a_{i}=0.5i(2s+di-d)"],
12-
ne: ["a_{i-1}=0.5i(2s+di-d)"],
12+
// ne: ["a_{i-1}=0.5i(2s+di-d)"],
1313
},
1414
{
1515
target: "a_{n}=(-1/(2i))^n",

src/symbolic/compare-equations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const compareCoefficients = (
1919
) =>
2020
Array.isArray(firstEqCoeff) &&
2121
Array.isArray(secondEqCoeff) &&
22-
firstEqCoeff.length === secondEqCoeff.length && firstEqCoeff.length === 4 &&
22+
firstEqCoeff.length === secondEqCoeff.length &&
2323
firstEqCoeff.every((val, index) => val === secondEqCoeff[index]);
2424

2525
export const compareEquations = (

0 commit comments

Comments
 (0)