# Error in false statement

Hello

I write in SAGE the following

```
p=0+0*I
q=1/2+1/2*I
r=3/4+1/3*I
(real(p)==real(q))==false
```

and it returns "false", but it is true because 0 is not equal to 1/2. Why?

Error in false statement

Hello

I write in SAGE the following

```
p=0+0*I
q=1/2+1/2*I
r=3/4+1/3*I
(real(p)==real(q))==false
```

and it returns "false", but it is true because 0 is not equal to 1/2. Why?

add a comment

1

The operation

```
real(p) == real(q)
```

creates an "inequality". As you can check, the output prints as

```
>> real(p) == real(q)
0 == (1/2)
```

You know that the above is false but it is not automatically evaluated within Sage. If you want to force the evaluation you need to run

```
>>> bool(real(p) == real(q))
False
```

Asked: **
2019-03-03 10:10:55 -0500
**

Seen: **42 times**

Last updated: **Mar 03 '19**

Error in false statement [closed]

Cython command 'gcc' failed with exit status 1

Why is Galois group computation failing?

ERROR: An unexpected error occurred while tokenizing input

polar_plot((1/sin(theta)),(theta, pi/12, pi/2))

compiling problems with new versions

Trying to print and plot two parameters of multivariate functions

'Integer' object is not callable error when it doesn't appear as though I'm calling an integer

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.