File: fit-test.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 (34 lines) | stat: -rw-r--r-- 429 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
28
29
30
31
32
33
34
clear
window 0
defaults
!
set
 plotsymbol -17
 %plotsymbolsize 2
 plotsymbolcolor red
 curvecolor blue

x=[0:5:.25]
y=2*exp(-3*x)-0.5*ran(x)
set autoscale on
graph x y
scalar\fit a b c
a=1
b=-1
c=1
fit y = a*exp(b*x) + c
fit\update yfit
set
 curvecolor blue
 plotsymbol 0

graph\overlay x yfit
set
 %xtextlocation 10
 %ytextlocation 92
 textalign 1
 textinteractive 0

text 'FIT: y = a*exp(b*x)+c'
!
destroy\-mess x y a b c yfit