Changeset 16593
- Timestamp:
- 02/07/19 10:24:33 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Interval.cs
r16592 r16593 234 234 235 235 public static Interval Square(Interval a) { 236 return Power(a, new Interval(2, 2)); 236 var values = new List<double> {Math.Pow(a.LowerBound, 2), Math.Pow(a.UpperBound, 2)}; 237 238 return new Interval(values.Min(), values.Max()); 237 239 } 238 240 239 241 public static Interval Cubic(Interval a) { 240 return Power(a, new Interval(3, 3)); 242 var values = new List<double> {Math.Pow(a.LowerBound, 3), Math.Pow(a.UpperBound, 3)}; 243 244 return new Interval(values.Min(), values.Max()); 241 245 } 242 246
Note: See TracChangeset
for help on using the changeset viewer.