Template:Ppp/doc
This is a documentation subpage for Template:Ppp. It contains usage information, categories and other content that is not part of the original Template page. |
Usage
edit{{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.
See also parameter selection templates.