Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float DerPol(int n,float a[],float x0)
- int i;
- float b[4],x;
- b[n]=a[n];
- x=b[n];
- for(i=grad=1;i>=0;i--) b[i]=
- int main()
- {
- int n=4,nMax=36;
- float a[5]=[1,4,6,4,1];
- float x0=-1.9;
- }
- {
- float rad;
- if(newtonraphson(-1.9,0.0001,0.01,36,&rad))
- {
- cout<<rad<<endl;
- cout<<f(rad);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement