HELP ME PLEASE !!!!!
Posted: Sun May 15, 2022 8:51 am
HELP ME PLEASE !!!!!
MATLAB Grader Mason Wakeling CONTENTS Close Courses & Content LMS Integration Documentation & Support Depending on the order of derivative, when we use finite difference method we approximate MATLAB summative assessment dy dx Yi+1 - Yi-1 2h MATLAB Fundamentals - Math Expression and dy z Yi-1 – 2y; + Yi+1 MATLAB Fundamentals - Trig functions dx2 h2 You task is to define a function Finite DifferenceFormula that returns the above approximations depending on the order parameter. MATLAB Fundamentals - Variables and Data Types Your function has the following inputs ypre that represents yi-1 MATLAB Fundamentals - Cylinder Volume yi that represents Yi ynext that represents Yi+1 MATLAB Fundamentals - While loop step that represents h order that represents the order of derivative MATLAB Fundamentals - Sales Promotions The output should be the approximated derivative that depends on the order parameter. X MATLAB Fundamentals - Quality control If the order If the order is 1 it means that you need to return the approximation of dy, if the order is two you need to return the approximation of dạy is anything else you should output false. dx2
Function Reset MATLAB Documentation 1 function output = FiniteDifference Formula (ypre, yi, ynext, step, order) 2 3 end Code to call your function ® Reset ypre = 1.05; 2 yi = 1.2; 3 ynext = 1.37; 4 step = 0.1; 5 order = 1; 6 7 FiniteDifference Formula(ypre, yi, ynext, step, order)
Assessment: Run Pretest Test 1 (Pretest) Test 2 (Pretest) Test 3 (Pretest) Test 4 Test 5 Test 6
MATLAB Grader Mason Wakeling CONTENTS Close Courses & Content LMS Integration Documentation & Support Depending on the order of derivative, when we use finite difference method we approximate MATLAB summative assessment dy dx Yi+1 - Yi-1 2h MATLAB Fundamentals - Math Expression and dy z Yi-1 – 2y; + Yi+1 MATLAB Fundamentals - Trig functions dx2 h2 You task is to define a function Finite DifferenceFormula that returns the above approximations depending on the order parameter. MATLAB Fundamentals - Variables and Data Types Your function has the following inputs ypre that represents yi-1 MATLAB Fundamentals - Cylinder Volume yi that represents Yi ynext that represents Yi+1 MATLAB Fundamentals - While loop step that represents h order that represents the order of derivative MATLAB Fundamentals - Sales Promotions The output should be the approximated derivative that depends on the order parameter. X MATLAB Fundamentals - Quality control If the order If the order is 1 it means that you need to return the approximation of dy, if the order is two you need to return the approximation of dạy is anything else you should output false. dx2
Function Reset MATLAB Documentation 1 function output = FiniteDifference Formula (ypre, yi, ynext, step, order) 2 3 end Code to call your function ® Reset ypre = 1.05; 2 yi = 1.2; 3 ynext = 1.37; 4 step = 0.1; 5 order = 1; 6 7 FiniteDifference Formula(ypre, yi, ynext, step, order)
Assessment: Run Pretest Test 1 (Pretest) Test 2 (Pretest) Test 3 (Pretest) Test 4 Test 5 Test 6