Skip to content

Commit

Permalink
fix: fix numerical solve with zero units starting guess regression
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreminger committed Jan 9, 2025
1 parent 3caee93 commit 2bd9f13
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/parser/LatexToSympy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,9 @@ export class LatexToSympy extends LatexParserVisitor<string | Statement | UnitBl
} else {
sympyExpression = this.visitNumber_with_units(ctx.number_with_units());
guess = this.implicitParams.slice(-1)[0].si_value;
if (guess === "_zero_delayed_substitution") {
guess = "0";
}
}

const guessStatement: GuessAssignmentStatement = {
Expand Down

0 comments on commit 2bd9f13

Please sign in to comment.