summaryrefslogtreecommitdiff
path: root/scipy/f2py/docs/usersguide/calculate_session.dat
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2005-10-28 21:25:47 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2005-10-28 21:25:47 +0000
commit5dda00de77bbb5ec80deb350a95b5d7780c571b8 (patch)
tree1a017a7ce73b2aff22f2e92ba80a07f41d20542d /scipy/f2py/docs/usersguide/calculate_session.dat
parentb87a003a9205916b22abd5fa64580974a2df652a (diff)
downloadnumpy-5dda00de77bbb5ec80deb350a95b5d7780c571b8.tar.gz
Moved f2py2e to f2py.
Diffstat (limited to 'scipy/f2py/docs/usersguide/calculate_session.dat')
-rw-r--r--scipy/f2py/docs/usersguide/calculate_session.dat6
1 files changed, 6 insertions, 0 deletions
diff --git a/scipy/f2py/docs/usersguide/calculate_session.dat b/scipy/f2py/docs/usersguide/calculate_session.dat
new file mode 100644
index 000000000..2fe64f522
--- /dev/null
+++ b/scipy/f2py/docs/usersguide/calculate_session.dat
@@ -0,0 +1,6 @@
+>>> import foo
+>>> foo.calculate(range(5), lambda x: x*x)
+array([ 0., 1., 4., 9., 16.])
+>>> import math
+>>> foo.calculate(range(5), math.exp)
+array([ 1. , 2.71828175, 7.38905621, 20.08553696, 54.59814835])