def sproot(tck, mest=10):
 if isinstance(tck, BSpline):
  if (tck.c.ndim > 1):
   mesg = 'Calling sproot() with BSpline objects with c.ndim > 1 is not recommended.'
   warnings.warn(mesg, DeprecationWarning)
  (t, c, k) = tck.tck
  sh = tuple(range(c.ndim))
  c = c.transpose((sh[1:] + (0,)))
  return _impl.sproot((t, c, k), mest)
 else:
  return _impl.sproot(tck, mest)

def sproot ( tck , mest = 10 ) : if isinstance ( tck , BSpline ) : if ( tck . c . ndim > 1 ) : mesg = 'Calling sproot() with BSpline objects with c.ndim > 1 is not recommended.' warnings . warn ( mesg , DeprecationWarning ) ( t , c , k ) = tck . tck sh = tuple ( range ( c . ndim ) ) c = c . transpose ( ( sh [ 1 : ] + ( 0 , ) ) ) return _impl . sproot ( ( t , c , k ) , mest ) else : return _impl . sproot ( tck , mest )
find the roots of a cubic b-spline .