Lines 33
##### Permissions
Viewable by Everyone
Editable by All Siafoo Users

# Fixed Point Iteration 0

 In Brief Find zeros of a function near a given point.
 Language C
# 's
` 1/* 2 By David Isaacson, 2003 3 Released into the Public Domain 4 5 fixedpt.c 6 7 The puropse of this program is to find the zero near x=1 of 8 f(x)=2x^3+4x^2-2x-5=0 910this can be rearranged into x=g(x)=(-1/13)(2x^3+4x^2-15x-5)11 */1213#include <stdio.h>14#include <math.h>1516int main()17{18    float x;				//the start coord19    float xnew;			//the end coord2021    printf("Hello\n");2223    printf("What value shall we start at? ");24    scanf("%f",&xnew);2526    do27    {28	x=xnew;29	xnew=(2*x*x*x+4*x*x-15*x-5)/-13;//x=g(x)30    }while(x!=xnew);			//again going to the max of the software3132    printf("The graphs intersect at %.3f \n",xnew);33    //this prints xnew to a precision of 3 decimal places3435    return 0;36}3738/*39 When I ran this on my computer, I recieved the result:4041 Hello42 What value shall we start at? 143 The graphs intersect at 1.07844 45 */`

Find zeros of a function near a given point.