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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  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

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