summaryrefslogtreecommitdiff
path: root/graphics/asymptote/doc/graphwithderiv.asy
blob: 2dfd1da02d33e4e474a6e1c501eaea5b93aa36b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
unitsize(2cm);
import graph;
pair F(real t) {
  return (1.3*t,-4.5*t^2+3.0*t+1.0);
}
pair Fprime(real t) {
  return (1.3,-9.0*t+3.0);
}
path g=graphwithderiv(F,Fprime,0,0.9,4);
dot(g,red);
draw(g,arrow=Arrow(TeXHead));