I am new to programming in C and am taking my first class on programming now. As a project I am required to write a program that uses the secant method to find the roots of an equation, which I have done. The only issue is I'm only allowed to call my function f once. My program calls it twice and I don't know how to cut it to once. I'm sure I need a loop that calls the function f then reassigns variables as it loops but I am really clueless how to do it. Any suggestions or advice would be greatly appreciated.