/timm's /charming /python /tricks

tabled.py

Download tabled.py.
Read more on How to be Charming (in Python).


01: import sys
02: sys.dont_write_bytecode=True
03: from thing import *
04: 
05: def weibullD():
06:   k = any(0.0,5.0)
07:   l = 1
08:   x= 0
09:   while x < 3:
10:     print x,weibull(x,l,k)
11:     x +=  0.25
12: 
13: weibullD()
14: 
15: print sorted(x for x in 
16:              some({1:10,2:20,3:40},25))
17: 
18: def incD():
19:   log = Num(bins=5,keep=128)
20:   for _ in range(100000):
21:     log.seen(random.gauss(0,1))
22:   print gs(log.dist())
23: 
24: incD()
25: 
26: 

This file is part of Timm's charming Python tricks.
© 2014, Tim Menzies: tim.menzies@gmail.com, http://menzies.us.

Timm's charming Python tricks are free software: you can redistribute it and/or modify it under the terms of the GNU Lesser Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Timm's charming Python tricks are distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU Lesser Public License along with Foobar. If not, see http://www.gnu.org/licenses.