Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help writing this code in python for this assingment. Group Homework # 1 1. The Big e-asy An overkill approximation to e is

I need help writing this code in python for this assingment.

image text in transcribed

image text in transcribed

Group Homework # 1 1. The Big e-asy An overkill approximation to e is 2.718281828459045235360287471352662497757247093699959574966967627724076630353 (See an extended precision approximation in the code cell below). How many terms are required in the series k! so that the error in the 19th decimal place is less than 60%? Answer this analytically(using Taylor's theorem with remainder) Answer this computationally by summing the series. You will need to do the whole computation using np float128. Be careful. In [2]: import numpy as np mye-np.float128 (2.718281828459045235360287471352662497757247093699959574966967627724076630353) print (mye) 2.7182818284590450908 2. All Wrong Consider x)tanx- What is the smallest value of p such that f(10P) has no significant digits? (Hint-conider the limit as x0). . come up with a more accurate representation for small x(Hint use enough terms of the Taylor series of tan x near x = 0, and test it for very small x 3. Mean Business In class, we showed that the geometric mean of n positive numbers was prone to overflow or underflow if the power was taken at the end. Come up with a compromise solution to the computation that avoids overflows and underflows but is faster than Bonus +3 points to the group with the fastest algorithm Group Homework # 1 1. The Big e-asy An overkill approximation to e is 2.718281828459045235360287471352662497757247093699959574966967627724076630353 (See an extended precision approximation in the code cell below). How many terms are required in the series k! so that the error in the 19th decimal place is less than 60%? Answer this analytically(using Taylor's theorem with remainder) Answer this computationally by summing the series. You will need to do the whole computation using np float128. Be careful. In [2]: import numpy as np mye-np.float128 (2.718281828459045235360287471352662497757247093699959574966967627724076630353) print (mye) 2.7182818284590450908 2. All Wrong Consider x)tanx- What is the smallest value of p such that f(10P) has no significant digits? (Hint-conider the limit as x0). . come up with a more accurate representation for small x(Hint use enough terms of the Taylor series of tan x near x = 0, and test it for very small x 3. Mean Business In class, we showed that the geometric mean of n positive numbers was prone to overflow or underflow if the power was taken at the end. Come up with a compromise solution to the computation that avoids overflows and underflows but is faster than Bonus +3 points to the group with the fastest algorithm

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

Microsoft Outlook 2023

Authors: James Holler

1st Edition

B0BP9P1VWJ, 979-8367217322

More Books

Students also viewed these Databases questions

Question

explain what is meant by experiential learning

Answered: 1 week ago

Question

identify the main ways in which you learn

Answered: 1 week ago