- Timestamp:
- 05/27/20 07:34:25 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/IntervalInterpreter.cs
r17537 r17562 234 234 break; 235 235 } 236 case OpCodes.Power: {237 result = Evaluate(instructions, ref instructionCounter, nodeIntervals);238 for (int i = 1; i < currentInstr.nArguments; i++) {239 var argumentInterval = Evaluate(instructions, ref instructionCounter, nodeIntervals);240 result = Interval.Power(result, argumentInterval);241 }242 break;243 }244 236 case OpCodes.Square: { 245 237 var argumentInterval = Evaluate(instructions, ref instructionCounter, nodeIntervals); 246 238 result = Interval.Square(argumentInterval); 247 break;248 }249 case OpCodes.Root: {250 result = Evaluate(instructions, ref instructionCounter, nodeIntervals);251 for (int i = 1; i < currentInstr.nArguments; i++) {252 var argumentInterval = Evaluate(instructions, ref instructionCounter, nodeIntervals);253 result = Interval.Root(result, argumentInterval);254 }255 239 break; 256 240 } … … 310 294 !(n.Symbol is Logarithm) && 311 295 !(n.Symbol is Exponential) && 312 !(n.Symbol is Power) &&313 296 !(n.Symbol is Square) && 314 !(n.Symbol is Root) &&315 297 !(n.Symbol is SquareRoot) && 316 298 !(n.Symbol is Cube) &&
Note: See TracChangeset
for help on using the changeset viewer.