Home Forums C Programming some math problems in C

Viewing 0 reply threads
  • Author
    • #1997

      I want to calculate secant method using C language
      That is a program—->

      But while running not the erreo is displayed but the results displayed is
      f(x) =x*x*x-5*x-7

      Enter an interval [x0,x1] in which root is to be found
      x0 =2.5

      Enter the number of iterations=4

      press any key for display of iterations…

      x[1]=0.000000 x[0]=0.000000
      f[1]=-7.000000 f[0]=-7.000000

      Means not able to calculate root as seen in the output it is x[1]=0…

      so what will be the problem????

Viewing 0 reply threads
  • The forum ‘C Programming’ is closed to new topics and replies.