Changeset 7624:219054ac7207


Ignore:
Timestamp:
12/11/07 01:00:34 (5 years ago)
Author:
jkantor@…
Branch:
default
Tags:
2.9.alpha6
Message:

added doctest for arpack

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sage/numerical/test.py

    r7422 r7624  
    1010sage: from scipy import interpolate 
    1111sage: from scipy import sparse     
     12sage: import arpack 
     13 
     14#Test arpack 
     15sage: import scipy 
     16sage: n=scipy.zeros((3,100)) 
     17sage: n[0,:]=-1 
     18sage: n[1,:]=1 
     19sage: n[2,:]=-2 
     20sage: A=sparse.spdiags(n,[-1,0,1],int(100),int(100)) 
     21sage: e,v=arpack.eigen(A,3) 
     22sage: e 
     23array([ 3.8270...+0.j,  3.8229...+0.j,  0.        +0.j,  0. 
     24+0.j]) 
     25 
     26 
    1227""" 
    1328 
Note: See TracChangeset for help on using the changeset viewer.