Changeset 10790
- Timestamp:
- 04/24/14 09:49:16 (11 years ago)
- Location:
- trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4/SymbolicDataAnalysisExpressionTreeInterpreterTest.cs
r9956 r10790 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Diagnostics;25 24 using System.Globalization; 26 25 using System.Linq; 27 using System.Linq.Expressions;28 26 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 29 27 using HeuristicLab.Random; … … 319 317 Evaluate(interpreter, ds, "(and (log -1.0) 1.0)", 0, -1.0); // (and NaN 1.0) 320 318 321 322 319 // OR 323 320 Evaluate(interpreter, ds, "(or -1.0 -2.0)", 0, -1.0); … … 330 327 Evaluate(interpreter, ds, "(or (log -1.0))", 0, -1.0); // (or NaN) 331 328 Evaluate(interpreter, ds, "(or (log -1.0) 1.0)", 0, -1.0); // (or NaN 1.0) 329 330 // XOR 331 Evaluate(interpreter, ds, "(xor -1.0 -2.0)", 0, -1.0); 332 Evaluate(interpreter, ds, "(xor -1.0 2.0)", 0, 1.0); 333 Evaluate(interpreter, ds, "(xor 1.0 -2.0)", 0, 1.0); 334 Evaluate(interpreter, ds, "(xor 1.0 2.0)", 0, -1.0); 335 Evaluate(interpreter, ds, "(xor 0.0 0.0)", 0, -1.0); 336 Evaluate(interpreter, ds, "(xor -1.0 -2.0 -3.0)", 0, -1.0); 337 Evaluate(interpreter, ds, "(xor -1.0 -2.0 3.0)", 0, 1.0); 338 Evaluate(interpreter, ds, "(xor -1.0 2.0 3.0)", 0, -1.0); 339 Evaluate(interpreter, ds, "(xor 1.0 2.0 3.0)", 0, 1.0); 340 Evaluate(interpreter, ds, "(xor (log -1.0))", 0, -1.0); 341 Evaluate(interpreter, ds, "(xor (log -1.0) 1.0)", 0, 1.0); 332 342 333 343 // sin, cos, tan -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4/SymbolicExpressionImporter.cs
r9785 r10790 70 70 {"OR", new Or()}, 71 71 {"NOT", new Not()}, 72 {"XOR", new Xor()}, 72 73 {"DIFF", new Derivative()}, 73 74 {"PROG", new ProgramRootSymbol()},
Note: See TracChangeset
for help on using the changeset viewer.