Skip to content

Commit

Permalink
adjust exp(x) cut off
Browse files Browse the repository at this point in the history
  • Loading branch information
jaelafield committed Nov 12, 2024
1 parent 76b6ac4 commit 94ecf7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/herbie/ExpressionExport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const ExpressionExport: React.FC<ExpressionExportProps> = (expressionId) => {
const numVars = fpcorejs.getVarnamesMathJS(expressionText.text).length;
const pre = response.result.split('=')[0];
setExportCode({language: response.language,
result: response.result.slice(pre + 1)});
result: response.result.slice(pre.length + 1)});
} else {
setExportCode(response);
}
Expand Down

0 comments on commit 94ecf7a

Please sign in to comment.