The answer wrote, $$cov(X+Y,X-Y) = cov(X,X) + cov (X,-Y)+cov(Y,X)+cov(Y,-Y)$$  Can anyone enlighten me on this, which formula did they use?
I have up until Cov(X+Y,X-Y) = E[((X-E(X))+(Y-E(Y)))((X-E(X))-(Y+E(Y)))] and now I am stuck and do not know how this turns into Var(X)-Var(Y)
How does $e^{i x}$ produce rotation around the imaginary unit circle? Euler’s formula states that $e^{i  x} = \cos(x) + i \sin(x)$.  I can see from the MacLaurin Expansion that this is indeed true; however, I don’t intuitively understand how raising $e$ to the power of $ix$ produces rotation.  Can anyone give me an intuitive understanding? Problem with Winbind/Samba Create instance of generic type in Java? Is Myopia Reversible/Curable? Let $A = \{ 1,2,3,4 \}$ Let $F$ be a set of all functions from $A \to A$.  Let $S$ be a relation defined by : $\forall f,g \in F$ $fSg \iff f(i) = g(i)$ for some $i \in A$  Let $h: A \to A$ be the function $h(x) = 1 $ for all $x \in A$.   How many functions $g \in F$ are there so that $gSh$ ?  My solution : $gSh$ means that $g(i) = h(i)$ for some $i \in A$. So $g(i) = 1$.  So number 1 always needs to connect to some x - 4 choices.  Then we have $3$ left-over numbers that can connect to $4$ numbers each.  So solution is $4 \cdot 4 \cdot 4 \cdot 4$. Is this correct at all? Thanks in advance !! :) As small as it may be, does every 'thing' have a gravitational pull?  That is, something with mass or energy. No matter how obsolete or negligible it may be, is it there? If so, how is it calculated? What does 'it' affect? If I want to make a backup of everything I have done since the fresh install of Ubuntu, what are the possible options? What all should I backup? I want to get all the settings that I changed, all the packages I installed, etc. I think sometimes there is a need to post question as anonymous, reason being to avoid linking content of a question with the identity of the questioner. This may not be so evident or required on technical sites like stackoverflow.com but sometimes is a necessity on sites like  or maybe in future depression.stackexchange.com  On such sites user may not want to link his identity to some questions where he may detail about his being over-weight or skinny or maybe some other attribute which he may like to keep private and avoid making his concerns public, but still want to ask a question with valid data.  I am not suggesting that user asking question should not be registered or not responsible for content. I think all down-votes or up-votes should still be attributed to user, but this way most users would not suffer , and reputation could even be used for a bounty. The only change should be that while asking question a valid registered user can hide his identity (the whole user signature block/user card and the reputation should be replaced by "identity-hidden") and that question should not be listed in his public profile.  Anyway identity of questioner doesn't add much value to question. If we think such anonymous question may reduce social nature of Stack Exchange sites, and maybe majority of questions will become anonymous we can curb that by putting a daily or monthly limit per user or put a price of say 50 reputation per anonymous question.  PS: I don't think this is duplicate of        because motive for question and reason for feature request are different, and I propose a different solution too, because creating another account for asking such questions has many problems which having a single account doesn't have    I don't have to manage other account If I keep single account I still may want to keep my details to be linked to my non-anonymous questions I may want to use reputations I earned as bounty for anonymous questions    also allows anonymous questions and may be we can take some hint from there. Placement of the asterisk in pointer declarations I've recently decided that I just have to finally learn C/C++, and there is one thing I do not really understand about pointers or more precisely, their definition.  How about these examples:   int* test; int *test; int * test; int* test,test2; int *test,test2; int * test,test2;   Now, to my understanding, the first three cases are all doing the same: Test is not an int, but a pointer to one.  The second set of examples is a bit more tricky. In case 4, both test and test2 will be pointers to an int, whereas in case 5, only test is a pointer, whereas test2 is a "real" int. What about case 6? Same as case 5? How to bypass "Verify your account" (Factory Reset Protection) What does ** (double star/asterisk) and * (star/asterisk) do for parameters? In the following method definitions, what does the * and ** do for param2?  def foo(param1, *param2): def bar(param1, **param2): HP laptop F1-12 keys inverted with Fn I recently bought an HP laptop. I'm pleased with it, save for one thing.  All the F1-12 keys are inverted. I mean the following:  All the F-keys have a symbol on it. Normally you would press Fn + your to use it. On this laptop, it's reversed. The symbol is what you get when you press the button normally and you have to press Fn + F-key to get the usual action.  So, if I want to refresh a webpage, instead of just F5, I have to do Fn + F5  I want to change this to regular behavior. Anybody know how I can do this?  Running Win7 Home premium, 64-bit. How long can cooked food be safely stored at room/warm temperature? Flirtatious Primes Here's a possibly interesting prime puzzle. Call a prime $p$ flirtatious if the sum of its digits is also prime. Are there finitely many flirtatious primes, or infinitely many? Given a dictionary like so:  my_map = {'a': 1, 'b': 2}   How can one invert this map to get:  inv_map = {1: 'a', 2: 'b'} Black flakes from new cast iron pan I bought a brand new Lodge 12" cast iron pan, washed it in soap and warm water and dried it with a paper towel thoroughly. Then I applied a thin layer of canola oil with a paper towel (paper towel was clean - not black after this application) and then heated the empty pan on my electric stove for 15-20 minutes. The oil on the pan smoked a bit, some parts of the pan turned slightly ashy (grey). Mostly everything looked OK.   After I turned it off and cooled the pan, I now take a clean paper towel and rub the surface and I see black flakes! What is this? Is this the oil broken down? Can I cook in the pan or wash it with soap to eliminate the black flakes? Once washed and dried should I rub canola oil again? This is my first experience with cast iron. Any pointers will help. How to calculate polygon areas and perimeters using QGIS? Using QGIS, if I load a polygon layer and make a new column, how do I fill that column with the:   area of each polygon and another column with length of the perimeter of each polygon? How to prove $b=c$ if $ab=ac$ (cancellation law in groups)? I am trying to prove this inequality  $$|e^z-1|\leq e^{|z|}-1\leq |z|e^{|z|}$$  I've tried calculating the difference in their power series   $$\sum_{k=0}^\infty\frac{|z|^k}{k!}-1-\left|\,\sum_{k=0}^\infty\frac{z^k}{k!}-1\,\right|$$   but did not get anywhere. I want to remove all the files from different directories, and want to keep only latest files 20 files. is this the correct command to do this?  ls -t1 /mnt/dwh/ftp/dwh_ftp_cbs/ARLOGS/ | tail -n +22 | xargs rm -f