| Summary: | KmPlot recognizes no syntax error, but draws another function, when the expression ends with a binary operator | ||
|---|---|---|---|
| Product: | [Applications] kmplot | Reporter: | Laura David Hurka <laura.stern> |
| Component: | general | Assignee: | Christoph Feck <cfeck> |
| Status: | CONFIRMED --- | ||
| Severity: | normal | CC: | yurchor |
| Priority: | NOR | ||
| Version First Reported In: | 1.3.0 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Laura David Hurka
2020-04-27 15:34:18 UTC
There is no purpose, it is a bug. "x+" is evaluated as "x+pi". So we need to fix it! :) Where can I go to fix it? (When I have my development system back, which will take some weeks. :( ) I did some more tests, and can say that x+ is usually not x+pi. It appears that binary operators at the end just affect the last evaluated expression, ignoring any precedence. Examples: x+ is x+a, where a appears to be the last evaluated expression of the previous function, or pi for the first function. x²+ and (x²) are x²+2 (x³)+ is x³+3 e²+ is e²+2 x³/ is x³/3 0²+ is 2 etc. That's not Mathematica that can translate any possible gibberish, imho. Anyway, should be relatively easy to fix in parser.cpp. For the future triagers, the reporter wants a complete parser, not a workaround in fixExpression (parser.cpp) function: https://phabricator.kde.org/D29418 |