example03.red 276 B

123456789101112131415161718192021
  1. % function analysis
  2. f:=3*x^3-7*x^2;
  3. fp:=df (f, x);
  4. fpp:=df (fp, x);
  5. % zeroes
  6. solve (f, x);
  7. % extremes
  8. solve (fp, x);
  9. % reversal points
  10. solve (fpp, x);
  11. % integration of 2nd derivative
  12. f1:=int (fpp, x);
  13. % integration of 1st derivative
  14. f0:=int (f1, x);
  15. f0:=int (fp, x);
  16. end;