mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 11:33:42 +02:00
conjugate method added to CObs class
This commit is contained in:
parent
7b0645bda0
commit
b1e5777586
2 changed files with 8 additions and 1 deletions
|
@ -199,6 +199,10 @@ def test_cobs():
|
|||
obs2 = pe.pseudo_Obs(-0.2, 0.03, 't')
|
||||
|
||||
my_cobs = pe.CObs(obs1, obs2)
|
||||
assert not (my_cobs + my_cobs.conjugate()).real.is_zero()
|
||||
assert (my_cobs + my_cobs.conjugate()).imag.is_zero()
|
||||
assert (my_cobs - my_cobs.conjugate()).real.is_zero()
|
||||
assert not (my_cobs - my_cobs.conjugate()).imag.is_zero()
|
||||
np.abs(my_cobs)
|
||||
fs = [[lambda x: x[0] + x[1], lambda x: x[1] + x[0]],
|
||||
[lambda x: x[0] * x[1], lambda x: x[1] * x[0]]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue