Changeset 5911:9595c690e621
- Timestamp:
- 08/27/07 13:05:08 (6 years ago)
- Branch:
- default
- File:
-
- 1 edited
-
sage/misc/inline_fortran.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sage/misc/inline_fortran.py
r5734 r5911 25 25 sage: from sage.misc.inline_fortran import InlineFortran 26 26 sage: s = open(os.environ['SAGE_ROOT'] + '/examples/fortran/FIB1.F').read() 27 sage: test_fortran = InlineFortran(globals()) 28 sage: test_fortran(s) 27 sage: test_fortran = InlineFortran(globals()) # optional -- requires fortran 28 sage: test_fortran(s) # optional -- requires fortran 29 29 sage: import numpy 30 30 sage: n = numpy.array(range(10),dtype=float) 31 sage: fib(n,int(10)) 32 sage: n 31 sage: fib(n,int(10)) # optional -- requires fortran 32 sage: n # optional -- requires fortran 33 33 array([ 0., 1., 1., 2., 3., 5., 8., 13., 21., 34.]) 34 34 """
Note: See TracChangeset
for help on using the changeset viewer.
