Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need Python code only ..... No, any MATLAB code 3 Assignment Tasks 3.1 Ordinary Differential Equations If you are using You are required to

I need Python code only ..... No, any MATLAB code

image text in transcribed

image text in transcribed

image text in transcribed

3 Assignment Tasks 3.1 Ordinary Differential Equations If you are using You are required to implement four one-step-methods in fully annotated MATLAB/ Octave or Python functions. If you are to submit your work using MATLAB/Octave you should submit the codes detailed in Section 3.1.1 and refer to Section 3.1.2 if you are using Python. 1 EG6160 Computer Modelling and Techniques 2020/2021 Coursework Portfolio 1 3.1.1 MATLAB/Octave If you are using MATLAB/Octave, you are required to submit the following functions with the specified declarations of function names, input and output parameters. Method Function Declaration Euler function y = euler ( f, yo, t) 2nd Order Taylor function y = Taylor2(f, fp, yo, t) 4th Order Taylor function y = Taylor4(f, fp, fpp. fppp, yo, t) Runge-Kutta function y = RungeKutta (f, yo, t) Where t is the time array, yo boundary condition at to. f is the differential equation to be integrated; fp, fpp, and fppp are the first second and third derivatives of fp, respectively. 3.1.2 Python If you are using Python, you are required to submit a Python module named EG6160.py, which contains the definitions of the following methods. Method Function Declaration Euler def euler( f, yo, t):... 2nd Order Taylor def Taylor2(f, fp, yo, t): ... 4th Order Taylor def Taylor4(f, fp, fpp, fppp, yo, t): Runge-Kutta def RungeKutta (f, yo, t): Where t is the time array, yo boundary condition at to, f is the differential equation to be integrated; fp. fpp, and fppp are the first, second and third derivatives of fp, respectively. Note: Any deviation from the declaration of the function or definition will result in zero marks being awarded for the corresponding part of the assignment. 3.1.3 Verification Use the MATLAB/Octave functions or Python definitions you implemented to obtain the ap- proximate values of the solutions of the following ordinary differential equations at points as listed in Table 1. 1. y(t) = sin(t). 0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions