ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 15 Apr 2018 20:05:24 +0200Correct input for list_plot3d(..., interpolation='spline')https://ask.sagemath.org/question/42020/correct-input-for-list_plot3d-interpolationspline/I'm trying to construct smooth surfaces from lists of points in 3-space using `list_plot3d` and the `spline` option, but without success. For example, the input
> list_plot3d ([(-1, 2, 3), (2, -1, 3), (3, -1, 2), (-1 ,3 ,2), (2, 3, -1), (3, 2, -1)], interpolation_type='spline')
returns the error
>TypeError: m >= (kx+1)(ky+1) must hold
The following returns the expected piecewise linear surface suggesting that there is a special restriction on the input when using the `spline` option.
> list_plot3d ([(-1, 2, 3), (2, -1, 3), (3, -1, 2), (-1 ,3 ,2), (2, 3, -1), (3, 2, -1)])
**Question**: What is the correct input to obtain a best fit polynomial surface going through the six points in $\mathbb{R}^3$?
**Edit**: As pointed out by @slelievre, since these six points lie in a common plane, the corresponding surface should be the plane containing the points. So why does `Sage` throw an error instead of this plane?amdallSun, 15 Apr 2018 20:05:24 +0200https://ask.sagemath.org/question/42020/How to plot B-spline basis functionshttps://ask.sagemath.org/question/25898/how-to-plot-b-spline-basis-functions/Given a degree d and knot sequence t[i] I would like to be able to generate plots of all the B-spline basis functions corresponding to the specified d and t[i]. Is there a straightforward way to do this in Sage?rdfuhrMon, 23 Feb 2015 04:48:02 +0100https://ask.sagemath.org/question/25898/