Question: 5) Write a function called Decimal that takes a number. Print the decimal part in the format below. To get the decimal part, subtract the

 5) Write a function called Decimal that takes a number. Print

5) Write a function called Decimal that takes a number. Print the decimal part in the format below. To get the decimal part, subtract the floor of the number from the number using math.floor. Round the result to three decimal places. Here are some examples of calling the function with different arguments. (The code executed is in blue, the output produced is in green): decimal (5.983) ---blue Decimal part: 0.983---green decimal(5.9839) ---blue Decimal part: 0.984---green 6) Write a function called erf plus gamma that takes a number and returns the error function of the number plus the gamma function of the number. Use math.erf and math.gammaand round the result to three decimal places. Here are some examples of calling the function with different arguments. (The code executed is in blue, the output produced is in green): erf plus gamma (0.6) ---blue I Result: 2.093---green erf plus gamma (0.22) ---green Result: 4.395---green

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!