Question: (Please solve using C++ language) Please Solve both Part A and Part B Part A Numerical Differentiation/ Integration a) write an application to calculate the
(Please solve using C++ language)

Please Solve both Part A and Part B Part A Numerical Differentiation/ Integration a) write an application to calculate the value of f(x)-sin(x) at x=45 degrees based on the Maclaurin series. In order to calculate the derivatives of this function use "Forward Difference" method with step size of 1 degree. b) Write an application to calculate the value of s sinx) using the Trapezoid:al Rule with step size of 1 degree. Part B Monte Carlo integration 1 14 0 1+r2 Monte Carlo integration is used to calculate the integral of 1er 1-14-where ri are random numbers between 0 and 1. Use 5 or 10 random numbers. dr, which thus is 1+r a) Write a program and use Lehmer's Algorithm for random number generation as the best. b) Determine the error using standard deviation concept Please Solve both Part A and Part B Part A Numerical Differentiation/ Integration a) write an application to calculate the value of f(x)-sin(x) at x=45 degrees based on the Maclaurin series. In order to calculate the derivatives of this function use "Forward Difference" method with step size of 1 degree. b) Write an application to calculate the value of s sinx) using the Trapezoid:al Rule with step size of 1 degree. Part B Monte Carlo integration 1 14 0 1+r2 Monte Carlo integration is used to calculate the integral of 1er 1-14-where ri are random numbers between 0 and 1. Use 5 or 10 random numbers. dr, which thus is 1+r a) Write a program and use Lehmer's Algorithm for random number generation as the best. b) Determine the error using standard deviation concept
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
