You are on page 1of 2

7

Mathematica - kinematski dijagrami

Graficki prikaz i interaktivno manipuliranje vrijednostima ubrzanja


2 Mathematica7-Manipulate-Kinematski-dijagrami.nb

Odredjivanje interpolacijske funkcije na nekoliko neovisnih skupova podataka, integriranje funkcija i graficki prikaz uz pomoc funkcije Manipulate

Pocetne vrijednosti su v0 =0, s0 =0 i t0 =0

data = 880, k1<, 81, k2<, 83, k3<, 84, k4<<;


f := Interpolation@data, InterpolationOrder → 1D;
ff := Integrate@f@xD, xD;

f1@y1_, y2_, y3_, y4_, t_D := f@tD ê. 8k1 → y1, k2 → y2, k3 → y3, k4 → y4<
fff := Integrate@ff, xD;

f2@y1_, y2_, y3_, y4_, t_D := ff ê. 8x → t, k1 → y1, k2 → y2, k3 → y3, k4 → y4<


f3@y1_, y2_, y3_, y4_, t_D := fff ê. 8x → t, k1 → y1, k2 → y2, k3 → y3, k4 → y4<
Manipulate@Grid@88Plot@f1@y1, y2, y3, y4, tD, 8t, 0, 4<, PlotLabel → Style@"Dijagram ubrzanja", Blue, BoldD, AxesLabel → 8"t", "a"<, PlotRange → AllD,
Plot@f2@y1, y2, y3, y4, tD, 8t, 0, 4<, PlotLabel → Style@"Dijagram brzina", Blue, BoldD, AxesLabel → 8"t", "v"<, PlotRange → AllD,
Plot@f3@y1, y2, y3, y4, tD, 8t, 0, 4<, PlotLabel → Style@"Dijagram pozicija", Blue, BoldD, AxesLabel → 8"t", "s"<D<<D,
88y1, 0, "t1=0, a1 "<, − 4, 4<, 88y2, 0, "t2=1, a2 "<, − 4, 4<, 88y3, 0, "t3=3, a3 "<, − 4, 4<, 88y4, 0, "t4=4, a4 "<, − 4, 4<,
FrameLabel → 8"", "", Style@"Kinematski dijagrami − Pravocrtno gibanje", Blue, BoldD, ""<, SaveDefinitions → TrueD

Kinematski dijagrami - Pravocrtno gibanje

t1=0, a1

t2=1, a2

t3=3, a3

t4=4, a4

Dijagram ubrzanja Dijagram brzina Dijagram pozicija


a v s

t t
2 1 2 3 4 1 2 3 4

-1
-0.5
1
-2
-1.0
t -3
1 2 3 4
-1.5
-4
-1
-2.0
-5
-2 -2.5

You might also like