numerical-analysis code snippets in matlab

briefly explain why the truncation error tends to decrease as the roundoff error increases (or vice versa). in matlab
calculate an integral using chebyshev polynomials in matlab
calculate the gradient of an image in matlab in matlab
central difference approximation to the first derivative of a function with increasingly smaller values of h in matlab
complete the matlab function that numerically solves the above system of differential equations. initially p and h are zero whereas r0 = ξ·γ0 is the initial value for r. in matlab
compute the rank of a matrix in matlab
consider the floating point system the smallest positive, normalized element (ε0 ) in matlab
consider the floating point system: f=[a=2,k−=−6,k+=6,t=4]the distance between 1 and its right neighbour (ε1 ) is: in matlab
contour function to show temperature on a 2d plate at 0, 1, 2, 5, 10, 100 seconds for discretised pde with jacobi solver. implicit euler for time and central differencing for space. using pointers in matlab
create a multigrid solver for poissons equation in matlab
estimate f’(x) at xi =𝟏, using both forward and centered finite difference in matlab
f = @(x) exp(x); % define exponential function xi = 1; df = @(x) exp(x); % derivative of exponential is itself fprime_true = df(xi); % evaluate derivative at xi=1 disp(fprime_true) in matlab
fsolve in matlab
laplace inversion and gauss-chebychev quadrature integration in matlab
quadrature differentiation in matlab
suppose f(x) = cos(x), and we want to estimate f’(x) at xi=𝝅/2, (so f(xi )=0) using centered finite difference. what is the true value of f’(xi ) show the code for the true value of f’(xi ) as well? in matlab
the square root of 5 is one of the solutions to the equation x^2-5=0. using the nr method, write a script that computes the square root of 5 and check that your results are correct. in matlab
three properties of numerical analysis in matlab
use the secant method to determine resting membrane potential (e m) for j+ = 0.9 mm/min to an error tolerance of tol and an initial guess of x1se and x2se in the ghk equation in matlab in matlab
write a script to solve the linear system of equations using gauss seidel interation solver in matlab
write code to set convergence criteria jacobian in matlab

gistlibby LogSnag