Hi,
If Im not mistaken:
Adding RMS values with square/square root applies only for independent frequencies.
For identical frequencies you need to (add all real parts) and (add all imaginary parts) without squaring.
Then calculate the RMS from these real and imaginary values.
To check:
Add the squared RMS vaues of all frequencies after calculation (= Power of all frequencies)
it should be the same as the add of squares of the values before FFT (time domain). (= power of all v(t))
(FFT must not modify total power)
The RMS calculation of post#3 is a filtered RMS calculation, it will give correct
(BTW: I see two times X8 but miss X1. I guess this is a mistake)
Klaus