32 | | followed by an infinite recursion in `GiNaC::power::real_part()`. It doesn't crash without `assume(n, 'integer')`. |

| 32 | followed by an infinite recursion in `GiNaC::power::real_part()`. It doesn't crash without `assume(n, 'integer')`, and gives a correct answer: |

| 33 | |

| 34 | {{{ |

| 35 | sage: n=var('n') |

| 36 | sage: (I^n).real_part() |

| 37 | cos(1/2*pi*real_part(n))*e^(-1/2*pi*imag_part(n)) |

| 38 | }}} |

| 39 | |

| 40 | so stipulating that `assume(n, 'integer')` should set `imag_part(n) == 0` and `real_part(n) == n` and give the correct answer... |