Grafik Çizimleri

Grafik Çizimleri
> u:=(5*x-2)/(x^2-5);
u :=
5 x2
x25
> plot(u,x,y=-10..10);
> plot(cos(x),x=-Pi..Pi);
> with(plottools);
[ arc, arrow, circle, cone , cuboid , curve, cutin , cutout , cylinder , disk , dodecahedron ,
ellipse , ellipticArc , hemisphere, hexahedron , homothety , hyperbola , icosahedron , line ,
octahedron , parallelepiped , pieslice , point , polygon , project , rectangle , reflect ,
rotate , scale, semitorus, sphere, stellate , tetrahedron , torus, transform, translate ]
> rotate(plot(cos(x),x=-Pi..Pi),-Pi/4);
> plot(sin(x)+cos(x),x=-8..8,y=-2..2);
> plot(sin(x)+cos(x),x=-8..8,y=-2..2,scaling=CONSTRAINED);
> plot(sin(x),x=-4..4,color=blue);
> plot(sin(x),x=-4..4,color=blue,view=[-5..5,-5..5]);
> plot(sin(x),x=-4..4,color=blue,style=point);
> plot(sin(x),x=-4..4,color=blue,style=point,symbol=solidcircle);
> plot(sin(x),x=-4..4,view=[-2..2,2..2],color=blue,style=point,symbol=solidcircle);
> plot(sin(x),x=-4..4,view=[-2..2,2..2],color=blue,style=point,symbol=solidbox,symbolsize=25);
> plot([sin(x),cos(x)],x=-4..4,color=[blue,green]);
> plot([sin(x),cos(x),x=-4..4],color=[blue,green]);
> plot([sin(x),cos(x)],x=4..4,color=[blue,green],scaling=CONSTRAINED);
> plot([x^3,3*x^2,6*x],x=-3..3,y=-9..9,title="f(x)=x^3,
f'(x)=3x^2 ve f''(x)=6x fonksiyonlarının grafikleri",labels=["xekseni","yekseni"],legend=["f(x)=x^3","f'(x)=3x^2","f''(x)=6x"],legendstyle
=[location=right],linestyle=[solid,longdash,dot],view=[-2..2,8..8]);
> with(plots);
[ animate , animate3d , animatecurve, arrow, changecoords , complexplot , complexplot3d ,
conformal , conformal3d , contourplot , contourplot3d , coordplot , coordplot3d ,
densityplot , display , dualaxisplot , fieldplot , fieldplot3d , gradplot , gradplot3d ,
implicitplot , implicitplot3d , inequal , interactive , interactiveparams , intersectplot ,
listcontplot , listcontplot3d , listdensityplot , listplot , listplot3d , loglogplot , logplot ,
matrixplot , multiple , odeplot , pareto , plotcompare , pointplot , pointplot3d , polarplot ,
polygonplot , polygonplot3d , polyhedra_supported , polyhedraplot , rootlocus ,
semilogplot , setcolors , setoptions , setoptions3d , spacecurve, sparsematrixplot ,
surfdata , textplot , textplot3d , tubeplot ]
> p:=plot(sin(x),x=-5..0,color=blue):
> q:=plot(2*x,x=0..2,color=black):
> r:=plot(-(1/4)*x^2+8,x=2..6):
> display({p,q,r});
> plot(abs(x^2-6*x+8),x=-1..7);
> plot(floor(x),x=-3..3,color=brown);
> plot(floor(x),x=-3..3,color=brown,discont=true);
Parçalı fonksiyon tanımlamak
piecewise komutu ile yapılır. Kullanımı
piecewise(şart1,fonk1,şart2,fonk2,..); şeklindedir.
> f:=x->piecewise(x>0,x^2,x=0,x,x<0,x+1);
f := xpiecewise( 0x, x2, x0, x, x0, x1 )
> f(a);
a2



a



 a1

> plot(f(x),x=-3..3);
0a
a0
a0
> with(plots):
> coordplot3d(cylindrical,labelling=true);
> cylinderplot([1.5*cos(t),sin(t),z],t=0..2*Pi,z=-2..4);
> with(plots):
> a1:=coordplot3d(cylindrical,labelling=true):
> a2:=cylinderplot([1.5*cos(t),sin(t),z],t=0..2*Pi,z=-2..4):
> display(a1,a2);
> with(plots):
> plot3d(x^2+y^2,x=-4..4,y=-4..4);
> plot3d({-10-x^2-y^2,-50},x=-5..5,y=-5..5);