solve using trapezoidal rule
Write a local function named integration to numerically integrate the tabulated values by using trapezoidal rule, if X and Y values are user input and difference between any two consecutive X values is same. Use the above local function to determine ∫ 𝑦 𝑑𝑥 from 0 to π by using following data. X= 0, π/6 ,π/3 ,π/2, 2π/3, 5π/6, π and Y= 0, 0.5 ,0.866, 1 ,0.866, 0.5, 0 .Validate the result by using appropriate built-in functionWrite a local function named integration to numerically integrate the tabulated values by using trapezoidal rule, if X and Y values are user input and difference between any two consecutive X values is same. Use the above local function to determine ∫ 𝑦 𝑑𝑥 from 0 to π by using following data. X= 0, π/6 ,π/3 ,π/2, 2π/3, 5π/6, π and Y= 0, 0.5 ,0.866, 1 ,0.866, 0.5, 0 .Validate the result by using appropriate built-in function Write a local function named integration to numerically integrate the tabulated values by using trapezoidal rule, if X and Y values are user input and difference between any two consecutive X values is same. Use the above local function to determine ∫ 𝑦 𝑑𝑥 from 0 to π by using following data. X= 0, π/6 ,π/3 ,π/2, 2π/3, 5π/6, π and Y= 0, 0.5 ,0.866, 1 ,0.866, 0.5, 0 .Validate the result by using appropriate built-in function optimization, trapezoidal rule MATLAB Answers — New Questions