File:Piecewise linear function gnuplot.svg
Size of this PNG preview of this SVG file: 798 × 600 pixels. Other resolutions: 319 × 240 pixels | 639 × 480 pixels | 1,022 × 768 pixels | 1,280 × 962 pixels | 2,560 × 1,925 pixels | 802 × 603 pixels.
Original file (SVG file, nominally 802 × 603 pixels, file size: 71 KB)
File information
Structured data
Captions
Summary
editDescriptionPiecewise linear function gnuplot.svg |
English: Plot of the piecewise linear function |
Date | |
Source | Own work |
Author | Jochen Burghardt |
Other versions | File:PiecewiseLinear.png * File:Piecewise linear function.svg * File:Piecewise linear function gnuplot.svg |
Gnuplot source code |
---|
set xrange [-5:5]
set yrange [-3:3]
set xtics 1
set ytics 1
f(x) = ( x <= -3 ? -3 - x \
: -3 <= x && x <= 0 ? x + 3 \
: 0 <= x && x <= 3 ? 3 - 2*x \
: 0.5*x - 4.5 \
)
set grid
# y axis
set arrow from 0,-3 to 0,3 nohead lt 8
#x axis
plot 0 with lines lt 8 lw 1 title ""
# plot the function
#replot f(x) with lines lt 6 lw 3 title ""
# plot the function in pieces to avoid artifacts at interval boundaries
replot [x=-5:-3] f(x) with lines lt 6 lw 3 title ""
replot [x=-3: 0] f(x) with lines lt 6 lw 3 title ""
replot [x= 0: 3] f(x) with lines lt 6 lw 3 title ""
replot [x= 3: 5] f(x) with lines lt 6 lw 3 title ""
pause -1
|
Licensing
editI, the copyright holder of this work, hereby publish it under the following license:
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/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 12:22, 30 September 2020 | 802 × 603 (71 KB) | Jochen Burghardt (talk | contribs) | Uploaded own work with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on en.wikipedia.org
- Usage on et.wikipedia.org
- Usage on ga.wikipedia.org
- Usage on he.wikipedia.org
- Usage on no.wikipedia.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Short title | Qt SVG Document |
---|---|
Image title | Generated with Qt |
Width | 226.483mm |
Height | 170.039mm |