![](https://secure.gravatar.com/avatar/fcbba89c78e42878a4f1a5dcf3d6663a.jpg?s=120&d=mm&r=g)
April 24, 2008
6:40 p.m.
On Thu, 24 Apr 2008, Zachary Pincus wrote:
Python's built in pow() and exp() functions can't handle numpy arrays, and thus try (and fail) to convert arrays to scalar values. You want to use numpy.exp and numpy.power (or just the ** operator), to do these operations to numpy arrays elementwise.
Zachary, Ah, now I understand! Thank you for the lessons, Rich -- Richard B. Shepard, Ph.D. | Integrity Credibility Applied Ecosystem Services, Inc. | Innovation <http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863