Polar Coordinates

Sort by

recency

|

464 Discussions

|

  • + 0 comments

    No one suggested a one-liner yet?

    print(*cmath.polar(complex(input())), sep='\n')
    
  • + 0 comments

    from cmath import phase num=complex(input().strip()) print(abs(num)) print(phase(num))

  • + 0 comments

    Polar coordinates offer a fascinating and intuitive way to represent complex numbers, providing an alternative to the usual Cartesian format. jetexchange9 login

  • + 0 comments
    import cmath
    
    com = complex(input())
    
    r, phi = cmath.polar(com)
    print(f"{r}\n{phi}")
    
  • + 0 comments
    import cmath
    n = input()
    print(round(abs(complex(n)),3))
    print(round(cmath.phase(complex(n)),3))