Write a C++ code to generates an array of N_points values for a sine function f(x) = sin(x) and the derivative of f(x).
Code Breakdown: This C++ code generates an array of N_points values for a sine function f(x) = sin(x) and its derivative f'(x). The program then prints out the N_points values of angle, f(x), f'(x), and cos(x). Here is a breakdown of the code: #include<iostream> #include<cmath> using namespace std; #define N_points 300 int main(){ …