A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-February/061492.html below:

[Python-Dev] (-1)**(1/2)==1?

[Python-Dev] (-1)**(1/2)==1? [Python-Dev] (-1)**(1/2)==1?Facundo Batista facundobatista at gmail.com
Mon Feb 20 16:50:35 CET 2006
2006/2/20, Jonathan Barbero <jonathan.barbero at gmail.com>:

> Hello!
>   My name is Jonathan, i´m new with Python.

Hello Jonathan. This list is only for developing Python itself, not
for developing in Python.

You should address this kind of question in comp.lang.python
(available as a newsgroup and a mailing list), see here for
instructions:

   http://www.python.org/community/lists.html


>    I try this in the command line:
>
>    >>> (-1)**(1/2)
>     1
>
>    This is wrong, i think it must throw an exception.
>     What do you think?

It's OK, because (1/2) is zero, not 0.5.

>>> 1/2
0

Regards,

.    Facundo

Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4