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"
(new) |
|||
Line 4: | Line 4: | ||
==Usage== | ==Usage== | ||
− | *Parameter 1: | + | *Parameter 1: page name of GF Divisor |
− | *Parameter 2: | + | *Parameter 2: a,b-values comma delimited (as given in GF Divisor like "3,1,") |
− | |||
− | |||
==Examples== | ==Examples== | ||
− | *<nowiki>{{GFDivisor get m|3 | + | <!-- |
− | *<nowiki>{{GFDivisor get m|3 | + | *<nowiki>{{GFDivisor get m|GF Divisor 3 209|2,1,}}</nowiki> gives {{GFDivisor get m|GF Divisor 3 209|2,1,}}, means {{NPr|3|209}} is divisor of {{NGF|3|207}}. |
+ | *<nowiki>{{GFDivisor get m|GF Divisor 3 209|5,2,}}</nowiki> gives {{GFDivisor get m|GF Divisor 3 209|5,2,}}, means {{NPr|3|209}} is divisor of {{NGF|5|2|208}}. | ||
+ | --> | ||
− | [[Category:Templates]]</noinclude><includeonly>{{#arraydefine:list|{{GP| | + | [[Category:Templates]]</noinclude><includeonly>{{#arraydefine:list|{{GP|{{{1}}}|GFList}}|/\n/}}{{#vardefine:val|0}}{{#vardefine:i|0}}{{#while: |
− | + | | {{#ifexpr:{{#var:i}}<{{#arraysize:list}}|{{#ifexpr:{{#var:val}}=0|true}}}} | |
| <nowiki /> | | <nowiki /> | ||
− | {{#vardefine:nr|{{#arrayindex:list|{{#var:i}}}}}}{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}{{# | + | {{#vardefine:nr|{{#arrayindex:list|{{#var:i}}}}}}{{#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 08:32, 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,")