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

  Privilege to e-mail addresses in discount warehouse database

Checkout clerk with ____ privileges to e-mail addresses in discount warehouse database could view addresses but not change them.

  Describing fields and options with user account set-up

Describe the fields and options associated with user account set-up.

  Explaining company-s internal operations

A company's internal operations and its relationship with suppliers and other busienss partners are frequently_________.

  Explaining paper on reconnaissance planning

Write a paper on reconnaissance planning. The paper is explaining the network and reconnaissance plan.

  System development methodologies in information systems

There are literally thousands of system development methodologies in the Information Systems field. Suggest some reasons why there might be so many.

  Explaining social network widgets and resaurant locators

The popularity of Apple's iPhone and Application store has made _____ improtant to advertisers, who see social network widgets, resaurant locators.

  Evaluation process to seven-step acquisition model

Discuss in scholarly detail the acquisition evaluation process to the Seven-Step Acquisition Model.

  Finding vertices of polygon stored in array-clockwise order

Assume that n ≥ 3 and the n vertices of P are stored in an array in clockwise order around P. Describe how to determine efficiently whether exactly one of the points q and r falls within P. Analyze the time for your algorithm.

  Describing data-s confidentiality and integrity

They are asking candidates to describe briefly how they would satisfy StoreItRite's requirements as stated above. How would a successful candidate respond?

  Writing java code by using netbeans

Write a java code using netbeans for the following program. Write a program that asks the user to enter five test scores.

  Benefits of binary file called registry

Write down the benefits and disadvantages of configuration in binary file called registry.

  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.

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