In [3]:
def lya(z,zem=None):
wvobs = (1+z)*1215.67
print('wvobs = {:g}'.format(wvobs))
if zem is not None:
wvrest = wvobs/(1+zem)
print('wvrest = {:g}'.format(wvrest))
return wvobs
In [4]:
z=2.22131
zem = 2.569999
lya(z,zem)
In [5]:
z=2.58369
zem = 3.092
lya(z,zem)
Out[5]:
In [4]:
z=3.14621
zem=3.1881999
lya(z,zem)
Out[4]:
In [ ]: