Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. float DerPol(int n,float a[],float x0)
  2. int i;
  3. float b[4],x;
  4. b[n]=a[n];
  5. x=b[n];
  6. for(i=grad=1;i>=0;i--) b[i]=
  7. int main()
  8. {
  9. int n=4,nMax=36;
  10. float a[5]=[1,4,6,4,1];
  11. float x0=-1.9;
  12.  
  13. }
  14. {
  15. float rad;
  16. if(newtonraphson(-1.9,0.0001,0.01,36,&rad))
  17. {
  18. cout<<rad<<endl;
  19. cout<<f(rad);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement