Opened 6 years ago
Last modified 3 years ago
#2938 reviewing defect
The parser for symbolic expressions in infix form parses negative numbers and fractions strangly — at Version 2
Reported by: | gkronber | Owned by: | gkronber |
---|---|---|---|
Priority: | medium | Milestone: | HeuristicLab 3.3.17 |
Component: | Problems.DataAnalysis.Symbolic | Version: | trunk |
Keywords: | Cc: |
Description (last modified by gkronber)
Some examples:
- Input: -1.0*x + 2.0
- Expected:
(+ (* -1.0 x) 2.0)
- Output:
(+ (- (* 1.0 x)) 2.0)
- Input: exp(-1.0*x - 2.0)
- Output:
(exp (* -1.0 (+ (* 1.0 x) 2.0)))
- Expected:
(exp (- (* -1.0 x) 2.0))
- Input: 3/3+2/2+1/1
- Output:
((3 * 1/3) + (2 * 1/2) + (1 * 1/1))
Change History (2)
comment:1 Changed 6 years ago by gkronber
- Owner set to gkronber
- Status changed from new to accepted
comment:2 Changed 6 years ago by gkronber
- Description modified (diff)
- Summary changed from The parser for symbolic expressions in infix form parses negative numbers strangly to The parser for symbolic expressions in infix form parses negative numbers and fractions strangly
Note: See
TracTickets for help on using
tickets.