Currently there may be errors shown on top of a page, because of a missing Wiki update (PHP version and extension DPL3). |
Navigation
Topics | Help • Register • News • History • How to • Sequences statistics • Template prototypes |
Difference between revisions of "Main Page"
(PDF examples) |
(Example for ExternalData) |
||
Line 49: | Line 49: | ||
}} | }} | ||
− | {{Box|title=Examples for including PDF documents|content= | + | {{Box|hide=true|title=Examples for including PDF documents|content= |
<pdf width="320" height="480">File:First PDF.pdf</pdf> | <pdf width="320" height="480">File:First PDF.pdf</pdf> | ||
*Show document starting at page 3 and different sizings: | *Show document starting at page 3 and different sizings: | ||
<pdf page="3" width="500" height="800">File:First PDF.pdf</pdf> | <pdf page="3" width="500" height="800">File:First PDF.pdf</pdf> | ||
+ | }} | ||
+ | |||
+ | {{Box|hide=false|title=Example for fetching data from RieselPrime database|content= | ||
+ | The data are collected from the internal SQL database by [https://www.mediawiki.org/wiki/Extension:External_Data Extension:External Data]: | ||
+ | * table: RieselPrime | ||
+ | * field: rieselk_id = 4 (-> "1" = Mersenne primes) | ||
+ | * fields collected: n, comment, utm (prime index n, comment like "Woodall", utm: id of Topp5000 page) | ||
+ | |||
+ | Functioning but still complicated: no parser/string functions allowed in "#for_external_table" statement, therefore using variables. | ||
+ | {{#get_db_data:db=RPPDB | ||
+ | |from=RieselPrime | ||
+ | |where=rieselk_id=4 | ||
+ | |order by=n ASC | ||
+ | |data=nval=n,rem=comment,T5000=utm | ||
+ | }} | ||
+ | Mersenne primes <math>2^n-1</math>, prime for ''n'':<br/> | ||
+ | :{{#vardefine:liste|{{#for_external_table:<nowiki/>{{{nval}}},}}}}<!-- | ||
+ | -->{{#vardefine:T5s|{{#for_external_table:<nowiki/>{{{T5000}}},}}}}<!-- | ||
+ | -->{{#vardefine:rems|{{#for_external_table:<nowiki/>{{{rem}}},}}}}<!-- | ||
+ | -->{{#loop:idx|0|48|{{#vardefine:nr|{{#explode:{{#var:liste}}|,|{{#var:idx}}}}}}<!-- | ||
+ | -->{{#vardefine:T5id|{{#explode:{{#var:T5s}}|,|{{#var:idx}}}}}}<!-- | ||
+ | -->{{#vardefine:r|{{#explode:{{#var:rems}}|,|{{#var:idx}}}}}}<!-- | ||
+ | -->{{#if:{{#var:T5id}}|{{T5000|{{#var:T5id}}|{{#var:nr}}}}|{{#var:nr}}}}<!-- | ||
+ | -->{{#if:{{#var:r}}|<span style="color:red;" title="{{#var:r}}">'''*'''</span>}},<nowiki> </nowiki><!-- | ||
+ | -->}} | ||
}} | }} |
Revision as of 20:16, 22 December 2018
Language: | English • Deutsch |
---|
Here is a Wiki for primes and related topics, still under construction.
Examples in math (LaTeX) notation
<math>N \supset \mathbb P = \{ p_n \mid n \in N \}</math>
- [math]\displaystyle{ N \supset \mathbb P = \{ p_n \mid n \in N \} }[/math]
<math>\sideset{_1^2}{_3^4}\prod_a^b</math>
- [math]\displaystyle{ \sideset{_1^2}{_3^4}\prod_a^b }[/math]
<math>\iiiint\limits_{F} \, dx\,dy\,dz\,dt</math>
- [math]\displaystyle{ \iiiint\limits_{F} \, dx\,dy\,dz\,dt }[/math]
<math>f(n) = \begin{cases} n/2, & \mbox{if }n\mbox{ is even} \\ 3n+1, & \mbox{if }n\mbox{ is odd} \end{cases}</math>
- [math]\displaystyle{ f(n) = \begin{cases} n/2, & \mbox{if }n\mbox{ is even} \\ 3n+1, & \mbox{if }n\mbox{ is odd} \end{cases} }[/math]
<math>\sum_{i=1}^\infty \frac{1}{p_i} = \frac{1}{2} + \frac{1}{3} + \frac{1}{5} + \frac{1}{7} + \frac{1}{11} + \dotsb = \infty</math>
- [math]\displaystyle{ \sum_{i=1}^\infty \frac{1}{p_i} = \frac{1}{2} + \frac{1}{3} + \frac{1}{5} + \frac{1}{7} + \frac{1}{11} + \dotsb = \infty }[/math]
<math>\pi(1)=0\ ;\ \pi(10) = 4\ ;\ \pi(100) = 25\ ;\ \pi(1000) = 168; \ \pi(1000000)=78498</math>
- [math]\displaystyle{ \pi(1)=0\ ;\ \pi(10) = 4\ ;\ \pi(100) = 25\ ;\ \pi(1000) = 168; \ \pi(1000000)=78498 }[/math]
Example of page categorizations
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
Example of prime sequence and reservation
Configuration tests: external links open in new browser tab/window
Examples of template usage and data table generating
The category for Carol/Kynea primes holds 3 example pages for some bases (2, 6 and 10).
These pages hold their data in the template CarolKyneaBase using named parameters.
The parameters can be used to create automatically a table of those pages.Examples for including PDF documents
- Show document starting at page 3 and different sizings:
Example for fetching data from RieselPrime database
The data are collected from the internal SQL database by Extension:External Data:
- table: RieselPrime
- field: rieselk_id = 4 (-> "1" = Mersenne primes)
- fields collected: n, comment, utm (prime index n, comment like "Woodall", utm: id of Topp5000 page)
Functioning but still complicated: no parser/string functions allowed in "#for_external_table" statement, therefore using variables.
Mersenne primes [math]\displaystyle{ 2^n-1 }[/math], prime for n:
- 2*, 3, 5*, 7*, 13, 17, 19*, 31, 61, 89, 107, 127, 521, 607, 1279, 2203, 2281, 3217, 4253, 4423, 9689, 9941, 11213, 19937, 21701, 23209, 44497, 86243, 110503, 132049, 216091, 756839, 859433, 1257787, 1398269, 2976221, 3021377, 6972593, 13466917, 20996011, 24036583, 25964951, 30402457, 32582657, 37156667, 42643801, 43112609, 57885161,