File:Parabolic trajectory.svg
Z projektu Wikimedia Commons
Skočit na navigaci
Skočit na vyhledávání
Velikost tohoto PNG náhledu tohoto SVG souboru: 641 × 265 pixelů. Jiná rozlišení: 320 × 132 pixelů | 640 × 265 pixelů | 1 024 × 423 pixelů | 1 280 × 529 pixelů | 2 560 × 1 058 pixelů.
Původní soubor (soubor SVG, nominální rozměr: 641 × 265 pixelů, velikost souboru: 8 KB)
Informace o souboru
Strukturovaná data
Popisky
PopisParabolic trajectory.svg | Illustration of a parabolic trajectory. |
Datum | (UTC) |
Zdroj | self-made with MATLAB. Tweaked in Inkscape. |
Autor | Oleg Alexandrov |
Public domainPublic domainfalsefalse |
Já, autor tohoto díla, jej tímto uvolňuji jako volné dílo, a to celosvětově. V některých zemích to není podle zákona možné; v takovém případě: Poskytuji komukoli právo užívat toto dílo za libovolným účelem, a to bezpodmínečně s výjimkou podmínek vyžadovaných zákonem. |
Source code (MATLAB)[editovat]
% illustration of a parabolic trajectory
function main()
L=0.8;
s=0.1;
q=-0.4;
N=100;
arrow_size = 0.1;
sharpness = 20;
arrow_type = 1;
arrlen = 0.3; % arrow length
tiny = 0.01;
ball_radius = 0.05;
X=linspace(-L, L, N);
Y =L^2 - X.^2;
Xl = linspace(-L-s, L+s, N);
% KSmrq's colors
red = [0.867 0.06 0.14];
blue = [0, 129, 205]/256;
green = [0, 200, 70]/256;
yellow = [254, 194, 0]/256;
white = 0.99*[1, 1, 1];
black = [0, 0, 0];
gray = 0.5*white;
lw = 2.3;
figure(1); clf; hold on; axis equal; axis off;
plot(X, Y, 'linewidth', lw, 'linestyle', '--', 'color', blue);
arrow([q-tiny, L^2-q^2], [q+arrlen-tiny, L^2-q^2-2*q*arrlen], lw, arrow_size, sharpness, arrow_type, red);
ball(q, L^2 - q^2, ball_radius, gray)
plot(Xl, 0*Xl, 'linewidth', 2*lw, 'color', black);
%saveas(gcf, 'Parabolic_trajectory.eps', 'psc2')
plot2svg('Parabolic_trajectory.svg');
function ball(x, y, radius, color) % draw a ball of given uniform color
Theta=0:0.1:2*pi;
X=radius*cos(Theta)+x;
Y=radius*sin(Theta)+y;
H=fill(X, Y, color);
set(H, 'EdgeColor', [0, 0, 0]);
function arrow(start, stop, thickness, arrow_size, sharpness, arrow_type, color)
% Function arguments:
% start, stop: start and end coordinates of arrow, vectors of size 2
% thickness: thickness of arrow stick
% arrow_size: the size of the two sides of the angle in this picture ->
% sharpness: angle between the arrow stick and arrow side, in degrees
% arrow_type: 1 for filled arrow, otherwise the arrow will be just two segments
% color: arrow color, a vector of length three with values in [0, 1]
% convert to complex numbers
i=sqrt(-1);
start=start(1)+i*start(2); stop=stop(1)+i*stop(2);
rotate_angle=exp(i*pi*sharpness/180);
% points making up the arrow tip (besides the "stop" point)
point1 = stop - (arrow_size*rotate_angle)*(stop-start)/abs(stop-start);
point2 = stop - (arrow_size/rotate_angle)*(stop-start)/abs(stop-start);
if arrow_type==1 % filled arrow
% plot the stick, but not till the end, looks bad
t=0.5*arrow_size*cos(pi*sharpness/180)/abs(stop-start); stop1=t*start+(1-t)*stop;
plot(real([start, stop1]), imag([start, stop1]), 'LineWidth', thickness, 'Color', color);
% fill the arrow
H=fill(real([stop, point1, point2]), imag([stop, point1, point2]), color);
set(H, 'EdgeColor', 'none')
else % two-segment arrow
plot(real([start, stop]), imag([start, stop]), 'LineWidth', thickness, 'Color', color);
plot(real([stop, point1]), imag([stop, point1]), 'LineWidth', thickness, 'Color', color);
plot(real([stop, point2]), imag([stop, point2]), 'LineWidth', thickness, 'Color', color);
end
Historie souboru
Kliknutím na datum a čas se zobrazí tehdejší verze souboru.
Datum a čas | Náhled | Rozměry | Uživatel | Komentář | |
---|---|---|---|---|---|
současná | 20. 12. 2007, 05:58 | 641 × 265 (8 KB) | Oleg Alexandrov (diskuse | příspěvky) | {{Information |Description=Illustration of a parabolic trajectory. |Source=self-made with MATLAB |Date=~~~~~ |Author= Oleg Alexandrov |Permission=See below |other_versions= }} {{PD-self}} ==Source code (MATLAB)== |
Tento soubor nemůžete přepsat.
Využití souboru
Na tento soubor neodkazuje na Commons žádná stránka.
Globální využití souboru
Tento soubor využívají následující wiki:
- Využití na ast.wikipedia.org
- Využití na bn.wikipedia.org
- Využití na ca.wikipedia.org
- Využití na cs.wikipedia.org
- Využití na de.wikipedia.org
- Využití na de.wikibooks.org
- Využití na en.wikipedia.org
- Využití na en.wikiversity.org
- Využití na es.wikipedia.org
- Využití na eu.wikipedia.org
- Využití na fr.wikipedia.org
- Využití na gl.wikipedia.org
- Využití na hi.wikipedia.org
- Využití na id.wikipedia.org
- Využití na pl.wikipedia.org
- Využití na pt.wikipedia.org
- Využití na simple.wikipedia.org
- Využití na sr.wikipedia.org
- Využití na tl.wikipedia.org
- Využití na tr.wikipedia.org