欧美在线专区-欧美在线伊人-欧美在线一区二区三区欧美-欧美在线一区二区三区-pornodoxxx中国妞-pornodoldoo欧美另类

position>home>Softball

代做MA2552、代寫Matlab編程設計

MA2552 Introduction to Computing (DLI) 2023/24

代做MA2552、代寫Matlab編程設計

代做代寫

Computational Project

代做代寫

Aims and Intended Learning Outcomes

代做代寫

The aims of the Project are to describe methods for solving given computational problems, develop and test Matlab code implementing the methods, and demonstrate application

代做代寫

of the code to solving a specific computational problem. In this Project, you be will be required to demonstrate

代做代寫

• ability to investigate a topic through guided independent research, using resources

代做代寫

available on the internet and/or in the library;

代做代寫

• understanding of the researched material;

代做代寫

• implementation of the described methods in Matlab;

代做代寫

• use of the implemented methods on test examples;

代做代寫

• ability to present the studied topic and your computations in a written Project Report.

代做代寫

Plagiarism and Declaration

代做代寫

• This report should be your independent work. You should not seek help from other

代做代寫

students or provide such help to other students. All sources you used in preparing your

代做代寫

report should be listed in the References section at the end of your report and referred

代做代寫

to as necessary throughout the report.

代做代寫

• Your Project Report must contain the following Declaration (after the title page):

代做代寫

DECLARATION

代做代寫

All sentences or passages quoted in this Project Report from other people’s work have

代做代寫

been specifically acknowledged by clear and specific cross referencing to author, work and

代做代寫

page(s), or website link. I understand that failure to do so amounts to plagiarism and

代做代寫

will be considered grounds for failure in this module and the degree as a whole.

代做代寫

Name:

代做代寫

Signed: (name, if submitted electronically)

代做代寫

Date:

代做代寫

Project Report

代做代寫

The report should be about 6-8 pages long, written in Word or Latex. Equations should

代做代寫

be properly formatted and cross-referenced, if necessary. All the code should be included in

代做代寫

the report. Copy and paste from MATLAB Editor or Command Window and choose ‘Courier

代做代寫

New’ or another fixed-width font. The Report should be submitted via Blackboard in a single

代做代寫

file (Word document or Adobe PDF) and contain answers to the following questions:

代做代寫

1

代做代寫

MA2552 Introduction to Computing (DLI) 2023/24

代做代寫

Part 0: Context

代做代寫

Let f(x) be a periodic function. The goal of this project is to implement a numerical method

代做代寫

for solving the following family of ordinary differential equations (O.D.E):

代做代寫

an

代做代寫

d

代做代寫

nu(x)

代做代寫

dxn

代做代寫

+ an−1

代做代寫

d

代做代寫

n−1u(x)

代做代寫

dxn−1

代做代寫

+ . . . + a0u(x) = f(x), (1)

代做代寫

where ak, k = 0, · · · , n, are real-valued constants. The differential equation is complemented

代做代寫

with periodic boundary conditions:

代做代寫

d

代做代寫

ku(−π)

代做代寫

dxk

代做代寫

=

代做代寫

d

代做代寫

ku(π)

代做代寫

dxk

代做代寫

for k = 0, · · · , n − 1.

代做代寫

We aim to solve this problem using a trigonometric function expansion.

代做代寫

Part 1: Basis of trigonometric functions

代做代寫

Let u(x) be a periodic function with period 2π. There exist coefficients α0, α1, α2, . . ., and

代做代寫

β1, β2, . . . such that

代做代寫

u(x) = X∞

代做代寫

k=0

代做代寫

αk cos(kx) +X∞

代做代寫

1

代做代寫

βk sin(kx).

代做代寫

The coefficients αk and βk can be found using the following orthogonality properties:

代做代寫

Z π

代做代寫

−π

代做代寫

cos(kx) sin(nx) dx = 0, for any k, n

代做代寫

Z π

代做代寫

−π

代做代寫

cos(kx) cos(nx) dx =

代做代寫

代做代寫



代做代寫



代做代寫

0 if k ̸= n

代做代寫

π if k = n ̸= 0

代做代寫

2π if k = n = 0.

代做代寫

Z π

代做代寫

−π

代做代寫

sin(kx) sin(nx) dx =

代做代寫

