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