This document contains code for iterative calculations, differentiation, integration, and partial derivatives. The iterative calculations code defines an initial value of 1 and calculates successive values of 1/n up to 20 iterations or until the difference between successive values is less than 0.1. It outputs the final value of x and the number of iterations required to converge. The differentiation and integration section contains code to take the derivative and second derivative of an expression, and to calculate integrals of expressions with respect to variables between limits.
This document contains code for iterative calculations, differentiation, integration, and partial derivatives. The iterative calculations code defines an initial value of 1 and calculates successive values of 1/n up to 20 iterations or until the difference between successive values is less than 0.1. It outputs the final value of x and the number of iterations required to converge. The differentiation and integration section contains code to take the derivative and second derivative of an expression, and to calculate integrals of expressions with respect to variables between limits.