Changeset 16083 for branches/2937_SymReg_AnalyticalQuotient/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Converters
- Timestamp:
- 08/16/18 09:45:36 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2937_SymReg_AnalyticalQuotient/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Converters/TreeToAutoDiffTermConverter.cs
r15583 r16083 212 212 if (terms.Count == 1) return 1.0 / terms[0]; 213 213 else return terms.Aggregate((a, b) => new AutoDiff.Product(a, 1.0 / b)); 214 } 215 if(node.Symbol is AnalyticalQuotient) { 216 var x1 = ConvertToAutoDiff(node.GetSubtree(0)); 217 var x2 = ConvertToAutoDiff(node.GetSubtree(1)); 218 return x1 / (TermBuilder.Power(1 + x2 * x2, 0.5)); 214 219 } 215 220 if (node.Symbol is Logarithm) {
Note: See TracChangeset
for help on using the changeset viewer.