Ignore:
Timestamp:
May 16, 2006, 2:06:46 PM (18 years ago)
Author:
sexton
Message:

intro updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • production/sydney_2006/find_max.py

    r2869 r2878  
    66from math import exp, cosh
    77import Numeric
     8
    89
    910# Grilli and Watts 2005 example
     
    3334tol = 0.001
    3435c = 0
    35 direction = 'positive'
     36direction = 'negative'
    3637while c < 100000 and deriv > 0:
    37     deriv = dfuncdx(x,1.0)
     38    deriv = dfuncdx(x,0.83)
    3839    if deriv < 0: xstar = x
    3940    if direction == 'positive': x += step
     
    5051test = 0.0
    5152for xi in x:
    52     testi = func(xi,0.0,1.0)
     53    testi = func(xi,0.0,0.83)
    5354    if direction == 'positive':
    5455        if testi > test:
Note: See TracChangeset for help on using the changeset viewer.