- #1

- 538

- 2

## Homework Statement

I need to write a C program to simulate physics problems. My job is to write a code , in which I give the user a function F(x) = ax^n + bx^(n-1) + ...... , and user inputs the coefficients a,b,c .... and my computer code should tell whether the given force F(x) is conservative or not.

Please tell me what is the condition for any f(x) to be conservative , I am good at C , but i have no idea about the condition .Please help me formulate this problem.

Thanks.