Beispiel #1
0
 static Codual Scaling(Codual x0, Codual x1)
 {
     for (int i = 0; i < 10; ++i)
     {
         x1 = x1 * 2 + x1 * x0;
     }
     //x1 = (x1 * 2 / x1);
     //x1 = x1 * (x1 * 2 / 4 + 1);
     return(x1);
 }
Beispiel #2
0
 static Codual SimplePoly3(Codual a, Codual b, Codual c) =>
 c * (a + b).Pow(2);
Beispiel #3
0
 static Codual SimplePoly2(Codual x, Codual y) =>
 (x ^ 2) * 3 - (y ^ 3) * 2;
Beispiel #4
0
 static Codual Sample(Codual x1, Codual x2) =>
 x1 * x2 - x2.SinDeg();
Beispiel #5
0
 static Codual Func3(Codual x, Codual y) =>
 (x ^ 3) + y * x * 2;
Beispiel #6
0
 static Codual Func2(Codual x, Codual y) =>
 (x ^ 3) + y * 2;