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