debian/0000755000000000000000000000000012302707362007170 5ustar debian/copyright0000644000000000000000000000602612164642037011132 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Symbolic package for Octave Upstream-Contact: The Octave-Forge Community Upstream-Source: http://octave.sourceforge.net/symbolic/ Files: inst/splot.m src/differentiate.cc src/op-ex-mat.cc src/op-ex.cc src/op-vpa.cc src/ov-ex-mat.cc src/ov-ex-mat.h src/ov-ex.h src/ov-relational.cc src/ov-relational.h src/ov-vpa.cc src/ov-vpa.h src/sym-bool.cc src/sym-create.cc src/sym-ops.h Copyright: 2002 Ben Sapp License: GPL-2+ Files: inst/findsym.m inst/poly2sym.m inst/sym2poly.m inst/symfsolve.m src/findsymbols.cc src/numden.cc src/sumterms.cc src/syminfo.cc src/symlsolve.cc Copyright: 2003 Willem J. Atsma License: GPL-2+ Files: src/symbols.cc Copyright: 2001 Paul Kienzle 2002 Ben Sapp 2003 Willem Atsma 2008 Nils Bluethgen License: GPL-2+ Files: src/ov-ex.cc Copyright: 2002 Ben Sapp 2003 Willem Atsma License: GPL-2+ Files: src/probably_prime.cc Copyright: 2001 Paul Kienzle License: GPL-2+ FIXME Files: debian/* Copyright: 2008 Ólafur Jens Sigurðsson 2008-2009, 2011 Thomas Weber 2009-2009, 2012 Rafael Laboissiere License: GPL-3+ License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU General Public License, version 2, can be found in the file `/usr/share/common-licenses/GPL-2'. License: GPL-3+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU General Public License, version 3, can be found in the file `/usr/share/common-licenses/GPL-3'. debian/changelog0000644000000000000000000001156012302707362011045 0ustar octave-symbolic (1.1.0-2build1) trusty; urgency=medium * Rebuild for octave 3.8. -- Matthias Klose Mon, 24 Feb 2014 18:26:58 +0000 octave-symbolic (1.1.0-2) unstable; urgency=low [ Sébastien Villemot ] * Use my @debian.org email address [ Thomas Weber ] * debian/control: Use canonical URLs in Vcs-* fields * Remove obsolete DM-Upload-Allowed flag [ Rafael Laboissiere ] * debian/watch: Use the SourceForge redirector * Bump to Standards-Version 3.9.4, no changes needed * debian/copyright: Use octave-maintainers mailing list as upstream contact * Add patches taken from upstream: + proper-cell-array-reversal.patch + store-symbolic-expressions.patch + fix-tests-blocks.patch + sumterms-return-cell-vector.patch + avoid-ex-type-in-assert.patch -- Thomas Weber Tue, 02 Jul 2013 23:19:49 +0200 octave-symbolic (1.1.0-1) unstable; urgency=low [ Rafael Laboissiere ] * Imported Upstream version 1.1.0 * Switch to dpkg-source 3.0 (quilt) format * debian/patches/register_symbols: Drop patch (applied upstream) * Bump to debhelper compat level 9 * Build-depend on octave-pkg-dev >= 1.0.1, to build against Octave 3.6 * Add Sébastien Villemot to the list of Uploaders * Bump to Standards-Version 3.9.3, no changes needed * debian/copyright: update to machine-readable format 1.0 * debian/patches/cell-as-retval-in-findsymbols.patch: Add patch -- Thomas Weber Fri, 16 Mar 2012 18:05:37 +0100 octave-symbolic (1.0.9-2) unstable; urgency=low * debian/control: - Remove Rafael Laboissiere from Uploaders (Closes: #571870) - Remove Ólafur Jens Sigurðsson from Uploaders * New patch: register_symbols, ensure that symbols from the package are registered. Patch taken from upstream SVN (closes: #607071) -- Thomas Weber Thu, 06 Jan 2011 22:51:58 +0100 octave-symbolic (1.0.9-1) unstable; urgency=low [ Rafael Laboissiere ] * debian/control: Build-depend on octave-pkg-dev >= 0.7.0, such that the package is built against octave3.2 [ Thomas Weber ] * New upstream release. * Use octave-symbolic.docs for installation of documentation, following the change in octave-pkg-dev 0.7.1. * Dropped patches (applied upstream): + symfsolve-tests.diff + use-cell-instead-of-list.diff -- Thomas Weber Thu, 31 Dec 2009 00:40:39 +0100 octave-symbolic (1.0.8-1) unstable; urgency=low * New upstream release * debian/patches/symfsolve-tests.diff: Add tests to function symfsolve * debian/patches/use-cell-instead-of-list.diff: Use cell() instead of the deprecated list() * debian/control: + (Build-Depends): Add quilt + (Standards-Version): Bump to 3.8.1 (no changes needed) + (Depends): Add ${misc:Depends} + (Vcs-Git, Vcs-Browser): Adjust to new Git repository * debian/copyright: + Use DEP5 URL in Format-Specification + Use separate License stanzas for instructing about the location of the different licenses used in the package * debian/rules: Include patchsys-quilt.mk * debian/README.source: Add file explaining the quilt patch system, as required by the Policy -- Rafael Laboissiere Sun, 24 May 2009 20:51:56 +0200 octave-symbolic (1.0.7-2) unstable; urgency=low [ Rafael Laboissiere ] * debian/copyright: Add header * debian/control: Bump build-dependency on octave-pkg-dev to >= 0.6.4, such that the package is built with the versioned packages directory [ Thomas Weber ] * Upload to unstable (closes: #516942). -- Thomas Weber Mon, 06 Apr 2009 23:30:53 +0200 octave-symbolic (1.0.7-1) experimental; urgency=low [ Rafael Laboissiere ] * debian/rules: Use debian/clean instead of manually cleaning files * debian/compat, debian/control: Bump build-dependency on debhelper to >= 7.0.0, otherwise debian/clean is moot * debian/clean: New file * debian/control: Bump Standards-Version to 3.8.0 (no changes needed) [ Thomas Weber ] * New upstream release * Bump dependency on octave-pkg-dev to 0.6.1, to get the experimental version -- Thomas Weber Thu, 11 Dec 2008 17:59:16 +0000 octave-symbolic (1.0.6-1) unstable; urgency=low [ Ólafur Jens Sigurðsson ] * New upstream version [ Thomas Weber ] * Add pkg-config to build-dependencies. -- Thomas Weber Sat, 17 May 2008 10:56:39 +0200 octave-symbolic (1.0.5-2) unstable; urgency=low * debian/control: bump dependency on octave-pkg-dev to 0.5.6, in order to get pkg-config (closes: #477736). -- Thomas Weber Mon, 28 Apr 2008 17:35:09 +0200 octave-symbolic (1.0.5-1) unstable; urgency=low * Initial release (closes: #468529) -- Ólafur Jens Sigurðsson Sat, 23 Feb 2008 15:03:04 +0100 debian/compat0000644000000000000000000000000212164642037010371 0ustar 9 debian/patches/0000755000000000000000000000000012164642037010622 5ustar debian/patches/fix-tests-blocks.patch0000644000000000000000000000444712164642037015055 0ustar Description: Fix tests blocks in sym2poly and symfsolve symfsolve.m: fix syntax of "%!" test block sym2poly.m: fix syntax of "%!" test block. Also fix test result when using 2 input arguments since it is returning a cell array of symbolic variables. Origin: http://sourceforge.net/p/octave/symbolic/ci/46a454014dfac4ad6bf1c0ce3634aa31f54c0a43/ Bug: https://savannah.gnu.org/bugs/?39284 Last-Update: 2013-06-25 diff -r fcb181ca587f -r 46a454014dfa inst/sym2poly.m --- a/inst/sym2poly.m Tue Jun 18 22:44:18 2013 +0200 +++ b/inst/sym2poly.m Tue Jun 18 22:51:30 2013 +0200 @@ -30,7 +30,7 @@ ## x = sym("x"); ## y = sym("y"); ## c = sym2poly (x^2+3*x-4); # c = [1,3,-4] -## c = sym2poly (x^2+y*x,x); # c = @{2,y,0@} +## c = sym2poly (x^2+y*x,x); # c = @{sym("1"),y,sym("0.0")@} ## @end example ## ## If @var{p} is not a polynomial the result has no warranty. @@ -148,10 +148,8 @@ endfunction -%!shared -% symbols -% x=sym("x"); y=sym("y"); -%!test -% assert(sym2poly (x^2+3*x-4), [1,3,-4]); -%!test -% assert (sym2poly (x^2+y*x,x), {2,y,0}) +%!shared x, y +%! symbols +%! x = sym ("x"); y = sym ("y"); +%!assert (sym2poly (x^2+3*x-4), [1, 3, -4]); +%!assert (sym2poly (x^2+y*x, x), {sym("1"), y, sym("0.0")}) diff -r fcb181ca587f -r 46a454014dfa inst/symfsolve.m --- a/inst/symfsolve.m Tue Jun 18 22:44:18 2013 +0200 +++ b/inst/symfsolve.m Tue Jun 18 22:51:30 2013 +0200 @@ -154,18 +154,13 @@ endfunction -%!shared -% x = sym ("x"); -% y = sym ("y"); -% f = x ^ 2 + 3 * x - 1; -% g = x * y - y ^ 2 + 3; -%!test -% assert (symfsolve (f, g), [0.30278; -1.58727]', 1e-5); -%!test -% assert (symfsolve (f, g, x, 1, y, 5), [0.30278; 1.89004]', 1e-5); -%!test -% assert (symfsolve (f, g, {x==1,y==5}), [0.30278; 1.89004]', 1e-5); -%!test -% assert (symfsolve (f, g, [1 5]), [0.30278; 1.89004]', 1e-5); -%!test -% assert (symfsolve ({f, g}, {y==1,x==2}), [1.89004; 0.30278]', 1e-5); +%!shared x,y,f,g +%! x = sym ("x"); +%! y = sym ("y"); +%! f = x ^ 2 + 3 * x - 1; +%! g = x * y - y ^ 2 + 3; +%!assert (symfsolve (f, g), [0.30278; -1.58727], 1e-5); +%!assert (symfsolve (f, g, x, 1, y, 5), [0.30278; 1.89004]', 1e-5); +%!assert (symfsolve (f, g, {x==1,y==5}), [0.30278; 1.89004]', 1e-5); +%!assert (symfsolve (f, g, [1 5]), [0.30278; 1.89004]', 1e-5); +%!assert (symfsolve ({f, g}, {y==1,x==2}), [1.89004; 0.30278]', 1e-5); debian/patches/proper-cell-array-reversal.patch0000644000000000000000000000123312164642037017023 0ustar Description: Proper reversal of a cell array sym2poly.m: the "reverse" function is called in order to reverse the cell array c_ex but this function does not exist. Using indexing with parenthesis, instead. Origin: http://sourceforge.net/p/octave/symbolic/ci/4a231250ff78fd4c1ea89ffd35978d3a53440b88/ Bug: https://savannah.gnu.org/bugs/?39282 Last-Update: 2013-06-25 diff -r d924a90d547f -r 4a231250ff78 inst/sym2poly.m --- a/inst/sym2poly.m Mon Jun 17 23:44:43 2013 +0200 +++ b/inst/sym2poly.m Tue Jun 18 02:40:51 2013 +0200 @@ -136,7 +136,7 @@ endif endfor - c_ex = reverse(c_ex); + c_ex = c_ex(end:-1: 1); if all_numeric for i=1:(order+1) debian/patches/store-symbolic-expressions.patch0000644000000000000000000000162712164642037017204 0ustar Description: Store elements as symbolic expressions, not cell arrays (bug #39283) symfsolve.m: the elements of the cell array "vars" should be stored as symbolic expressions. This was also causing one of the test blocks to fail. Origin: http://sourceforge.net/p/octave/symbolic/ci/fcb181ca587f10cf5b1aaec4fcf37794e53d4e0a/ Bug: https://savannah.gnu.org/bugs/?39283 Last-Update: 2013-06-25 diff -r 4a231250ff78 -r fcb181ca587f inst/symfsolve.m --- a/inst/symfsolve.m Tue Jun 18 02:40:51 2013 +0200 +++ b/inst/symfsolve.m Tue Jun 18 22:44:18 2013 +0200 @@ -128,7 +128,7 @@ ## cell-array of relations - this should work for a list of strings ("x==3") too. for i=1:nvars tmp = disp(varargin{arg_count+1}{i}); - vars{end+1} = {sym(strtok(tmp,"=="))}; + vars{end+1} = sym (strtok (tmp, "==")); X0(i) = str2num(tmp((findstr(tmp,"==")+2):length(tmp))); endfor else debian/patches/cell-as-retval-in-findsymbols.patch0000644000000000000000000000170412164642037017413 0ustar Description: Return correct variable type in findsymbols The findsymbols function is expected to return a cell list containing the symbols found in the symbolic expression passed as argument. However, it returns a octave_value_list, what makes each element of the to-be-returned list appear as a separate return argument of the function. A simple encapsulation fo that octave_value_list into a Cell() call fixes the problem. Author: Rafael Laboissiere Forwarded: https://savannah.gnu.org/bugs/index.php?39262 Last-Update: 2013-06-16 --- octave-symbolic-1.1.0.orig/src/findsymbols.cc +++ octave-symbolic-1.1.0/src/findsymbols.cc @@ -88,7 +88,7 @@ The list is sorted in alphabetical order } /* Add 1 to so this works for symbols too. */ append_symbols(symlist,expression+1); - retval = symlist; + retval = Cell (symlist); } catch (std::exception &e) { error (e.what ()); retval = octave_value (); debian/patches/sumterms-return-cell-vector.patch0000644000000000000000000000152712164642037017261 0ustar Description: Make sumterms return a cell vector (bug #39281) sumterms.cc: function was returning an octave_list, which yields in multiple output arguments. This makes inst/sym2poly.m fail, since a cell array is expected as the returned value from sumterms. Origin: http://sourceforge.net/p/octave/symbolic/ci/395bfe918a42330e6e4488c855b4876d69468ab0/ Bug: https://savannah.gnu.org/bugs/?39281 Last-Update: 2013-06-25 diff -r 46a454014dfa -r 395bfe918a42 src/sumterms.cc --- a/src/sumterms.cc Tue Jun 18 22:51:30 2013 +0200 +++ b/src/sumterms.cc Tue Jun 18 02:36:07 2013 +0200 @@ -55,7 +55,7 @@ // no sum terms, return expression termlist.append(octave_value(new octave_ex(expression))); } - retval = termlist; + retval = Cell (termlist); } catch (std::exception &e) { error (e.what ()); retval = octave_value (); debian/patches/avoid-ex-type-in-assert.patch0000644000000000000000000000132212164642037016237 0ustar Description: Avoid the use of ex type in arguments of assert One of the tests in sym2poly.m try to compare cell arrays containing variables of type "ex", but this is not supported in the assert() function. Use the string representation of the arguments instead, obtained throuhg the disp() function. Author: Rafael Laboissiere Forwarded: https://savannah.gnu.org/bugs/?39345 Last-Update: 2013-07-02 --- a/inst/sym2poly.m +++ b/inst/sym2poly.m @@ -152,4 +152,4 @@ %! symbols %! x = sym ("x"); y = sym ("y"); %!assert (sym2poly (x^2+3*x-4), [1, 3, -4]); -%!assert (sym2poly (x^2+y*x, x), {sym("1"), y, sym("0.0")}) +%!assert (disp (sym2poly (x^2+y*x, x)), disp ({sym("1"), y, sym("0.0")})) debian/patches/series0000644000000000000000000000027512164642037012043 0ustar cell-as-retval-in-findsymbols.patch proper-cell-array-reversal.patch store-symbolic-expressions.patch fix-tests-blocks.patch sumterms-return-cell-vector.patch avoid-ex-type-in-assert.patch debian/control0000644000000000000000000000165712164642037010607 0ustar Source: octave-symbolic Section: math Priority: optional Maintainer: Debian Octave Group Uploaders: Thomas Weber , Sébastien Villemot Build-Depends: debhelper (>= 9), cdbs, octave-pkg-dev (>= 1.0.1), libginac-dev, pkg-config Standards-Version: 3.9.4 Homepage: http://octave.sourceforge.net/symbolic Vcs-Git: git://anonscm.debian.org/pkg-octave/octave-symbolic.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-octave/octave-symbolic.git Package: octave-symbolic Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends}, ${octave:Depends} Description: symbolic package for Octave This package provides a symbolic package for octave based on GiNaC and CLN. . It contains geometric functions, can plot symbolic functions and solve systems of symbolic equations. . This Octave add-on package is part of the Octave-Forge project. debian/rules0000755000000000000000000000012612164642037010252 0ustar #!/usr/bin/make -f # -*- makefile -*- include /usr/share/cdbs/1/class/octave-pkg.mk debian/source/0000755000000000000000000000000012164642037010473 5ustar debian/source/format0000644000000000000000000000001412164642037011701 0ustar 3.0 (quilt) debian/octave-symbolic.docs0000644000000000000000000000002212164642037013137 0ustar doc/symbolic.html debian/watch0000644000000000000000000000006612164642037010226 0ustar version=3 http://sf.net/octave/symbolic-(.+)\.tar\.gz