Advertisement
Pagoniusz

Untitled

Apr 21st, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. double function(double x)
  2. {
  3. double result;
  4. //result = log(x + 2) - 2 * pow(x, 2) + 1; //ln(x+2)-2*x^2+1
  5. //result = pow(x, 3) - 2 * x + 2; //x^3 - 2*x + 2
  6. //result = -5*pow(x,3)+8*pow(x,2)+3*x-1 ;//-5*x^3+8*x^2+3*x-1
  7. result = tan(x);
  8. return result;
  9. }
  10. double derivative_of_function(double x)
  11. {
  12. double result;
  13. result = 1 / (cos(x)*cos(x));
  14. return result;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement