Question: 1.2-a Computers can only add, subtract, multiply and divide. So, how do they calculate a function such as sin(x)? They convert the function to

1.2-a Computers can only add, subtract, multiply and divide. So, how do

1.2-a Computers can only add, subtract, multiply and divide. So, how do they calculate a function such as sin(x)? They convert the function to a polynomial using its Taylors Expansion. Remember, given a differential function f(x), its Taylor's polynomial approximation at x=h is: f" (h) f(x) = f(h) + f'(h)(x h) + - (xh) + ... 2! Use the MATLAB function taylortool('sin(x)') to study the Taylor Series Approximation of a sin function. Find the Taylor expansion of ex. (Use exp(x) in MATLAB) Find the Taylor expansion of sin(x). How many terms N do you need for a good approximation?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Taylor expansion of sinx ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!