arctan = [math.atan2(x,y) for x in x_hyd_filter for y in y_hyd_filter] ?
Frank On Tue, Sep 2, 2008 at 12:28 PM, Dan Halperin <[EMAIL PROTECTED]>wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Sep 2, 2008, at 8:58 AM, Brian Padalino wrote: > > On Tue, Sep 2, 2008 at 11:51 AM, Engin Karabulut <[EMAIL PROTECTED]> >> wrote: >> >>> hi all, >>> >>> I have two signal which is float and I want to use >>> atan2 fuction like this, >>> >>> self.arctan = math.atan2(x_hyd_filter, y_hyd_filter) >>> >>> but gnuradio gives error given below, >>> >>> ... >>> self.arctan = math.atan2(x_hyd_filter, y_hyd_filter) >>> TypeError: a float is required. >>> >>> In your opinion what is the problem? >>> >> >> Are you sure x_hyd_filter and y_hyd_filter are, in fact, floats? >> > > If you're trying to do arctan on 2 __streams__ of floats, you can't use the > Python math.atan2 function to do this operation -- you need a gnuradio > processing block. I'm not even sure we have such a block yet, you might have > to write it yourself. > > - -Dan > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.8 (Darwin) > > iEYEARECAAYFAki9aZAACgkQy9GYuuMoUJ6HbwCfYFLDiXARaiz0mR+4/Zt4wwdC > ZiMAnRsLLldSLsbfM2Eq5X020LccWgI9 > =jU0p > -----END PGP SIGNATURE----- > > > _______________________________________________ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > http://lists.gnu.org/mailman/listinfo/discuss-gnuradio > -- Computer Science is no more about computers than astronomy is about telescopes. -- E. W. Dijkstra
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio