public static double GetExactSolution double double retValue 0666667 M

1
2
3
4
5
6
7
8
public static double GetExactSolution(double x) {
//double retValue = 0.0666667 * Math.Pow(Math.E, -2.0 * x) +
// 0.363254 * Math.Pow(Math.E, x) -
// 0.000260118 * Math.Pow(Math.E, 3.0 * x);
double retValue = 2 * (Math.Pow(x, 5) + 5 * Math.Pow(x, 4) + 10 * Math.Pow(x, 3) - 30.25 * x + 19.1993 * Math.Pow(Math.E, x) * Math.Sin(x) + 49.022 * Math.Pow(Math.E, x) * Math.Cos(x) - 30.25);
return retValue;
}