File:Funktionsgraph z(Q) (0-9).svg
Original file (SVG file, nominally 239 × 244 pixels, file size: 33 KB)
Captions
Summary[edit]
DescriptionFunktionsgraph z(Q) (0-9).svg | |
Date | |
Source | Own work |
Author | SweetWood |
Other versions | Funktionsgraph Q(z) (0-9).svg |
SVG development InfoField | |
Source code InfoField | Asymptote code// created with Asymptote 2.47
import graph;
import settings;
outformat="pdf";
unitsize(6.2mm);
int Q_start = 0; // start value for drawing graph of inverse function z(Q)
int Q_end = 9; // end value for drawing graph of inverse function z(Q)
// prove if the given number is even
// Parameters: n ... integer number
// Returns: true if n is even; false otherwise
//
bool isEven(int n) {
return ((n % 2) == 0);
}
// prove if the given number is odd
// Parameters: n ... integer number
// Returns: true if n is odd; false otherwise
//
bool isOdd(int n) {
return ((n % 2) != 0);
}
// calculate inverse function of Q
// Parameters: n ... integer number
// Returns: n/2 if n is even;
// (n+9)/2 otherwise
//
int Qinverse(int n=0) {
if (isEven(n)) { return (n # 2); }
return ((n + 9) # 2);
}
// draw graph of inverse function z(Q)
pen graphPen = red + scale(2) * currentpen;
for (int Q = Q_start; Q < (Q_end + 1); ++Q) {
dot( (Q, Qinverse(Q)), graphPen );
}
// axes
pen axesPen = gray(0.5) + dashed + linewidth(0.5*linewidth());
xaxis( "$Q$",
BottomTop,
LeftTicks(n=1, begin=false, end=false, extend=true, pTick=axesPen) );
yaxis( "$z(Q)$",
LeftRight,
RightTicks(n=1, begin=false, end=false, extend=true, pTick=axesPen) );
// label
real pos = (Q_end - Q_start) / 2.0;
label(scale(2) * "$z(Q)$", (pos, pos), graphPen);
|
Licensing[edit]
This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication. | |
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 15:47, 29 October 2018 | 239 × 244 (33 KB) | SweetWood (talk | contribs) | changed proportions for easier readability | |
15:35, 28 October 2018 | 361 × 365 (34 KB) | SweetWood (talk | contribs) | improved graphics | ||
15:40, 16 December 2016 | 461 × 461 (34 KB) | SweetWood (talk | contribs) | auf quadratisches Bildformat umgestellt | ||
15:27, 12 December 2016 | 744 × 1,052 (33 KB) | SweetWood (talk | contribs) | User created page 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 de.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.
Width | 191.46pt |
---|---|
Height | 195.44pt |