Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

do in python 3.8 Develop a function my_Expm1(x,N) that forms the result using the abbreviated taylor series. myexpm1 x,N =x+ x 2 2! + x

do in python 3.8

Develop a function my_Expm1(x,N) that forms the result using the abbreviated taylor series.

myexpm1x,N=x+x22!+x33!+=n=1Nxnn!image text in transcribed

  1. develop a main() function, in a file, which imports the math module and your function. Form a litst that tabulates the absolute difference between |-exp(x)-expm1(x)|. Similarly, form another list that tabulates the difference |myExpm1(x,10)-expm1(x)|. The list should be repeated for x=10^-1,10^-2,10^-3,10^-12. The final list should contain the values of x, accordingly.
  2. Import the CSV module to the main() function to export three lists.
  3. Submit the function in a file(same as before) that uses repetition within the main() function to compute the three lists
  4. Produce the CSV file file_error.csv with the three lists

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

Oracle Database Upgrade Migration And Transformation Tips And Techniques

Authors: Edward Whalen ,Jim Czuprynski

1st Edition

0071846050, 978-0071846059

More Books

Students also viewed these Databases questions