Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'fails.': 0.09; 'cc:addr :python-list': 0.10; 'python': 0.11; 'stack': 0.13; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'received:211.29': 0.16; 'received:211.29.132': 0.16; 'received:cskk.homeip.net': 0.16; 'received:homeip.net': 0.16; 'received:optusnet.com.au': 0.16; 'received:syd.optusnet.com.au': 0.16; 'simpson': 0.16; 'subject:".': 0.16; 'subject:import': 0.16; 'thanx': 0.16; 'trace,': 0.16; 'trace.': 0.16; 'usenet': 0.16; 'wrote:': 0.16; 'steve': 0.18; 'thanks,': 0.19; 'cc:2**0': 0.21; 'cc:addr:python.org': 0.21; 'trying': 0.22; 'cc:no real name:2**0': 0.23; 'help.': 0.23; 'tried': 0.24; 'header:In-Reply- To:1': 0.24; 'paul': 0.24; 'example': 0.25; 'header:User-Agent:1': 0.26; 'error': 0.27; 'piece': 0.29; 'code': 0.31; 'run': 0.32; 'post': 0.32; 'problem': 0.33; 'usually': 0.33; 'received:com.au': 0.33; 'but': 0.36; 'subject:: ': 0.37; 'charset:us-ascii': 0.37; 'say': 0.38; 'doing': 0.38; 'someone': 0.38; 'some': 0.40; 'content-disposition:inline': 0.60; 'complete': 0.63; 'cameron': 0.66; 'contact': 0.66; 'header:Reply-To:1': 0.67; 'reply-to:no real name:2**0': 0.71; 'odd,': 0.84; 'reply-to:addr:python.org': 0.84; 'subject:Using': 0.84; 'comment.': 0.91 Date: Sun, 7 Jun 2015 08:14:08 +1000 From: Cameron Simpson To: Steve Burrus Cc: python-list@python.org Subject: Re: Using "import math". Reply-To: python-list@python.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) References: X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.1 cv=ItbjC+Lg c=1 sm=1 tr=0 a=rgDbx50tNA2z7xLXQOoruw==:117 a=rgDbx50tNA2z7xLXQOoruw==:17 a=ZtCCktOnAAAA:8 a=PO7r1zJSAAAA:8 a=J0QyKEt1u0cA:10 a=kj9zAlcOel0A:10 a=vrnE16BAAAAA:8 a=8AHkEIZyAAAA:8 a=XAFQembCKUMA:10 a=pGLkceISAAAA:8 a=7mRZoCN9Tx8gX76rwYAA:9 a=CjuIK1q_8ugA:10 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1433630258 news.xs4all.nl 2931 [2001:888:2000:d::a6]:58748 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:92194 On 06Jun2015 15: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. 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 [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