Preview

Fortran Codes for False Postion and Newton-Raphson Methods

Satisfactory Essays
Open Document
Open Document
255 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Fortran Codes for False Postion and Newton-Raphson Methods
Homework description: The following three degree monic polynomial has three real roots. f(x)=x3+2.3x2+0.32x-0.56 a. For finding the real roots , Cardano's Method[1] can be used
To reduce the degree of the equation ,these operations are done, a=1 , b=2.3, c=0.32 , d=-0.56
If we write y+r , instead of x (x=y+r)

y3 +(3r+2.3)y2+3r2+4.6r+0.32y+r3+2.3r2+0.32r-0.56=0

If we choose r=-2.33
Equation becomes this form; y3+my+n=0 m=3ac-b23a2 n=2b3-9abc-27a2d27a3 m=-1.44333… n=0.09598 ∆=m327+n24 if ∆=0.4)then exit end if write(unit=3,fmt=*)iter,c,real_err,app_err print*,iter,c,real_err,app_err end do close(unit=3) case(2) open (unit=4,file="HW2-110070152#-nr.txt",status="replace",action="write",iostat=ios) if (ios/=0) then print*,"Error during opening file" end if tol=0.0001 x=1 iter=0 print*,"Iteration Calculated Root Percent True Error Percent Approximated Error" write(unit=4,fmt=*)"For this solution initial guess is taken ONE" write(unit=4,fmt=*)"Iteration Calculated Root Percent True Error Percent Approximated Error" do xi=x iter=iter+1 f=xi**3+2.3*xi**2+0.32*xi-0.56 d_f=3*xi**2+4.6*xi+0.32 x=xi-f/d_f re=abs(0.4-x)/0.4*100 ae=abs((x-xi))/x*100
if

You May Also Find These Documents Helpful

  • Good Essays

    SCI 362: Energy Simulation

    • 755 Words
    • 22 Pages

    In this simulation we were to review the pros and cons of allowing a foreign pharmaceutical company, Colney & Pitts located in California, to be able to harvest the rainforests tree’s bark, and build a manufacturing plant in the Kenyan highlands, to help in finding medication or herbal remedies for patients, by using the harvested bark to create synthetic medication. This particular simulation was going to affect the rainforest in the Kenya highlands where Kikuyu tribe inhabits the land.…

    • 755 Words
    • 22 Pages
    Good Essays
  • Satisfactory Essays

    * Julia does not need to borrow money if she does not want to. She can still make over $1000 profit without it. However, She will not be able to hire help and stay above $1000. If she was to decide to borrow money, the most she should borrow is $216 as this amount plus the initial capital amount of $1500 will hit the cap on how much space she has available in her oven. Anything more than $216 she is borrowing unnecessarily and most likely paying…

    • 326 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Newton Analysis

    • 763 Words
    • 2 Pages

    Jeanette Winterson’s Newton describes the isolation of her “stranger”, Tom. In Newton, Winterson uses imagery to show Tom’s differences in contrast to those of his neighbors. Tom’s conflict lies between his neighbor and he due to the way he doesn’t fit in. Winterson adds in Albert Camus L’Étranger in which Camus’ character, Meursault, finds himself a stranger in his own society.…

    • 763 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    “The Fosbury Flop” by Rich Wallace told the story of how Dick Fosbury never gave up during his track and field career, specifically the long jump. For example, Wallace states “ his coach had never seen such an odd style”, which Fosbury had practiced over and over again. Fosbury had wanted to find a way to jump higher, so he began to practice new ways of jumping. His coach had tried to convince him to go back to the standard way of jumping, but, Fosbury never gave up on finding a new technique. Later on, the author states that at the 1968 summer Mexico City Olympics Fosbury was faced with the challenge of jumping higher than he ever had before. To clarify, Fosbury was faced with the problem of jumping higher than his previous records. He did…

    • 165 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    "1. The Density formula is D=Mass/Volume. Since we already have the mass = 18.45 g we have to find now the volume of the sphere by finding the difference in volume of the graduated cylinder:…

    • 646 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Bracero Program Analysis

    • 318 Words
    • 2 Pages

    Essential Question: Was the bracero program an exploitation of, or an opportunity for Mexican laborers? Justify your answer with the primary sources and your analysis of them.…

    • 318 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Scenario 5) Same scenario as #4 except that this time the blade of the knife is in front of your arm…

    • 556 Words
    • 3 Pages
    Good Essays
  • Better Essays

    Newtons unknown therios

    • 962 Words
    • 4 Pages

    saac Newton was born on Dec. 25, 1642, in Woolsthorpe, England. His father died before he was born, and when he was only three his mother, Hannah Newton, remarried and moved away, leaving him to be raised by an uncle. He was sent to the local grammar school, and for a time it was expected that he would grow up to manage his mother's property. But he nonetheless persisted in the pursuit of his wider interests, and after leaving the grammar school he enrolled at Trinity College, at the University of Cambridge, in 1661. He received his bachelor of arts in 1665, and was named a fellow of the College two years later.…

    • 962 Words
    • 4 Pages
    Better Essays
  • Satisfactory Essays

    Code of Counduct

    • 350 Words
    • 2 Pages

    1. Working for Cisco and using the company’s computer to type out my agenda for my book club as well as using the printer and paper to make copies without the approval of my superior is a violation of company rules “Use of Cisco assets for non company purposes”…

    • 350 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    to start and stop, but the normal egg is filled of liquid and is harder to…

    • 662 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Code of Analysis

    • 477 Words
    • 2 Pages

    The type of ethical dilemma I chose occurs when a patient or client’s family attempts to influence the care plan. For a more specific example; my client (houses at an in-patient treatment facility) is suicidal, and has been struggling with severe depression, alcohol and drug abuse. Immediate family members (brother and sister) continually disrupt the treatment process regarding their sibling. The patient is in such an emotionally weakened state that their own self-determination is troublingly low, and so speaking to their siblings in efforts of calming their aggression is all but out of the question. A couple of the disruptive behaviors the brother and sister engaged in are demanding certain types of medications be prescribed and disturbing the resident staff at the in-patient center and accusing them of neglect and other types of abuse.…

    • 477 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Objective: The purpose of this lab is to analyze enzyme activity at pH neutral for acid phosphatase as the colorless p-nitrophenylphosphate (PNPP) substrate concentration changes. We will empirically determine the concentration of production formation, Vmax and Km from absorbance of yellow PNP in the reaction.…

    • 854 Words
    • 10 Pages
    Good Essays
  • Better Essays

    Cost Method Paper

    • 1000 Words
    • 4 Pages

    Super Bakery is a distinguished company created in 1990. The company has is a supplier of mineral, vitamin, and protein enriched doughnuts. The strategy applied by the company is job order cost method. Job costing is a product costing system when costs are accumulated by specific job orders and assigned to batches of products. In other words, manufacturing costs are assigned to specific job, specific customers, specific orders, specific projects, and specific contracts. Job costing is preferable to small and medium-sized companies, such as professional services (e.g. medical, legal), advertising agencies, construction, shipbuilding, custom equipment/furniture manufacturing. Http://simplestudies.com/activity-based-costing_(abc).html…

    • 1000 Words
    • 4 Pages
    Better Essays
  • Satisfactory Essays

    Simplifying Expressions

    • 433 Words
    • 2 Pages

    Include in this paper I have demonstrated the following solutions for the three problems listed below. Using th given vocabulary words I have broken down each problem using the proper steps in solving the algebraic expressions. Also shown will be what is important about real numbers and in what way they are useful in using real numbers in solving algebraic expressions.…

    • 433 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    6. 99253 is the appropriate E/M code of the initial impatient consultation. The consultation was with a detailed history, a detailed exam, and MDM of low complexity…

    • 1057 Words
    • 3 Pages
    Powerful Essays