Exemplo n.º 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);
 }
Exemplo n.º 2
0
 static Codual SimplePoly3(Codual a, Codual b, Codual c) =>
 c * (a + b).Pow(2);
Exemplo n.º 3
0
 static Codual SimplePoly2(Codual x, Codual y) =>
 (x ^ 2) * 3 - (y ^ 3) * 2;
Exemplo n.º 4
0
 static Codual Sample(Codual x1, Codual x2) =>
 x1 * x2 - x2.SinDeg();
Exemplo n.º 5
0
 static Codual Func3(Codual x, Codual y) =>
 (x ^ 3) + y * x * 2;
Exemplo n.º 6
0
 static Codual Func2(Codual x, Codual y) =>
 (x ^ 3) + y * 2;