Ask Your Question

lijianing's profile - activity

2017-11-30 06:59:21 +0100 received badge  Supporter (source)
2017-11-30 06:59:15 +0100 received badge  Scholar (source)
2017-11-29 02:04:46 +0100 received badge  Editor (source)
2017-11-29 02:04:35 +0100 commented answer matrix with fractional number

Thank you very much. I see the problem and I change R to ZZ in my question.

2017-11-28 18:04:36 +0100 received badge  Student (source)
2017-11-28 18:00:26 +0100 asked a question matrix with fractional number

m = matrix(ZZ, 3, 3, lambda i, j: 1/(i + j) ); m

Sage tells me the following:

Traceback (click to the left of this block for traceback)

...

ZeroDivisionError: rational division by zero

why? it really confused me.