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 "Template:GFDivisor get m"

From Prime-Wiki
Jump to: navigation, search
Line 16: Line 16:
 
  | {{#ifexpr:{{#var:i}}<{{#arraysize:list}}|{{#ifexpr:{{#var:val}}=0|true}}}}
 
  | {{#ifexpr:{{#var:i}}<{{#arraysize:list}}|{{#ifexpr:{{#var:val}}=0|true}}}}
 
  | <nowiki />
 
  | <nowiki />
{{#vardefine:nr|{{#arrayindex:list|{{#var:i}}}}}}{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}{{#if:{{#pos:{{#var:nr}}|{{{2}}}}}|{{#vardefine:val|{{#replace:{{#var:nr}}|{{{2}}}|}}}}}}
+
{{#vardefine:nr|{{#explode:{{#arrayindex:list|{{#var:i}}}}|#|0}}}}{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}{{#if:{{#pos:{{#var:nr}}|{{{2}}}}}|{{#vardefine:val|{{#replace:{{#var:nr}}|{{{2}}}|}}}}}}
 
}}{{#var:val}}</includeonly>
 
}}{{#var:val}}</includeonly>

Revision as of 15:09, 19 June 2021

Purpose

Returns the exponent of the xGFn of a given GF Divisor.

Usage

  • Parameter 1: page name of GF Divisor
  • Parameter 2: a,b-values comma delimited (as given in GF Divisor like "3,1,")

Examples