0% found this document useful (0 votes)
45 views

UTB Project

This document outlines the requirements for an in-course final project on numerical methods. Students will work in groups of 4 and present solutions to 3 practical problems involving numerical methods. For each problem, they will receive marks for describing the numerical method solution and derivation, as well as presenting the problem and MATLAB solution. Overall presentation marks will be divided among the three problems. The document provides examples of problems involving functional derivatives, numerical integration, and vector potentials that could be covered.

Uploaded by

Noor Assignments
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views

UTB Project

This document outlines the requirements for an in-course final project on numerical methods. Students will work in groups of 4 and present solutions to 3 practical problems involving numerical methods. For each problem, they will receive marks for describing the numerical method solution and derivation, as well as presenting the problem and MATLAB solution. Overall presentation marks will be divided among the three problems. The document provides examples of problems involving functional derivatives, numerical integration, and vector potentials that could be covered.

Uploaded by

Noor Assignments
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 5

__1st Tri, __2nd Tri, _X_3rd Tri, SY 2020-2021

ICPC (IN-COURSE FINAL PROJECT)


MATH505 – Numerical Methods

By group

4 members per group

Present three practical applications (problems) solvable by numerical methods

I. Differentiation (derivatives, forward difference, central, backward) problem C3 8 marks


II. Solution for the root C4 8 marks
III. Interpolation problem with and without MATLAB solution C5 8 marks
IV. Oral presentation of the problem – C8 6 marks, note this is divided equally among I,II,III

Prepared by : Reviewed by: Verified by: Approved by:

Dr. Belen T. Lumeran Dr. Noaman M. Noaman Dr. Beda T. Aleta


Dr. Arturo L. Tapas Jr. Department Head Associate Dean Dean
Course Coordinator &Member
Teachers
Date :18 July 2021 Date :18 July 2021 Date :18 July 2021 Date :18 July 2021
__1st Tri, __2nd Tri, _X_3rd Tri, SY 2020-2021
ICPC (IN-COURSE FINAL PROJECT)
MATH505 – Numerical Methods

Case 1 : functionalDerivative

APPLICATION1:

Functional Derivative with Respect to Single Function


Find the functional derivative of the functional  with respect to the
function y, where the integrand is .

Declare y(x) as a symbolic function and define f as the integrand of S. Use f and y as the
parameters of functionalDerivative.

Application2:
Functional Derivative with Respect to Two Functions
Find the functional derivative of the functional

 with respect to the functions u and v, where the integrand is

Declare u(x) and v(x) as symbolic functions, and define f as the integrand of S.

Specify a vector of symbolic functions [u v] as the second input argument in functionalDerivative.

G = functionalDerivative(f,[u v])
functionalDerivative returns a vector of symbolic functions containing the functional derivatives of
the integrand f with respect to u and v, respectively.
Prepared by : Reviewed by: Verified by: Approved by:

Dr. Belen T. Lumeran Dr. Noaman M. Noaman Dr. Beda T. Aleta


Dr. Arturo L. Tapas Jr. Department Head Associate Dean Dean
Course Coordinator &Member
Teachers
Date :18 July 2021 Date :18 July 2021 Date :18 July 2021 Date :18 July 2021
__1st Tri, __2nd Tri, _X_3rd Tri, SY 2020-2021
ICPC (IN-COURSE FINAL PROJECT)
MATH505 – Numerical Methods

Case 2 :

vpaintegral
Numerical integration using variable precision

Syntax

vpaintegral(f,a,b)
vpaintegral(f,x,a,b)
vpaintegral(___,Name,Value)

Description

vpaintegral(f,a,b) numerically approximates f from a to b. The default variable x in f is found by


symvar.

vpaintegral(f,[a b]) is equal to vpaintegral(f,a,b).

application 1 :

Numerically Integrate Symbolic Expression

Numerically integrate the symbolic expression x^2 from 1 to 2.

Code

syms x
vpaintegral(x^2, 1, 2)

ans =
2.33333

Numerically Integrate Symbolic Function

Numerically integrate the symbolic function y(x) = x2 from 1 to 2.

syms y(x)
Prepared by : Reviewed by: Verified by: Approved by:

Dr. Belen T. Lumeran Dr. Noaman M. Noaman Dr. Beda T. Aleta


Dr. Arturo L. Tapas Jr. Department Head Associate Dean Dean
Course Coordinator &Member
Teachers
Date :18 July 2021 Date :18 July 2021 Date :18 July 2021 Date :18 July 2021
__1st Tri, __2nd Tri, _X_3rd Tri, SY 2020-2021
ICPC (IN-COURSE FINAL PROJECT)
MATH505 – Numerical Methods

y(x) = x^2;
vpaintegral(y, 1, 2)

ans =
2.33333

Case3:’

vectorPotential

Description
vectorPotential(V,X) computes the vector potential of the vector field V with respect to the vector
X in Cartesian coordinates. The vector field V and the vector X are both three-dimensional.

APPlication1 :

Compute Vector Potential of Field


Compute the vector potential of this row vector field with respect to the vector [x, y, z]:

ans =
-(x*y^2*z)/2
-x^2*y*z
0

Compute the vector potential of this column vector field with respect to the vector [x, y, z]:

Prepared by : Reviewed by: Verified by: Approved by:

Dr. Belen T. Lumeran Dr. Noaman M. Noaman Dr. Beda T. Aleta


Dr. Arturo L. Tapas Jr. Department Head Associate Dean Dean
Course Coordinator &Member
Teachers
Date :18 July 2021 Date :18 July 2021 Date :18 July 2021 Date :18 July 2021
__1st Tri, __2nd Tri, _X_3rd Tri, SY 2020-2021
ICPC (IN-COURSE FINAL PROJECT)
MATH505 – Numerical Methods

A(x, y, z) =
z*(2*y^2 + 18) - (16*z^3)/3 + (16*x*y*(y^2 + 6*x))/3
2*y*z*(- y^2 + 2*x)
0
Applicatioon 2 :

Test if Vector Potential Exists for Field

To check whether the vector potential exists for a particular vector field, compute the divergence of
that vector field:

syms x y z
V = [x^2 2*y z];
divergence(V, [x y z])

ans =
2*x + 3

If the divergence is not equal to 0, the vector potential does not exist. In this
case, vectorPotential returns the vector with all three components equal to NaN:

vectorPotential(V, [x y z])

ans =
NaN
NaN
NaN

Prepared by : Reviewed by: Verified by: Approved by:

Dr. Belen T. Lumeran Dr. Noaman M. Noaman Dr. Beda T. Aleta


Dr. Arturo L. Tapas Jr. Department Head Associate Dean Dean
Course Coordinator &Member
Teachers
Date :18 July 2021 Date :18 July 2021 Date :18 July 2021 Date :18 July 2021

You might also like