Julia dual numbers
1. Implement a function f1(x) that computes the derivative of sin(x) using dual numbers. Verify that the result obtained using dual numbers is consistent with the analytical derivative of sin(x); 2. Implement a function f2(x, y) that computes the partial derivatives of x^2 + y^2 with respect to x and y using dual numbers. Verify […]
Julia dual numbers Read More »