Math, asked by ishuk1399, 9 months ago

Write a matlab progra to calculate the values of inbuilt defined trigonometric functions using series solution approach. Compare the results with inbuilt function

Answers

Answered by RvChaudharY50
24

Answer:

clear

clc

n = input('Enter number of iiterations (n): ' );

x = pi/3;

y = zeros(1,n);

for i = 1:n

y(i) = (-1)^i*x^(2*i+1)/factorial(2*i+1);

end

SINx = sum(y);

Similar questions