Skip to main content
24-Ruby IV
November 25, 2014
Solved

Is it an error in Mathcad Prime?

  • November 25, 2014
  • 1 reply
  • 4991 views

NotComplex.png

And secons.

I see C, R and Z in help but C, R,Z and Q in the list of symbols.

Best answer by ValeryOchkov

Sorry,

for a lot of Engineers (Mathcad users):

1 - real number

sqrt(-1) - imaginary number

1+sqrt(-1) - complex number

Now I see my error

Absolutely accurate and absolutely useless operator/

1 reply

1-Visitor
November 25, 2014

sqrt(1) is a real number, and C is a superset of R, so sqrt(1) is complex. If you want to know if sqrt(1) is imaginary, you can test Im(sqrt(1)) not equal to 0.

24-Ruby IV
November 25, 2014

Only a not complex number is a not complex number

NotComplexNumber.png

1-Visitor
November 25, 2014

What is it you want to test exactly ?

My understanding of your question was that you were confusing "complex" and "not real". sqrt(1) is complex, because any real is complex. But it is true that it is not "not real", and if you want to test this condition, you have to do it differently. Like this, for instance:

Untitled.png

Now the real strange part is that Mathcad doesn't acknoledge that any real is complex in a "formal" way, although I suspect that if you ask the question for individual numbers, you will get the right answer.

Untitled.png