32 use sufr_kinds
, only: double
33 use sufr_system
, only: syntax_quit
36 real(double) :: eta, q,x
37 character :: tmpstr*(99)
39 if(command_argument_count().eq.1)
then
40 call get_command_argument(1,tmpstr)
43 call syntax_quit(
'<eta>', 0,
'This program computes the symmetric mass ratio eta from the asymmetric mass ratio q')
46 x = sqrt( max(min( 1.d0 - 4*eta,1.d0 ),0.d0) )
47 q = (1.d0 - x) / (1.d0 + x)
49 write(6,
'(/,A,F15.8,/)')
' q: ', q
program gw_eta2q
Compute the symmetric mass ratio eta from the asymmetric mass ratio q.