File:Envelope cast.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 600 × 480 pixels, file size: 117 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description
English: Envelope of the trajectories of the cast projectiles with constant initial speed
Date
Source Own work
Author IkamusumeFan (slightly fix by JoKalliauer)
SVG development
InfoField
 
The SVG code is valid.
 
This plot was created with Gnuplot.
Source code
InfoField

Gnuplot code

#!/usr/bin/gnuplot
#Gnuplot 5.0+

set term svg font 'Helvetica, 24'
set output 'envelope_cast.svg'

# In this program, the envelope equation is y = (v^2)/(2g) - (ĝ^2)/(2v^2). We take g = 10, v = 10.
# The cast trajectory curve family is y = x tan \theta -(ĝ^2)/(2v^2 cos^2\theta)
g = 10;
v = 10;
# n is the number of the trajectories
n = 101;

set multiplot
set samples 1000

set xrange [-11:11]
set yrange [0:5]
set xtics 2
set ytics 1
set xzeroaxis lt -1 lc rgb "black" lw 1
set yzeroaxis lt -1 lc rgb "black" lw 1

unset label

# Draw the trajectories of the cast objects.
set key off

#theta = pi/n*i;
# The following uses the fact 1/cos^2(theta) = tan(theta)*tan(theta)+1.

plot for [i=1:n-1] x*tan(pi/n*i)-(g*x*x)*(tan(pi/n*i)*tan(pi/n*i)+1)/(2*v*v) lc rgb "red" lw 1;

unset multiplot

set term x11
set output

Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current00:08, 28 January 2018Thumbnail for version as of 00:08, 28 January 2018600 × 480 (117 KB)Perhelion (talk | contribs)+ again middle line // Editing SVG source code using User:Rillke/SVGedit.js; upload handled by User:Rillke/MwJSBot.js
23:56, 27 January 2018Thumbnail for version as of 23:56, 27 January 2018600 × 480 (117 KB)Perhelion (talk | contribs)cleanup code (on request, some code was duplicated 100 times) SVG valid now
19:14, 27 January 2018Thumbnail for version as of 19:14, 27 January 2018600 × 480 (1.2 MB)Shiyu Ji (talk | contribs)change fonts; replace hyphens
06:55, 20 November 2014Thumbnail for version as of 06:55, 20 November 2014600 × 480 (838 KB)IkamusumeFan (talk | contribs)User created page with UploadWizard

File usage on other wikis

The following other wikis use this file:

Metadata