Monte Carlo Simulation



Download Latest Simulation Software Try Risk Solver Free for 15 Days.

http://finance4u.synthasite.com/
Posted On: Wednesday 7th of November 2012 12:30:09 PM Total Views:  320
View Complete with Replies

RELATED TOPICS OF Python Programming PROGRAMMING LANGUAGE




Python fish simulation?

Is there any Python-based fish simulation project I've tried searching google and pypi, but no luck. No burning need, just seems like it'd be fun.
VIEWS ON THIS POST

119

Posted on:

Saturday 3rd November 2012
View Replies!

Re: smtp server simulation using Python

On 17/06/07, William Gill wrote: > I have a (web) development computer w/o an SMTP server and want to test > form generated e-mail using a dummy SMTP server that delivers the mail > message to a file, or better yet, to a text editor instead of actually > sending it. Is it possible to extend the DebuggingServer class,and > override the process_message() method to accomplish this If so, any > suggestions are appreciated. > Search the list archives for SMTPRIG.py Tim
VIEWS ON THIS POST

167

Posted on:

Monday 5th November 2012
View Replies!

ANN: SimPy 1.5 simulation package

The SimPy developers team is happy to announce the release of SimPy 1.5. Downloads: https://sourceforge.net/project/show...group_id=62366 Home page: simpy.sourceforge.net SimPy is an extensible object-oriented discrete event simulation package for Python 2.2 and later. It uses generators for efficient implementation of coroutines. It has a GUI and a plotting package. Tutorial, manuals and many examples are included. Release 1.5 is a new production version of SimPy. It adds advanced synchronization capabilities through additional 'yield' commands. SimPy 1.5 runs SimPy 1.4.2. scripts unchanged. Changes ========= SimulationRT --------------------------------------- Python on a Win32 OS provides *time.clock*, a high resolution clock which can be used to measure real time. The nearest facility to this on Linux and Unix is *time.time*. SimulationRT now automatically selects the right clock, depending on the OS the SimPy script is run on. Additions ============ Advanced synchronization facilities ----------------------------------------- To support the clean, easy implementation of an even wider spectrum of simulation models, SimPy 1.5 now introduces two additional process synchronization facilities: * SimEvents and signaling synchronization constructs, with 'yield waitevent' and 'yield queueevent' commands. * A general "wait until" synchronization construct, with the 'yield waituntil' command. Bugs repaired ------------- The 1.5 alpha review process identified a bug in the new SimEvents class (thanks, Sidney!). It manifested itself when a process waited or queued for one of a group of signals. This release cures that bug. Enjoy, but don't forget to share your experiences with the SimPy community! Klaus G. Muller Tony Vignaux
VIEWS ON THIS POST

100

Posted on:

Monday 5th November 2012
View Replies!

Re: Python fish simulation?

> Is there any Python-based fish simulation project I've tried > searching google and pypi, but no luck. No burning need, just seems > like it'd be fun. Without much detail on what you want to simulate... class Fish: LITTLE, HUGE = range(2) def __init__(self, name, size=None): self.name = name self.size = size def swim(self): print "blub..." def slap(self, who): "see here[2]" if self.size: if self.size == Fish.LITTLE: print "slap" else: print "SLAP" else: print "Slap" class Halibut(Fish): def license(self, owner): "See here[1]" raise YoureALoonyException(owner) john = Person("John") michael = Person("Michael") michael.hands.left = Fish(None, size=Fish.LITTLE) michael.hands.right = Fish(None, size=Fish.LITTLE) john.fish = Fish(None, size=Fish.HUGE) michael.hands.left.slap(john) sleep(1) michael.hands.right.slap(john) for _ in range(2): sleep(1) michael.hands.left.slap(john) michael.hands.right.slap(john) sleep(3) john.fish.slap(michael) pet = Halibut("Eric") pet.license(john) Hope this fish simulation meets your needs... -tkc [1] http://www.youtube.com/watchv=pnq96W9jtuw [2] http://www.youtube.com/watchv=i9SSOWORzw4
VIEWS ON THIS POST

87

Posted on:

Wednesday 7th November 2012
View Replies!