Changes between Initial Version and Version 1 of Ticket #28357


Ignore:
Timestamp:
08/17/19 17:56:34 (3 months ago)
Author:
embray
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28357 – Description

    initial v1  
    3030}}}
    3131
    32 followed by an infinite recursion in `GiNaC::power::real_part()`.  It doesn't crash without `assume(n, 'integer')`.
     32followed by an infinite recursion in `GiNaC::power::real_part()`.  It doesn't crash without `assume(n, 'integer')`, and gives a correct answer:
     33
     34{{{
     35sage: n=var('n')
     36sage: (I^n).real_part()
     37cos(1/2*pi*real_part(n))*e^(-1/2*pi*imag_part(n))
     38}}}
     39
     40so stipulating that `assume(n, 'integer')` should set `imag_part(n) == 0` and `real_part(n) == n` and give the correct answer...