Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The aim of this question is to approximate ~~ 3 . 1 4 1 5 9 2 6 5 3 5 8 9 7 9

The aim of this question is to approximate ~~3.141592653589793dots, using the series expansion
=k=0116k(48k+1-28k+4-18k+5-18k+6)
Modify the above Matlab/Python script to approximate using the series expansion (1). What is the smallest number of terms necessary to obtain the same value as the one produced by
pi in Matlab ? Store this value in the variable npi. (You may use trial and error to answer this question.) Note that summation starts with k=0 so that the
number of terms is one larger then the index. example: n=17;
eapp =0;
for k =0:n
eapp = eapp +1/factorial(k);
end
error = abs(eapp - exp(1))
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions