Consider the integral ) = E (x)= e-t dt a) Write a python program to calculate...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Consider the integral ) = E (x)= e-t² dt a) Write a python program to calculate E(x) for values of x from 0 to 3 in steps of 0.1. Choose for yourself what method you will use for performing the integral and a suitable number of slices. b) When you are convinced your program is working, extend it further to make a graph of E(x) as a function of x. Consider the integral ) = E (x)= e-t² dt a) Write a python program to calculate E(x) for values of x from 0 to 3 in steps of 0.1. Choose for yourself what method you will use for performing the integral and a suitable number of slices. b) When you are convinced your program is working, extend it further to make a graph of E(x) as a function of x.
Expert Answer:
Answer rating: 100% (QA)
import numpy as np import matplotlibpyplot as plt def y x Declaring the function fx 11xx return npex... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
use the model -16t^2 32t 57 to determine when the missle hits the water
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
QUIZ... Let D be a poset and let f : D D be a monotone function. (i) Give the definition of the least pre-fixed point, fix (f), of f. Show that fix (f) is a fixed point of f. [5 marks] (ii) Show that...
-
Describe the value paradox: the economics of diamonds and water.
-
(i) Explain why the eigenvalues of A must lie in its refined Gerschgorin domain D*A = DAT DA. (ii) Find the refined Gerschgorin domains for each of the matrices in Exercise 10.3.22 and confirm the...
-
Question 20 (3 points) The following table describes the information on two coupon bonds that pays coupons once a year: Face Value Coupon Rate YTM Time to Maturity Calculate the convexity of bond B...
-
Wayflaire Inc. produces home products. The cost to manufacture a case ( 36 sets) of its most popular set of casual dinnerware is as follows: The average sales price for a case of dinnerware is \(\$...
-
Silver Company manufactures kites and has the following information available for the month of April: Required: Using the weighted-average method, complete each of the following steps: 1. Reconcile...
-
A manufactured product has the following Information for June. Direct materials Direct labor Overhead Units manufactured Standard Quantity and Cost 6 pounds @ $7 per pound 3 DLH @ $16 per DLH 3 DLH @...
-
Assignment #1_ CO# S2 CHAPTER 9: LEADERSHIP AND CHANGE Flow Chart: Search the internet and obtain a "leadership" written procedure/approach/plan. Copy then paste it on the Excel embedded table below....
-
There are three approaches to controlling environmental costs. 1. Cleaning up pollutants after they are produced 2. Improving processes to reduce the amount of waste produced; and 3. Preventing...
-
Lou Barlow, a divisional manager for Sage Company, has an opportunity to manufacture and sell one of two new products for a five- year period. His annual pay raises are determined by his division's...
-
How might educational systems in other countries, including the United States, benefit from adopting more flexible scheduling? What challenges and opportunities could arise from such an adaptation in...
-
3 257 Find the inverse of A= 2 24 if it exists. -4 4 0
-
Delta Corporation has the following capital structure: Debt (Kd) Preferred stock (Kp) Common equity (Ke) (retained earnings) Weighted average cost of capital (Ka) Cost (aftertax) 6.1% Weighted...
-
Step 1: When researching a topic, it's helpful to first cast a wide net. You may not use them allyou only have to use a minimum of threebut it takes time to find the best sources. Be sure to check on...
-
What are 3 financial metrics I can use to measure a marketing campaign.
-
In Exercises 1-2, rewrite each verbal statement as an equation. Then decide whether the statement is true or false. Justify your answer. 1. The logarithm of the difference of two numbers is equal to...
-
Find A B if A = (1,1,1) and B = (2,2,2).
-
Show that the function of Eq. (12.25) satisfies Eq. (12.12). z = b 1 cos(Ït) + b 2 sin(Ït). (12.25) dz (12.12) -kz. dt2
-
A certain harmonic oscillator has a position given as a function of time by z = (0.150 m)[sin (Ït)], where The value of the force constant k is 0.455 N m 1 and the mass of the oscillator m is...
-
The following information is taken from the annual report of the Walgreens Boots Alliance, Inc..: Walgreens uses LIFO to value its inventory. Restate the companys financial results for 2015 assuming...
-
The following information is taken from the annual report of The Coca-Cola Company: Using this information, calculate the accounts payable turnover ratio and the days payable period for 2015 and...
-
The following information is taken from the annual report of The Claremont Corporation: The company uses the LIFO method to value its inventory. In addition, the footnotes to the companys annual...
Study smarter with the SolutionInn App