This may be a simple question but i could not get all the answers in one place, so any help and answer are welcome :) . I am trying to debug a program, But then I realize I don't know what are all the possible operation that may result in a NAN value in python. so here is the question what are all the possible operations that will result in a nan value in python specifically numpy matrices?
An example will be like
x=float('nan')
x=x+x
print x
results in
nan