3

I get conjugates in output when running this:

Clear[X];
X:={x1,x2,x3};
Assuming[{Element[X, Reals]},StandardDeviation[X]]

What is wrong with the code?

J. M.'s missing motivation
  • 124,525
  • 11
  • 401
  • 574
Student4K
  • 269
  • 1
  • 4
  • 2
    There is nothing wrong. If x is real, is it not it own conjugate? And won't that observation mean that the result you see is correct? – m_goldberg Dec 25 '15 at 14:59
  • Perhaps Assuming[{Element[X, Reals]}, StandardDeviation[X] // Simplify] is what you are looking for. – m_goldberg Dec 25 '15 at 15:07

1 Answers1

4
Simplify[StandardDeviation[X], Element[X, Reals]]

enter image description here

eldo
  • 67,911
  • 5
  • 60
  • 168