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 10 years, 3 months ago.

  • Author
    Posts
  • #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
    x1=3

    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
    x[2]=inf

    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.

0 Shares
Share
+1
Tweet
Share
Stumble