Question: A binary operation is a mathematical operation performed on two elements to derive a third element ( two inputs, one output ) . An unary

A binary operation is a mathematical operation performed on two elements to derive a third element (two inputs, one output).
An unary operation is a mathematical operation performed on one elements to derive another element (one input, one output).
For example operation of multiplication is a binary operation: it takes two numbers and as a result it gives one number (let's say: two numbers 3 and 5 result in 3**5=15)
Operation of taking an absolute value is not a binary operation since it "operates" only on one number (you take absolute value of one number). It is an example of unary operation.
Determine which of the following operations are binary, unary or neither.
adding numbers
Raising a number to the power 6
subtracting numbers
finding maximum of three numbers
Finding greatest common divisor
finding least common multiplier
finding reciprocal of a number
A binary operation is a mathematical operation

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!