Small question for anyone who cares:
Sets have the ForEach function, which takes an Action. I've been dinking around trying to see how to perform a Cosine of a Set<Complex> using the ForEach function. Utter failure so far.
Is this even the appropriate way to go about it? Or is there a better way to make an 'array' of Complex numbers and perform inline operations on them? Think Matlab style array calculations...
Stuff like: (totally random Matlab code, just for example's sake)
t=0:6e-6:(1024-1)*6e-6;
f= 1e6;
power(1:1024) = sqrt(10^(-30/10) * 50 * 0.001);
result = powers.*cos(2.*pi.*f.*t);
Thanks-
j.