File: derivative_example.pcm

package info (click to toggle)
extrema 4.3.6-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 19,212 kB
  • ctags: 6,452
  • sloc: cpp: 86,428; sh: 8,229; makefile: 814
file content (27 lines) | stat: -rw-r--r-- 392 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
clear
window 0
defaults
pi=acos(-1)
generate x 0,,2*pi 100
y = cos(x)^3+sin(x)^3
graph x y
!
set curvecolor red
graph\overlay x deriv(x,y)
set curvecolor black
replot
set
 %xtextlocation 67
 %ytextlocation 72
 textalign 3
 textinteractive 0
 textcolor red
 
text 'df(x)/dx'
set
 %xtextlocation 40
 %ytextlocation 30
 textalign 1
 textcolor black
 
text 'f(x) = cos(x)<^>3<_> + sin(x)<^>3<_>'