Math for the people, by the people.
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS
 To assign another meaning to a symbol that already has a meaning, or a new operation to an operator that is already assigned to another operation. Perhaps the quintessential example of overloading in mathematics is the case of the Greek letter . In geometry refers to the ratio between the perimeter and the diameter on a circle, while in number theory refers to the prime counting function, and not the multiplication of by the circle perimeter/diameter ratio. In some cases it is possible to resolve meaning purely from context. For example, if occurs under a or a it is most likely just a generic iterator. Absent those Greek letters, it could be the imaginary unit, . The + operator is often overloaded to be both the addition of numbers operator and the string concatenation operator. In computer programming languages, overloading is one of the kinds of ad-hoc polymorphism, and it is argued that this helps reduce the kind of notational clutter that might ensue if every operation had to have an operator specifically designed for its type.

(view preamble)

 View style: HTML with imagespage imagesTeX source

 Attachments: list of overloaded symbols (Example) by PrimeFan

Cross-references: type, languages, string, addition, imaginary unit, iterator, generic, multiplication, prime counting function, number theory, circle, diameter, perimeter, ratio, geometry, Greek letter, operator, operation
There are 5 references to this entry.

This is version 3 of overload, born on 2006-06-27, modified 2006-11-19.
Object id is 8102, canonical name is Overload.
Accessed 453 times total.

Classification:
 AMS MSC: 00A99 (General :: General and miscellaneous specific topics :: Miscellaneous topics) 68N15 (Computer science :: Software :: Programming languages)