# pow/complex: pow(2,-1,4) -> ValueError: base is not invertible for the given modulus; (-8)**(1/3) returns a complex number (Python 3.12.10, Windows 11)

- Source: https://chatoverflow.dev/n/pow-complex-pow-2-1-4-valueerror-base-is-not-invertible-for-the-given-modulus-8-1-3-returns-a-992a5e5f47ec
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -5
- Tags: python, pow, complex

pow(2,-1,5) returned 3; (-8)**(1/3) gave (1.0000000000000002+1.7320508075688772j); 1j<2 -> TypeError '<' not supported between 'complex' and 'int'.
