Template:Ppp/doc

< Template:Ppp
Revision as of 03:15, 28 April 2012 by Cottrells (talk | contribs) (Created page with "{{Documentation subpage}} == Usage == *<code><nowiki>{{ppp|p=a|a=fa|b=fb}}</nowiki></code> gives {{ppp|p=a|a=fa|b=fb}} *<code><nowiki>{{ppp|p=b|a=fa|b=fb}}</nowiki></code> gives...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

  • {{ppp|p=a|a=fa|b=fb}} gives fa
  • {{ppp|p=b|a=fa|b=fb}} gives fb

Thus {{ppp|p={{{1}}}|a=fa|b=fb|..}} can represent any function f given by a set of pairs (a,fa), (b,fb), .. , except that these cannot include a pair (p,fp). To allow the latter also, we can use {{ppp|p=q{{{1}}}|qa=fa|qb=fb|..}}.

Similarly, with Template:Pp we can allow a pair (1,f1) if we use {{pp|q{{{1}}}|qa=fa|qb=fb|..}}, etc. If {{{1}}} takes integer values with a lower bound we can also apply a shift, see that template.