They are the same, if you approximate the value:

In [9]: (A**(4.0)).n()
Out[9]: 
Matrix([
[ 844.0, 1113.0],
[1484.0, 1957.0]])




On Sunday, 2 October 2016 18:44:27 UTC+2, Sreehari S wrote:
>
> I've been trying to work on issue #11677 
> <https://github.com/sympy/sympy/issues/11677>.
> 1. I'm unable to understand the exact difference between what an *integer 
> symbol* and an *integer value* is.
> 2. There is a difference between what m.*__*pow*__*(4 )returns and what m.
> *__*pow*__*(4.0) returns. 
>
>
> <https://lh3.googleusercontent.com/-d3sL7V1ZzZw/V_ElgSIFnKI/AAAAAAAAAWg/Qi6KY22pipkQH1O_WpTmP6JF3Slm5o7dwCLcB/s1600/matrix_pow1.png>
> The first executes an if-block which does exponentiation by squaring while 
> the second executes an elif block and finds the power using Jordan normal 
> form matrices. Why exactly are the return values different (Or do they mean 
> the same thing)? 
>
> I am unable to make sense of the output when m.__pow__(4.0) is executed. 
>
> Thank you!
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/51c89069-2a3e-4d2f-b27c-cb123f79e232%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to