What Is the Mathematical Operator That Returns 1 for Equal Variables?

  • Thread starter rhenretta
  • Start date
  • Tags
    Operator
In summary, basic math operators are symbols used in mathematical expressions to perform operations such as addition, subtraction, multiplication, and division. The basic math operators are addition (+), subtraction (-), multiplication (*), and division (/). To use a basic math operator, it should be placed between two numbers or variables in a mathematical expression. The order of operations for basic math operators is PEMDAS (Parentheses, Exponents, Multiplication and Division, Addition and Subtraction). Negative numbers can also be used with basic math operators.
  • #1
rhenretta
66
0
Sorry, pretty basic, but for the life of me I can't think of the operator... if i=j it would return 1, and if i != j it would return 0...
 
Mathematics news on Phys.org
  • #3
no, I remember seeing in a math or physics book once, a mathematical operation that could be done, I believe it was used in context with a summation operator, to obtain a value of 1 if i and j were the same value, and 0 if not.
 
  • #4
...
k=0;
if i==j, then k=1;
...
 

FAQ: What Is the Mathematical Operator That Returns 1 for Equal Variables?

What is a basic math operator?

A basic math operator is a symbol or sign used in mathematical expressions to perform different mathematical operations such as addition, subtraction, multiplication, and division.

What are the basic math operators?

The basic math operators are addition (+), subtraction (-), multiplication (*), and division (/).

How do I use a basic math operator?

To use a basic math operator, you need to write a mathematical expression with the operator between two numbers or variables. For example, 2 + 3 or x * y.

What is the order of operations for basic math operators?

The order of operations for basic math operators is PEMDAS (Parentheses, Exponents, Multiplication and Division, Addition and Subtraction). This means that parentheses should be solved first, then exponents, followed by multiplication and division from left to right, and finally addition and subtraction from left to right.

Can I use basic math operators with negative numbers?

Yes, basic math operators can be used with negative numbers. For example, -2 + 5 is equal to 3. The negative sign can be used as part of the number or in front of the number.

Similar threads

Replies
14
Views
2K
Replies
3
Views
1K
Replies
3
Views
1K
Replies
4
Views
1K
Replies
3
Views
2K
Replies
5
Views
2K
Back
Top