[Tutor] new and freezing problem
Jennifer Cianciolo
jciancio@indiana.edu
Sun May 25 21:25:02 2003
Hi!
I'm new to this list. I have no programming experience, but I'm
trying to teach myself some with python.
I've written a short program that keeps making my computer freeze.
Actually it's not the whole computer, just python. This is the
program:
def freqChange(p, N, w11, w12, w22):
q=1-p
pnew=(N*(p**2*w11+q*p*w12))/(N*(p**2*w11+2*p*q*w12+q**2*w22))
while 0<=pnew<=1.0:
p=pnew
q=1-pnew
print pnew
any ideas what might be wrong??
thanks in advance
Jen