Estimate the value of pi using Maclaurin series (in MATLAB)
This is how it’s supposed to start:
function [pi_estimate, error_absolute] = CL3_Maclaurin(N)
%% Input
% N: maximum value of n (refer to computer lab slides)
%
%% Output
% pi_estimate result of Maclaurin series expansion
% error_absolute error made by the estimate (absolute value)
%% Write your code here.