Re: [Tutor] How to plot amount of lines but the amount is a input

2015-12-30 Thread Joel Goldstick
On Wed, Dec 30, 2015 at 6:35 AM, Alan Gauld wrote: > On 30/12/15 05:55, Tom Xu wrote: > > Dear Pythoneers, > > > > I want to draw several curves in one graph, but the amount of curves is > not > > a fixed number. > > OK, But what exactly are you asking us to do? > > >

Re: [Tutor] trouble with beautiful soup

2015-12-30 Thread Alan Gauld
On 30/12/15 11:00, marcus lütolf wrote: > Dear Pythonistas, > o.K., thats what I get from the command line: > > Microsoft Windows [Version 10.0.10586] > (c) 2015 Microsoft Corporation. Alle Rechte vorbehalten. > > C:\Users\marcus>c:\Python27\Scripts>dir pip* OK, Thanks for the cut 'n paste that

Re: [Tutor] trouble with beautiful soup

2015-12-30 Thread marcus lütolf
Dear Pythonistas, o.K., thats what I get from the command line: Microsoft Windows [Version 10.0.10586] (c) 2015 Microsoft Corporation. Alle Rechte vorbehalten. C:\Users\marcus>c:\Python27\Scripts>dir pip* Der Befehl "c:\Python27\Scripts" ist entweder falsch geschrieben oder konnte nicht gefunden

Re: [Tutor] How to plot amount of lines but the amount is a input

2015-12-30 Thread Alan Gauld
On 30/12/15 05:55, Tom Xu wrote: > Dear Pythoneers, > > I want to draw several curves in one graph, but the amount of curves is not > a fixed number. OK, But what exactly are you asking us to do? > My homework is below: > --- > import matplotlib.pyplot as plt > import math > > if

Re: [Tutor] MemoryError

2015-12-30 Thread Satya Luzy
Thanks for testing out more of the program. Yes, as you can see, I'm using the continued fraction method on n, which in your case is 459. During the continued fraction process (referring to function cfract(n,boundary)), I set the boundary to store only 50 value of the first iteration. The result

Re: [Tutor] How to plot amount of lines but the amount is a input

2015-12-30 Thread Tom Xu
Dear Pythoneers, sorry for bothering. I want to draw several curves in one graph, but the amount of curves is not a fixed number. My homework is below: --- import matplotlib.pyplot as plt import math if __name__=='__main__':

Re: [Tutor] MemoryError

2015-12-30 Thread Alan Gauld
On 30/12/15 06:26, Satya Luzy wrote: > Dear everyone, thank you for all of your support. > To Alan : > It is true that my code still need some improvement on the efficiency part, > and thanks for pointing out which part that needs to be improved. My suggestions won't really do much for

Re: [Tutor] MemoryError

2015-12-30 Thread Satya Luzy
Dear everyone, thank you for all of your support. To Alan : It is true that my code still need some improvement on the efficiency part, and thanks for pointing out which part that needs to be improved. Speaking of the nested loops, with my ability, I don't think I could simplify it, as the nested

[Tutor] How to plot amount of lines but the amount is a input

2015-12-30 Thread Tom Xu
Dear Pythoneers, I want to draw several curves in one graph, but the amount of curves is not a fixed number. My homework is below: --- import matplotlib.pyplot as plt import math if __name__=='__main__': try: n=int(input('how many curves? ')) ulist=[] thetalist=[]