Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7653


Ignore:
Timestamp:
03/22/12 13:23:33 (11 years ago)
Author:
gkronber
Message:

#1801: fixed bug in MATLAB formatter for subtraction operators

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Formatters/SymbolicDataAnalysisExpressionMATLABFormatter.cs

    r7630 r7653  
    212212        stringBuilder.Append(")");
    213213      } else if (symbol is Subtraction) {
     214        stringBuilder.Append("(");
    214215        if (node.SubtreeCount == 1) {
    215           stringBuilder.Append("-1*");
     216          stringBuilder.Append("-");
    216217          stringBuilder.Append(FormatRecursively(node.GetSubtree(0)));
    217218        } else {
     
    222223          }
    223224        }
     225        stringBuilder.Append(")");
    224226      } else if (symbol is Tangent) {
    225227        stringBuilder.Append("tan(");
Note: See TracChangeset for help on using the changeset viewer.