Science Fair Projects Ideas - Arity

All Science Fair Projects

      

Science Fair Project Encyclopedia for Schools!

  Search    Browse    Forum  Coach    Links    Editor    Help    Tell-a-Friend    Encyclopedia    Dictionary     

Science Fair Project Encyclopedia

For information on any area of science that interests you,
enter a keyword (eg. scientific method, molecule, cloud, carbohydrate etc.).
Or else, you can start by choosing any of the categories below.

Arity

In mathematics and computer programming the arity of a function or an operator is the number of arguments or operands it takes (arity is sometimes referred to as valency, although that actually refers to another meaning of valency in mathematics). The naming follows the same convention as the naming used for n-based number systems (compare binary and hexadecimal). In these cases, it is the Latin prefix and the -ary ending that creates each arity. Below is a list of some examples.

The arity of a function or operator of:

  • nullary or anary means zero parameters.
  • unary means one parameter.
  • binary means two parameters.
  • ternary, also trinary and tertiary, means three parameters.
  • quaternary means four parameters.
  • quinary means five parameters.
  • senary means six parameters.
  • septenary means seven parameters.
  • octonary means eight parameters.
  • nonary means nine parameters.
  • denary means ten parameters.
  • undenary means eleven parameters.
  • duodenary means twelve parameters.
  • vigesary means twenty parameters.
  • centenary means a hundred parameters.
  • millenary means a thousand parameters.
  • n-ary means n parameters

Note however, that anything above quinary is hardly found in any math- or programming-related literature. It is however often used to describe anything related to that number (i.e. undenary chess is a chess variant with an 11x11 board, or Millenary Petition of 1603).

Contents

Examples

Nullary

Sometimes, it is useful to consider a constant as an operator or function of arity 0, and hence call it nullary (or sometimes anary).

Unary

Examples of unary operators in math and in programming include the unary minus and plus, the add-one or subtract-one operator in C-style languages, not in logical languages and the factorial function in math. Also, the two's complement operator and the address reference operators are examples of unary operators in math and programming.

Binary

Most operators encountered in programming are of the binary form. For both programming and math these can be the multiplication operator, the addition operator, the division operator. Logical predicates such as OR, XOR, AND, IMP are typically used as binary operators with two distinct operands.

Ternary

From C, C++, Java, Perl and variants comes the ternary operator ?:, which is a so-called conditional operator , taking three parameters.

10-26-2009 08:16:03
The contents of this article is licensed from www.wikipedia.org under the GNU Free Documentation License. Click here to see the transparent copy and copyright details
Science kits, science lessons, science toys, maths toys, hobby kits, science games and books - these are some of many products that can help give your kid an edge in their science fair projects, and develop a tremendous interest in the study of science. When shopping for a science kit or other supplies, make sure that you carefully review the features and quality of the products. Compare prices by going to several online stores. Read product reviews online or refer to magazines.

Start by looking for your science kit review or science toy review. Compare prices but remember, Price $ is not everything. Quality does matter.
Science Fair Coach
What do science fair judges look out for?
ScienceHound
Science Fair Projects for students of all ages
All Science Fair Projects.com Site
All Science Fair Projects Homepage
Search | Browse | Links | From-our-Editor | Books | Help | Contact | Privacy | Disclaimer | Copyright Notice