The value of 1t can be estimated from the expression: 2/ = 2/2 . 2 + 2/2
Question:
2/π = √2/2 . √2 + √2/2 . √2/ + √2 + √2/2, …..
Write a MATLAB program in a script file that determine 1t for any number of terms. The program asks the user to enter the number of terms, and then calculates the corresponding value of 1t. Execute the program with 5, 10, and 40 terms. Compare the result with pi. (Use format long.)
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 52% (19 reviews)
Script file clear clc format long n5 10 40 for j13 t1 sqrt 22 ...View the full answer
Answered By
Benish Ahmad
I'm a professional software engineer. I'm lectutrer at GCUF and I have 3 years of teaching experience. I'm looking forward to getting mostly computer science work including:
Programming fundamentals
Object oriented programming
Data structures
object oriented design and analysis
Database system
Computer networks
Discrete mathematics
Web application
I am expert in different computer languages such as C++, java, JavaScript, Sql, CSS, Python and C#. I'm also have excellent knowledge of essay writing and research. I have worked in other Freelancing website such as Fiverr and Upwork. Now I have finally decided to join the SolutionInn platform to continue with my explicit work of helping dear clients and students to achieve their academic dreams. I deliver plagiarism free work and exceptional projects on time. I am capable of working under high pressure.
5.00+
2+ Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Finance questions
-
The value of 1t can be estimated by: Write a program (using a loop) that determines the expression. Run the program with n = 100, n = 10000, and n = 1000000. Compare the result with pi. (Use format...
-
Today is June 7, 2007. Freddie Mac is issuing a 10-year Bermudan note on June 15 2007 under the terms described in Table 12.1410. A Bermudan security is like a callable security, but with call dates...
-
The risk for real estate can be viewed as derived demand. If this is the case, the risk of real estate can be estimated from the underlying business it supports. Under this view, what would be the...
-
The inequality describes the range of monthly average temperatures T in degrees Fahrenheit at a certain location. (a) Solve the inequality. (b) If the high and low monthly average temperatures...
-
Suppose you are testing someone to see whether he or she can tell butter from margarine when it is spread on toast. You use many bite-sized pieces selected randomly, half from buttered toast and half...
-
1. A farmer has 40 hectares of farm on which to plant rice and corn. The rice needs 4 units of insecticides and 2 units of fertilizer per hectare, while corn requires 3 units of insecticides and 6...
-
Fluid with kinematic viscosity \(u\) flows down an inclined circular pipe of length \(\ell\) and diameter \(D\) with flow rate \(Q\). Find the vertical drop per unit length of the pipe so that the...
-
Your friend, Diana Wood, recently completed the second year of her business and just received annual financial statements from her accountant. Wood finds the income statement and balance sheet...
-
Target behavior: Engaging in physical activity Goal: Engages in physical activity 3 days a week for 60 minutes each day Antecedent-based interventions: Visual schedules, priming, environmental...
-
Calculate the following rations from the following information sheet and balance sheet. Activity ratios Operating ratios Liquidity ratios Profitability Ratios Solvency ratios Flagstaff Marriott Hotel...
-
Write a program in a script file that determines the real roots of a quadratic equation ax2 + bx + c = 0. Name the file quadroots. When the file runs, it asks the user to enter the values of the...
-
Write a program that generates a vector with 20 random elements between -10 and 10 and then finds the sum of the positive elements.
-
At time \(t=0\) a large number of particles, each of mass \(m\), is strung out along the \(x\) axis from \(x=0\) to \(x=\Delta x\), with momenta \(p_{x}\) varying from \(p=p_{0}\) to \(p=p_{0}+\Delta...
-
Let A and B be two stations attempting to transmit on an Ethernet. Each has a steady queue of frames ready to send; As frames will be numbered A1, A2, and so on, and Bs similarly. Let T = 51.2 s be...
-
Suppose a bridge has two of its ports on the same network. How might the bridge detect and correct this?
-
The CRC algorithm as presented in this chapter requires lots of bit manipulations. It is, however, possible to do polynomial long division taking multiple bits at a time, via a table-driven method,...
-
With 1 parity bit, we can detect all 1-bit errors. Show that at least one generalization fails, as follows: (a) Show that if messages m are 8 bits long, then there is no error detection code e = e(m)...
-
The World Bank reported the following fertility rates for Brazil, measured as the average number of children born per woman of childbearing age: 1970: \(5.0 \quad\) 1980: \(4.1 \quad\) 1990: \(2.8...
-
Suppose that a population that is growing exponentially increases from 800,000 people in 2010 to 1,000,000 people in 2013. Without showing the details, describe how to obtain the exponential growth...
-
9.Consider the reaction 3NO2(g)+H2O=2HNO3(aq)+NO(g) where Delta H=-137 kJ.How many kilojoules are released when 92.3g of NO2 reacts?
-
Tim is employed at an annual salary of $23 999.04. His regular workweek is 36 hours and he is paid semi-monthly. (a) What is Tims gross pay per period? (b) What is his hourly rate of pay? (c) What is...
-
Artemis is paid a weekly commission of 4% on net sales of $6000, 8% on the next $3000, and 12.5% on all further sales. Her gross sales for a week were $11 160, and sales returns and allowances were...
-
Solve each of the following equations. a.15x = 45 b. -7x = 35 c. 0.9x = 72 d. 0.02x = 13 e. 1/6 x = 3
-
Which images of change did those two managers illustrate? How did those images affect their change management decisions and actions? Where they drew on more than one image, to what extent were those...
-
Business capital, income, expenses and capital allowances: KPJ Hospitals. Law on business capital, income, expenses and capital allowances (according to Income Tax Act 1967 and any relevant...
-
Black, an engineer, is injured while visiting the White Manufacturing Company. Black was splattered in the face with hot metal from a die-casting machine which he was observing at the time. What...
Study smarter with the SolutionInn App