Ternary: meaning, definitions and examples
🔺
ternary
[ˈtɜrnəri ]
Definitions
mathematics, programming
Ternary refers to something that consists of three parts or elements. In mathematics and programming, it often describes operations or functions that involve three operands.
Synonyms
threefold, trinitarian, tripartite.
Examples of usage
- Ternary operator allows for a compact conditional statement.
- In a ternary system, numbers are expressed using base three.
- The ternary structure of the composition creates a balanced piece.
mathematics, programming
In programming, a ternary expression is a shorthand for an if-else statement, allowing you to assign a value based on a condition succinctly. It typically takes the form of 'condition ? value_if_true : value_if_false'.
Synonyms
conditional expression, ternary operator.
Examples of usage
- You can use a ternary for simple conditional assignments.
- The ternary syntax varies between programming languages.
- JavaScript supports the ternary operator for conditional expressions.
Interesting Facts
Etymology
- The word 'ternary' comes from the Latin 'ternarius', meaning 'three each' or 'threefold'.
- It shares roots with the word 'tern', which refers to the grouping of three devices or elements.
Mathematics
- In mathematics, 'ternary' refers to a number system that uses three digits – typically 0, 1, and 2.
- Ternary trees are a type of data structure that can have up to three children per node, useful in computer science.
Music
- In music, 'ternary form' is a structure that consists of three parts, often labeled as A-B-A, emphasizing a return to the initial theme.
- This musical format creates a sense of familiarity, as the first section returns after contrasting themes.
Chemistry
- In chemistry, a ternary compound consists of three elements, often forming unique molecular structures and properties.
- Ternary systems are important in understanding the interactions between three reactive components in a mixture.
Literature
- Ternary structure appears in storytelling as a way to organize narratives into three distinct acts or parts, enhancing dramatic tension.
- Many folk tales utilize a ternary pattern, offering three trials, three brothers, or three wishes to emphasize lessons or themes.
Translations
Translations of the word "ternary" in other languages:
🇵🇹 ternário
- ternário (matemática)
- ternário (programação)
🇮🇳 तिर्यक
- त्रैतीयक
- त्रैतीय
🇩🇪 ternär
🇮🇩 ternari
- tiga bagian
- tiga kali
🇺🇦 тернарний
🇵🇱 ternarny
🇯🇵 三項の
🇫🇷 ternaire
🇪🇸 ternario
🇹🇷 ternary
🇰🇷 삼항의
🇸🇦 ثلاثي
🇨🇿 ternární
🇸🇰 ternárny
🇨🇳 三元的
🇸🇮 ternarni
🇮🇸 þríhliða
🇰🇿 үшжақты
🇬🇪 სამმაგი
🇦🇿 ternar
🇲🇽 ternario
Word Frequency Rank
With rank #16,605, this word belongs to specialized vocabulary. While not common in everyday speech, it enriches your ability to express complex ideas.
- ...
- 16602 streamlined
- 16603 brewery
- 16604 palladium
- 16605 ternary
- 16606 radon
- 16607 liquefaction
- 16608 pressurized
- ...