Given the integral below: cos(x) dx Hint x is in radians Evaluate the integral analytically. Use...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Given the integral below: cos(x) dx Hint x is in radians Evaluate the integral analytically. Use four significant figures. (2) 1.2. Evaluate the integral using the trapezoidal rule using a for loop. Calculate the cputime, too. (7) 1.3. What is Vectorization and why is it used? (2) 1.4. Estimate the value of the integral using the vectorised form. (7) 1.5. Evaluate the integral using the built-in trapz function. Calculate the cputime, too. (5) 1.6. What is your observation between the cputime in question 1.2 and 1.5? (2) [25 marks] Given the integral below: cos(x) dx Hint x is in radians Evaluate the integral analytically. Use four significant figures. (2) 1.2. Evaluate the integral using the trapezoidal rule using a for loop. Calculate the cputime, too. (7) 1.3. What is Vectorization and why is it used? (2) 1.4. Estimate the value of the integral using the vectorised form. (7) 1.5. Evaluate the integral using the built-in trapz function. Calculate the cputime, too. (5) 1.6. What is your observation between the cputime in question 1.2 and 1.5? (2) [25 marks]
Expert Answer:
Answer rating: 100% (QA)
11 12 MATLAB CODE clc clear all t cputime f xcosx Defining given function a 1 lower limit b 1 upper ... View the full answer
Posted Date:
Students also viewed these programming questions
-
Octave or Mat lab coding to be used 2.1. Use fzero() to determine the solution to the polynomial below. cos (VIP(x)l) -sin(x) = 0 (fzero)| y = x3 - 2 P(x) = polyfit(x, y,7) (8) 2.2. The reaction A +...
-
OCTAVE OR MATLAB CODING TO BE USED!!! 3.1. The exothermic reaction A - B+C was carried out adiabatically in a PFR and the following data was recorded: 0.45 0.5 0.6 0.8 00.2 1.0 1.67 0.4 0.9 -rA (mol...
-
Use Matlab or Octave coding Using Netwon-Raphason method write an m-file to find the roots of the given equation, limit the program to three iterations. f(x) = x3 x 1 Le the initial guess be equal...
-
A 4-ft-high, 3-ft-diameter cylindrical water tank whose top is open to the atmosphere is initially filled with water. Now the discharge plug near the bottom of the tank is pulled out, and a water jet...
-
Christie is the preparer of the Form 1120 for Yostern Corporation. On the return, Yostern claimed a deduction that the IRS later disallowed on audit. Compute the tax preparer penalty that could be...
-
1. What performance and workload measurement issues should the company consider at the present time? 2. What capacity planning issues should the company consider at the present time? 3. Should the...
-
A long solenoid with 300 windings per meter of length carries a current of \(1.0 \mathrm{~A}\). Calculate the magnitude of the magnetic field inside the solenoid.
-
The following account balances are for William Giese, Certified Public Accountant, as of April 30, 2019. Cash..........................................................................$60,000 Accounts...
-
1. Where cursor implementation can be used? 2. List down the applications of List. 3. What are the advantages of linked list? 4. Mention the demerits of linked list? 5. What are the operations...
-
International Foods, a U.S. company, acquired two companies in 2013. As a result, its consolidated financial statements include the following acquired intangibles: Intangible Asset Date of...
-
Mr. Albert Gaga is a lawyer by profession and he had opened a law firm by name of Albert & Co.Every Friday he will go to KDU UC to teach Company law subject from 8am to 10am for 2 hours. He was paid...
-
3. use indentation. Save the java file as Decimal MathUsing Integers.java in your lab4 folder. Compile the program and run it. Make sure that your program outputs what you see in Figure 2. If you...
-
The various leadership theories can be categorized into six basic approaches, many of which are applicable to leadership studies today. Great Man Theories, Trait Theories, Behavior Theories,...
-
The productive software's capabilities How it supports project management in terms of collaboration and/or knowledge management Its benefits and limitations Would you recommend using the software in...
-
Suppose that real GDP is currently $13.88 trillion and potential real GDP is? $14.0 trillion, or a gap of $1,000 billion. The government purchases multiplier is 3.3, and the tax multiplier is 2.3....
-
Memo to the File: I have investigated the possibility of related parties associated with Plowshare. I supposed that research would identify potential related parties, so I searched for sales with...
-
The taxpayer is a self - employed contractor who builds residences and had gross income of $ 2.2 2 . 2 M . . the net income attributed to the business was $ 450 4 5 0 K . . Additionally. This...
-
A sprinkler head malfunctions at midfield in an NFL football field. The puddle of water forms a circular pattern around the sprinkler head with a radius in yards that grows as a function of time, in...
-
A firm in Saudi Arabia uses capital and labor in its production process. The hourly cost of labor is SR30 and the initial rental rate of capital is SR60 per hour. What is the firm's isocost line? How...
-
Canada removed all duties and quotas on imports from Bangladesh in 2003. Since that time, Bangladesh has become the second largest source (after India) of Canadian merchandise imports from South...
-
A firm has the cost curve \(C(q)=100+150 q-\) \(46 q^{2}+5 q^{3}\). What are the equations of the firm's marginal cost, average variable cost, and average cost curves? What are the minimum values of...
Study smarter with the SolutionInn App