some math problems in C

Home Forums C Programming some math problems in C

This topic contains 0 replies, has 1 voice, and was last updated by  EvangelineBush33 11 years, 1 month ago.

  • 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????

You must be logged in to reply to this topic.