#13530: Hide sage/gsl/interpolation/Spline internals
-------------------------------+--------------------------------------------
       Reporter:  jvkersch     |         Owner:  jason, jkantor
           Type:  defect       |        Status:  new           
       Priority:  major        |     Milestone:  sage-5.4      
      Component:  numerical    |    Resolution:                
       Keywords:  spline, gsl  |   Work issues:                
Report Upstream:  N/A          |     Reviewers:                
        Authors:               |     Merged in:                
   Dependencies:               |      Stopgaps:                
-------------------------------+--------------------------------------------
Description changed by jvkersch:

Old description:

> The ``list`` member function of ``sage.gsl.interpolation.Spline`` returns
> a reference to the spline interpolation points, allowing one to change
> these points without having the spline be recomputed:
>
> {{{
> sage: s = spline([(0, 0), (1, 2), (2, 4)]); s
> [(0, 0), (1, 2), (2, 4)]
> sage: s(1)
> 2.0
> sage: s.list()[1] = (1, 100); s
> [(0, 0), (1, 100), (2, 4)]
> sage: s(1)
> 2.0
> }}}

New description:

 The ```list``` member function of ```sage.gsl.interpolation.Spline```
 returns a reference to the spline interpolation points, allowing one to
 change these points without having the spline be recomputed:

 {{{
 sage: s = spline([(0, 0), (1, 2), (2, 4)]); s
 [(0, 0), (1, 2), (2, 4)]
 sage: s(1)
 2.0
 sage: s.list()[1] = (1, 100); s
 [(0, 0), (1, 100), (2, 4)]
 sage: s(1)
 2.0
 }}}

 This issue came up in #12036 and is related to #13520.

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13530#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to