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"

From Prime-Wiki
Jump to: navigation, search
(graphs examples)
Line 122: Line 122:
 
Display with image handler:
 
Display with image handler:
 
[[File:Mersenne.csv|legend_title=Mersenne primes,x_type=no,x_title= ,x_unit=No.,y_type=no,y_title= ,y_unit=n value]]
 
[[File:Mersenne.csv|legend_title=Mersenne primes,x_type=no,x_title= ,x_unit=No.,y_type=no,y_title= ,y_unit=n value]]
 +
}}
 +
 +
{{Box|hide=false|title=Examples for graphs extension|content=
 +
Using template [[:Template:PieChart|PieChart]]:
 +
{{PieChart|legend=Fruits|radius=125|values= [
 +
      {"x": "Peaches","y": 100},
 +
      {"x": "Plums","y": 32},
 +
      {"x": "Blueberries","y": 80},
 +
      {"x": "Strawberries","y": 46},
 +
      {"x": "Bananas","y": 41}
 +
    ]
 +
}}
 +
{{PieChart|legend=Fruits|radius=125|rangeliteral= ["red", "green","red","green","red","green","red","green","red","green"] |values= [
 +
      {"x": "perziken","y": 10},
 +
      {"x": "pruimen","y": 10},
 +
      {"x": "bessen","y": 10},
 +
      {"x": "aardbeien","y": 10},
 +
      {"x": "bananen","y": 10},
 +
      {"x": "peach","y": 10},
 +
      {"x": "plum","y": 10},
 +
      {"x": "blueberries","y": 10},
 +
      {"x": "strawberries","y": 10},
 +
      {"x": "bananas","y": 10}
 +
    ]
 +
}}
 +
 +
Using <nowiki><graph></nowiki>-tag directly:
 +
<graph>{
 +
  "version": 2,
 +
  "height": 160,
 +
  "width": 160,
 +
  "legends": [{"title": "Fruits","fill": "color"}],
 +
  "padding": "auto",
 +
  "data": [
 +
    {
 +
      "name": "table",
 +
      "values": [
 +
        {"x": "peach","y": 100,"z": 2},
 +
        {"x": "plums","y": 32,"z": 4},
 +
        {"x": "bluebe","y": 180,"z": 3},
 +
        {"x": "strawb","y": 46,"z": 7},
 +
        {"x": "banan","y": 21,"z": 5}
 +
      ]
 +
    }
 +
  ],
 +
  "scales": [
 +
    {
 +
      "name": "color",
 +
      "range": "category20",
 +
      "domain": {"data": "table","field": "x"},
 +
      "type": "ordinal"
 +
    }
 +
  ],
 +
  "marks": [
 +
    {
 +
      "type": "arc",
 +
      "from": {
 +
        "data": "table",
 +
        "transform": [{"field": "y","type": "pie"}]
 +
      },
 +
      "properties": {
 +
        "enter": {
 +
          "innerRadius": {"value": 100},
 +
          "stroke": {"value": "white"},
 +
          "startAngle": {"field": "layout_start"},
 +
          "outerRadius": {"value": 150},
 +
          "endAngle": {"field": "layout_end"},
 +
          "fill": {"field": "x","scale": "color"}
 +
        }
 +
      }
 +
    },
 +
    {
 +
      "type": "arc",
 +
      "from": {
 +
        "data": "table",
 +
        "transform": [{"field": "z","type": "pie"}]
 +
      },
 +
      "properties": {
 +
        "enter": {
 +
          "innerRadius": {"value": 40},
 +
          "stroke": {"value": "white"},
 +
          "startAngle": {"field": "layout_start"},
 +
          "outerRadius": {"value": 90},
 +
          "endAngle": {"field": "layout_end"},
 +
          "fill": {"field": "x","scale": "color"}
 +
        }
 +
      }
 +
    }
 +
  ]
 +
}</graph>
 +
 +
<graph>{
 +
  "version": 2,
 +
  "width": 150,
 +
  "height": 150,
 +
  "legends": [{"title": "Fruits","fill": "color"}],
 +
  "data": [
 +
{
 +
  "name": "table",
 +
  "values": [
 +
    {"year": "2010","category": "Berries","value": 10},
 +
    {"year": "2010","category": "Plums","value": 12},
 +
    {"year": "2010","category": "Oranges","value": 3},
 +
    {"year": "2010","category": "Apples","value": 7},
 +
    {"year": "2015","category": "Berries","value": 8},
 +
    {"year": "2015","category": "Plums","value": 4},
 +
    {"year": "2015","category": "Oranges","value": 5},
 +
    {"year": "2015","category": "Apples","value": 9}
 +
  ]
 +
}
 +
  ],
 +
  "scales": [
 +
{
 +
  "name": "radius",
 +
  "type": "ordinal",
 +
  "domain": {"data": "table","field": "year"},
 +
  "range": "height"
 +
},
 +
{
 +
  "name": "color",
 +
  "range": "category20",
 +
  "domain": {"data": "table","field": "category"},
 +
  "type": "ordinal"
 +
}
 +
  ],
 +
  "marks": [
 +
{
 +
  "type": "group",
 +
  "from": {
 +
    "data": "table",
 +
    "transform": [{"type": "facet","groupby": ["year"]}]
 +
  },
 +
  "marks": [
 +
    {
 +
      "name": "stacked pie",
 +
      "type": "arc",
 +
      "from": {"transform": [{"field": "value","type": "pie"}]},
 +
      "properties": {
 +
        "enter": {
 +
          "innerRadius": {
 +
            "scale": "radius",
 +
            "field": "year",
 +
            "offset": 25
 +
          },
 +
          "stroke": {"value": "white"},
 +
          "startAngle": {"field": "layout_start"},
 +
          "outerRadius": {
 +
            "scale": "radius",
 +
            "field": "year",
 +
            "offset": 75
 +
          },
 +
          "endAngle": {"field": "layout_end"},
 +
          "fill": {"field": "category","scale": "color"}
 +
        }
 +
      }
 +
    },
 +
    {
 +
      "type": "text",
 +
      "properties": {
 +
        "enter": {
 +
          "radius": {
 +
            "scale": "radius",
 +
            "field": "year",
 +
            "offset": 30
 +
          },
 +
          "theta": {"value":1.2},
 +
          "x": 100,
 +
          "y": 100,
 +
          "text": {"field": "year"},
 +
          "fill": {"value": "#eec"},
 +
          "fontSize": {"value": 18}
 +
        }
 +
      }
 +
    }
 +
  ]
 +
}
 +
  ]
 +
}</graph>
 +
 +
<graph>
 +
{
 +
  "version": 2, "width": 400, "height": 200,
 +
  "padding": {"top": 10, "left": 30, "bottom": 30, "right": 10},
 +
  "data": [
 +
    {
 +
      "name": "table",
 +
      "values": [
 +
        {"x": 1,  "y": 28}, {"x": 2,  "y": 55},
 +
        {"x": 3,  "y": 43}, {"x": 4,  "y": 91},
 +
        {"x": 5,  "y": 81}, {"x": 6,  "y": 53},
 +
        {"x": 7,  "y": 19}, {"x": 8,  "y": 87},
 +
        {"x": 9,  "y": 52}, {"x": 10, "y": 48},
 +
        {"x": 11, "y": 24}, {"x": 12, "y": 49},
 +
        {"x": 13, "y": 87}, {"x": 14, "y": 66},
 +
        {"x": 15, "y": 17}, {"x": 16, "y": 27},
 +
        {"x": 17, "y": 68}, {"x": 18, "y": 16},
 +
        {"x": 19, "y": 49}, {"x": 20, "y": 15}
 +
      ]
 +
    }
 +
  ],
 +
  "scales": [
 +
    {
 +
      "name": "x",
 +
      "type": "ordinal",
 +
      "range": "width",
 +
      "domain": {"data": "table", "field": "x"}
 +
    },
 +
    {
 +
      "name": "y",
 +
      "range": "height",
 +
      "nice": true,
 +
      "domain": {"data": "table", "field": "y"}
 +
    }
 +
  ],
 +
  "axes": [
 +
    {"type": "x", "scale": "x"},
 +
    {"type": "y", "scale": "y"}
 +
  ],
 +
  "marks": [
 +
    {
 +
      "type": "rect",
 +
      "from": {"data": "table"},
 +
      "properties": {
 +
        "enter": {
 +
          "x": {"scale": "x", "field": "x"},
 +
          "width": {"scale": "x", "band": true, "offset": -1},
 +
          "y": {"scale": "y", "field": "y"},
 +
          "y2": {"scale": "y", "value": 0}
 +
        },
 +
        "update": {
 +
          "fill": {"value": "steelblue"}
 +
        },
 +
        "hover": {
 +
          "fill": {"value": "red"}
 +
        }
 +
      }
 +
    }
 +
  ]
 +
}</graph>
 +
 +
 +
Some other demo graphs are shown [https://www.mediawiki.org/wiki/Extension:Graph/Demo here].
 
}}
 
}}

