Tertiary Arithmetics: Is it Possible?

  • Context: Graduate 
  • Thread starter Thread starter Uke
  • Start date Start date
Click For Summary
SUMMARY

The discussion centers on the feasibility of performing arithmetic operations with three operands, termed "ternary" operations. It concludes that any ternary function can be constructed using a sequence of binary and unary operations by encoding two numbers into a single number and then applying a binary function to this encoded number and a third operand. An example of encoding is provided, where the numbers 12345 and 678 are combined into 1020364758. The term 'ternary' is emphasized as the correct terminology for three-argument functions.

PREREQUISITES
  • Understanding of binary and unary operations
  • Familiarity with encoding techniques in mathematics
  • Knowledge of function composition
  • Basic arithmetic principles
NEXT STEPS
  • Research ternary operations in mathematical functions
  • Explore encoding methods for multi-operand calculations
  • Learn about function composition and its applications
  • Investigate the implications of ternary logic in programming languages
USEFUL FOR

Mathematicians, computer scientists, and software developers interested in advanced arithmetic operations and function theory.

Uke
Messages
3
Reaction score
0
Is there any arithmetic operation with three operands (or arguments), such that it cannot be calculated by a sequence of common binary and unary operations? This is not a homework problem or anything like that, I am just curious.
 
Mathematics news on Phys.org
What precisely do you mean by 'arithmetic' here? Anyways, if you're simply talking about functions, then the answer is no, because you can encode a pair of numbers into a single number, and build your ternary function from the two binary functions:

1. Encode the first two numbers into a single number
2. Take the output of (1) and the third number, unpack (1) and compute the ternary function


An example of how to do the encoding would be to alternate taking digits from your two numbers. For example,

encode(12345, 678) = 1020364758

Incidentally, the word is 'ternary'
 

Similar threads

  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 34 ·
2
Replies
34
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 44 ·
2
Replies
44
Views
7K
  • · Replies 10 ·
Replies
10
Views
3K