Exemplo n.º 1
0
 public static Derivable32 Mul(Derivable32 a, Derivable32 b)
 => new Derivable32(a.Value * b.Value, a.Derivate * b.Value + a.Value * b.Derivate);
Exemplo n.º 2
0
 public static Derivable32 Div(Derivable32 a, Derivable32 b)
 => new Derivable32(a.Value / b.Value, (a.Derivate * b.Value - a.Value * b.Derivate) / (b.Value * b.Value));
Exemplo n.º 3
0
 public static Derivable32 Sub(Derivable32 left, Derivable32 right)
 => new Derivable32(left.Value - right.Value, left.Derivate - right.Derivate);