Best Answer

In mathematics, unary operations are functions having only one number for an input. These include functions such as finding squares, square roots, and reciprocals for a number.

User Avatar

Wiki User

โˆ™ 2011-02-16 07:43:35
This answer is:
User Avatar
Study guides


20 cards

A polynomial of degree zero is a constant term

The grouping method of factoring can still be used when only some of the terms share a common factor A True B False

The sum or difference of p and q is the of the x-term in the trinomial

A number a power of a variable or a product of the two is a monomial while a polynomial is the of monomials

See all cards

J's study guide

2 cards

What is the name of Steve on minecraft's name

What is love

See all cards

Steel Tip Darts Out Chart

96 cards





See all cards

Add your answer:

Earn +20 pts
Q: What is a unary operation?
Write your answer...
Related questions

Different operations done using rdbms?

different rdbms operations are delete,update easily and other u find on some other site. •Insert : unary operation •Delete : unary operation •Update : unary operation •Select : unary operation •Project : unary operation •Join : binary operation •Union : binary operation •Intersection : binary operation •Difference : binary operation

What is an additive function?

An additive function is a unary function which preserves the addition operation.

What is unary mening?

'not' for instance is a unary operator. It is unary in the sense that it operates on a single item. In contrast a binary operator such as addition operates on two items.

How is unary operator ' plus 'different from ' plus ' operator?

There is no unary plus in C, but if there were, it would have only one operand, unlike the binary plus which has two: x = a + b; /* binary plus */ x = + b; /* unary plus -- not in C*/ x = a - b; /* unary plus */ x = - b; /* unary minus */

Unary relationship in database?

Unary RelationshipsUnary relationships have only one participant-the relation is associated with itself. The classic example of a unary relationship is Employee to Manager. One's manager is, in most cases, also an employee with a manager of his or her own.

What is difference between binary and unary operator in c language?

The number of arguments will be one for the unary operators and two for the binary operators. In the case of unary operators, the argument must be of the same type as that of the enclosing class or structure.

What is the difference between unary and binary?

In programming a unary and binary operator defines how many components make up an expression.

Does a unary expression consists of only one operand with no operator?

No, a unary expression consists of one operand and one operator

What is the difference between unary and binary operations?

UNARY AND BINARY a unary operation is an operation with only one operand, i.e. an operation with a single input, or in other words, a function of one variable. eg- * Increment: ++x, x++ * Decrement: −−x, x−− * Address: &x * Indirection: *x * Positive: +x * Negative: −x * One's complement: ~x * Logical negation: !x * Sizeof: sizeof x, sizeof(type-name) * Cast: (type-name) cast-expression int i = 0; printf (" %d \n %d ", i++, i++); a binary operation is a calculation involving two operands.

What is unary minus operator?

The unary minus operator negates the operand. int a = 3; a = -a; // a 3 a = -5; // unary minus operator used with literal constant. a = 5 * (-3); // same usage

What operator is a unary operator as it works with only one operand?

Yes, a unary operator is an operator that only has one operand. Examples of unary operators are negative (-), positive (+), increment (++), decrement (--), address of (&), dereference (*), logical not (!), sizeof, one's complement (~), new, and delete.

Is the unary minus operator the same as the subtraction operator?

No. The subtraction operator is a binary operator that returns the result of subtracting the rhs operand from the lhs operand. The unary minus operator simply negates the rhs operand. int x = -5; // unary minus. x is (-5) int y = -x; // unary minus. y is (+5) y -= x; // binary minus/assign operator. y is (+10) --x; // unary decrement operator. x is (-6) y -= (-x); // binary minus/assign and unary minus operators. y is(+4)

What is the difference between an unary and a ternary operator?

An unary operator has only one operand. Common examples of unary operators include negation (-2, the - is the operator), absolute value (|-2| = 2), and factorial (2!).A ternary operator has three parts: the condition, true part, and false part. In a ternary operation, the condition is evaluated, and if the result is equivalent to true, the second operand is evaluated, or if false, the third is evaluated. An example of a ternary operation is:x = (y>4 ? 2 : 1)In this example, if y is greater than 4, then x=2. If not, then x=1.

What is plus operator is it unary or binary?

The plus operator is a unary operator. Essentially it removes the sign of its operand. The add operator is a binary operator, returning the sum of its operands.

A relationship between the instances of a single entity type is called a ........................?

it is a unary relationship.

Binary and unary function in C plus plus?

A binary function would be one with two parameters, a unary, one with one parameter.However, these words are usually used for operators. For example, the common arithmetic operators, +, -, *, /, % are binary - they need two operands, for example, "2 + 3". The minus sign can also be unary; -x is the additive inverse of x. Unary means one operand is required. Boolean operators for and, or, xor, are binary. Actually, the great majority of operators are binary.

How unary minus can be overload in c plus plus?

type operator- ();

Which is dummy operator in c?

unary + is the only dummy operator in c,...

What is idempotence?

Idempotence refers to several definitions involving mathematical operations:A unary operation is idempotent if applying it twice gives the same result as applying it once. For example, multiplication by 1 is idempotent as a x 1 = a x 1 x 1 = a.Another definition of unary idempotence is that when the operation is applied twice, it returns the original number. An example of this is the use of binary encryption in onetime pads - adding 1 to a binary digit twice (and ignoring any other digits; i.e. modulo 2) returns the original digit.A binary operation is idempotent if for both of the operands, the result is the same, e.g. the maximum of the set (x, x) is x.

What are urinary operators?

I suppose you wanted to ask about unary operators.Unary operators accept one operand, in oppose to binary operators, which accept two.Examples to unary operators are:f(x) = -xf(x)= abs(x)f(x) = sin(x)

Rewrite the BNF of Example 3.4 to add the and -- unary operators of Java?


Give you some example of unary songs?

music alone shall live

Which is the unary operator used to declare a pointer and return the value stored in it?


Give me the answer Difference between unary and binary operator?

A unary operator is one which operates on just one number, e.g. x2 or -x. A binary operator is one which takes two numbers, e.g. x + y or xy. Note that this has nothing to do with binary vs. decimal arithmetic. This term is commonly used to distinguish between the two buttons which have a '-' sign on a calculator. The unary '-' operator button is used to change the sign of a number entered, and the binary '-' operator button is used to subtract two numbers, which is quite a different thing. The unary '-' button is commonly labelled '+/-'.

Unary and binary operators in relational Algebra?

The nnary and Binary operators in relational Algebra.