Answered step by step
Verified Expert Solution
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!
- 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.
- Import the CSV module to the main() function to export three lists.
- Submit the function in a file(same as before) that uses repetition within the main() function to compute the three lists
- Produce the CSV file file_error.csv with the three lists
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started