File:Partial sums riemann zeta function.svg
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this PNG preview of this SVG file: 576 × 432 pixels. Other resolutions: 320 × 240 pixels | 640 × 480 pixels | 1,024 × 768 pixels | 1,280 × 960 pixels | 2,560 × 1,920 pixels.
Original file (SVG file, nominally 576 × 432 pixels, file size: 31 KB)
File information
Structured data
Captions
Summary
[edit]DescriptionPartial sums riemann zeta function.svg |
English: The 30 first partial sums of Riemann's zeta function, for s = 1 and 2 (real numbers). This corresponds to the harmonic series, and the series introduced in the Basel problem. |
Date | |
Source | Own work |
Author | Åshild Telle |
Other versions | File:Partial sums riemann zeta function-no.svg, File:Partial sums riemann zeta function.png, File:Partial sums riemann zeta function-no.png |
SVG development InfoField | This plot was created with Matplotlib. |
Source code InfoField | Python codeimport numpy as np
import matplotlib.pyplot as plt
def riemann_zeta_fn(n : int, s : complex) -> np.ndarray:
"""
Args_
n - number of points to plot
s - exponential
Returns:
numpy array of length n; values for the first n
terms in the series defining the riemann zeta function
"""
n_values = np.arange(1, n+1)
sequence_values = np.array([1/(n**s) for n in n_values])
return n_values, np.cumsum(sequence_values)
n = 30
n_values, riemann1 = riemann_zeta_fn(n, 1)
n_values, riemann2 = riemann_zeta_fn(n, 2)
label1 = r"$\sum_{n = 1}^{\infty} \frac{1}{n}$"
label2 = r"$\sum_{n = 1}^{\infty} \frac{1}{n^2}$"
plt.plot(n_values, riemann1, '*', label=label1)
plt.plot(n_values, riemann2, 'xb', label=label2)
plt.xlabel("n")
plt.ylabel("Partial sums")
plt.legend(fontsize=15)
plt.savefig("riemann_zeta_s1and2.svg")
|
Licensing
[edit]I, the copyright holder of this work, hereby publish it under the following license:
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 | 17:39, 9 April 2020 | 576 × 432 (31 KB) | Mewasul (talk | contribs) | corrected label; larger font size | |
09:41, 9 April 2020 | 576 × 432 (30 KB) | Mewasul (talk | contribs) | Uploaded own work with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
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 | 460.8pt |
---|---|
Height | 345.6pt |