27;s "interpretation" of
> Euler's formula. There's only one way to parse this relationship that
> gives mathematical consistency and it's what Peter and I have set out
> for you.
>
> Michael
>
> ** Not actually true, if x is complex, it of course w
nd sin(x) as
>
> cos(x) = ( exp(ix) + exp(-ix) )/2
> and sin(x) = ( exp(ix) - exp(-ix) )/2
>
> In any case, plug any complex number into
> exp( ix )
> and
> cos x + i sin x
>
> in R and you will get the exact same answers.
>
> HTH,
>
> Peter
>
> On
Hi,
Am i doing something silly here in expecting Euler's
formula to be handled by exp? exp( ix ) = cos x + i sin x.
The first example below follows this, the others not.
Thanks for the education!
> exp( complex(real = 0, imag = 2*pi) )
[1] 1-0i
> exp( complex(real = pi, imag = 2*pi) )
[1] 23.1
Perhaps this question is inappropriate or posted to the wrong list?
Any guidance would be appreciated. Thanks.
--- On Fri, 9/23/11, Joseph Park wrote:
> From: Joseph Park
> Subject: Cross Spectrum : Conversion of 2-D spectrum into a single complex
> array
> To: r-help@r-projec
Hi, I'm wondering why the spectrum() phase of quadrature
couple isn't purely +/-pi.
But mostly, I'm looking for a recommended way to take a 2-D
spectrum and convert it into a single complex array.
Kindly consider:
# 10 Hz sine wave 10 seconds long sampled at 50 Hz
deltaT = 1/50
t = seq(0
ve into the Reference Class methods, or perhaps
as suggested, hybridize the current app.
On 9/14/2011 12:02 PM, Martin Morgan wrote:
On 09/14/2011 06:01 AM, Joseph Park wrote:
Thanks Martin.
What i'm hoping to do is have a class object, with a member method
t
wondering if i should switch my app from S4 to RC.
Fundamentally, I don't clearly understand S4 and what the difference
is between creating a SetReplaceMethod vs a SetMethod, since it
seems that in either case one has to 'externally' assign the slot
value. My limitation, o
Hi, I'm looking for some guidance on whether to use
S4 or Reference Classes for an analysis application
I'm developing.
I'm a C++/Python developer, and like to 'think' in OOD.
I started my app with S4, thinking that was the best
set of OO features in R. However, it appears that o
Thanks you! I should have realized that without explicitly engaging
some form of averaging (which raises a windowing question) that the
coh is always 1.
On 7/12/2011 4:48 AM, Rolf Turner wrote:
On 12/07/11 09:04, Joseph Park wrote:
Greetings,
I would like to
Greetings,
I would like to estimate a spectral coherence between
two timeseries. The stats : spectrum() returns a coh matrix
which estimates coherence (squared).
A basic test which from which i expect near-zero coherence:
x = rnorm(500)
y = rnorm(500)
xts = ts(x, frequency
10 matches
Mail list logo