1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

I=j or i!=j

  1. Sep 29, 2010 #1
    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...
     
  2. jcsd
  3. Sep 29, 2010 #2

    fss

    User Avatar

  4. Sep 29, 2010 #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.
     
  5. Sep 29, 2010 #4

    arildno

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member
    Dearly Missed

    ..........
    k=0;
    if i==j, then k=1;
    ......
     
  6. Sep 30, 2010 #5
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook