discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] How to ^2 or ^more for signal source from GRC


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] How to ^2 or ^more for signal source from GRC
Date: Wed, 11 Aug 2010 12:00:57 -0700
User-agent: Mutt/1.5.20 (2009-08-17)

On Tue, Aug 10, 2010 at 10:06:29PM -0400, Tom Rondeau wrote:
> 2010/8/10 Wipat phonsukkarn <address@hidden>:
> > Does anybody knows how to power(^) the signal from the signal source block
> > or USRP source
> > for example signal from signal source are coswt+jsinwt or Ae^(jwt) and i
> > want to ^2 for the result = (Ae^(jwt))^2
> > Does the grc blocks have a ^ block?
> >
> >
> > Thank you very much for yours advice
> > Wipat
> 
> There is no single block to do this. But consider that x^2 = x*x. So
> use a multiplier with two inputs each coming from the signal of
> interest.
> 
> For x^n, you can connect n inputs into the multiply block.
> 
> Tom

FWIW, there's 

  gr.complex_to_mag           -> computes sqrt(z * z) for complex z
  gr.complex_to_mag_squared   -> computes z * z for complex z

Eric




reply via email to

[Prev in Thread] Current Thread [Next in Thread]