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

  Swimlane-hypothesis space

Assignment need to be done. It is about swimlane. I am attaching document and example of how it suppose to be done.

  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?

  Finding content of top of stack-call instruction is executed

Specify the content of PC, SP, and the top of the stack in the following situations: After the call instruction is executed.

  Performing swot analysis on viability of upgrading server

Carry out a SWOT analysis on the viability of upgrading to Server 2008.

  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.

  The authentication process in a synchronous token system

Describe how the Kerberos authentication process work and outline the main components within the Kerberos environment, their respective functions and the level of security provided by Kerberos. Draw a diagram supporting your explanation Explain..

  Compare and contrast the in terms of cores/microprocessors

Compare and contrast the following, in terms of cores (or microprocessors), random access memory (RAM), disk storage, and networking capabilities.

  Describing fields and options with user account set-up

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

  Show with diagrams how the median filters work

Explain why in some image processing scenarios, filters are used instead of point operations on pixel values Show with diagrams how the Median Filters work

  Explaining physical material on which computer keeps data

Storage is the physical material on which a computer keeps data, instructions, and information?

  Structured analysis and object-oriented techniques

A frequently asked question is "Can structured techniques and object-oriented techniques be mixed?

  Descriptions of data formats and to interpret raw data

The aim of this project is to exercise and test your ability to read and understand descriptions of data formats and to interpret raw data according to a particular format.  In this exercise you will produce and read the dump of a ZIP file.

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