function f(x) = x && x is unary or binary?

42 Views Asked by At

I am currently studying Boolean algebra, here is what I learned from school ( If I understand correctly):

  • A Boolean function of one variable (input): unary boolean function.

  • A Boolean function of two variables (input): binary boolean function.

  • A Boolean function of n variables (input): n-ary boolean function.

and

  • ! is a unary Boolean function

  • &&, ∥ are binary Boolean functions

So my question is if I have a function f(x) = x && x, is this unary or binary?

1

There are 1 best solutions below

2
On BEST ANSWER

There is one variable $x$ so it is unary.