Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/16/10 09:54:22 (14 years ago)
Author:
gkronber
Message:

Added better support for simplification of fractions and products and cleaned code a little bit. #1026

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/VariableTreeNode.cs

    r4068 r4220  
    2121
    2222using HeuristicLab.Core;
     23using HeuristicLab.Common;
    2324using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    2425using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     
    8081
    8182    public override string ToString() {
    82       return weight.ToString("E4") + " " + variableName;
     83      if (weight.IsAlmost(1.0)) return variableName;
     84      else return weight.ToString("E4") + " " + variableName;
    8385    }
    8486  }
Note: See TracChangeset for help on using the changeset viewer.