I would like to use Python 2.x or 3.x to raise a 2x2 matrix that is initially
0 1
1 1
to the exponent of 1019 or less. (That is, let M = my matrix, M1019).
However, I don't want to use numpy
.
(By the way, this is for a fibonacci generator )
I would like to use Python 2.x or 3.x to raise a 2x2 matrix that is initially
0 1
1 1
to the exponent of 1019 or less. (That is, let M = my matrix, M1019).
However, I don't want to use numpy
.
(By the way, this is for a fibonacci generator )
Ok, the way you're asking this question really means that you stand no chance of achieving this. I'll explain; please don't be offended:
numpy
, but as you've probably noticed (but didn't write) that doesn't work, because your numbers get very big very fast when actually calculating Mn for larger n.