MATH 4Q03/6Q03 Winter 2014
1
HOMEWORK #1
Due: January 22 (Wednesday) by 11:59pm
Instructions:
The assignment consists of two questions, worth 2 and 6 points.
Submit your assignment electronically (via Email) to the address
math4q03@math.mcmaster.ca; har
MATH 4Q03/6Q03 Winter 2014
1
HOMEWORK #4
Due: March 12 (Wednesday) by 11:59pm
Instructions:
The assignment consists of two questions, worth 4 points each.
Submit your assignment electronically (via Email) to the address
math4q03@math.mcmaster.ca; hardco
MATH 4Q03/6Q03 Winter 2014
1
HOMEWORK #3
Due: February 26 (Wednesday) by 11:59pm
Instructions:
The assignment consists of two questions, worth 4 points each.
Submit your assignment electronically (via Email) to the address
math4q03@math.mcmaster.ca; har
MATH 4Q03/6Q03 Winter 2014
1
HOMEWORK #2
Due: February 5 (Wednesday) by 11:59pm
Instructions:
The assignment consists of two questions, worth 4 points each.
Submit your assignment electronically (via Email) to the address
math4q03@math.mcmaster.ca; hard
MATH 4Q03/6Q03 Winter 2014
1
HOMEWORK #5
Due: March 26 (Wednesday) by 11:59pm
Instructions:
The assignment consists of two questions, worth 4 points each.
Submit your assignment electronically (via Email) to the address
math4q03@math.mcmaster.ca; hardco
Math4Q03 2014
MATLAB Code Example of Function FpointDi1
function FpointDi1 = FpointDi1(n,plot)
% calculating the numerical solution of
%
-laplacian operator of u = f in [0,1]x[0,1]
% 5point-star
% Dirichlet boundary conditions
% cartesian grid with elemen
Math4Q03 2014
MATLAB Code Example7, Igwt
function [x,w]=lgwt(N,a,b)
% lgwt.m
%
% This script is for computing definite integrals using Legendre-Gauss
% Quadrature. Computes the Legendre-Gauss nodes and weights on an interval
% [a,b] with truncation order
Math4Q03 2014
MATLAB Code Example3, Secant
function [xvect,xdif,fx,nit] = secant(x1,x0,nmax,fun,toll);
% SECANT Do the secant iteration to find the zeros of the given
% inline scalar function and its derivative.
% [XVEC,XDIF,FX,NIT] = SECANT(X1,X0,NMAX,FU
Math4Q03 2014
MATLAB Code Example2, Bisection Method
% Bisection method for root-finding
clear all; close all;
f=inline('x.^3-2*x-5','x'); % Define f as an inline function
eps = 1e-14; % define the tolerance (what happens if is too small?)
x1 = 2.0; x2 =