on fa72f86 help sign in
19 lines 324 B history raw
1set terminal pngcairo enhanced
2set output "/tmp/polynomial.png"
4set grid
6set xrange [-5:5]
7set yrange [-5:10]
9set samples 10000
11set key bottom right
13f(x) = 1.0 / 14.0 * ((x+4) * (x+1) * (x-1) * (x-3)) + 0.5
15plot \
16 f(x) title "polynomial of degree 4" \
17 with lines \
18 linewidth 2 \
19 linetype rgb '#0077ff'