# Grafovi elementarnih funkcija

## Polinomi

wxplot2d(2*x^3-x^2-11*x+10,[x,-3,3],[box,false],[axes,solid]);

## Racionalne funkcije

wxplot2d((x-1)/(x^2-x-2), [x,-4,4], [y,-4,4],[same_xy,true],[box,false],[axes,solid]);

## Apsolutna vrijednost i signum

wxplot2d(abs(x), [x,-3,3],[y,-1,3],[same_xy,true],[ytics,-1,1,3],[box,false],[axes,solid]);

wxplot2d([abs(x)/x,[discrete,[0],[0]]], [x,-2,2],[y,-2,2],[same_xy,true],[xtics,0,0,0],[ytics,-1,1,1],[box,false],[axes,solid],[style,lines,points],[legend,false],[color,blue,blue],[point_type,bullet]);

## Eksponencijalne funkcije

wxplot2d(2^x, [x,-2.5,2.5],[y,-1,4],[box,false],[axes,solid],[same_xy,true]);

wxplot2d(0.5^x, [x,-2.5,2.5],[y,-1,4],[box,false],[axes,solid],[same_xy,true]);

## Logaritamske funkcije

wxplot2d(log(x), [x,-1,5],[y,-3,3],[box,false],[axes,solid],[same_xy,true]);

wxplot2d(log(x)/log(1/2), [x,-1,5],[y,-3,3],[box,false],[axes,solid],[same_xy,true]);

## Opća potencija

wxplot2d([x^(1/4),x^(1/2),x,x^2,x^4],[x,0,3],[y,0,3],[box,false],[axes,solid],[xtics,0,1,3],[ytics,0,1,3],[same_xy,true],[legend,false],[color,blue,red,gray,magenta,green]);

wxplot2d([x^(-1),x^(-2),x^(-4)],[x,0,3],[y,0,3],[box,false],[axes,solid],[xtics,0,1,3],[ytics,0,1,3],[same_xy,true],[legend,false],[color,blue,red,green]);

wxplot2d([x^(1/3),x,x^3],[x,-3,3],[y,-3,3],[box,false],[axes,solid],[xtics,-3,1,3],[ytics,-3,1,3],[same_xy,true],[legend,false],[color,blue,gray,red]);

wxplot2d([x^2,x^4,x^6],[x,-3,3],[y,-1,5],[box,false],[axes,solid],[xtics,-3,1,3],[ytics,-1,1,5],[same_xy,true],[legend,false],[color,blue,red,green]);

## Trigonometrijske funkcije

wxplot2d(sin(x),[x,-2*%pi,2*%pi],[y,-2,2],[box,false],[axes,solid],[ytics,-2,1,2],[same_xy,true]);

wxplot2d(cos(x),[x,-2*%pi,2*%pi],[y,-2,2],[box,false],[axes,solid],[ytics,-2,1,2],[same_xy,true]);

wxplot2d(tan(x),[x,-3*%pi/2,3*%pi/2],[y,-6.2,6.2],[xtics,-4,2,4],[box,false],[axes,solid],[same_xy,true]);

wxplot2d(cot(x),[x,-3*%pi/2,3*%pi/2],[y,-6.2,6.2],[xtics,-4,2,4],[box,false],[axes,solid],[same_xy,true]);

## Arkus funkcije

wxplot2d(asin(x),[x,-1,1],[y,-%pi/2,%pi/2],[box,false],[axes,solid],[same_xy,true]);

wxplot2d(acos(x),[x,-1,1],[y,0,%pi],[box,false],[axes,solid],[same_xy,true]);

wxplot2d(atan(x),[x,-4,4],[box,false],[axes,solid],[same_xy,true]);

wxplot2d(acot(x),[x,-4,4],[box,false],[axes,solid],[same_xy,true]);

wxplot2d(%pi/2-atan(x),[x,-4,4],[box,false],[axes,solid],[same_xy,true]);