Skip to main content
24-Ruby IV
Nov 25, 2014 1:23 PM UTC
Solved

Is it an error in Mathcad Prime?

NotComplex.png

And secons.

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

24-Ruby IV
Nov 25, 2014 5:32 PM UTC

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/

19 replies

1-Visitor
Nov 25, 2014 1:44 PM UTC

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.

Translate
24-Ruby IV
Nov 25, 2014 2:55 PM UTC

Only a not complex number is a not complex number

NotComplexNumber.png

Translate
1-Visitor
Nov 25, 2014 3:05 PM UTC

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

Translate