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.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
88 views1 page
Matlab Test PDF
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.