File: integration_example.pcm

package info (click to toggle)
extrema 4.4.4.dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 19,416 kB
  • ctags: 6,689
  • sloc: cpp: 88,991; sh: 8,229; makefile: 480
file content (25 lines) | stat: -rw-r--r-- 393 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
clear
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 integral(x,y)
set curvecolor black
set
 %xtextlocation 53
 %ytextlocation 76
 textalign 1
 textinteractive 0
 
text '<C-2><H5%><Int><H3%>f(x)dx'
set
 %xtextlocation 45
 %ytextlocation 30
 textalign 9
 
text 'f(x) = cos(x)<^>3<_> + sin(x)<^>3<_>'
replot
zerolines\horizontal