Calculate roots of function by newton-raphson approximation

Assignment Help Basic Computer Science
Reference no: EM1347514

Q1) Best known iterative method for calculating roots of a function f (that is, x-values for which f(x) is 0) is Newton-Raphson approximation. To find the zero of a function whose derivative is also known, compute
xnew = xold - f (xold) f′(xold).

For this exercise, write a program to compute nth roots of floating-point numbers. Prompt the user for a and n, then obtain n a by computing a zero of the function f(x) = xn - a.

Reference no: EM1347514

Questions Cloud

Explain output at different levels of capital and labor : Assume you are looking at data for an economy that uses only two inputs, physical capital and labor. The table shows output for different combinations of labor.
Question on cvp analysis : Compute the annual breakeven point in dollar and in unit sales for shop 48? Make a CVP graph showing cost and revenue data for shop 48 from zero level activity up to 17,000 pairs of shoes sold in year, what would be shop 48's net operating income o..
What angle should the polarizing direction of middle sheet : What is the net force exerted by these two charges on the third charge = 46.5 placed between and at = -1.235 ? Your answer may be positive or negative, depending on direction of the force.
Mispriced bond : An twelve year payment corporate bond has a market value of dollar 925. It pays yearly interest of dollar 60 and its required rate of return is 7 percent.
Calculate roots of function by newton-raphson approximation : Best known iterative method for calculating roots of a function f (that is, x-values for which f(x) is 0) is Newton-Raphson approximation.
Create new prices and new exchange rate that will yield ppp : Assume initially that the exchange rate is $2 per pound, and a particular car sells for $20,000 in New York and 10,000 pounds in London. Create new prices and a new exchange rate that will yield PPP.
Question related to trade-off theory : Other things equal, firms with high corporate tax rates should use less debt financing than firms with low tax rates.
Find the total expected dollar capital gain : Suppose Mr. Jim owns 1,500 shares of stock in corporation X. firm X's 18,750 shares outstanding are publicly sold and come with a pre-emptive right. They are currently trading at 27 dollar each share.
Explaining quasi-legal activities over internet : Online gambling and buying of pharmaceutical drugs over the Internet are quasi-legal activities which can only take place as Internet allows the parties offering gambling.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Instruction cycle and finding contents of registers

Go over instruction cycle and find out contents of registers PC, AR, DR, AC, and IR for each of seven memory-reference instructions.

  Explaining minor or major virus threats

Write down two recent virus threats, are they minor or major threats? What software would you utilize to remove these threats?

  Drawing crow-s foot erd using a specialization hierarchy

Given the following business scenario, create a Crow's Foot ERD using a specialization hierarchy if appropriate.

  Evaluate the cost of materials

Evaluate the cost of materials

  Explaining quasi-legal activities over internet

Online gambling and buying of pharmaceutical drugs over the Internet are quasi-legal activities which can only take place as Internet allows the parties offering gambling.

  Explaining records are stored and accessed on storage medium

Which of the given correctly explains a way in which data records are stored and accessed on storage medium?

  Explaining topic important for network administrators

Why is the topic important for network administrators today?

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

  Key principles on smart phone devices gps tracking system

How to apply these key principles on smart phone devices GPS tracking system/software to mitigate user personal information be exposed undesirably.

  Explaining the available bandwidth as function of n

Assuming average packet size is 5 slot times, expreess the available bandwidth as a function of N?

  Class diagram for a book comprising chapters

Draw a class diagram representing a book defined by the following statement. "A book is composed of a number of parts, which in turn are composed of a number of chapters.

  Explaining formal risk assessment of desktop systems

As apart of a formal risk assessment of desktop systems in small accounting firm with limited IT Support, you have identified asset "integrity of customer and financial data files on desktop systems" and threat.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd