Numerical Differentiation in C++: Calculate Derivatives Using the Forward Difference Method