python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
what it is an iterable of floats/complex numbers?
I am someone who is learning manim in a self-taught way but I have come across the term "iterable of floats/complex numbers" in the "get_coordinate_labels" method of the class Comp...
Pokeamigo 1
Votes: 0
Answers: 1
Pandas rolling removes imaginary part of complex... defect or feature?
Pandas rolling appears only to return the real part of complex values...
Am I missing something?
a=np.array([[1+0j,2+0j,3+0j],[4j,5j,10+6j]])
pd.DataFrame(a.T).rolling(3).apply(lambda x: print(x) is N...
alps
Votes: 0
Answers: 1
converting an array of arrays of floats to complex numbers
I've got an list of lists each containing the two parts of a complex number, like this:
parts = [[1, 2], [3, 4], [5, 6]]
How do I convert them to a list of complex numbers, like this?
munged = [1+2i,...
The Gribble
Votes: 0
Answers: 1
Is there a convenient way to add complex numbers in polar form in sympy (python)?
I had some trouble adding complex numbers in polar form in sympy.
The following code
from sympy import I, exp, pi, re, im
a = exp(2*pi/3*I)
b = exp(-2*pi/3*I)
c = a+b
print(c)
print(c.simplify())
p...
Libavius
Votes: 0
Answers: 1