Opened 3 months ago

Last modified 2 months ago

#3001 readytorelease defect

The excel formatter produces incorrect output for divisions (1/1*x)

Reported by: gkronber Owned by: gkronber
Priority: medium Milestone: HeuristicLab 3.3.16
Component: Problems.DataAnalysis.Symbolic Version: trunk
Keywords: Cc:

Description

How to reproduce

 var t = parser.Parse("1/x");
 var formatter = new SymbolicDataAnalysisExpressionExcelFormatter();
 Console.WriteLine(formatter.Format(t));

Output: =1*1/1*$A1

Expected output =1*1/(1*$A1)

Attachments (1)

Test Excel Formatter.hl (1.4 KB) - added by bburlacu 2 months ago.
Script verifying the formatter

Download all attachments as: .zip

Change History (4)

comment:1 Changed 3 months ago by gkronber

  • Owner set to gkronber
  • Status changed from new to accepted

comment:2 Changed 3 months ago by gkronber

  • Owner changed from gkronber to bburlacu
  • Status changed from accepted to reviewing
  • Version changed from 3.3.15 to trunk

r16764: fixed a bug in the Excel formatter for 1/x (division with a single argument)

Changed 2 months ago by bburlacu

Script verifying the formatter

comment:3 Changed 2 months ago by bburlacu

  • Owner changed from bburlacu to gkronber
  • Status changed from reviewing to readytorelease

r16868: Fix bug formatting the Average symbol. Added quick test in attached file Test Excel Formatter.hl

Note: See TracTickets for help on using tickets.