(

代做代寫

0 if k ̸= n

代做代寫

π if k = n ̸= 0.

代做代寫

1. Implement a function that takes as an input two function handles f and g, and an

代做代寫

array x, and outputs the integral

代做代寫

1

代做代寫

π

代做代寫

Z π

代做代寫

−π

代做代寫

f(x)g(x) dx,

代做代寫

using your own implementation of the Simpson’s rule scheme. Corroborate numerically

代做代寫

the orthogonality properties above for different values of k and n.

代做代寫

2. Show that

代做代寫

αk =

代做代寫

(

代做代寫

1

代做代寫

π

代做代寫

R π

代做代寫

−π

代做代寫

u(x) cos(kx) dx if k ̸= 0

代做代寫

1

代做代寫

代做代寫

R π

代做代寫

−π

代做代寫

u(x) dx if k = 0

代做代寫

βk =

代做代寫

1

代做代寫

π

代做代寫

Z π

代做代寫

π

代做代寫

u(x) sin(kx) dx.

代做代寫

2

代做代寫

MA2552 Introduction to Computing (DLI) 2023/24

代做代寫

3. Using question 1 and 2, write a function that given a function handle u and an integer

代做代寫

m, outputs the array [α0, α1 . . . , αm, β1, . . . , βm].

代做代寫

4. Write a function that given an array [α0, α1 . . . , αm, β1, . . . , βm], outputs (in the form

代做代寫

of an array) the truncated series

代做代寫

um(x) := Xm

代做代寫

k=0

代做代寫

αk cos(kx) +Xm

代做代寫

k=1

代做代寫

βk sin(kx), (2)

代做代寫

where x is a linspace array on the interval [−π, π].

代做代寫

5. Using the function from question 3, compute the truncated series um(x) of the following

代做代寫

functions:

代做代寫

• u(x) = sin3

代做代寫

(x)

代做代寫

• u(x) = |x|

代做代寫

• u(x) = (

代做代寫

x + π, for x ∈ [−π, 0]

代做代寫

x − π, for x ∈ [0, π]

代做代寫

,

代做代寫

and using question 4, plot u(x) and um(x) for different values of m.

代做代寫

6. Carry out a study of the error between u(x) and um(x) for ∥u(x)−um(x)∥p with p = 2

代做代寫

and then with p = ∞. What do you observe?

代做代寫

Part 2: Solving the O.D.E

代做代寫

Any given periodic function u(x) can be well approximated by its truncate series expansion (2) if m is large enough. Thus, to solve the ordinary differential equation (1)

代做代寫

one can approximate u(x) by um(x):

代做代寫

u(x) ≈

代做代寫

Xm

代做代寫

k=0

代做代寫

αk cos(kx) +Xm

代做代寫

k=1

代做代寫

βk sin(kx),

代做代寫

Since um(x) is completely determined by its coefficients [α0, α1 . . . , αm, β1, . . . , βm],

代做代寫

to solve (1) numerically, one could build a system of equations for determining these

代做代寫

coefficients.

代做代寫

7. Explain why under the above approximation, the boundary conditions of (1) are automatically satisfied.

代做代寫

8. We have that

代做代寫

dum(x)

代做代寫

dx =

代做代寫

Xm

代做代寫

k=0

代做代寫

γk cos(kx) +Xm

代做代寫

k=1

代做代寫

ηk sin(kx)

代做代寫

Write a function that takes as input the integer m, and outputs a square matrix D that

代做代寫

maps the coefficients [α0, . . . , αm, β1, . . . , βm] to the coefficients [γ0, . . . , γm, η1, . . . , ηm].

代做代寫

3

代做代寫

MA2552 Introduction to Computing (DLI) 2023/24

代做代寫

9. Write a function that given a function handler f and the constants ak, solves the

代做代寫

O.D.E. (1). Note that some systems might have an infinite number of solutions. In

代做代寫

that case your function should be able identify such cases.

代做代寫

10. u(x) = cos(sin(x)) is the exact solution for f(x) = sin(x) sin(sin(x))−cos(sin(x)) (cos2

代做代寫

(x) + 1),

代做代寫

with a2 = 1, a0 = −1 and ak = 0 otherwise. Plot the p = 2 error between your numerical solution and u(x) for m = 1, 2, . . .. Use a log-scale for the y-axis. At what rate

代做代寫

does your numerical solution converge to the exact solution?

代做代寫

11. Show your numerical solution for different f(x) and different ak of your choice.

代做代寫

請加QQ:99515681 或郵箱:99515681@qq.com   WX:codehelp

代做代寫

 

代做代寫

Popular articles

主站蜘蛛池模板: 日本高清免费不卡视频| 天天摸天天摸色综合舒服网 | 处处吻动漫高清在线观看| 久久久久久久综合狠狠综合 | 337p色噜噜人体大胆欧美| 美国式的禁忌19| 国产精华av午夜在线观看| 欧美人与牲动交xxxx| 大陆黄色a级片| 国产真乱全集mangent| 在线免费观看你懂的| 国产伦子沙发午休| 国产乱理伦片在线观看大陆| caopon在线| 欧美一级免费在线观看| 成人爽a毛片在线视频| 久久精品国产久精国产| 久久精品国产99精品国产2021| 免费大片av手机看片| 亚洲人成网亚洲欧洲无码| 韩国三级大全久久电影| 免费人成在线| 日韩高清欧美| 国产免费一区二区三区在线观看| 翁虹三级在线伦理电影| 美女让男人桶出水的网站| 青青热久免费精品视频精品| 午夜精品久久久久久久99热| 波多野结衣伦理视频| 夜恋全部国产精品视频| 欧美交换乱理伦片在线观看 | 乱人伦中文视频在线观看免费| 精品无人区一区二区三区| 午夜阳光电影在线观看| 国产四虎精品| 啊灬啊灬别停啊灬用力啊免费| 理论片国产| 中国一级特黄高清免费的大片中国一级黄色片 | 国产乱理伦片在线观看大陆| 四虎影视成人永久在线观看| t66y最新地址一地址二地址三|