[Pkg-octave-devel] Broken packages? (splines)
Rafael Laboissiere
rafael at laboissiere.net
Tue Mar 13 17:22:54 UTC 2012
* Jordi Gutiérrez Hermoso <jordigh at octave.org> [2012-03-12 18:23]:
> What's broken about the splines package? It seems to be in high demand.
The test below fails miserably:
x = linspace(0,2*pi,15); y = sin(x);
assert (ppval(csape(x,[y;y]),x), [ppval(csape(x,y),x);ppval(csape(x,y),x)], 10*eps)
with the following error message:
!!!!! test failed
assert (ppval (csape (x, [y; y]), x),[ppval(csape (x, y), x); ppval(csape (x, y), x)],10 * eps) expected
0.00000 0.43388 0.78183 0.97493 0.97493 0.78183 0.43388 0.00000 -0.43388 -0.78183 -0.97493 -0.97493 -0.78183 -0.43388 -0.00000
0.00000 0.43388 0.78183 0.97493 0.97493 0.78183 0.43388 0.00000 -0.43388 -0.78183 -0.97493 -0.97493 -0.78183 -0.43388 -0.00000
but got
0.00000 0.78183 0.97493 0.43388 -0.43388 -0.97493 -0.78183 0.00000 0.78183 0.97493 0.43388 -0.43388 -0.97493 -0.78183 -0.43388
0.43388 0.97493 0.78183 0.00000 -0.78183 -0.97493 -0.43388 0.43388 0.97493 0.78183 0.00000 -0.78183 -0.97493 -0.43388 -0.00000
Besides that, function fnder is also buggy, because it relies on the old
struct names returned by mkpp. I fixed that (I think) with the patch
attached below, but I have no clue on how to fix csape.
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: respect-mkpp-struct.patch
Type: text/x-diff
Size: 512 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-octave-devel/attachments/20120313/ba6a6434/attachment.patch>
More information about the Pkg-octave-devel
mailing list