Revision as of 20:33, 2 January 2019

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
!TopLevel(19 C)
User de(2 C, 2 P)
User de-1(1 P)
no subcategories
User de-N(1 P)
no subcategories
User en(4 C, 7 P)
User en-1(empty)
no subcategories
User en-3(2 P)
no subcategories
User en-5(2 P)
no subcategories
User en-N(3 P)
no subcategories
User eo(1 C, 1 P)
User eo-1(1 P)
no subcategories
User es(1 C, 2 P)
User es-1(2 P)
no subcategories
User fr(1 C, 2 P)
User fr-1(2 P)
no subcategories
User ru(1 C, 2 P)
User ru-N(2 P)
no subcategories
User uk(1 C, 1 P)
User uk-N(1 P)
no subcategories
User zh(1 C, 1 P)
User zh-1(1 P)
no subcategories
Files(6 C, 1 F)
CSV(40 F)
no subcategories
Images(1 F)
no subcategories
PDF(3 F)
no subcategories
Sieves(49 F)
no subcategories
SVG(1 F)
no subcategories
Wiki Images(1 C, 10 F)
no subcategories
Frequently asked questions(4 C, 3 P)
General FAQ(1 P)
no subcategories
Hardware FAQ(1 P)
no subcategories
Math FAQ(empty)
no subcategories
Project FAQ(1 P)
no subcategories
Hardware(22 P)
no subcategories
Help(18 P)
no subcategories
Maintenance(4 C, 1 P)
DeleteMe(1 P, 6 F)
no subcategories
Missing XCount(empty)
no subcategories
no subcategories
Wrong XCount(empty)
no subcategories
Math(7 C, 39 P)
Algorithms(2 C, 3 P)
Error checking(3 P)
no subcategories
Primality tests(3 C, 2 P)
no subcategories
no subcategories
no subcategories
Conjectures(1 C, 2 P)
Riesel prime conjectures(1 C, 6 P)
Riesel problem 1(43 P)
Riesel problem 2(24 P)
Riesel problem 3(4 P)
Riesel problem 4(2 P)
Riesel problem real 1(23 P)
Factorization(1 C, 15 P)
Factoring program(7 P)
no subcategories
Functions(1 C, 4 P)
Operations(1 C, 5 P)
Multiplication(3 P)
no subcategories
Geometry(4 P)
no subcategories
Number systems(6 P)
no subcategories
Theorems(1 P)
no subcategories
Number(7 C, 23 P)
Aliquot sequence(2 P)
no subcategories
Generalized Fermat number(12 C, 3 P)
GF Divisors(1,432 P)
no subcategories
Generalized Repunit(3 P)
no subcategories
no subcategories
Long number(15 P)
no subcategories
Number systems(6 P)
no subcategories
Prime(9 C, 11 P)
Carol-Kynea prime(4 C, 386 P)
Carol-Kynea power-of(22 P)
no subcategories
no subcategories
no subcategories
no subcategories
Cullen prime(3 C, 246 P)
Cullen prime without(39 P)
no subcategories
Cullen prime M(1 P)
no subcategories
Cullen prime P(1 P)
no subcategories
Leyland prime(2 C, 1 P)
Leyland prime M(2 C, 1 P)
Leyland prime M PRP(empty)
Leyland prime P(2 C, 1,816 P)
Leyland prime P proven(307 P)
Leyland prime P PRP(1,507 P)
Mersenne prime(54 P)
no subcategories
Proth prime(11 C, 3 P)
Proth maintain(4 C)
Proth Count-0(3 C)
Proth Low-weight(3 C)
Proth Missing-range(5 C)
Proth Sierpinski(2 C)
Proth 2(23 C, 199 P)
Proth 2 1-300(42 P)
Proth 2 300-2000(51 P)
Proth 2 2000-4000(11 P)
Proth 2 4000-6000(8 P)
Proth 2 6000-8000(6 P)
Proth 2 8000-10000(6 P)
Proth 2 10e4-10e5(49 P)
Proth 2 10e5-10e6(19 P)
Proth 2 10e6-10e7(6 P)
Proth 2 10e7-10e8(2 P)
Proth 2 10e8-10e9(3 P)
Proth 2 10e9-10e10(2 P)
Proth 2 3k-value(90 P)
Proth 2 15k-value(22 P)
Proth 2 2145k-value(2 P)
Proth 2 2805k-value(1 P)
Proth 2 Count-0(13 P)
Proth 2 Count-100(8 P)
Proth 2 Intervals(9 C)
Proth 2 Low-weight(64 P)
Proth 2 Missing-range(44 P)
Proth 2 Sierpinski(12 P)
Proth 3(1 C, 18 P)
Proth 4(3 C, 13 P)
Proth 4 Count-0(4 P)
Proth 4 Low-weight(10 P)
Proth 4 Sierpinski(5 P)
Proth 5(3 C, 37 P)
Proth 5 Count-0(29 P)
Proth 5 Low-weight(34 P)
Proth 6(3 P)
no subcategories
Proth 7(1 C, 2 P)
Proth 10(1 C, 2 P)
Proth 11(1 P)
no subcategories
Proth 25(1 P)
no subcategories
Proth 999(1 P)
no subcategories
Riesel prime(13 C, 2 P)
Riesel maintain(6 C)
Riesel prime const(8 P)
Riesel Count-0(7 C)
Riesel Low-weight(6 C)
Riesel Riesel(2 C)
Riesel 2(26 C, 3,923 P)
Riesel 2 1-300(151 P)
Riesel 2 300-2000(416 P)
Riesel 2 2000-4000(82 P)
Riesel 2 4000-6000(129 P)
Riesel 2 6000-8000(25 P)
Riesel 2 8000-10000(21 P)
Riesel 2 10e4-10e5(1,150 P)
Riesel 2 10e5-10e6(1,759 P)
Riesel 2 10e6-10e7(90 P)
Riesel 2 10e7-10e8(39 P)
Riesel 2 10e8-10e9(19 P)
Riesel 2 10e9-10e10(7 P)
Riesel 2 3k-value(1,185 P)
Riesel 2 15k-value(450 P)
Riesel 2 2145k-value(41 P)
Riesel 2 2805k-value(26 P)
Riesel 2 Count-0(100 P)
Riesel 2 Count-100(24 P)
Riesel 2 Intervals(4 C)
Riesel 2 Low-weight(2,219 P)
Riesel 2 Missing-range(462 P)
Riesel 2 no-SG(435 P)
Riesel 2 no-twin(309 P)
Riesel 2 Riesel(42 P)
Riesel 3(1 C, 10 P)
Riesel 4(3 C, 18 P)
Riesel 4 Count-0(7 P)
Riesel 4 Low-weight(16 P)
Riesel 4 Riesel(4 P)
Riesel 5(3 C, 69 P)
Riesel 5 Count-0(53 P)
Riesel 5 Low-weight(65 P)
Riesel 6(2 P)
no subcategories
Riesel 7(1 C, 3 P)
Riesel 10(1 C, 18 P)
Riesel 16(2 C, 4 P)
Riesel 16 Count-0(3 P)
Riesel 128(2 C, 1 P)
Riesel 128 Count-0(1 P)
Riesel 263(1 C, 1 P)
Riesel 263 Count-0(1 P)
Riesel 284(1 P)
no subcategories
Riesel 1024(2 C, 2 P)
Riesel 1024 Count-0(2 P)
Twin prime(2 P)
no subcategories
Williams prime(4 C, 1 P)
Williams prime MM(1 C, 217 P)
Williams prime MP(1 C, 192 P)
Williams prime PM(1 C, 131 P)
Williams prime PP(1 C, 113 P)
Woodall prime(3 C, 779 P)
Woodall prime without(11 P)
no subcategories
Woodall prime M(1 C, 5 P)
Woodall prime P(1 C, 4 P)
Organizations(1 C, 4 P)
Universities(4 P)
no subcategories
Person(196 P)
no subcategories
Project(4 C, 3 P)
Cunningham project(5 P)
no subcategories
Conjectures 'R Us(4 C, 1 P)
CRUS Even Riesel(3 P)
no subcategories
no subcategories
Riesel problem 2(24 P)
no subcategories
no subcategories
no subcategories
GIMPS FAQ(7 P)
no subcategories
No Prime Left Behind(4 C, 28 P)
NPLB Drive 17(100 P)
no subcategories
NPLB Drive 18(202 P)
no subcategories
NPLB Drive 19(44 P)
no subcategories
NPLB K300 Drive 1(68 P)
no subcategories
PrimeGrid(13 C, 5 P)
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
Riesel Prime Search(1 C, 19 P)
RPS Megabit Drive 1(11 P)
no subcategories
Seventeen or Bust(6 P)
no subcategories
Twin Prime Search(6 P)
no subcategories
Home Prime Search(3 P)
no subcategories
Woodall fill-in(13 P)
no subcategories
Reserved(2 C, 140 P)
Multi Reservation(27 P)
no subcategories
ReservedM(648 P)
no subcategories
Shortcut(19 P)
no subcategories
Software(7 C, 37 P)
Code snippets(4 P)
no subcategories
Error checking(3 P)
no subcategories
Factoring program(7 P)
no subcategories
no subcategories
Prime95(3 P)
no subcategories
Sieving program(6 P)
no subcategories
Tools(2 P)
no subcategories
Spelling(3 P)
no subcategories
System(5 C, 18 P)
Hidden categories(5 C)
no subcategories
Last updated(8 P)
no subcategories
Missing XCount(empty)
no subcategories
no subcategories
Wrong XCount(empty)
no subcategories
no subcategories
Pages with graphs(1 P)
no subcategories
Stub(76 P)
no subcategories
Test pages(4 P)
no subcategories
Teams(1 P)
no subcategories
Templates(4 C, 73 P)
Infoboxes(6 P)
no subcategories
Multilanguage(11 P)
no subcategories
Navboxes(17 P)
no subcategories
Prime collections(43 P)
no subcategories
Websites(10 P)
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 Top5000 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,
Examples for showing images of external pages

Images from external sources have to be put as full link on a page.

Images from Commons Wikimedia

MarinMersenne.jpg
Marin Mersenne
GIMPS_logo.png
GIMPS logo

Image from Wikipedia

Images can only be diplayed in available sizes, no resize possible.

Marin_mersenne.jpg
Image from Wikpedia
Example for SVG support

Test file, original size 580x400 pixel: Test.svg

Test file,size 80 pixel in width: Test.svg

Clicking on the image will lead to the saved file.
Examples for graphs from CSV file

Display with parser function:

Display with image handler:

Examples for graphs extension

Using template PieChart:

Using <graph>-tag directly:


Some other demo graphs are shown here.