Fix the overflow errors thrown by np.tanh(x) warnings in various waveforms. The error is thrown (on windows) when the argument x is complex with a sufficiently large real component. However, the waveforms are only evaluated against time (a real number), so treating x as complex is unnecessary.
Changes:
Call x.real but return the results as a complex type for consistency (there is no restriction that the waveform returned cannot be complex).
Fix the overflow errors thrown by
np.tanh(x)
warnings in various waveforms. The error is thrown (on windows) when the argumentx
is complex with a sufficiently large real component. However, the waveforms are only evaluated against time (a real number), so treatingx
as complex is unnecessary.Changes:
x.real
but return the results as a complex type for consistency (there is no restriction that the waveform returned cannot be complex).