示例#1
0
    def intercept(self, y):
       '''Find the value of x for which the interpolator goes through [y]'''
 
       if self.realization:
          return eval_x(y, self.realization)
       else:
          return eval_x(y, self.tck)
        def intercept(self, y):
            '''Find the value of x for which the interpolator goes through [y]'''

            if self.realization:
                return eval_x(y, self.realization)
            else:
                return eval_x(y, self.tck)
示例#3
0
def test_root(spdata):
   roots = spline2.eval_x(0, tck)
   print(roots)
   assert len(xe) == 3