=== Prod === Ogólny algorytm iloczynu jest podany np. tu [[https://en.wikipedia.org/wiki/Product_rule]]. Zauważmy, że stosuje się to także do funkcji stałych (w projekcie ''Constant''): $$\frac{d}{dx}(2\cdot f(x))=\frac{d}{dx}(2)\cdot f(x) + 2\cdot \frac{d}{dx}f(x)$$ $$=0\cdot f(x) + 2\cdot \frac{d}{dx} f(x)$$ Stąd najprostsza implementacja ma postać: Node diffVanilla(Variable var) { Sum r = new Sum(); for(int i=0;i