Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #92192 > unrolled thread

Using "import math".

Started bySteve Burrus <steveburrus28@gmail.com>
First post2015-06-06 15:03 -0700
Last post2015-06-07 08:14 +1000
Articles 3 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  Using "import math". Steve Burrus <steveburrus28@gmail.com> - 2015-06-06 15:03 -0700
    Re: Using "import math". MRAB <python@mrabarnett.plus.com> - 2015-06-06 23:35 +0100
    Re: Using "import math". Cameron Simpson <cs@zip.com.au> - 2015-06-07 08:14 +1000

#92192 — Using "import math".

FromSteve Burrus <steveburrus28@gmail.com>
Date2015-06-06 15:03 -0700
SubjectUsing "import math".
Message-ID<d7f2716a-50a0-4a67-b506-bf3ac875482b@googlegroups.com>
I need some help/assistance with using the python "import math" function. Like I am trying to do a = math.sqrt(1000)
                  a.sqrt
but it fails. what am I doing wrong? Thanx for anyone's help.

[toc] | [next] | [standalone]


#92193

FromMRAB <python@mrabarnett.plus.com>
Date2015-06-06 23:35 +0100
Message-ID<mailman.223.1433630152.13271.python-list@python.org>
In reply to#92192
On 2015-06-06 23:03, Steve Burrus wrote:
> I need some help/assistance with using the python "import math" function. Like I am trying to do a = math.sqrt(1000)
>                    a.sqrt
> but it fails. what am I doing wrong? Thanx for anyone's help.
>
In what way does it fail?

If it printed an error message, copy and paste it in its entirety.

[toc] | [prev] | [next] | [standalone]


#92194

FromCameron Simpson <cs@zip.com.au>
Date2015-06-07 08:14 +1000
Message-ID<mailman.224.1433630258.13271.python-list@python.org>
In reply to#92192
On 06Jun2015 15:03, Steve Burrus <steveburrus28@gmail.com> wrote:
>I need some help/assistance with using the python "import math" function. Like I am trying to do a = math.sqrt(1000)
>                  a.sqrt
>but it fails. what am I doing wrong? Thanx for anyone's help.

Please post a tiny but complete example piece of code showing the problem so 
that others can run it. Please also post the error message; if it is a stack 
trace, include the full stack trace.

Thanks,
Cameron Simpson <cs@zip.com.au>

[The Press] had tried to contact usenet but that no one had been available
for comment.  That's odd, I thought, if there's one thing you can say about
usenet, its that there's usually someone available for comment.
        - Paul Taylor

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web