# Grafische Darstellung von Funktionen

Lineare Funktion

f(x):=k*x+d;

k:1;

d:0;

wxplot2d([f(x)], [x,-5,5])$

k:2;

f0:f(x),d=0;f1:f(x),d=1;f2:f(x),d=2;f9:f(x),d=9;

wxplot2d([f0,f1,f2,f9],[x,-5,5]);

k:-1;

wxplot2d([f(x)], [x,-5,5])$

f1:f(x),d=-1;

f2:f(x),d=1;

wxplot2d([f1,f2], [x,-5,5])$

wxplot2d([f0,f1,f2,f9], [x,-5,5],
 [gnuplot_preamble, "set size ratio 1; set zeroaxis;"])$

wxplot2d([f0,f1,f2,f9], [x,-5,5],
 [gnuplot_preamble, "set grid;"])$

wxplot2d([k*x+d], [x,-5,5])$

a:1;

b:0;

c:0;

Quadratische Funktion

f(x):=a*x**2+b*x+c;

wxplot2d([f(x)], [x,-5,5])$

f1:f(x),a=-1;

f2:f(x),b=-8;

wxplot2d([f1,f2], [x,-5,5])$

wxplot2d([f1,f2], [x,-5,5], [y,-5,5])$

wxplot2d([f1,f2], [x,-5,5], [y,-5,5],
 [gnuplot_preamble, "set size ratio 1; set zeroaxis;"])$

f3:f(x),a=1,b=-8,c=15;

wxplot2d([f3], [x,0,8], [y,-2,5],
 [gnuplot_preamble, "set size ratio 1; set zeroaxis;"])$

Trigonometrische Funktionen

f(x):=a*sin(b*x)+c*cos(d*x);

a:1;

b:2;

c:3;

d:4;

wxplot2d([f(x)], [x,-5,5])$

k:[4,3,2,1];

f(x):=k[1]*sin(k[2]*x)+k[3]*cos(k[4]*x);

wxplot2d([f(x)], [x,-5,5])$

k:[1,4,9,16];

wxplot2d([f(x)], [x,-5,5])$

k:[1,1/2,1/3,1/4];

wxplot2d([f(x)], [x,-5,5])$

k:[1/4,1/3,1/2,1];

wxplot2d([f(x)], [x,-5,5])$

f(x):=k[1]*sin(k[2]*x)*k[3]*cos(k[4]*x);

wxplot2d([f(x)], [x,-5,5])$

k:[1,2,3,4];

wxplot2d([f(x)], [x,-5,5])$

k:[4,3,2,1];

wxplot2d([f(x)], [x,-5,5])$

k:[1,1/2,1/3,1/4];

wxplot2d([f(x)], [x,-5,5])$

k:[1/4,1/3,1/2,1];

wxplot2d([f(x)], [x,-5,5])$

k:[1,1,1,1];

wxplot2d([f(x)], [x,-5,5])$