0s autopkgtest [22:22:10]: starting date and time: 2024-03-21 22:22:10+0000 0s autopkgtest [22:22:10]: git checkout: 4a1cd702 l/adt_testbed: don't blame the testbed for unsolvable build deps 0s autopkgtest [22:22:10]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.mq_8gtu4/out --timeout-copy=6000 -a i386 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --setup-commands /home/ubuntu/autopkgtest/setup-commands/setup-testbed --apt-pocket=proposed=src:octave --apt-upgrade octave-symbolic --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=octave/8.4.0-1build4 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@lcy02-12.secgroup --name adt-noble-i386-octave-symbolic-20240321-222210-juju-7f2275-prod-proposed-migration-environment-2 --image adt/ubuntu-noble-amd64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-proposed-migration -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 818s autopkgtest [22:35:48]: testbed dpkg architecture: amd64 818s autopkgtest [22:35:48]: testbed apt version: 2.7.12 819s autopkgtest [22:35:49]: test architecture: i386 819s autopkgtest [22:35:49]: @@@@@@@@@@@@@@@@@@@@ test bed setup 819s Get:1 http://ftpmaster.internal/ubuntu noble-proposed InRelease [117 kB] 819s Get:2 http://ftpmaster.internal/ubuntu noble-proposed/multiverse Sources [53.9 kB] 819s Get:3 http://ftpmaster.internal/ubuntu noble-proposed/main Sources [496 kB] 819s Get:4 http://ftpmaster.internal/ubuntu noble-proposed/restricted Sources [6540 B] 819s Get:5 http://ftpmaster.internal/ubuntu noble-proposed/universe Sources [3774 kB] 819s Get:6 http://ftpmaster.internal/ubuntu noble-proposed/main amd64 Packages [705 kB] 819s Get:7 http://ftpmaster.internal/ubuntu noble-proposed/main i386 Packages [469 kB] 819s Get:8 http://ftpmaster.internal/ubuntu noble-proposed/main amd64 c-n-f Metadata [3508 B] 819s Get:9 http://ftpmaster.internal/ubuntu noble-proposed/restricted i386 Packages [6700 B] 819s Get:10 http://ftpmaster.internal/ubuntu noble-proposed/restricted amd64 Packages [30.5 kB] 819s Get:11 http://ftpmaster.internal/ubuntu noble-proposed/restricted amd64 c-n-f Metadata [116 B] 819s Get:12 http://ftpmaster.internal/ubuntu noble-proposed/universe i386 Packages [1284 kB] 819s Get:13 http://ftpmaster.internal/ubuntu noble-proposed/universe amd64 Packages [4245 kB] 819s Get:14 http://ftpmaster.internal/ubuntu noble-proposed/universe amd64 c-n-f Metadata [9396 B] 819s Get:15 http://ftpmaster.internal/ubuntu noble-proposed/multiverse i386 Packages [26.8 kB] 819s Get:16 http://ftpmaster.internal/ubuntu noble-proposed/multiverse amd64 Packages [93.7 kB] 819s Get:17 http://ftpmaster.internal/ubuntu noble-proposed/multiverse amd64 c-n-f Metadata [196 B] 822s Fetched 11.3 MB in 1s (7859 kB/s) 823s Reading package lists... 824s Reading package lists... 825s Building dependency tree... 825s Reading state information... 825s Calculating upgrade... 825s The following packages will be upgraded: 825s cloud-init python3-markupsafe 825s 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 825s Need to get 610 kB of archives. 825s After this operation, 11.3 kB disk space will be freed. 825s Get:1 http://ftpmaster.internal/ubuntu noble/main amd64 python3-markupsafe amd64 2.1.5-1build1 [12.6 kB] 825s Get:2 http://ftpmaster.internal/ubuntu noble/main amd64 cloud-init all 24.1.2-0ubuntu1 [597 kB] 825s Preconfiguring packages ... 825s Fetched 610 kB in 0s (21.1 MB/s) 826s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 71865 files and directories currently installed.) 826s Preparing to unpack .../python3-markupsafe_2.1.5-1build1_amd64.deb ... 826s Unpacking python3-markupsafe (2.1.5-1build1) over (2.1.5-1) ... 826s Preparing to unpack .../cloud-init_24.1.2-0ubuntu1_all.deb ... 826s Unpacking cloud-init (24.1.2-0ubuntu1) over (24.1.1-0ubuntu1) ... 826s Setting up cloud-init (24.1.2-0ubuntu1) ... 828s Setting up python3-markupsafe (2.1.5-1build1) ... 828s Processing triggers for man-db (2.12.0-3) ... 828s Processing triggers for rsyslog (8.2312.0-3ubuntu3) ... 829s Reading package lists... 829s Building dependency tree... 829s Reading state information... 829s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 830s sh: Attempting to set up Debian/Ubuntu apt sources automatically 830s sh: Distribution appears to be Ubuntu 831s Reading package lists... 831s Building dependency tree... 831s Reading state information... 831s eatmydata is already the newest version (131-1). 831s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 831s Reading package lists... 832s Building dependency tree... 832s Reading state information... 832s dbus is already the newest version (1.14.10-4ubuntu1). 832s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 832s Reading package lists... 832s Building dependency tree... 832s Reading state information... 833s rng-tools-debian is already the newest version (2.4). 833s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 833s Reading package lists... 833s Building dependency tree... 833s Reading state information... 833s The following packages will be REMOVED: 833s cloud-init* python3-configobj* python3-debconf* 834s 0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded. 834s After this operation, 3256 kB disk space will be freed. 834s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 71864 files and directories currently installed.) 834s Removing cloud-init (24.1.2-0ubuntu1) ... 834s Removing python3-configobj (5.0.8-3) ... 834s Removing python3-debconf (1.5.86) ... 834s Processing triggers for man-db (2.12.0-3) ... 835s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 71475 files and directories currently installed.) 835s Purging configuration files for cloud-init (24.1.2-0ubuntu1) ... 835s dpkg: warning: while removing cloud-init, directory '/etc/cloud/cloud.cfg.d' not empty so not removed 835s Processing triggers for rsyslog (8.2312.0-3ubuntu3) ... 835s invoke-rc.d: policy-rc.d denied execution of try-restart. 835s Reading package lists... 836s Building dependency tree... 836s Reading state information... 836s linux-generic is already the newest version (6.8.0-11.11+1). 836s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 836s Hit:1 http://ftpmaster.internal/ubuntu noble InRelease 836s Hit:2 http://ftpmaster.internal/ubuntu noble-updates InRelease 836s Hit:3 http://ftpmaster.internal/ubuntu noble-security InRelease 839s Reading package lists... 839s Reading package lists... 839s Building dependency tree... 839s Reading state information... 839s Calculating upgrade... 839s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 839s Reading package lists... 840s Building dependency tree... 840s Reading state information... 840s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 840s autopkgtest [22:36:10]: rebooting testbed after setup commands that affected boot 859s autopkgtest [22:36:29]: testbed running kernel: Linux 6.8.0-11-generic #11-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 14 00:29:05 UTC 2024 860s autopkgtest [22:36:30]: @@@@@@@@@@@@@@@@@@@@ apt-source octave-symbolic 861s Get:1 http://ftpmaster.internal/ubuntu noble/universe octave-symbolic 3.1.1-2 (dsc) [2289 B] 861s Get:2 http://ftpmaster.internal/ubuntu noble/universe octave-symbolic 3.1.1-2 (tar) [266 kB] 861s Get:3 http://ftpmaster.internal/ubuntu noble/universe octave-symbolic 3.1.1-2 (diff) [6096 B] 861s gpgv: Signature made Tue Jun 13 21:02:30 2023 UTC 861s gpgv: using RSA key 3F464391498FE874BDB5D98F2124AA1983785C90 861s gpgv: issuer "rafael@debian.org" 861s gpgv: Can't check signature: No public key 861s dpkg-source: warning: cannot verify inline signature for ./octave-symbolic_3.1.1-2.dsc: no acceptable signature found 861s autopkgtest [22:36:31]: testing package octave-symbolic version 3.1.1-2 862s autopkgtest [22:36:32]: build not needed 862s autopkgtest [22:36:32]: test command1: preparing testbed 869s Note, using file '/tmp/autopkgtest.Wql6nV/1-autopkgtest-satdep.dsc' to get the build dependencies 869s Reading package lists... 870s Building dependency tree... 870s Reading state information... 870s Starting pkgProblemResolver with broken count: 0 870s Starting 2 pkgProblemResolver with broken count: 0 870s Done 871s The following NEW packages will be installed: 871s aglfn autoconf automake autopoint autotools-dev build-essential cme cpp 871s cpp-13 cpp-13-x86-64-linux-gnu cpp-x86-64-linux-gnu debhelper debugedit 871s dh-autoreconf dh-octave dh-octave-autopkgtest dh-strip-nondeterminism 871s diffstat dwz fontconfig fontconfig-config fonts-dejavu-core 871s fonts-dejavu-mono fonts-freefont-otf g++ g++-13 g++-13-x86-64-linux-gnu 871s g++-x86-64-linux-gnu gcc gcc-13 gcc-13-x86-64-linux-gnu gcc-x86-64-linux-gnu 871s gettext gfortran gfortran-13 gfortran-13-x86-64-linux-gnu 871s gfortran-x86-64-linux-gnu gnuplot-data gnuplot-nox hdf5-helpers 871s intltool-debian libaec-dev libaec0 libalgorithm-c3-perl libaliased-perl 871s libamd-comgr2 libamd3 libamdhip64-5 libapp-cmd-perl libapt-pkg-perl 871s libarchive-zip-perl libarpack2 libarray-intspan-perl libasan8 libasound2 871s libasound2-data libatomic1 libavahi-client3 libavahi-common-data 871s libavahi-common3 libb-hooks-endofscope-perl libb-hooks-op-check-perl 871s libberkeleydb-perl libblas-dev libblas3 libboolean-perl libbtf2 libc-dev-bin 871s libc6-dev libcairo2 libcamd3 libcapture-tiny-perl libcarp-assert-more-perl 871s libcc1-0 libccolamd3 libcgi-pm-perl libcholmod5 libclass-c3-perl 871s libclass-data-inheritable-perl libclass-load-perl 871s libclass-method-modifiers-perl libclass-xsaccessor-perl libclone-choose-perl 871s libclone-perl libcolamd3 libcombblas2.0.0 libconfig-model-backend-yaml-perl 871s libconfig-model-dpkg-perl libconfig-model-perl libconfig-tiny-perl 871s libconst-fast-perl libconvert-binhex-perl libcpanel-json-xs-perl 871s libcrypt-dev libcups2 libcurl4-openssl-dev libcxsparse4 libdata-dpath-perl 871s libdata-messagepack-perl libdata-optlist-perl libdata-section-perl 871s libdata-validate-domain-perl libdata-validate-ip-perl 871s libdata-validate-uri-perl libdatrie1 libdav1d7 libde265-0 libdebhelper-perl 871s libdeflate0 libdevel-callchecker-perl libdevel-size-perl 871s libdevel-stacktrace-perl libdouble-conversion3 libdrm-amdgpu1 libdrm-intel1 871s libdrm-nouveau2 libdrm-radeon1 libdw1 libdynaloader-functions-perl 871s libegl-mesa0 libegl1 libemail-address-xs-perl libencode-locale-perl 871s liberror-perl libevent-pthreads-2.1-7 libexception-class-perl 871s libexporter-lite-perl libexporter-tiny-perl libfabric1 libfftw3-bin 871s libfftw3-dev libfftw3-double3 libfftw3-long3 libfftw3-mpi3 libfftw3-quad3 871s libfftw3-single3 libfile-basedir-perl libfile-find-rule-perl 871s libfile-homedir-perl libfile-listing-perl libfile-stripnondeterminism-perl 871s libfile-which-perl libflac12 libfltk-gl1.3 libfltk1.3 libfont-ttf-perl 871s libfontconfig1 libfontenc1 libgbm1 libgcc-13-dev libgd3 871s libgetopt-long-descriptive-perl libgfortran-13-dev libgfortran5 libgl-dev 871s libgl1 libgl1-mesa-dri libgl2ps1.4 libglapi-mesa libglpk40 libglu1-mesa 871s libglvnd0 libglx-dev libglx-mesa0 libglx0 libgomp1 871s libgraphicsmagick++-q16-12 libgraphicsmagick-q16-3 libgraphite2-3 871s libharfbuzz0b libhash-merge-perl libhdf5-103-1 libhdf5-cpp-103-1 libhdf5-dev 871s libhdf5-fortran-102 libhdf5-hl-100 libhdf5-hl-cpp-100 libhdf5-hl-fortran-100 871s libhdf5-openmpi-103-1 libheif-plugin-dav1d libheif-plugin-libde265 libheif1 871s libhsa-runtime64-1 libhsakmt1 libhtml-form-perl libhtml-html5-entities-perl 871s libhtml-parser-perl libhtml-tagset-perl libhtml-tokeparser-simple-perl 871s libhtml-tree-perl libhttp-cookies-perl libhttp-date-perl 871s libhttp-message-perl libhttp-negotiate-perl libhwasan0 libhwloc-plugins 871s libhwloc15 libhwy1 libhypre-2.28.0 libice6 libimport-into-perl 871s libindirect-perl libinput-bin libinput10 libio-html-perl 871s libio-interactive-perl libio-socket-ssl-perl libio-string-perl 871s libio-stringy-perl libio-tiecombine-perl libipc-run3-perl 871s libipc-system-simple-perl libisl23 libiterator-perl libiterator-util-perl 871s libitm1 libjack-jackd2-0 libjbig0 libjpeg-dev libjpeg-turbo8 871s libjpeg-turbo8-dev libjpeg8 libjpeg8-dev libjson-maybexs-perl libjson-perl 871s libjxl0.7 libklu2 liblapack-dev liblapack3 liblcms2-2 liblerc4 871s liblist-compare-perl liblist-moreutils-perl liblist-moreutils-xs-perl 871s liblist-someutils-perl liblist-utilsby-perl libllvm17 871s liblog-any-adapter-screen-perl liblog-any-perl liblog-log4perl-perl liblsan0 871s libltdl7 liblua5.4-0 liblwp-mediatypes-perl liblwp-protocol-https-perl 871s libmailtools-perl libmarkdown2 libmd4c0 libmetis5 libmime-tools-perl 871s libmldbm-perl libmodule-implementation-perl libmodule-pluggable-perl 871s libmodule-runtime-perl libmoo-perl libmoox-aliases-perl libmouse-perl 871s libmousex-nativetraits-perl libmousex-strictconstructor-perl libmp3lame0 871s libmpc3 libmpg123-0 libmro-compat-perl libmtdev1 libmumps-5.6 libmunge2 871s libnamespace-clean-perl libncurses-dev libnet-domain-tld-perl 871s libnet-http-perl libnet-ipv6addr-perl libnet-netmask-perl 871s libnet-smtp-ssl-perl libnet-ssleay-perl libnetaddr-ip-perl libnsl-dev 871s libnumber-compare-perl libobject-pad-perl libogg0 libopengl0 libopenmpi3 871s libopus0 libpackage-stash-perl libpango-1.0-0 libpangocairo-1.0-0 871s libpangoft2-1.0-0 libparams-classify-perl libparams-util-perl 871s libparams-validate-perl libparse-debcontrol-perl libparse-recdescent-perl 871s libpath-iterator-rule-perl libpath-tiny-perl libpciaccess0 libpcre2-16-0 871s libperlio-gzip-perl libperlio-utf8-strict-perl libpetsc-real3.19 871s libpixman-1-0 libpmix2 libpod-constants-perl libpod-parser-perl 871s libpod-pom-perl libportaudio2 libproc-processtable-perl libpsm-infinipath1 871s libpsm2-2 libpthread-stubs0-dev libptscotch-7.0 libqhull-r8.0 libqrupdate1 871s libqscintilla2-qt5-15 libqscintilla2-qt5-l10n libqt5core5a libqt5dbus5 871s libqt5gui5 libqt5help5 libqt5network5 libqt5printsupport5 libqt5sql5 871s libqt5widgets5 libqt5xml5 libquadmath0 librdmacm1t64 libreadline-dev 871s libregexp-common-perl libregexp-pattern-license-perl libregexp-pattern-perl 871s libregexp-wildcards-perl librole-tiny-perl libsamplerate0 871s libscalapack-openmpi2.2 libscotch-7.0 libsereal-decoder-perl 871s libsereal-encoder-perl libset-intspan-perl libsharpyuv0 libsm6 libsndfile1 871s libsoftware-copyright-perl libsoftware-license-perl 871s libsoftware-licensemoreutils-perl libsort-versions-perl libspqr4 libssl-dev 871s libstdc++-13-dev libstrictures-perl libstring-copyright-perl 871s libstring-escape-perl libstring-license-perl libstring-rewriteprefix-perl 871s libsub-exporter-perl libsub-exporter-progressive-perl libsub-identify-perl 871s libsub-install-perl libsub-name-perl libsub-override-perl libsub-quote-perl 871s libsub-uplevel-perl libsuitesparseconfig7 libsundials-ida6 871s libsundials-nvecparallel-petsc6 libsundials-sunlinsol3 871s libsundials-sunmatrix4 libsuperlu-dist8 libsuperlu6 871s libsyntax-keyword-try-perl libsz2 libterm-readkey-perl 871s libtest-exception-perl libtext-autoformat-perl libtext-glob-perl 871s libtext-levenshtein-damerau-perl libtext-levenshteinxs-perl 871s libtext-markdown-discount-perl libtext-reform-perl libtext-template-perl 871s libtext-unidecode-perl libtext-xslate-perl libthai-data libthai0 libtiff6 871s libtime-duration-perl libtime-moment-perl libtimedate-perl libtirpc-dev 871s libtoml-tiny-perl libtool libtrilinos-amesos-13.2 libtrilinos-aztecoo-13.2 871s libtrilinos-epetra-13.2 libtrilinos-epetraext-13.2 libtrilinos-galeri-13.2 871s libtrilinos-ifpack-13.2 libtrilinos-kokkos-13.2 libtrilinos-ml-13.2 871s libtrilinos-teuchos-13.2 libtrilinos-trilinosss-13.2 871s libtrilinos-triutils-13.2 libtrilinos-zoltan-13.2 libtry-tiny-perl libtsan2 871s libubsan1 libucx0 libumfpack6 libunicode-utf8-perl liburi-perl 871s libvariable-magic-perl libvorbis0a libvorbisenc2 libvulkan1 libwacom-common 871s libwacom9 libwayland-client0 libwayland-server0 libwebp7 libwebpmux3 871s libwmflite-0.2-7 libwww-mechanize-perl libwww-perl libwww-robotrules-perl 871s libx11-dev libx11-xcb1 libxau-dev libxaw7 libxcb-dri2-0 libxcb-dri3-0 871s libxcb-glx0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-present0 871s libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 871s libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xinput0 871s libxcb-xkb1 libxcb1-dev libxcursor1 libxdmcp-dev libxfixes3 libxfont2 871s libxft2 libxinerama1 libxkbcommon-x11-0 libxkbfile1 libxml-libxml-perl 871s libxml-namespacesupport-perl libxml-sax-base-perl libxml-sax-perl libxmu6 871s libxnvctrl0 libxpm4 libxrandr2 libxrender1 libxs-parse-keyword-perl 871s libxs-parse-sublike-perl libxshmfence1 libxt6 libxxf86vm1 871s libyaml-libyaml-perl libyaml-pp-perl libyaml-tiny-perl licensecheck lintian 871s linux-libc-dev lzip lzop m4 mpi-default-bin ocl-icd-libopencl1 octave 871s octave-common octave-dev octave-symbolic openmpi-bin openmpi-common 871s patchutils perl-openssl-defaults po-debconf python3-mpmath python3-sympy 871s rpcsvc-proto t1utils tex-common texinfo texinfo-lib unzip x11-common 871s x11-xkb-utils x11proto-dev xorg-sgml-doctools xserver-common xtrans-dev xvfb 871s zlib1g-dev 871s 0 upgraded, 502 newly installed, 0 to remove and 0 not upgraded. 871s Need to get 260 MB of archives. 871s After this operation, 985 MB of additional disk space will be used. 871s Get:1 http://ftpmaster.internal/ubuntu noble/main amd64 m4 amd64 1.4.19-4 [243 kB] 871s Get:2 http://ftpmaster.internal/ubuntu noble/main amd64 autoconf all 2.71-3 [339 kB] 871s Get:3 http://ftpmaster.internal/ubuntu noble/main amd64 autotools-dev all 20220109.1 [44.9 kB] 871s Get:4 http://ftpmaster.internal/ubuntu noble/main amd64 automake all 1:1.16.5-1.3ubuntu1 [558 kB] 871s Get:5 http://ftpmaster.internal/ubuntu noble/main amd64 autopoint all 0.21-14ubuntu1 [422 kB] 871s Get:6 http://ftpmaster.internal/ubuntu noble/main amd64 libc-dev-bin amd64 2.39-0ubuntu2 [20.4 kB] 871s Get:7 http://ftpmaster.internal/ubuntu noble/main amd64 linux-libc-dev amd64 6.8.0-11.11 [1595 kB] 871s Get:8 http://ftpmaster.internal/ubuntu noble/main amd64 libcrypt-dev amd64 1:4.4.36-4 [128 kB] 871s Get:9 http://ftpmaster.internal/ubuntu noble/main amd64 libtirpc-dev amd64 1.3.4+ds-1build1 [222 kB] 871s Get:10 http://ftpmaster.internal/ubuntu noble/main amd64 libnsl-dev amd64 1.3.0-3 [71.2 kB] 871s Get:11 http://ftpmaster.internal/ubuntu noble/main amd64 rpcsvc-proto amd64 1.4.2-0ubuntu6 [68.5 kB] 871s Get:12 http://ftpmaster.internal/ubuntu noble/main amd64 libc6-dev amd64 2.39-0ubuntu2 [2126 kB] 871s Get:13 http://ftpmaster.internal/ubuntu noble/main amd64 libisl23 amd64 0.26-3 [741 kB] 871s Get:14 http://ftpmaster.internal/ubuntu noble/main amd64 libmpc3 amd64 1.3.1-1 [54.1 kB] 871s Get:15 http://ftpmaster.internal/ubuntu noble/main amd64 cpp-13-x86-64-linux-gnu amd64 13.2.0-17ubuntu2 [11.2 MB] 871s Get:16 http://ftpmaster.internal/ubuntu noble/main amd64 cpp-13 amd64 13.2.0-17ubuntu2 [1030 B] 871s Get:17 http://ftpmaster.internal/ubuntu noble/main amd64 cpp-x86-64-linux-gnu amd64 4:13.2.0-7ubuntu1 [5326 B] 871s Get:18 http://ftpmaster.internal/ubuntu noble/main amd64 cpp amd64 4:13.2.0-7ubuntu1 [22.4 kB] 871s Get:19 http://ftpmaster.internal/ubuntu noble/main amd64 libcc1-0 amd64 14-20240303-1ubuntu1 [47.7 kB] 871s Get:20 http://ftpmaster.internal/ubuntu noble/main amd64 libgomp1 amd64 14-20240303-1ubuntu1 [147 kB] 871s Get:21 http://ftpmaster.internal/ubuntu noble/main amd64 libitm1 amd64 14-20240303-1ubuntu1 [29.1 kB] 871s Get:22 http://ftpmaster.internal/ubuntu noble/main amd64 libatomic1 amd64 14-20240303-1ubuntu1 [10.4 kB] 871s Get:23 http://ftpmaster.internal/ubuntu noble/main amd64 libasan8 amd64 14-20240303-1ubuntu1 [3026 kB] 871s Get:24 http://ftpmaster.internal/ubuntu noble/main amd64 liblsan0 amd64 14-20240303-1ubuntu1 [1310 kB] 871s Get:25 http://ftpmaster.internal/ubuntu noble/main amd64 libtsan2 amd64 14-20240303-1ubuntu1 [2732 kB] 871s Get:26 http://ftpmaster.internal/ubuntu noble/main amd64 libubsan1 amd64 14-20240303-1ubuntu1 [1172 kB] 871s Get:27 http://ftpmaster.internal/ubuntu noble/main amd64 libhwasan0 amd64 14-20240303-1ubuntu1 [1629 kB] 871s Get:28 http://ftpmaster.internal/ubuntu noble/main amd64 libquadmath0 amd64 14-20240303-1ubuntu1 [155 kB] 871s Get:29 http://ftpmaster.internal/ubuntu noble/main amd64 libgcc-13-dev amd64 13.2.0-17ubuntu2 [2687 kB] 871s Get:30 http://ftpmaster.internal/ubuntu noble/main amd64 gcc-13-x86-64-linux-gnu amd64 13.2.0-17ubuntu2 [21.9 MB] 871s Get:31 http://ftpmaster.internal/ubuntu noble/main amd64 gcc-13 amd64 13.2.0-17ubuntu2 [477 kB] 871s Get:32 http://ftpmaster.internal/ubuntu noble/main amd64 gcc-x86-64-linux-gnu amd64 4:13.2.0-7ubuntu1 [1212 B] 871s Get:33 http://ftpmaster.internal/ubuntu noble/main amd64 gcc amd64 4:13.2.0-7ubuntu1 [5018 B] 871s Get:34 http://ftpmaster.internal/ubuntu noble/main amd64 libstdc++-13-dev amd64 13.2.0-17ubuntu2 [2340 kB] 871s Get:35 http://ftpmaster.internal/ubuntu noble/main amd64 g++-13-x86-64-linux-gnu amd64 13.2.0-17ubuntu2 [12.5 MB] 871s Get:36 http://ftpmaster.internal/ubuntu noble/main amd64 g++-13 amd64 13.2.0-17ubuntu2 [14.5 kB] 871s Get:37 http://ftpmaster.internal/ubuntu noble/main amd64 g++-x86-64-linux-gnu amd64 4:13.2.0-7ubuntu1 [964 B] 871s Get:38 http://ftpmaster.internal/ubuntu noble/main amd64 g++ amd64 4:13.2.0-7ubuntu1 [1100 B] 871s Get:39 http://ftpmaster.internal/ubuntu noble/main amd64 build-essential amd64 12.10ubuntu1 [4928 B] 871s Get:40 http://ftpmaster.internal/ubuntu noble/main amd64 libcapture-tiny-perl all 0.48-2 [20.2 kB] 871s Get:41 http://ftpmaster.internal/ubuntu noble/main amd64 libparams-util-perl amd64 1.102-2build1 [21.1 kB] 871s Get:42 http://ftpmaster.internal/ubuntu noble/main amd64 libsub-install-perl all 0.929-1 [9764 B] 871s Get:43 http://ftpmaster.internal/ubuntu noble/main amd64 libdata-optlist-perl all 0.114-1 [9708 B] 871s Get:44 http://ftpmaster.internal/ubuntu noble/main amd64 libb-hooks-op-check-perl amd64 0.22-2build2 [9452 B] 871s Get:45 http://ftpmaster.internal/ubuntu noble/main amd64 libdynaloader-functions-perl all 0.003-3 [12.1 kB] 871s Get:46 http://ftpmaster.internal/ubuntu noble/main amd64 libdevel-callchecker-perl amd64 0.008-2build1 [13.9 kB] 871s Get:47 http://ftpmaster.internal/ubuntu noble/main amd64 libparams-classify-perl amd64 0.015-2build3 [20.0 kB] 871s Get:48 http://ftpmaster.internal/ubuntu noble/main amd64 libmodule-runtime-perl all 0.016-2 [16.4 kB] 871s Get:49 http://ftpmaster.internal/ubuntu noble/main amd64 libtry-tiny-perl all 0.31-2 [20.8 kB] 871s Get:50 http://ftpmaster.internal/ubuntu noble/main amd64 libmodule-implementation-perl all 0.09-2 [12.0 kB] 871s Get:51 http://ftpmaster.internal/ubuntu noble/main amd64 libpackage-stash-perl all 0.40-1 [19.5 kB] 871s Get:52 http://ftpmaster.internal/ubuntu noble/universe amd64 libclass-load-perl all 0.25-2 [12.7 kB] 871s Get:53 http://ftpmaster.internal/ubuntu noble/main amd64 libio-stringy-perl all 2.111-3 [55.8 kB] 871s Get:54 http://ftpmaster.internal/ubuntu noble/main amd64 libparams-validate-perl amd64 1.31-2build1 [53.8 kB] 871s Get:55 http://ftpmaster.internal/ubuntu noble/main amd64 libsub-exporter-perl all 0.990-1 [49.0 kB] 871s Get:56 http://ftpmaster.internal/ubuntu noble/main amd64 libgetopt-long-descriptive-perl all 0.111-1 [25.5 kB] 871s Get:57 http://ftpmaster.internal/ubuntu noble/universe amd64 libio-tiecombine-perl all 1.005-3 [9464 B] 871s Get:58 http://ftpmaster.internal/ubuntu noble/universe amd64 libmodule-pluggable-perl all 5.2-4 [20.0 kB] 871s Get:59 http://ftpmaster.internal/ubuntu noble/universe amd64 libstring-rewriteprefix-perl all 0.009-1 [6310 B] 871s Get:60 http://ftpmaster.internal/ubuntu noble/universe amd64 libapp-cmd-perl all 0.336-1 [62.1 kB] 871s Get:61 http://ftpmaster.internal/ubuntu noble/universe amd64 libboolean-perl all 0.46-3 [8430 B] 871s Get:62 http://ftpmaster.internal/ubuntu noble/universe amd64 libsub-uplevel-perl all 0.2800-3 [11.6 kB] 871s Get:63 http://ftpmaster.internal/ubuntu noble/universe amd64 libtest-exception-perl all 0.43-3 [13.4 kB] 871s Get:64 http://ftpmaster.internal/ubuntu noble/universe amd64 libcarp-assert-more-perl all 2.3.0-1 [17.6 kB] 871s Get:65 http://ftpmaster.internal/ubuntu noble/main amd64 libfile-which-perl all 1.27-2 [12.5 kB] 871s Get:66 http://ftpmaster.internal/ubuntu noble/main amd64 libfile-homedir-perl all 1.006-2 [37.0 kB] 871s Get:67 http://ftpmaster.internal/ubuntu noble/universe amd64 libclone-choose-perl all 0.010-2 [7738 B] 871s Get:68 http://ftpmaster.internal/ubuntu noble/universe amd64 libhash-merge-perl all 0.302-1 [13.0 kB] 871s Get:69 http://ftpmaster.internal/ubuntu noble/main amd64 libjson-perl all 4.10000-1 [81.9 kB] 871s Get:70 http://ftpmaster.internal/ubuntu noble/main amd64 libexporter-tiny-perl all 1.006002-1 [36.8 kB] 871s Get:71 http://ftpmaster.internal/ubuntu noble/universe amd64 liblist-moreutils-xs-perl amd64 0.430-3build3 [43.8 kB] 871s Get:72 http://ftpmaster.internal/ubuntu noble/universe amd64 liblist-moreutils-perl all 0.430-2 [38.2 kB] 871s Get:73 http://ftpmaster.internal/ubuntu noble/universe amd64 liblog-log4perl-perl all 1.57-1 [345 kB] 871s Get:74 http://ftpmaster.internal/ubuntu noble/main amd64 libmouse-perl amd64 2.5.10-1build6 [133 kB] 871s Get:75 http://ftpmaster.internal/ubuntu noble/universe amd64 libmousex-nativetraits-perl all 1.09-3 [53.2 kB] 871s Get:76 http://ftpmaster.internal/ubuntu noble/universe amd64 libmousex-strictconstructor-perl all 0.02-3 [4582 B] 871s Get:77 http://ftpmaster.internal/ubuntu noble/universe amd64 libparse-recdescent-perl all 1.967015+dfsg-4 [139 kB] 871s Get:78 http://ftpmaster.internal/ubuntu noble/main amd64 libpath-tiny-perl all 0.144-1 [47.7 kB] 871s Get:79 http://ftpmaster.internal/ubuntu noble/universe amd64 libpod-pom-perl all 2.01-4 [61.3 kB] 871s Get:80 http://ftpmaster.internal/ubuntu noble/universe amd64 libregexp-common-perl all 2017060201-3 [171 kB] 871s Get:81 http://ftpmaster.internal/ubuntu noble/main amd64 libyaml-tiny-perl all 1.74-1 [25.3 kB] 871s Get:82 http://ftpmaster.internal/ubuntu noble/universe amd64 libconfig-model-perl all 2.153-3 [408 kB] 871s Get:83 http://ftpmaster.internal/ubuntu noble/universe amd64 libyaml-pp-perl all 0.38.0-1 [105 kB] 871s Get:84 http://ftpmaster.internal/ubuntu noble/universe amd64 cme all 1.040-1 [64.8 kB] 871s Get:85 http://ftpmaster.internal/ubuntu noble/main amd64 libdebhelper-perl all 13.14.1ubuntu1 [89.5 kB] 871s Get:86 http://ftpmaster.internal/ubuntu noble/main amd64 libtool all 2.4.7-7 [166 kB] 871s Get:87 http://ftpmaster.internal/ubuntu noble/main amd64 dh-autoreconf all 20 [16.1 kB] 871s Get:88 http://ftpmaster.internal/ubuntu noble/main amd64 libarchive-zip-perl all 1.68-1 [90.2 kB] 871s Get:89 http://ftpmaster.internal/ubuntu noble/main amd64 libsub-override-perl all 0.10-1 [10.0 kB] 871s Get:90 http://ftpmaster.internal/ubuntu noble/main amd64 libfile-stripnondeterminism-perl all 1.13.1-1 [18.1 kB] 871s Get:91 http://ftpmaster.internal/ubuntu noble/main amd64 dh-strip-nondeterminism all 1.13.1-1 [5362 B] 871s Get:92 http://ftpmaster.internal/ubuntu noble/main amd64 libdw1 amd64 0.190-1 [260 kB] 871s Get:93 http://ftpmaster.internal/ubuntu noble/main amd64 debugedit amd64 1:5.0-5 [46.1 kB] 871s Get:94 http://ftpmaster.internal/ubuntu noble/main amd64 dwz amd64 0.15-1 [112 kB] 871s Get:95 http://ftpmaster.internal/ubuntu noble/main amd64 gettext amd64 0.21-14ubuntu1 [864 kB] 871s Get:96 http://ftpmaster.internal/ubuntu noble/main amd64 intltool-debian all 0.35.0+20060710.6 [23.2 kB] 871s Get:97 http://ftpmaster.internal/ubuntu noble/main amd64 po-debconf all 1.0.21+nmu1 [233 kB] 871s Get:98 http://ftpmaster.internal/ubuntu noble/main amd64 debhelper all 13.14.1ubuntu1 [869 kB] 871s Get:99 http://ftpmaster.internal/ubuntu noble/universe amd64 aglfn all 1.7+git20191031.4036a9c-2 [30.6 kB] 871s Get:100 http://ftpmaster.internal/ubuntu noble/universe amd64 gnuplot-data all 5.4.4+dfsg1-2build1 [74.6 kB] 871s Get:101 http://ftpmaster.internal/ubuntu noble/main amd64 fonts-dejavu-mono all 2.37-8 [502 kB] 871s Get:102 http://ftpmaster.internal/ubuntu noble/main amd64 fonts-dejavu-core all 2.37-8 [835 kB] 871s Get:103 http://ftpmaster.internal/ubuntu noble/universe amd64 fonts-freefont-otf all 20211204+svn4273-2 [4596 kB] 871s Get:104 http://ftpmaster.internal/ubuntu noble/main amd64 fontconfig-config amd64 2.15.0-1ubuntu1 [36.9 kB] 871s Get:105 http://ftpmaster.internal/ubuntu noble/main amd64 libfontconfig1 amd64 2.15.0-1ubuntu1 [139 kB] 871s Get:106 http://ftpmaster.internal/ubuntu noble/main amd64 libpixman-1-0 amd64 0.42.2-1 [268 kB] 871s Get:107 http://ftpmaster.internal/ubuntu noble/main amd64 libxcb-render0 amd64 1.15-1 [16.3 kB] 871s Get:108 http://ftpmaster.internal/ubuntu noble/main amd64 libxcb-shm0 amd64 1.15-1 [5740 B] 871s Get:109 http://ftpmaster.internal/ubuntu noble/main amd64 libxrender1 amd64 1:0.9.10-1.1 [20.0 kB] 871s Get:110 http://ftpmaster.internal/ubuntu noble/main amd64 libcairo2 amd64 1.18.0-1 [572 kB] 871s Get:111 http://ftpmaster.internal/ubuntu noble/main amd64 libjpeg-turbo8 amd64 2.1.5-2ubuntu1 [147 kB] 871s Get:112 http://ftpmaster.internal/ubuntu noble/main amd64 libjpeg8 amd64 8c-2ubuntu11 [2148 B] 871s Get:113 http://ftpmaster.internal/ubuntu noble/main amd64 libdeflate0 amd64 1.19-1 [43.7 kB] 871s Get:114 http://ftpmaster.internal/ubuntu noble/main amd64 libjbig0 amd64 2.1-6.1ubuntu1 [29.3 kB] 871s Get:115 http://ftpmaster.internal/ubuntu noble/main amd64 liblerc4 amd64 4.0.0+ds-4ubuntu1 [184 kB] 871s Get:116 http://ftpmaster.internal/ubuntu noble/main amd64 libsharpyuv0 amd64 1.3.2-0.4 [15.6 kB] 871s Get:117 http://ftpmaster.internal/ubuntu noble/main amd64 libwebp7 amd64 1.3.2-0.4 [230 kB] 871s Get:118 http://ftpmaster.internal/ubuntu noble/main amd64 libtiff6 amd64 4.5.1+git230720-3ubuntu1 [232 kB] 871s Get:119 http://ftpmaster.internal/ubuntu noble/main amd64 libxpm4 amd64 1:3.5.17-1 [35.9 kB] 871s Get:120 http://ftpmaster.internal/ubuntu noble/main amd64 libgd3 amd64 2.3.3-9ubuntu1 [123 kB] 871s Get:121 http://ftpmaster.internal/ubuntu noble/main amd64 liblua5.4-0 amd64 5.4.6-3 [166 kB] 871s Get:122 http://ftpmaster.internal/ubuntu noble/main amd64 fontconfig amd64 2.15.0-1ubuntu1 [180 kB] 871s Get:123 http://ftpmaster.internal/ubuntu noble/main amd64 libgraphite2-3 amd64 1.3.14-2 [83.1 kB] 871s Get:124 http://ftpmaster.internal/ubuntu noble/main amd64 libharfbuzz0b amd64 8.3.0-2 [469 kB] 871s Get:125 http://ftpmaster.internal/ubuntu noble/main amd64 libthai-data all 0.1.29-2 [158 kB] 871s Get:126 http://ftpmaster.internal/ubuntu noble/main amd64 libdatrie1 amd64 0.2.13-3 [20.9 kB] 871s Get:127 http://ftpmaster.internal/ubuntu noble/main amd64 libthai0 amd64 0.1.29-2 [18.8 kB] 871s Get:128 http://ftpmaster.internal/ubuntu noble/main amd64 libpango-1.0-0 amd64 1.51.0+ds-4 [228 kB] 871s Get:129 http://ftpmaster.internal/ubuntu noble/main amd64 libpangoft2-1.0-0 amd64 1.51.0+ds-4 [42.1 kB] 871s Get:130 http://ftpmaster.internal/ubuntu noble/main amd64 libpangocairo-1.0-0 amd64 1.51.0+ds-4 [29.0 kB] 871s Get:131 http://ftpmaster.internal/ubuntu noble/universe amd64 gnuplot-nox amd64 5.4.4+dfsg1-2build1 [912 kB] 871s Get:132 http://ftpmaster.internal/ubuntu noble/universe amd64 dh-octave-autopkgtest all 1.8.0 [10.1 kB] 871s Get:133 http://ftpmaster.internal/ubuntu noble/main amd64 libapt-pkg-perl amd64 0.1.40build4 [68.3 kB] 871s Get:134 http://ftpmaster.internal/ubuntu noble/main amd64 libarray-intspan-perl all 2.004-2 [25.0 kB] 871s Get:135 http://ftpmaster.internal/ubuntu noble/main amd64 libyaml-libyaml-perl amd64 0.89+ds-1 [30.4 kB] 871s Get:136 http://ftpmaster.internal/ubuntu noble/universe amd64 libconfig-model-backend-yaml-perl all 2.134-2 [10.5 kB] 871s Get:137 http://ftpmaster.internal/ubuntu noble/universe amd64 libexporter-lite-perl all 0.09-2 [9748 B] 871s Get:138 http://ftpmaster.internal/ubuntu noble/main amd64 libencode-locale-perl all 1.05-3 [11.6 kB] 871s Get:139 http://ftpmaster.internal/ubuntu noble/main amd64 libtimedate-perl all 2.3300-2 [34.0 kB] 871s Get:140 http://ftpmaster.internal/ubuntu noble/main amd64 libhttp-date-perl all 6.06-1 [10.2 kB] 871s Get:141 http://ftpmaster.internal/ubuntu noble/main amd64 libfile-listing-perl all 6.16-1 [11.3 kB] 871s Get:142 http://ftpmaster.internal/ubuntu noble/main amd64 libhtml-tagset-perl all 3.20-6 [11.3 kB] 871s Get:143 http://ftpmaster.internal/ubuntu noble/main amd64 liburi-perl all 5.27-1 [88.0 kB] 871s Get:144 http://ftpmaster.internal/ubuntu noble/main amd64 libhtml-parser-perl amd64 3.81-1build1 [85.7 kB] 871s Get:145 http://ftpmaster.internal/ubuntu noble/main amd64 libhtml-tree-perl all 5.07-3 [200 kB] 871s Get:146 http://ftpmaster.internal/ubuntu noble/main amd64 libclone-perl amd64 0.46-1build1 [10.6 kB] 871s Get:147 http://ftpmaster.internal/ubuntu noble/main amd64 libio-html-perl all 1.004-3 [15.9 kB] 871s Get:148 http://ftpmaster.internal/ubuntu noble/main amd64 liblwp-mediatypes-perl all 6.04-2 [20.1 kB] 871s Get:149 http://ftpmaster.internal/ubuntu noble/main amd64 libhttp-message-perl all 6.45-1ubuntu1 [78.2 kB] 871s Get:150 http://ftpmaster.internal/ubuntu noble/main amd64 libhttp-cookies-perl all 6.11-1 [18.2 kB] 871s Get:151 http://ftpmaster.internal/ubuntu noble/main amd64 libhttp-negotiate-perl all 6.01-2 [12.4 kB] 871s Get:152 http://ftpmaster.internal/ubuntu noble/main amd64 perl-openssl-defaults amd64 7 [7536 B] 871s Get:153 http://ftpmaster.internal/ubuntu noble/main amd64 libnet-ssleay-perl amd64 1.94-1 [316 kB] 871s Get:154 http://ftpmaster.internal/ubuntu noble/main amd64 libio-socket-ssl-perl all 2.085-1 [195 kB] 871s Get:155 http://ftpmaster.internal/ubuntu noble/main amd64 libnet-http-perl all 6.23-1 [22.3 kB] 871s Get:156 http://ftpmaster.internal/ubuntu noble/main amd64 liblwp-protocol-https-perl all 6.13-1 [9006 B] 871s Get:157 http://ftpmaster.internal/ubuntu noble/main amd64 libwww-robotrules-perl all 6.02-1 [12.6 kB] 871s Get:158 http://ftpmaster.internal/ubuntu noble/main amd64 libwww-perl all 6.76-1 [138 kB] 871s Get:159 http://ftpmaster.internal/ubuntu noble/main amd64 liberror-perl all 0.17029-2 [25.6 kB] 871s Get:160 http://ftpmaster.internal/ubuntu noble/universe amd64 libparse-debcontrol-perl all 2.005-6 [20.4 kB] 871s Get:161 http://ftpmaster.internal/ubuntu noble/universe amd64 libsoftware-copyright-perl all 0.012-2 [17.4 kB] 871s Get:162 http://ftpmaster.internal/ubuntu noble/universe amd64 libalgorithm-c3-perl all 0.11-2 [10.2 kB] 871s Get:163 http://ftpmaster.internal/ubuntu noble/universe amd64 libclass-c3-perl all 0.35-2 [18.4 kB] 871s Get:164 http://ftpmaster.internal/ubuntu noble/universe amd64 libmro-compat-perl all 0.15-2 [10.1 kB] 871s Get:165 http://ftpmaster.internal/ubuntu noble/universe amd64 libdata-section-perl all 0.200008-1 [11.6 kB] 871s Get:166 http://ftpmaster.internal/ubuntu noble/universe amd64 libtext-template-perl all 1.61-1 [48.5 kB] 871s Get:167 http://ftpmaster.internal/ubuntu noble/universe amd64 libsoftware-license-perl all 0.104006-1 [117 kB] 872s Get:168 http://ftpmaster.internal/ubuntu noble/universe amd64 libsoftware-licensemoreutils-perl all 1.009-1 [21.5 kB] 872s Get:169 http://ftpmaster.internal/ubuntu noble/main amd64 libsort-versions-perl all 1.62-3 [7378 B] 872s Get:170 http://ftpmaster.internal/ubuntu noble/universe amd64 libtext-reform-perl all 1.20-5 [35.4 kB] 872s Get:171 http://ftpmaster.internal/ubuntu noble/universe amd64 libtext-autoformat-perl all 1.750000-2 [29.8 kB] 872s Get:172 http://ftpmaster.internal/ubuntu noble/universe amd64 libtext-levenshtein-damerau-perl all 0.41-3 [10.8 kB] 872s Get:173 http://ftpmaster.internal/ubuntu noble/universe amd64 libtoml-tiny-perl all 0.16-1 [22.0 kB] 872s Get:174 http://ftpmaster.internal/ubuntu noble/main amd64 libindirect-perl amd64 0.39-2build2 [22.0 kB] 872s Get:175 http://ftpmaster.internal/ubuntu noble/main amd64 libxs-parse-keyword-perl amd64 0.39-1build1 [54.5 kB] 872s Get:176 http://ftpmaster.internal/ubuntu noble/main amd64 libxs-parse-sublike-perl amd64 0.21-2build1 [39.9 kB] 872s Get:177 http://ftpmaster.internal/ubuntu noble/main amd64 libobject-pad-perl amd64 0.808-1build1 [108 kB] 872s Get:178 http://ftpmaster.internal/ubuntu noble/main amd64 libsyntax-keyword-try-perl amd64 0.29-1build1 [24.2 kB] 872s Get:179 http://ftpmaster.internal/ubuntu noble/main amd64 libio-interactive-perl all 1.025-1 [10.4 kB] 872s Get:180 http://ftpmaster.internal/ubuntu noble/main amd64 liblog-any-perl all 1.717-1 [73.2 kB] 872s Get:181 http://ftpmaster.internal/ubuntu noble/main amd64 liblog-any-adapter-screen-perl all 0.140-2 [12.4 kB] 872s Get:182 http://ftpmaster.internal/ubuntu noble/main amd64 libsub-exporter-progressive-perl all 0.001013-3 [6718 B] 872s Get:183 http://ftpmaster.internal/ubuntu noble/main amd64 libvariable-magic-perl amd64 0.63-1build1 [35.0 kB] 872s Get:184 http://ftpmaster.internal/ubuntu noble/main amd64 libb-hooks-endofscope-perl all 0.28-1 [15.8 kB] 872s Get:185 http://ftpmaster.internal/ubuntu noble/main amd64 libsub-identify-perl amd64 0.14-3build1 [9854 B] 872s Get:186 http://ftpmaster.internal/ubuntu noble/main amd64 libsub-name-perl amd64 0.27-1build1 [10.7 kB] 872s Get:187 http://ftpmaster.internal/ubuntu noble/main amd64 libnamespace-clean-perl all 0.27-2 [14.0 kB] 872s Get:188 http://ftpmaster.internal/ubuntu noble/main amd64 libnumber-compare-perl all 0.03-3 [5974 B] 872s Get:189 http://ftpmaster.internal/ubuntu noble/main amd64 libtext-glob-perl all 0.11-3 [6780 B] 872s Get:190 http://ftpmaster.internal/ubuntu noble/main amd64 libpath-iterator-rule-perl all 1.015-2 [39.9 kB] 872s Get:191 http://ftpmaster.internal/ubuntu noble/main amd64 libpod-parser-perl all 1.67-1 [80.6 kB] 872s Get:192 http://ftpmaster.internal/ubuntu noble/main amd64 libpod-constants-perl all 0.19-2 [16.3 kB] 872s Get:193 http://ftpmaster.internal/ubuntu noble/main amd64 libset-intspan-perl all 1.19-3 [24.8 kB] 872s Get:194 http://ftpmaster.internal/ubuntu noble/main amd64 libstring-copyright-perl all 0.003014-1 [20.5 kB] 872s Get:195 http://ftpmaster.internal/ubuntu noble/main amd64 libstring-escape-perl all 2010.002-3 [16.1 kB] 872s Get:196 http://ftpmaster.internal/ubuntu noble/main amd64 libregexp-pattern-license-perl all 3.11.0-1 [85.8 kB] 872s Get:197 http://ftpmaster.internal/ubuntu noble/main amd64 libregexp-pattern-perl all 0.2.14-2 [17.6 kB] 872s Get:198 http://ftpmaster.internal/ubuntu noble/main amd64 libstring-license-perl all 0.0.9-2ubuntu1 [35.0 kB] 872s Get:199 http://ftpmaster.internal/ubuntu noble/main amd64 licensecheck all 3.3.9-1ubuntu1 [37.7 kB] 872s Get:200 http://ftpmaster.internal/ubuntu noble/main amd64 diffstat amd64 1.66-1 [29.6 kB] 872s Get:201 http://ftpmaster.internal/ubuntu noble/main amd64 libberkeleydb-perl amd64 0.64-2build1 [120 kB] 872s Get:202 http://ftpmaster.internal/ubuntu noble/main amd64 libclass-xsaccessor-perl amd64 1.19-4build2 [33.2 kB] 872s Get:203 http://ftpmaster.internal/ubuntu noble/main amd64 libconfig-tiny-perl all 2.30-1 [14.7 kB] 872s Get:204 http://ftpmaster.internal/ubuntu noble/main amd64 libconst-fast-perl all 0.014-2 [8034 B] 872s Get:205 http://ftpmaster.internal/ubuntu noble/main amd64 libcpanel-json-xs-perl amd64 4.37-1build1 [114 kB] 872s Get:206 http://ftpmaster.internal/ubuntu noble/main amd64 libaliased-perl all 0.34-3 [12.8 kB] 872s Get:207 http://ftpmaster.internal/ubuntu noble/main amd64 libclass-data-inheritable-perl all 0.08-3 [8084 B] 872s Get:208 http://ftpmaster.internal/ubuntu noble/main amd64 libdevel-stacktrace-perl all 2.0500-1 [22.1 kB] 872s Get:209 http://ftpmaster.internal/ubuntu noble/main amd64 libexception-class-perl all 1.45-1 [28.6 kB] 872s Get:210 http://ftpmaster.internal/ubuntu noble/main amd64 libiterator-perl all 0.03+ds1-2 [18.8 kB] 872s Get:211 http://ftpmaster.internal/ubuntu noble/main amd64 libiterator-util-perl all 0.02+ds1-2 [14.1 kB] 872s Get:212 http://ftpmaster.internal/ubuntu noble/main amd64 libdata-dpath-perl all 0.59-1 [39.2 kB] 872s Get:213 http://ftpmaster.internal/ubuntu noble/main amd64 libnet-domain-tld-perl all 1.75-3 [29.4 kB] 872s Get:214 http://ftpmaster.internal/ubuntu noble/main amd64 libdata-validate-domain-perl all 0.10-1.1 [9992 B] 872s Get:215 http://ftpmaster.internal/ubuntu noble/main amd64 libnet-ipv6addr-perl all 1.02-1 [21.0 kB] 872s Get:216 http://ftpmaster.internal/ubuntu noble/main amd64 libnet-netmask-perl all 2.0002-2 [24.8 kB] 872s Get:217 http://ftpmaster.internal/ubuntu noble/main amd64 libnetaddr-ip-perl amd64 4.079+dfsg-2build2 [80.0 kB] 872s Get:218 http://ftpmaster.internal/ubuntu noble/main amd64 libdata-validate-ip-perl all 0.31-1 [17.2 kB] 872s Get:219 http://ftpmaster.internal/ubuntu noble/main amd64 libdata-validate-uri-perl all 0.07-3 [10.8 kB] 872s Get:220 http://ftpmaster.internal/ubuntu noble/main amd64 libdevel-size-perl amd64 0.83-2build2 [19.5 kB] 872s Get:221 http://ftpmaster.internal/ubuntu noble/main amd64 libemail-address-xs-perl amd64 1.05-1build2 [29.1 kB] 872s Get:222 http://ftpmaster.internal/ubuntu noble/main amd64 libipc-system-simple-perl all 1.30-2 [22.3 kB] 872s Get:223 http://ftpmaster.internal/ubuntu noble/main amd64 libfile-basedir-perl all 0.09-2 [14.4 kB] 872s Get:224 http://ftpmaster.internal/ubuntu noble/main amd64 libfile-find-rule-perl all 0.34-3 [24.4 kB] 872s Get:225 http://ftpmaster.internal/ubuntu noble/main amd64 libio-string-perl all 1.08-4 [11.1 kB] 872s Get:226 http://ftpmaster.internal/ubuntu noble/main amd64 libfont-ttf-perl all 1.06-2 [323 kB] 872s Get:227 http://ftpmaster.internal/ubuntu noble/main amd64 libhtml-html5-entities-perl all 0.004-3 [21.6 kB] 872s Get:228 http://ftpmaster.internal/ubuntu noble/main amd64 libhtml-tokeparser-simple-perl all 3.16-4 [38.0 kB] 872s Get:229 http://ftpmaster.internal/ubuntu noble/main amd64 libipc-run3-perl all 0.049-1 [28.8 kB] 872s Get:230 http://ftpmaster.internal/ubuntu noble/main amd64 libjson-maybexs-perl all 1.004005-1 [11.3 kB] 872s Get:231 http://ftpmaster.internal/ubuntu noble/main amd64 liblist-compare-perl all 0.55-2 [62.9 kB] 872s Get:232 http://ftpmaster.internal/ubuntu noble/main amd64 liblist-someutils-perl all 0.59-1 [30.4 kB] 872s Get:233 http://ftpmaster.internal/ubuntu noble/main amd64 liblist-utilsby-perl all 0.12-2 [14.9 kB] 872s Get:234 http://ftpmaster.internal/ubuntu noble/main amd64 libmldbm-perl all 2.05-4 [16.0 kB] 872s Get:235 http://ftpmaster.internal/ubuntu noble/main amd64 libclass-method-modifiers-perl all 2.15-1 [16.1 kB] 872s Get:236 http://ftpmaster.internal/ubuntu noble/main amd64 libimport-into-perl all 1.002005-2 [10.7 kB] 872s Get:237 http://ftpmaster.internal/ubuntu noble/main amd64 librole-tiny-perl all 2.002004-1 [16.3 kB] 872s Get:238 http://ftpmaster.internal/ubuntu noble/main amd64 libsub-quote-perl all 2.006008-1ubuntu1 [20.7 kB] 872s Get:239 http://ftpmaster.internal/ubuntu noble/main amd64 libmoo-perl all 2.005005-1 [47.4 kB] 872s Get:240 http://ftpmaster.internal/ubuntu noble/main amd64 libstrictures-perl all 2.000006-1 [16.3 kB] 872s Get:241 http://ftpmaster.internal/ubuntu noble/main amd64 libmoox-aliases-perl all 0.001006-2 [6796 B] 872s Get:242 http://ftpmaster.internal/ubuntu noble/main amd64 libperlio-gzip-perl amd64 0.20-1build2 [14.7 kB] 872s Get:243 http://ftpmaster.internal/ubuntu noble/main amd64 libperlio-utf8-strict-perl amd64 0.010-1build1 [11.0 kB] 872s Get:244 http://ftpmaster.internal/ubuntu noble/main amd64 libproc-processtable-perl amd64 0.636-1build1 [35.6 kB] 872s Get:245 http://ftpmaster.internal/ubuntu noble/main amd64 libregexp-wildcards-perl all 1.05-3 [12.9 kB] 872s Get:246 http://ftpmaster.internal/ubuntu noble/main amd64 libsereal-decoder-perl amd64 5.004+ds-1build1 [99.4 kB] 872s Get:247 http://ftpmaster.internal/ubuntu noble/main amd64 libsereal-encoder-perl amd64 5.004+ds-1build1 [103 kB] 872s Get:248 http://ftpmaster.internal/ubuntu noble/main amd64 libterm-readkey-perl amd64 2.38-2build2 [23.1 kB] 872s Get:249 http://ftpmaster.internal/ubuntu noble/main amd64 libtext-levenshteinxs-perl amd64 0.03-5build2 [8226 B] 872s Get:250 http://ftpmaster.internal/ubuntu noble/main amd64 libmarkdown2 amd64 2.2.7-2 [38.3 kB] 872s Get:251 http://ftpmaster.internal/ubuntu noble/main amd64 libtext-markdown-discount-perl amd64 0.16-1build1 [12.0 kB] 872s Get:252 http://ftpmaster.internal/ubuntu noble/main amd64 libdata-messagepack-perl amd64 1.02-1build2 [31.1 kB] 872s Get:253 http://ftpmaster.internal/ubuntu noble/main amd64 libtext-xslate-perl amd64 3.5.9-1build3 [161 kB] 872s Get:254 http://ftpmaster.internal/ubuntu noble/main amd64 libtime-duration-perl all 1.21-2 [12.3 kB] 872s Get:255 http://ftpmaster.internal/ubuntu noble/main amd64 libtime-moment-perl amd64 0.44-2build2 [71.0 kB] 872s Get:256 http://ftpmaster.internal/ubuntu noble/main amd64 libunicode-utf8-perl amd64 0.62-2build1 [18.7 kB] 872s Get:257 http://ftpmaster.internal/ubuntu noble/main amd64 libcgi-pm-perl all 4.62-1 [185 kB] 872s Get:258 http://ftpmaster.internal/ubuntu noble/main amd64 libhtml-form-perl all 6.11-1 [32.1 kB] 872s Get:259 http://ftpmaster.internal/ubuntu noble/main amd64 libwww-mechanize-perl all 2.17-1ubuntu1 [95.6 kB] 872s Get:260 http://ftpmaster.internal/ubuntu noble/main amd64 libxml-namespacesupport-perl all 1.12-2 [13.5 kB] 872s Get:261 http://ftpmaster.internal/ubuntu noble/main amd64 libxml-sax-base-perl all 1.09-3 [18.9 kB] 872s Get:262 http://ftpmaster.internal/ubuntu noble/main amd64 libxml-sax-perl all 1.02+dfsg-3 [57.0 kB] 872s Get:263 http://ftpmaster.internal/ubuntu noble/main amd64 libxml-libxml-perl amd64 2.0207+dfsg+really+2.0134-1build2 [304 kB] 872s Get:264 http://ftpmaster.internal/ubuntu noble/main amd64 lzip amd64 1.24.1-1 [83.0 kB] 872s Get:265 http://ftpmaster.internal/ubuntu noble/main amd64 lzop amd64 1.04-2build2 [83.7 kB] 872s Get:266 http://ftpmaster.internal/ubuntu noble/main amd64 patchutils amd64 0.4.2-1build2 [77.8 kB] 872s Get:267 http://ftpmaster.internal/ubuntu noble/main amd64 t1utils amd64 1.41-4build2 [61.3 kB] 872s Get:268 http://ftpmaster.internal/ubuntu noble/main amd64 unzip amd64 6.0-28ubuntu3 [174 kB] 872s Get:269 http://ftpmaster.internal/ubuntu noble/main amd64 lintian all 2.117.0ubuntu1 [1065 kB] 872s Get:270 http://ftpmaster.internal/ubuntu noble/universe amd64 libconfig-model-dpkg-perl all 3.004 [174 kB] 872s Get:271 http://ftpmaster.internal/ubuntu noble/main amd64 libconvert-binhex-perl all 1.125-3 [27.1 kB] 872s Get:272 http://ftpmaster.internal/ubuntu noble/main amd64 libnet-smtp-ssl-perl all 1.04-2 [6218 B] 872s Get:273 http://ftpmaster.internal/ubuntu noble/main amd64 libmailtools-perl all 2.21-2 [80.4 kB] 872s Get:274 http://ftpmaster.internal/ubuntu noble/main amd64 libmime-tools-perl all 5.514-1 [187 kB] 872s Get:275 http://ftpmaster.internal/ubuntu noble/main amd64 libsuitesparseconfig7 amd64 1:7.6.1+dfsg-1 [12.8 kB] 872s Get:276 http://ftpmaster.internal/ubuntu noble/universe amd64 libamd3 amd64 1:7.6.1+dfsg-1 [27.1 kB] 872s Get:277 http://ftpmaster.internal/ubuntu noble/main amd64 libblas3 amd64 3.12.0-3 [238 kB] 872s Get:278 http://ftpmaster.internal/ubuntu noble/main amd64 libgfortran5 amd64 14-20240303-1ubuntu1 [924 kB] 872s Get:279 http://ftpmaster.internal/ubuntu noble/main amd64 liblapack3 amd64 3.12.0-3 [2649 kB] 872s Get:280 http://ftpmaster.internal/ubuntu noble/universe amd64 libarpack2 amd64 3.9.1-1 [105 kB] 872s Get:281 http://ftpmaster.internal/ubuntu noble/universe amd64 libccolamd3 amd64 1:7.6.1+dfsg-1 [25.9 kB] 872s Get:282 http://ftpmaster.internal/ubuntu noble/universe amd64 libcamd3 amd64 1:7.6.1+dfsg-1 [23.8 kB] 872s Get:283 http://ftpmaster.internal/ubuntu noble/main amd64 libcolamd3 amd64 1:7.6.1+dfsg-1 [19.4 kB] 872s Get:284 http://ftpmaster.internal/ubuntu noble/universe amd64 libcholmod5 amd64 1:7.6.1+dfsg-1 [667 kB] 872s Get:285 http://ftpmaster.internal/ubuntu noble/universe amd64 libcxsparse4 amd64 1:7.6.1+dfsg-1 [75.0 kB] 872s Get:286 http://ftpmaster.internal/ubuntu noble/main amd64 libfftw3-double3 amd64 3.3.10-1ubuntu1 [835 kB] 872s Get:287 http://ftpmaster.internal/ubuntu noble/main amd64 libfftw3-single3 amd64 3.3.10-1ubuntu1 [869 kB] 872s Get:288 http://ftpmaster.internal/ubuntu noble/main amd64 libxfixes3 amd64 1:6.0.0-2 [10.9 kB] 872s Get:289 http://ftpmaster.internal/ubuntu noble/main amd64 libxcursor1 amd64 1:1.2.1-1 [21.4 kB] 872s Get:290 http://ftpmaster.internal/ubuntu noble/main amd64 libxft2 amd64 2.3.6-1 [44.5 kB] 872s Get:291 http://ftpmaster.internal/ubuntu noble/main amd64 libxinerama1 amd64 2:1.1.4-3 [7382 B] 872s Get:292 http://ftpmaster.internal/ubuntu noble/universe amd64 libfltk1.3 amd64 1.3.8-6 [606 kB] 872s Get:293 http://ftpmaster.internal/ubuntu noble/main amd64 libglvnd0 amd64 1.7.0-1 [69.5 kB] 872s Get:294 http://ftpmaster.internal/ubuntu noble/main amd64 libglapi-mesa amd64 24.0.1-1ubuntu1 [40.3 kB] 872s Get:295 http://ftpmaster.internal/ubuntu noble/main amd64 libx11-xcb1 amd64 2:1.8.7-1 [7798 B] 872s Get:296 http://ftpmaster.internal/ubuntu noble/main amd64 libxcb-dri2-0 amd64 1.15-1 [7276 B] 872s Get:297 http://ftpmaster.internal/ubuntu noble/main amd64 libxcb-dri3-0 amd64 1.15-1 [7174 B] 872s Get:298 http://ftpmaster.internal/ubuntu noble/main amd64 libxcb-glx0 amd64 1.15-1 [24.6 kB] 872s Get:299 http://ftpmaster.internal/ubuntu noble/main amd64 libxcb-present0 amd64 1.15-1 [5708 B] 872s Get:300 http://ftpmaster.internal/ubuntu noble/main amd64 libxcb-randr0 amd64 1.15-1 [18.1 kB] 872s Get:301 http://ftpmaster.internal/ubuntu noble/main amd64 libxcb-sync1 amd64 1.15-1 [9358 B] 872s Get:302 http://ftpmaster.internal/ubuntu noble/main amd64 libxcb-xfixes0 amd64 1.15-1 [10.2 kB] 872s Get:303 http://ftpmaster.internal/ubuntu noble/main amd64 libxshmfence1 amd64 1.3-1build4 [5394 B] 872s Get:304 http://ftpmaster.internal/ubuntu noble/main amd64 libxxf86vm1 amd64 1:1.1.4-1build3 [10.4 kB] 872s Get:305 http://ftpmaster.internal/ubuntu noble/main amd64 libvulkan1 amd64 1.3.275.0-1 [142 kB] 872s Get:306 http://ftpmaster.internal/ubuntu noble/main amd64 libdrm-amdgpu1 amd64 2.4.120-2 [20.4 kB] 872s Get:307 http://ftpmaster.internal/ubuntu noble/main amd64 libpciaccess0 amd64 0.17-3 [18.9 kB] 872s Get:308 http://ftpmaster.internal/ubuntu noble/main amd64 libdrm-intel1 amd64 2.4.120-2 [63.8 kB] 872s Get:309 http://ftpmaster.internal/ubuntu noble/main amd64 libdrm-nouveau2 amd64 2.4.120-2 [17.6 kB] 872s Get:310 http://ftpmaster.internal/ubuntu noble/main amd64 libdrm-radeon1 amd64 2.4.120-2 [20.7 kB] 872s Get:311 http://ftpmaster.internal/ubuntu noble/main amd64 libllvm17 amd64 1:17.0.6-5build1 [26.2 MB] 872s Get:312 http://ftpmaster.internal/ubuntu noble/main amd64 libgl1-mesa-dri amd64 24.0.1-1ubuntu1 [8936 kB] 872s Get:313 http://ftpmaster.internal/ubuntu noble/main amd64 libglx-mesa0 amd64 24.0.1-1ubuntu1 [154 kB] 872s Get:314 http://ftpmaster.internal/ubuntu noble/main amd64 libglx0 amd64 1.7.0-1 [38.7 kB] 872s Get:315 http://ftpmaster.internal/ubuntu noble/main amd64 libgl1 amd64 1.7.0-1 [103 kB] 872s Get:316 http://ftpmaster.internal/ubuntu noble/universe amd64 libfltk-gl1.3 amd64 1.3.8-6 [43.4 kB] 872s Get:317 http://ftpmaster.internal/ubuntu noble/universe amd64 libgl2ps1.4 amd64 1.4.2+dfsg1-2 [43.5 kB] 872s Get:318 http://ftpmaster.internal/ubuntu noble/main amd64 libltdl7 amd64 2.4.7-7 [40.5 kB] 872s Get:319 http://ftpmaster.internal/ubuntu noble/universe amd64 libglpk40 amd64 5.0-1build1 [366 kB] 872s Get:320 http://ftpmaster.internal/ubuntu noble/main amd64 libopengl0 amd64 1.7.0-1 [33.0 kB] 872s Get:321 http://ftpmaster.internal/ubuntu noble/main amd64 libglu1-mesa amd64 9.0.2-1.1 [151 kB] 872s Get:322 http://ftpmaster.internal/ubuntu noble/universe amd64 libdav1d7 amd64 1.4.0-1 [605 kB] 872s Get:323 http://ftpmaster.internal/ubuntu noble/universe amd64 libheif-plugin-dav1d amd64 1.17.6-1ubuntu1 [10.9 kB] 872s Get:324 http://ftpmaster.internal/ubuntu noble/universe amd64 libde265-0 amd64 1.0.15-1 [192 kB] 872s Get:325 http://ftpmaster.internal/ubuntu noble/universe amd64 libheif-plugin-libde265 amd64 1.17.6-1ubuntu1 [9024 B] 872s Get:326 http://ftpmaster.internal/ubuntu noble/universe amd64 libheif1 amd64 1.17.6-1ubuntu1 [325 kB] 872s Get:327 http://ftpmaster.internal/ubuntu noble/universe amd64 libhwy1 amd64 1.0.7-8 [590 kB] 872s Get:328 http://ftpmaster.internal/ubuntu noble/main amd64 liblcms2-2 amd64 2.14-2 [161 kB] 872s Get:329 http://ftpmaster.internal/ubuntu noble/universe amd64 libjxl0.7 amd64 0.7.0-10.2ubuntu1 [1002 kB] 872s Get:330 http://ftpmaster.internal/ubuntu noble/main amd64 libwebpmux3 amd64 1.3.2-0.4 [25.6 kB] 872s Get:331 http://ftpmaster.internal/ubuntu noble/main amd64 libwmflite-0.2-7 amd64 0.2.13-1.1 [68.6 kB] 872s Get:332 http://ftpmaster.internal/ubuntu noble/universe amd64 libgraphicsmagick-q16-3 amd64 1.4+really1.3.42-1build1 [1257 kB] 872s Get:333 http://ftpmaster.internal/ubuntu noble/universe amd64 libgraphicsmagick++-q16-12 amd64 1.4+really1.3.42-1build1 [117 kB] 872s Get:334 http://ftpmaster.internal/ubuntu noble/universe amd64 libaec0 amd64 1.1.2-1 [22.6 kB] 872s Get:335 http://ftpmaster.internal/ubuntu noble/universe amd64 libsz2 amd64 1.1.2-1 [5416 B] 872s Get:336 http://ftpmaster.internal/ubuntu noble/universe amd64 libhdf5-103-1 amd64 1.10.10+repack-3ubuntu1 [1327 kB] 872s Get:337 http://ftpmaster.internal/ubuntu noble/main amd64 libasound2-data all 1.2.10-3build1 [20.7 kB] 872s Get:338 http://ftpmaster.internal/ubuntu noble/main amd64 libasound2 amd64 1.2.10-3build1 [396 kB] 872s Get:339 http://ftpmaster.internal/ubuntu noble/main amd64 libopus0 amd64 1.4-1 [208 kB] 872s Get:340 http://ftpmaster.internal/ubuntu noble/main amd64 libsamplerate0 amd64 0.2.2-4 [1343 kB] 872s Get:341 http://ftpmaster.internal/ubuntu noble/main amd64 libjack-jackd2-0 amd64 1.9.21~dfsg-3 [290 kB] 872s Get:342 http://ftpmaster.internal/ubuntu noble/universe amd64 libportaudio2 amd64 19.6.0-1.2 [68.6 kB] 872s Get:343 http://ftpmaster.internal/ubuntu noble/universe amd64 libqhull-r8.0 amd64 2020.2-6 [194 kB] 872s Get:344 http://ftpmaster.internal/ubuntu noble/universe amd64 libqrupdate1 amd64 1.1.2-4 [36.8 kB] 872s Get:345 http://ftpmaster.internal/ubuntu noble/universe amd64 libqscintilla2-qt5-l10n all 2.14.1+dfsg-1 [56.3 kB] 872s Get:346 http://ftpmaster.internal/ubuntu noble/universe amd64 libdouble-conversion3 amd64 3.3.0-1 [39.9 kB] 872s Get:347 http://ftpmaster.internal/ubuntu noble/main amd64 libpcre2-16-0 amd64 10.42-4ubuntu1 [211 kB] 872s Get:348 http://ftpmaster.internal/ubuntu noble/universe amd64 libqt5core5a amd64 5.15.12+dfsg-3ubuntu1 [2008 kB] 872s Get:349 http://ftpmaster.internal/ubuntu noble/main amd64 libwayland-server0 amd64 1.22.0-2.1 [33.7 kB] 872s Get:350 http://ftpmaster.internal/ubuntu noble/main amd64 libgbm1 amd64 24.0.1-1ubuntu1 [41.9 kB] 872s Get:351 http://ftpmaster.internal/ubuntu noble/main amd64 libwayland-client0 amd64 1.22.0-2.1 [26.2 kB] 872s Get:352 http://ftpmaster.internal/ubuntu noble/main amd64 libegl-mesa0 amd64 24.0.1-1ubuntu1 [115 kB] 872s Get:353 http://ftpmaster.internal/ubuntu noble/main amd64 libegl1 amd64 1.7.0-1 [28.5 kB] 872s Get:354 http://ftpmaster.internal/ubuntu noble/main amd64 x11-common all 1:7.7+23ubuntu2 [23.4 kB] 872s Get:355 http://ftpmaster.internal/ubuntu noble/main amd64 libice6 amd64 2:1.0.10-1build2 [42.6 kB] 872s Get:356 http://ftpmaster.internal/ubuntu noble/main amd64 libmtdev1 amd64 1.1.6-1build4 [14.5 kB] 872s Get:357 http://ftpmaster.internal/ubuntu noble/main amd64 libwacom-common all 2.10.0-1 [63.3 kB] 872s Get:358 http://ftpmaster.internal/ubuntu noble/main amd64 libwacom9 amd64 2.10.0-1 [23.8 kB] 872s Get:359 http://ftpmaster.internal/ubuntu noble/main amd64 libinput-bin amd64 1.25.0-1 [22.0 kB] 872s Get:360 http://ftpmaster.internal/ubuntu noble/main amd64 libinput10 amd64 1.25.0-1 [133 kB] 872s Get:361 http://ftpmaster.internal/ubuntu noble/universe amd64 libmd4c0 amd64 0.4.8-1 [42.0 kB] 872s Get:362 http://ftpmaster.internal/ubuntu noble/universe amd64 libqt5dbus5 amd64 5.15.12+dfsg-3ubuntu1 [220 kB] 872s Get:363 http://ftpmaster.internal/ubuntu noble/universe amd64 libqt5network5 amd64 5.15.12+dfsg-3ubuntu1 [723 kB] 872s Get:364 http://ftpmaster.internal/ubuntu noble/main amd64 libsm6 amd64 2:1.2.3-1build2 [16.7 kB] 872s Get:365 http://ftpmaster.internal/ubuntu noble/main amd64 libxcb-icccm4 amd64 0.4.1-1.1build2 [11.5 kB] 872s Get:366 http://ftpmaster.internal/ubuntu noble/main amd64 libxcb-util1 amd64 0.4.0-1build2 [11.4 kB] 872s Get:367 http://ftpmaster.internal/ubuntu noble/main amd64 libxcb-image0 amd64 0.4.0-2 [11.5 kB] 872s Get:368 http://ftpmaster.internal/ubuntu noble/main amd64 libxcb-keysyms1 amd64 0.4.0-1build3 [8746 B] 872s Get:369 http://ftpmaster.internal/ubuntu noble/main amd64 libxcb-render-util0 amd64 0.3.9-1build3 [10.3 kB] 872s Get:370 http://ftpmaster.internal/ubuntu noble/main amd64 libxcb-shape0 amd64 1.15-1 [6106 B] 872s Get:371 http://ftpmaster.internal/ubuntu noble/main amd64 libxcb-xinerama0 amd64 1.15-1 [5376 B] 872s Get:372 http://ftpmaster.internal/ubuntu noble/main amd64 libxcb-xinput0 amd64 1.15-1 [33.5 kB] 872s Get:373 http://ftpmaster.internal/ubuntu noble/main amd64 libxcb-xkb1 amd64 1.15-1 [32.1 kB] 872s Get:374 http://ftpmaster.internal/ubuntu noble/main amd64 libxkbcommon-x11-0 amd64 1.6.0-1 [14.4 kB] 872s Get:375 http://ftpmaster.internal/ubuntu noble/universe amd64 libqt5gui5 amd64 5.15.12+dfsg-3ubuntu1 [3747 kB] 872s Get:376 http://ftpmaster.internal/ubuntu noble/main amd64 libavahi-common-data amd64 0.8-13ubuntu2 [29.5 kB] 872s Get:377 http://ftpmaster.internal/ubuntu noble/main amd64 libavahi-common3 amd64 0.8-13ubuntu2 [23.5 kB] 872s Get:378 http://ftpmaster.internal/ubuntu noble/main amd64 libavahi-client3 amd64 0.8-13ubuntu2 [27.4 kB] 872s Get:379 http://ftpmaster.internal/ubuntu noble/main amd64 libcups2 amd64 2.4.6-0ubuntu3 [269 kB] 872s Get:380 http://ftpmaster.internal/ubuntu noble/universe amd64 libqt5widgets5 amd64 5.15.12+dfsg-3ubuntu1 [2554 kB] 872s Get:381 http://ftpmaster.internal/ubuntu noble/universe amd64 libqt5printsupport5 amd64 5.15.12+dfsg-3ubuntu1 [208 kB] 872s Get:382 http://ftpmaster.internal/ubuntu noble/universe amd64 libqscintilla2-qt5-15 amd64 2.14.1+dfsg-1 [1150 kB] 872s Get:383 http://ftpmaster.internal/ubuntu noble/universe amd64 libqt5sql5 amd64 5.15.12+dfsg-3ubuntu1 [122 kB] 872s Get:384 http://ftpmaster.internal/ubuntu noble/universe amd64 libqt5help5 amd64 5.15.12-2 [161 kB] 872s Get:385 http://ftpmaster.internal/ubuntu noble/universe amd64 libqt5xml5 amd64 5.15.12+dfsg-3ubuntu1 [123 kB] 872s Get:386 http://ftpmaster.internal/ubuntu noble/main amd64 libogg0 amd64 1.3.5-3 [22.4 kB] 872s Get:387 http://ftpmaster.internal/ubuntu noble/main amd64 libflac12 amd64 1.4.3+ds-2ubuntu1 [195 kB] 872s Get:388 http://ftpmaster.internal/ubuntu noble/main amd64 libmp3lame0 amd64 3.100-6 [143 kB] 872s Get:389 http://ftpmaster.internal/ubuntu noble/main amd64 libmpg123-0 amd64 1.32.5-1 [169 kB] 872s Get:390 http://ftpmaster.internal/ubuntu noble/main amd64 libvorbis0a amd64 1.3.7-1build2 [99.2 kB] 872s Get:391 http://ftpmaster.internal/ubuntu noble/main amd64 libvorbisenc2 amd64 1.3.7-1build2 [82.6 kB] 872s Get:392 http://ftpmaster.internal/ubuntu noble/main amd64 libsndfile1 amd64 1.2.2-1ubuntu2 [209 kB] 872s Get:393 http://ftpmaster.internal/ubuntu noble/universe amd64 libspqr4 amd64 1:7.6.1+dfsg-1 [135 kB] 872s Get:394 http://ftpmaster.internal/ubuntu noble/universe amd64 libsundials-ida6 amd64 6.4.1+dfsg1-3build2 [129 kB] 872s Get:395 http://ftpmaster.internal/ubuntu noble/universe amd64 libbtf2 amd64 1:7.6.1+dfsg-1 [13.5 kB] 872s Get:396 http://ftpmaster.internal/ubuntu noble/universe amd64 libklu2 amd64 1:7.6.1+dfsg-1 [79.0 kB] 872s Get:397 http://ftpmaster.internal/ubuntu noble/main amd64 libfftw3-long3 amd64 3.3.10-1ubuntu1 [368 kB] 872s Get:398 http://ftpmaster.internal/ubuntu noble/main amd64 libevent-pthreads-2.1-7 amd64 2.1.12-stable-9 [7802 B] 872s Get:399 http://ftpmaster.internal/ubuntu noble/universe amd64 libpsm-infinipath1 amd64 3.3+20.604758e7-6.3 [178 kB] 872s Get:400 http://ftpmaster.internal/ubuntu noble/universe amd64 libpsm2-2 amd64 11.2.185-2 [196 kB] 872s Get:401 http://ftpmaster.internal/ubuntu noble/main amd64 librdmacm1t64 amd64 50.0-2 [70.7 kB] 872s Get:402 http://ftpmaster.internal/ubuntu noble/universe amd64 libfabric1 amd64 1.17.0-3build1 [657 kB] 872s Get:403 http://ftpmaster.internal/ubuntu noble/universe amd64 libhwloc15 amd64 2.10.0-1 [171 kB] 872s Get:404 http://ftpmaster.internal/ubuntu noble/universe amd64 libmunge2 amd64 0.5.15-3ubuntu1 [14.6 kB] 872s Get:405 http://ftpmaster.internal/ubuntu noble/main amd64 libxnvctrl0 amd64 510.47.03-0ubuntu1 [11.5 kB] 872s Get:406 http://ftpmaster.internal/ubuntu noble/universe amd64 ocl-icd-libopencl1 amd64 2.3.2-1 [38.3 kB] 872s Get:407 http://ftpmaster.internal/ubuntu noble/universe amd64 libhwloc-plugins amd64 2.10.0-1 [15.8 kB] 872s Get:408 http://ftpmaster.internal/ubuntu noble/universe amd64 libpmix2 amd64 5.0.1-4 [695 kB] 872s Get:409 http://ftpmaster.internal/ubuntu noble/universe amd64 libamd-comgr2 amd64 6.0+git20231212.4510c28+dfsg-3 [14.4 MB] 873s Get:410 http://ftpmaster.internal/ubuntu noble/universe amd64 libhsakmt1 amd64 5.7.0-1 [63.0 kB] 873s Get:411 http://ftpmaster.internal/ubuntu noble/universe amd64 libhsa-runtime64-1 amd64 5.7.1-1 [491 kB] 873s Get:412 http://ftpmaster.internal/ubuntu noble/universe amd64 libamdhip64-5 amd64 5.2.3-12 [5204 kB] 873s Get:413 http://ftpmaster.internal/ubuntu noble/universe amd64 libucx0 amd64 1.16.0+ds-4 [1139 kB] 873s Get:414 http://ftpmaster.internal/ubuntu noble/universe amd64 libopenmpi3 amd64 4.1.6-5ubuntu1 [3177 kB] 873s Get:415 http://ftpmaster.internal/ubuntu noble/universe amd64 libfftw3-mpi3 amd64 3.3.10-1ubuntu1 [52.1 kB] 873s Get:416 http://ftpmaster.internal/ubuntu noble/universe amd64 libhdf5-openmpi-103-1 amd64 1.10.10+repack-3ubuntu1 [1371 kB] 873s Get:417 http://ftpmaster.internal/ubuntu noble/universe amd64 libcombblas2.0.0 amd64 2.0.0-3 [266 kB] 873s Get:418 http://ftpmaster.internal/ubuntu noble/universe amd64 libmetis5 amd64 5.1.0.dfsg-7build2 [181 kB] 873s Get:419 http://ftpmaster.internal/ubuntu noble/universe amd64 libptscotch-7.0 amd64 7.0.4-1 [736 kB] 873s Get:420 http://ftpmaster.internal/ubuntu noble/universe amd64 libsuperlu-dist8 amd64 8.2.1+dfsg1-1 [632 kB] 873s Get:421 http://ftpmaster.internal/ubuntu noble/universe amd64 libhypre-2.28.0 amd64 2.28.0-8 [1700 kB] 873s Get:422 http://ftpmaster.internal/ubuntu noble/universe amd64 openmpi-common all 4.1.6-5ubuntu1 [178 kB] 873s Get:423 http://ftpmaster.internal/ubuntu noble/universe amd64 openmpi-bin amd64 4.1.6-5ubuntu1 [124 kB] 873s Get:424 http://ftpmaster.internal/ubuntu noble/universe amd64 mpi-default-bin amd64 1.15 [2336 B] 873s Get:425 http://ftpmaster.internal/ubuntu noble/universe amd64 libscalapack-openmpi2.2 amd64 2.2.1-3 [1803 kB] 873s Get:426 http://ftpmaster.internal/ubuntu noble/universe amd64 libmumps-5.6 amd64 5.6.2-2 [2010 kB] 873s Get:427 http://ftpmaster.internal/ubuntu noble/universe amd64 libsuperlu6 amd64 6.0.1+dfsg1-1 [184 kB] 873s Get:428 http://ftpmaster.internal/ubuntu noble/universe amd64 libscotch-7.0 amd64 7.0.4-1 [449 kB] 873s Get:429 http://ftpmaster.internal/ubuntu noble/universe amd64 libtrilinos-kokkos-13.2 amd64 13.2.0-5 [109 kB] 873s Get:430 http://ftpmaster.internal/ubuntu noble/universe amd64 libtrilinos-teuchos-13.2 amd64 13.2.0-5 [1216 kB] 873s Get:431 http://ftpmaster.internal/ubuntu noble/universe amd64 libtrilinos-epetra-13.2 amd64 13.2.0-5 [457 kB] 873s Get:432 http://ftpmaster.internal/ubuntu noble/universe amd64 libtrilinos-triutils-13.2 amd64 13.2.0-5 [128 kB] 873s Get:433 http://ftpmaster.internal/ubuntu noble/universe amd64 libtrilinos-epetraext-13.2 amd64 13.2.0-5 [452 kB] 873s Get:434 http://ftpmaster.internal/ubuntu noble/universe amd64 libtrilinos-trilinosss-13.2 amd64 13.2.0-5 [93.0 kB] 873s Get:435 http://ftpmaster.internal/ubuntu noble/universe amd64 libtrilinos-amesos-13.2 amd64 13.2.0-5 [109 kB] 873s Get:436 http://ftpmaster.internal/ubuntu noble/universe amd64 libtrilinos-aztecoo-13.2 amd64 13.2.0-5 [215 kB] 873s Get:437 http://ftpmaster.internal/ubuntu noble/universe amd64 libtrilinos-galeri-13.2 amd64 13.2.0-5 [93.8 kB] 873s Get:438 http://ftpmaster.internal/ubuntu noble/universe amd64 libtrilinos-ifpack-13.2 amd64 13.2.0-5 [439 kB] 873s Get:439 http://ftpmaster.internal/ubuntu noble/universe amd64 libtrilinos-zoltan-13.2 amd64 13.2.0-5 [407 kB] 873s Get:440 http://ftpmaster.internal/ubuntu noble/universe amd64 libtrilinos-ml-13.2 amd64 13.2.0-5 [1014 kB] 873s Get:441 http://ftpmaster.internal/ubuntu noble/universe amd64 libumfpack6 amd64 1:7.6.1+dfsg-1 [268 kB] 873s Get:442 http://ftpmaster.internal/ubuntu noble/universe amd64 libpetsc-real3.19 amd64 3.19.6+dfsg1-2ubuntu1 [6926 kB] 873s Get:443 http://ftpmaster.internal/ubuntu noble/universe amd64 libsundials-nvecparallel-petsc6 amd64 6.4.1+dfsg1-3build2 [36.2 kB] 873s Get:444 http://ftpmaster.internal/ubuntu noble/universe amd64 libsundials-sunmatrix4 amd64 6.4.1+dfsg1-3build2 [83.9 kB] 873s Get:445 http://ftpmaster.internal/ubuntu noble/universe amd64 libsundials-sunlinsol3 amd64 6.4.1+dfsg1-3build2 [176 kB] 873s Get:446 http://ftpmaster.internal/ubuntu noble/universe amd64 libtext-unidecode-perl all 1.30-3 [105 kB] 873s Get:447 http://ftpmaster.internal/ubuntu noble/universe amd64 texinfo-lib amd64 7.1-3 [133 kB] 873s Get:448 http://ftpmaster.internal/ubuntu noble/universe amd64 tex-common all 6.18 [32.8 kB] 873s Get:449 http://ftpmaster.internal/ubuntu noble/universe amd64 texinfo all 7.1-3 [1273 kB] 873s Get:450 http://ftpmaster.internal/ubuntu noble/universe amd64 octave-common all 8.4.0-1build1 [5924 kB] 873s Get:451 http://ftpmaster.internal/ubuntu noble/universe amd64 octave amd64 8.4.0-1build1 [10.1 MB] 873s Get:452 http://ftpmaster.internal/ubuntu noble/main amd64 libncurses-dev amd64 6.4+20240113-1ubuntu1 [384 kB] 873s Get:453 http://ftpmaster.internal/ubuntu noble/main amd64 libreadline-dev amd64 8.2-3 [167 kB] 873s Get:454 http://ftpmaster.internal/ubuntu noble/universe amd64 libhdf5-fortran-102 amd64 1.10.10+repack-3ubuntu1 [86.4 kB] 873s Get:455 http://ftpmaster.internal/ubuntu noble/universe amd64 libhdf5-hl-100 amd64 1.10.10+repack-3ubuntu1 [56.2 kB] 873s Get:456 http://ftpmaster.internal/ubuntu noble/universe amd64 libhdf5-hl-fortran-100 amd64 1.10.10+repack-3ubuntu1 [32.5 kB] 873s Get:457 http://ftpmaster.internal/ubuntu noble/universe amd64 libhdf5-cpp-103-1 amd64 1.10.10+repack-3ubuntu1 [128 kB] 873s Get:458 http://ftpmaster.internal/ubuntu noble/universe amd64 libhdf5-hl-cpp-100 amd64 1.10.10+repack-3ubuntu1 [11.0 kB] 873s Get:459 http://ftpmaster.internal/ubuntu noble/main amd64 zlib1g-dev amd64 1:1.3.dfsg-3ubuntu1 [896 kB] 873s Get:460 http://ftpmaster.internal/ubuntu noble/main amd64 libjpeg-turbo8-dev amd64 2.1.5-2ubuntu1 [294 kB] 873s Get:461 http://ftpmaster.internal/ubuntu noble/main amd64 libjpeg8-dev amd64 8c-2ubuntu11 [1484 B] 873s Get:462 http://ftpmaster.internal/ubuntu noble/main amd64 libjpeg-dev amd64 8c-2ubuntu11 [1482 B] 873s Get:463 http://ftpmaster.internal/ubuntu noble/universe amd64 libaec-dev amd64 1.1.2-1 [19.5 kB] 873s Get:464 http://ftpmaster.internal/ubuntu noble/main amd64 libcurl4-openssl-dev amd64 8.5.0-2ubuntu2 [446 kB] 873s Get:465 http://ftpmaster.internal/ubuntu noble/main amd64 libssl-dev amd64 3.0.10-1ubuntu4 [2400 kB] 873s Get:466 http://ftpmaster.internal/ubuntu noble/universe amd64 hdf5-helpers amd64 1.10.10+repack-3ubuntu1 [15.5 kB] 873s Get:467 http://ftpmaster.internal/ubuntu noble/universe amd64 libhdf5-dev amd64 1.10.10+repack-3ubuntu1 [2826 kB] 873s Get:468 http://ftpmaster.internal/ubuntu noble/main amd64 xorg-sgml-doctools all 1:1.11-1.1 [10.9 kB] 873s Get:469 http://ftpmaster.internal/ubuntu noble/main amd64 x11proto-dev all 2023.2-1 [602 kB] 873s Get:470 http://ftpmaster.internal/ubuntu noble/main amd64 libxau-dev amd64 1:1.0.9-1build5 [9724 B] 873s Get:471 http://ftpmaster.internal/ubuntu noble/main amd64 libxdmcp-dev amd64 1:1.1.3-0ubuntu5 [26.5 kB] 873s Get:472 http://ftpmaster.internal/ubuntu noble/main amd64 xtrans-dev all 1.4.0-1 [68.9 kB] 873s Get:473 http://ftpmaster.internal/ubuntu noble/main amd64 libpthread-stubs0-dev amd64 0.4-1build2 [5516 B] 873s Get:474 http://ftpmaster.internal/ubuntu noble/main amd64 libxcb1-dev amd64 1.15-1 [85.8 kB] 873s Get:475 http://ftpmaster.internal/ubuntu noble/main amd64 libx11-dev amd64 2:1.8.7-1 [731 kB] 873s Get:476 http://ftpmaster.internal/ubuntu noble/main amd64 libglx-dev amd64 1.7.0-1 [14.2 kB] 873s Get:477 http://ftpmaster.internal/ubuntu noble/main amd64 libgl-dev amd64 1.7.0-1 [102 kB] 873s Get:478 http://ftpmaster.internal/ubuntu noble/main amd64 libblas-dev amd64 3.12.0-3 [170 kB] 873s Get:479 http://ftpmaster.internal/ubuntu noble/main amd64 liblapack-dev amd64 3.12.0-3 [5196 kB] 873s Get:480 http://ftpmaster.internal/ubuntu noble/main amd64 libfftw3-quad3 amd64 3.3.10-1ubuntu1 [655 kB] 873s Get:481 http://ftpmaster.internal/ubuntu noble/main amd64 libfftw3-bin amd64 3.3.10-1ubuntu1 [39.0 kB] 873s Get:482 http://ftpmaster.internal/ubuntu noble/main amd64 libfftw3-dev amd64 3.3.10-1ubuntu1 [2372 kB] 873s Get:483 http://ftpmaster.internal/ubuntu noble/main amd64 libgfortran-13-dev amd64 13.2.0-17ubuntu2 [942 kB] 873s Get:484 http://ftpmaster.internal/ubuntu noble/main amd64 gfortran-13-x86-64-linux-gnu amd64 13.2.0-17ubuntu2 [11.6 MB] 873s Get:485 http://ftpmaster.internal/ubuntu noble/main amd64 gfortran-13 amd64 13.2.0-17ubuntu2 [10.3 kB] 873s Get:486 http://ftpmaster.internal/ubuntu noble/main amd64 gfortran-x86-64-linux-gnu amd64 4:13.2.0-7ubuntu1 [1024 B] 873s Get:487 http://ftpmaster.internal/ubuntu noble/main amd64 gfortran amd64 4:13.2.0-7ubuntu1 [1176 B] 873s Get:488 http://ftpmaster.internal/ubuntu noble/universe amd64 octave-dev amd64 8.4.0-1build1 [473 kB] 873s Get:489 http://ftpmaster.internal/ubuntu noble/universe amd64 dh-octave all 1.8.0 [19.7 kB] 873s Get:490 http://ftpmaster.internal/ubuntu noble/main amd64 libfontenc1 amd64 1:1.1.8-1 [14.0 kB] 873s Get:491 http://ftpmaster.internal/ubuntu noble/main amd64 libxt6 amd64 1:1.2.1-1.1 [173 kB] 873s Get:492 http://ftpmaster.internal/ubuntu noble/main amd64 libxmu6 amd64 2:1.1.3-3 [49.6 kB] 873s Get:493 http://ftpmaster.internal/ubuntu noble/main amd64 libxaw7 amd64 2:1.0.14-1 [191 kB] 873s Get:494 http://ftpmaster.internal/ubuntu noble/main amd64 libxfont2 amd64 1:2.0.6-1 [92.7 kB] 873s Get:495 http://ftpmaster.internal/ubuntu noble/main amd64 libxkbfile1 amd64 1:1.1.0-1build3 [71.8 kB] 873s Get:496 http://ftpmaster.internal/ubuntu noble/main amd64 libxrandr2 amd64 2:1.5.2-2 [20.4 kB] 873s Get:497 http://ftpmaster.internal/ubuntu noble/universe amd64 python3-mpmath all 1.2.1-3 [421 kB] 873s Get:498 http://ftpmaster.internal/ubuntu noble/universe amd64 python3-sympy all 1.12-7 [3966 kB] 873s Get:499 http://ftpmaster.internal/ubuntu noble/universe amd64 octave-symbolic all 3.1.1-2 [207 kB] 873s Get:500 http://ftpmaster.internal/ubuntu noble/main amd64 x11-xkb-utils amd64 7.7+8 [169 kB] 873s Get:501 http://ftpmaster.internal/ubuntu noble/main amd64 xserver-common all 2:21.1.11-2ubuntu1 [32.6 kB] 873s Get:502 http://ftpmaster.internal/ubuntu noble/universe amd64 xvfb amd64 2:21.1.11-2ubuntu1 [873 kB] 875s Fetched 260 MB in 3s (93.7 MB/s) 875s Selecting previously unselected package m4. 875s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 71420 files and directories currently installed.) 875s Preparing to unpack .../000-m4_1.4.19-4_amd64.deb ... 875s Unpacking m4 (1.4.19-4) ... 875s Selecting previously unselected package autoconf. 875s Preparing to unpack .../001-autoconf_2.71-3_all.deb ... 875s Unpacking autoconf (2.71-3) ... 875s Selecting previously unselected package autotools-dev. 875s Preparing to unpack .../002-autotools-dev_20220109.1_all.deb ... 875s Unpacking autotools-dev (20220109.1) ... 875s Selecting previously unselected package automake. 875s Preparing to unpack .../003-automake_1%3a1.16.5-1.3ubuntu1_all.deb ... 875s Unpacking automake (1:1.16.5-1.3ubuntu1) ... 875s Selecting previously unselected package autopoint. 875s Preparing to unpack .../004-autopoint_0.21-14ubuntu1_all.deb ... 875s Unpacking autopoint (0.21-14ubuntu1) ... 875s Selecting previously unselected package libc-dev-bin. 875s Preparing to unpack .../005-libc-dev-bin_2.39-0ubuntu2_amd64.deb ... 875s Unpacking libc-dev-bin (2.39-0ubuntu2) ... 875s Selecting previously unselected package linux-libc-dev:amd64. 875s Preparing to unpack .../006-linux-libc-dev_6.8.0-11.11_amd64.deb ... 875s Unpacking linux-libc-dev:amd64 (6.8.0-11.11) ... 875s Selecting previously unselected package libcrypt-dev:amd64. 875s Preparing to unpack .../007-libcrypt-dev_1%3a4.4.36-4_amd64.deb ... 875s Unpacking libcrypt-dev:amd64 (1:4.4.36-4) ... 875s Selecting previously unselected package libtirpc-dev:amd64. 875s Preparing to unpack .../008-libtirpc-dev_1.3.4+ds-1build1_amd64.deb ... 875s Unpacking libtirpc-dev:amd64 (1.3.4+ds-1build1) ... 875s Selecting previously unselected package libnsl-dev:amd64. 875s Preparing to unpack .../009-libnsl-dev_1.3.0-3_amd64.deb ... 875s Unpacking libnsl-dev:amd64 (1.3.0-3) ... 875s Selecting previously unselected package rpcsvc-proto. 875s Preparing to unpack .../010-rpcsvc-proto_1.4.2-0ubuntu6_amd64.deb ... 875s Unpacking rpcsvc-proto (1.4.2-0ubuntu6) ... 875s Selecting previously unselected package libc6-dev:amd64. 875s Preparing to unpack .../011-libc6-dev_2.39-0ubuntu2_amd64.deb ... 875s Unpacking libc6-dev:amd64 (2.39-0ubuntu2) ... 876s Selecting previously unselected package libisl23:amd64. 876s Preparing to unpack .../012-libisl23_0.26-3_amd64.deb ... 876s Unpacking libisl23:amd64 (0.26-3) ... 876s Selecting previously unselected package libmpc3:amd64. 876s Preparing to unpack .../013-libmpc3_1.3.1-1_amd64.deb ... 876s Unpacking libmpc3:amd64 (1.3.1-1) ... 876s Selecting previously unselected package cpp-13-x86-64-linux-gnu. 876s Preparing to unpack .../014-cpp-13-x86-64-linux-gnu_13.2.0-17ubuntu2_amd64.deb ... 876s Unpacking cpp-13-x86-64-linux-gnu (13.2.0-17ubuntu2) ... 876s Selecting previously unselected package cpp-13. 876s Preparing to unpack .../015-cpp-13_13.2.0-17ubuntu2_amd64.deb ... 876s Unpacking cpp-13 (13.2.0-17ubuntu2) ... 876s Selecting previously unselected package cpp-x86-64-linux-gnu. 876s Preparing to unpack .../016-cpp-x86-64-linux-gnu_4%3a13.2.0-7ubuntu1_amd64.deb ... 876s Unpacking cpp-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 876s Selecting previously unselected package cpp. 876s Preparing to unpack .../017-cpp_4%3a13.2.0-7ubuntu1_amd64.deb ... 876s Unpacking cpp (4:13.2.0-7ubuntu1) ... 876s Selecting previously unselected package libcc1-0:amd64. 876s Preparing to unpack .../018-libcc1-0_14-20240303-1ubuntu1_amd64.deb ... 876s Unpacking libcc1-0:amd64 (14-20240303-1ubuntu1) ... 876s Selecting previously unselected package libgomp1:amd64. 876s Preparing to unpack .../019-libgomp1_14-20240303-1ubuntu1_amd64.deb ... 876s Unpacking libgomp1:amd64 (14-20240303-1ubuntu1) ... 876s Selecting previously unselected package libitm1:amd64. 876s Preparing to unpack .../020-libitm1_14-20240303-1ubuntu1_amd64.deb ... 876s Unpacking libitm1:amd64 (14-20240303-1ubuntu1) ... 876s Selecting previously unselected package libatomic1:amd64. 876s Preparing to unpack .../021-libatomic1_14-20240303-1ubuntu1_amd64.deb ... 876s Unpacking libatomic1:amd64 (14-20240303-1ubuntu1) ... 876s Selecting previously unselected package libasan8:amd64. 876s Preparing to unpack .../022-libasan8_14-20240303-1ubuntu1_amd64.deb ... 876s Unpacking libasan8:amd64 (14-20240303-1ubuntu1) ... 876s Selecting previously unselected package liblsan0:amd64. 876s Preparing to unpack .../023-liblsan0_14-20240303-1ubuntu1_amd64.deb ... 876s Unpacking liblsan0:amd64 (14-20240303-1ubuntu1) ... 876s Selecting previously unselected package libtsan2:amd64. 876s Preparing to unpack .../024-libtsan2_14-20240303-1ubuntu1_amd64.deb ... 876s Unpacking libtsan2:amd64 (14-20240303-1ubuntu1) ... 876s Selecting previously unselected package libubsan1:amd64. 876s Preparing to unpack .../025-libubsan1_14-20240303-1ubuntu1_amd64.deb ... 876s Unpacking libubsan1:amd64 (14-20240303-1ubuntu1) ... 876s Selecting previously unselected package libhwasan0:amd64. 876s Preparing to unpack .../026-libhwasan0_14-20240303-1ubuntu1_amd64.deb ... 876s Unpacking libhwasan0:amd64 (14-20240303-1ubuntu1) ... 876s Selecting previously unselected package libquadmath0:amd64. 876s Preparing to unpack .../027-libquadmath0_14-20240303-1ubuntu1_amd64.deb ... 876s Unpacking libquadmath0:amd64 (14-20240303-1ubuntu1) ... 876s Selecting previously unselected package libgcc-13-dev:amd64. 876s Preparing to unpack .../028-libgcc-13-dev_13.2.0-17ubuntu2_amd64.deb ... 876s Unpacking libgcc-13-dev:amd64 (13.2.0-17ubuntu2) ... 876s Selecting previously unselected package gcc-13-x86-64-linux-gnu. 876s Preparing to unpack .../029-gcc-13-x86-64-linux-gnu_13.2.0-17ubuntu2_amd64.deb ... 876s Unpacking gcc-13-x86-64-linux-gnu (13.2.0-17ubuntu2) ... 877s Selecting previously unselected package gcc-13. 877s Preparing to unpack .../030-gcc-13_13.2.0-17ubuntu2_amd64.deb ... 877s Unpacking gcc-13 (13.2.0-17ubuntu2) ... 877s Selecting previously unselected package gcc-x86-64-linux-gnu. 877s Preparing to unpack .../031-gcc-x86-64-linux-gnu_4%3a13.2.0-7ubuntu1_amd64.deb ... 877s Unpacking gcc-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 877s Selecting previously unselected package gcc. 877s Preparing to unpack .../032-gcc_4%3a13.2.0-7ubuntu1_amd64.deb ... 877s Unpacking gcc (4:13.2.0-7ubuntu1) ... 877s Selecting previously unselected package libstdc++-13-dev:amd64. 877s Preparing to unpack .../033-libstdc++-13-dev_13.2.0-17ubuntu2_amd64.deb ... 877s Unpacking libstdc++-13-dev:amd64 (13.2.0-17ubuntu2) ... 877s Selecting previously unselected package g++-13-x86-64-linux-gnu. 877s Preparing to unpack .../034-g++-13-x86-64-linux-gnu_13.2.0-17ubuntu2_amd64.deb ... 877s Unpacking g++-13-x86-64-linux-gnu (13.2.0-17ubuntu2) ... 877s Selecting previously unselected package g++-13. 877s Preparing to unpack .../035-g++-13_13.2.0-17ubuntu2_amd64.deb ... 877s Unpacking g++-13 (13.2.0-17ubuntu2) ... 877s Selecting previously unselected package g++-x86-64-linux-gnu. 877s Preparing to unpack .../036-g++-x86-64-linux-gnu_4%3a13.2.0-7ubuntu1_amd64.deb ... 877s Unpacking g++-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 877s Selecting previously unselected package g++. 877s Preparing to unpack .../037-g++_4%3a13.2.0-7ubuntu1_amd64.deb ... 877s Unpacking g++ (4:13.2.0-7ubuntu1) ... 877s Selecting previously unselected package build-essential. 877s Preparing to unpack .../038-build-essential_12.10ubuntu1_amd64.deb ... 877s Unpacking build-essential (12.10ubuntu1) ... 877s Selecting previously unselected package libcapture-tiny-perl. 877s Preparing to unpack .../039-libcapture-tiny-perl_0.48-2_all.deb ... 877s Unpacking libcapture-tiny-perl (0.48-2) ... 877s Selecting previously unselected package libparams-util-perl. 877s Preparing to unpack .../040-libparams-util-perl_1.102-2build1_amd64.deb ... 877s Unpacking libparams-util-perl (1.102-2build1) ... 877s Selecting previously unselected package libsub-install-perl. 877s Preparing to unpack .../041-libsub-install-perl_0.929-1_all.deb ... 877s Unpacking libsub-install-perl (0.929-1) ... 878s Selecting previously unselected package libdata-optlist-perl. 878s Preparing to unpack .../042-libdata-optlist-perl_0.114-1_all.deb ... 878s Unpacking libdata-optlist-perl (0.114-1) ... 878s Selecting previously unselected package libb-hooks-op-check-perl:amd64. 878s Preparing to unpack .../043-libb-hooks-op-check-perl_0.22-2build2_amd64.deb ... 878s Unpacking libb-hooks-op-check-perl:amd64 (0.22-2build2) ... 878s Selecting previously unselected package libdynaloader-functions-perl. 878s Preparing to unpack .../044-libdynaloader-functions-perl_0.003-3_all.deb ... 878s Unpacking libdynaloader-functions-perl (0.003-3) ... 878s Selecting previously unselected package libdevel-callchecker-perl:amd64. 878s Preparing to unpack .../045-libdevel-callchecker-perl_0.008-2build1_amd64.deb ... 878s Unpacking libdevel-callchecker-perl:amd64 (0.008-2build1) ... 878s Selecting previously unselected package libparams-classify-perl:amd64. 878s Preparing to unpack .../046-libparams-classify-perl_0.015-2build3_amd64.deb ... 878s Unpacking libparams-classify-perl:amd64 (0.015-2build3) ... 878s Selecting previously unselected package libmodule-runtime-perl. 878s Preparing to unpack .../047-libmodule-runtime-perl_0.016-2_all.deb ... 878s Unpacking libmodule-runtime-perl (0.016-2) ... 878s Selecting previously unselected package libtry-tiny-perl. 878s Preparing to unpack .../048-libtry-tiny-perl_0.31-2_all.deb ... 878s Unpacking libtry-tiny-perl (0.31-2) ... 878s Selecting previously unselected package libmodule-implementation-perl. 878s Preparing to unpack .../049-libmodule-implementation-perl_0.09-2_all.deb ... 878s Unpacking libmodule-implementation-perl (0.09-2) ... 878s Selecting previously unselected package libpackage-stash-perl. 878s Preparing to unpack .../050-libpackage-stash-perl_0.40-1_all.deb ... 878s Unpacking libpackage-stash-perl (0.40-1) ... 878s Selecting previously unselected package libclass-load-perl. 878s Preparing to unpack .../051-libclass-load-perl_0.25-2_all.deb ... 878s Unpacking libclass-load-perl (0.25-2) ... 878s Selecting previously unselected package libio-stringy-perl. 878s Preparing to unpack .../052-libio-stringy-perl_2.111-3_all.deb ... 878s Unpacking libio-stringy-perl (2.111-3) ... 878s Selecting previously unselected package libparams-validate-perl:amd64. 878s Preparing to unpack .../053-libparams-validate-perl_1.31-2build1_amd64.deb ... 878s Unpacking libparams-validate-perl:amd64 (1.31-2build1) ... 878s Selecting previously unselected package libsub-exporter-perl. 878s Preparing to unpack .../054-libsub-exporter-perl_0.990-1_all.deb ... 878s Unpacking libsub-exporter-perl (0.990-1) ... 878s Selecting previously unselected package libgetopt-long-descriptive-perl. 878s Preparing to unpack .../055-libgetopt-long-descriptive-perl_0.111-1_all.deb ... 878s Unpacking libgetopt-long-descriptive-perl (0.111-1) ... 878s Selecting previously unselected package libio-tiecombine-perl. 878s Preparing to unpack .../056-libio-tiecombine-perl_1.005-3_all.deb ... 878s Unpacking libio-tiecombine-perl (1.005-3) ... 878s Selecting previously unselected package libmodule-pluggable-perl. 878s Preparing to unpack .../057-libmodule-pluggable-perl_5.2-4_all.deb ... 878s Unpacking libmodule-pluggable-perl (5.2-4) ... 878s Selecting previously unselected package libstring-rewriteprefix-perl. 878s Preparing to unpack .../058-libstring-rewriteprefix-perl_0.009-1_all.deb ... 878s Unpacking libstring-rewriteprefix-perl (0.009-1) ... 878s Selecting previously unselected package libapp-cmd-perl. 878s Preparing to unpack .../059-libapp-cmd-perl_0.336-1_all.deb ... 878s Unpacking libapp-cmd-perl (0.336-1) ... 878s Selecting previously unselected package libboolean-perl. 878s Preparing to unpack .../060-libboolean-perl_0.46-3_all.deb ... 878s Unpacking libboolean-perl (0.46-3) ... 878s Selecting previously unselected package libsub-uplevel-perl. 878s Preparing to unpack .../061-libsub-uplevel-perl_0.2800-3_all.deb ... 878s Unpacking libsub-uplevel-perl (0.2800-3) ... 878s Selecting previously unselected package libtest-exception-perl. 878s Preparing to unpack .../062-libtest-exception-perl_0.43-3_all.deb ... 878s Unpacking libtest-exception-perl (0.43-3) ... 878s Selecting previously unselected package libcarp-assert-more-perl. 878s Preparing to unpack .../063-libcarp-assert-more-perl_2.3.0-1_all.deb ... 878s Unpacking libcarp-assert-more-perl (2.3.0-1) ... 878s Selecting previously unselected package libfile-which-perl. 878s Preparing to unpack .../064-libfile-which-perl_1.27-2_all.deb ... 878s Unpacking libfile-which-perl (1.27-2) ... 878s Selecting previously unselected package libfile-homedir-perl. 878s Preparing to unpack .../065-libfile-homedir-perl_1.006-2_all.deb ... 878s Unpacking libfile-homedir-perl (1.006-2) ... 878s Selecting previously unselected package libclone-choose-perl. 878s Preparing to unpack .../066-libclone-choose-perl_0.010-2_all.deb ... 878s Unpacking libclone-choose-perl (0.010-2) ... 878s Selecting previously unselected package libhash-merge-perl. 878s Preparing to unpack .../067-libhash-merge-perl_0.302-1_all.deb ... 878s Unpacking libhash-merge-perl (0.302-1) ... 878s Selecting previously unselected package libjson-perl. 878s Preparing to unpack .../068-libjson-perl_4.10000-1_all.deb ... 878s Unpacking libjson-perl (4.10000-1) ... 878s Selecting previously unselected package libexporter-tiny-perl. 878s Preparing to unpack .../069-libexporter-tiny-perl_1.006002-1_all.deb ... 878s Unpacking libexporter-tiny-perl (1.006002-1) ... 878s Selecting previously unselected package liblist-moreutils-xs-perl. 878s Preparing to unpack .../070-liblist-moreutils-xs-perl_0.430-3build3_amd64.deb ... 878s Unpacking liblist-moreutils-xs-perl (0.430-3build3) ... 878s Selecting previously unselected package liblist-moreutils-perl. 878s Preparing to unpack .../071-liblist-moreutils-perl_0.430-2_all.deb ... 878s Unpacking liblist-moreutils-perl (0.430-2) ... 878s Selecting previously unselected package liblog-log4perl-perl. 878s Preparing to unpack .../072-liblog-log4perl-perl_1.57-1_all.deb ... 878s Unpacking liblog-log4perl-perl (1.57-1) ... 878s Selecting previously unselected package libmouse-perl. 878s Preparing to unpack .../073-libmouse-perl_2.5.10-1build6_amd64.deb ... 878s Unpacking libmouse-perl (2.5.10-1build6) ... 878s Selecting previously unselected package libmousex-nativetraits-perl. 878s Preparing to unpack .../074-libmousex-nativetraits-perl_1.09-3_all.deb ... 878s Unpacking libmousex-nativetraits-perl (1.09-3) ... 878s Selecting previously unselected package libmousex-strictconstructor-perl. 878s Preparing to unpack .../075-libmousex-strictconstructor-perl_0.02-3_all.deb ... 878s Unpacking libmousex-strictconstructor-perl (0.02-3) ... 878s Selecting previously unselected package libparse-recdescent-perl. 878s Preparing to unpack .../076-libparse-recdescent-perl_1.967015+dfsg-4_all.deb ... 878s Unpacking libparse-recdescent-perl (1.967015+dfsg-4) ... 878s Selecting previously unselected package libpath-tiny-perl. 878s Preparing to unpack .../077-libpath-tiny-perl_0.144-1_all.deb ... 878s Unpacking libpath-tiny-perl (0.144-1) ... 879s Selecting previously unselected package libpod-pom-perl. 879s Preparing to unpack .../078-libpod-pom-perl_2.01-4_all.deb ... 879s Unpacking libpod-pom-perl (2.01-4) ... 879s Selecting previously unselected package libregexp-common-perl. 879s Preparing to unpack .../079-libregexp-common-perl_2017060201-3_all.deb ... 879s Unpacking libregexp-common-perl (2017060201-3) ... 879s Selecting previously unselected package libyaml-tiny-perl. 879s Preparing to unpack .../080-libyaml-tiny-perl_1.74-1_all.deb ... 879s Unpacking libyaml-tiny-perl (1.74-1) ... 879s Selecting previously unselected package libconfig-model-perl. 879s Preparing to unpack .../081-libconfig-model-perl_2.153-3_all.deb ... 879s Unpacking libconfig-model-perl (2.153-3) ... 879s Selecting previously unselected package libyaml-pp-perl. 879s Preparing to unpack .../082-libyaml-pp-perl_0.38.0-1_all.deb ... 879s Unpacking libyaml-pp-perl (0.38.0-1) ... 879s Selecting previously unselected package cme. 879s Preparing to unpack .../083-cme_1.040-1_all.deb ... 879s Unpacking cme (1.040-1) ... 879s Selecting previously unselected package libdebhelper-perl. 879s Preparing to unpack .../084-libdebhelper-perl_13.14.1ubuntu1_all.deb ... 879s Unpacking libdebhelper-perl (13.14.1ubuntu1) ... 879s Selecting previously unselected package libtool. 879s Preparing to unpack .../085-libtool_2.4.7-7_all.deb ... 879s Unpacking libtool (2.4.7-7) ... 879s Selecting previously unselected package dh-autoreconf. 879s Preparing to unpack .../086-dh-autoreconf_20_all.deb ... 879s Unpacking dh-autoreconf (20) ... 879s Selecting previously unselected package libarchive-zip-perl. 879s Preparing to unpack .../087-libarchive-zip-perl_1.68-1_all.deb ... 879s Unpacking libarchive-zip-perl (1.68-1) ... 879s Selecting previously unselected package libsub-override-perl. 879s Preparing to unpack .../088-libsub-override-perl_0.10-1_all.deb ... 879s Unpacking libsub-override-perl (0.10-1) ... 879s Selecting previously unselected package libfile-stripnondeterminism-perl. 879s Preparing to unpack .../089-libfile-stripnondeterminism-perl_1.13.1-1_all.deb ... 879s Unpacking libfile-stripnondeterminism-perl (1.13.1-1) ... 879s Selecting previously unselected package dh-strip-nondeterminism. 879s Preparing to unpack .../090-dh-strip-nondeterminism_1.13.1-1_all.deb ... 879s Unpacking dh-strip-nondeterminism (1.13.1-1) ... 879s Selecting previously unselected package libdw1:amd64. 879s Preparing to unpack .../091-libdw1_0.190-1_amd64.deb ... 879s Unpacking libdw1:amd64 (0.190-1) ... 879s Selecting previously unselected package debugedit. 879s Preparing to unpack .../092-debugedit_1%3a5.0-5_amd64.deb ... 879s Unpacking debugedit (1:5.0-5) ... 879s Selecting previously unselected package dwz. 879s Preparing to unpack .../093-dwz_0.15-1_amd64.deb ... 879s Unpacking dwz (0.15-1) ... 879s Selecting previously unselected package gettext. 879s Preparing to unpack .../094-gettext_0.21-14ubuntu1_amd64.deb ... 879s Unpacking gettext (0.21-14ubuntu1) ... 879s Selecting previously unselected package intltool-debian. 879s Preparing to unpack .../095-intltool-debian_0.35.0+20060710.6_all.deb ... 879s Unpacking intltool-debian (0.35.0+20060710.6) ... 879s Selecting previously unselected package po-debconf. 879s Preparing to unpack .../096-po-debconf_1.0.21+nmu1_all.deb ... 879s Unpacking po-debconf (1.0.21+nmu1) ... 879s Selecting previously unselected package debhelper. 879s Preparing to unpack .../097-debhelper_13.14.1ubuntu1_all.deb ... 879s Unpacking debhelper (13.14.1ubuntu1) ... 879s Selecting previously unselected package aglfn. 879s Preparing to unpack .../098-aglfn_1.7+git20191031.4036a9c-2_all.deb ... 879s Unpacking aglfn (1.7+git20191031.4036a9c-2) ... 879s Selecting previously unselected package gnuplot-data. 879s Preparing to unpack .../099-gnuplot-data_5.4.4+dfsg1-2build1_all.deb ... 879s Unpacking gnuplot-data (5.4.4+dfsg1-2build1) ... 879s Selecting previously unselected package fonts-dejavu-mono. 879s Preparing to unpack .../100-fonts-dejavu-mono_2.37-8_all.deb ... 879s Unpacking fonts-dejavu-mono (2.37-8) ... 879s Selecting previously unselected package fonts-dejavu-core. 879s Preparing to unpack .../101-fonts-dejavu-core_2.37-8_all.deb ... 879s Unpacking fonts-dejavu-core (2.37-8) ... 879s Selecting previously unselected package fonts-freefont-otf. 879s Preparing to unpack .../102-fonts-freefont-otf_20211204+svn4273-2_all.deb ... 879s Unpacking fonts-freefont-otf (20211204+svn4273-2) ... 879s Selecting previously unselected package fontconfig-config. 879s Preparing to unpack .../103-fontconfig-config_2.15.0-1ubuntu1_amd64.deb ... 880s Unpacking fontconfig-config (2.15.0-1ubuntu1) ... 880s Selecting previously unselected package libfontconfig1:amd64. 880s Preparing to unpack .../104-libfontconfig1_2.15.0-1ubuntu1_amd64.deb ... 880s Unpacking libfontconfig1:amd64 (2.15.0-1ubuntu1) ... 880s Selecting previously unselected package libpixman-1-0:amd64. 880s Preparing to unpack .../105-libpixman-1-0_0.42.2-1_amd64.deb ... 880s Unpacking libpixman-1-0:amd64 (0.42.2-1) ... 880s Selecting previously unselected package libxcb-render0:amd64. 880s Preparing to unpack .../106-libxcb-render0_1.15-1_amd64.deb ... 880s Unpacking libxcb-render0:amd64 (1.15-1) ... 880s Selecting previously unselected package libxcb-shm0:amd64. 880s Preparing to unpack .../107-libxcb-shm0_1.15-1_amd64.deb ... 880s Unpacking libxcb-shm0:amd64 (1.15-1) ... 880s Selecting previously unselected package libxrender1:amd64. 880s Preparing to unpack .../108-libxrender1_1%3a0.9.10-1.1_amd64.deb ... 880s Unpacking libxrender1:amd64 (1:0.9.10-1.1) ... 880s Selecting previously unselected package libcairo2:amd64. 880s Preparing to unpack .../109-libcairo2_1.18.0-1_amd64.deb ... 880s Unpacking libcairo2:amd64 (1.18.0-1) ... 880s Selecting previously unselected package libjpeg-turbo8:amd64. 880s Preparing to unpack .../110-libjpeg-turbo8_2.1.5-2ubuntu1_amd64.deb ... 880s Unpacking libjpeg-turbo8:amd64 (2.1.5-2ubuntu1) ... 880s Selecting previously unselected package libjpeg8:amd64. 880s Preparing to unpack .../111-libjpeg8_8c-2ubuntu11_amd64.deb ... 880s Unpacking libjpeg8:amd64 (8c-2ubuntu11) ... 880s Selecting previously unselected package libdeflate0:amd64. 880s Preparing to unpack .../112-libdeflate0_1.19-1_amd64.deb ... 880s Unpacking libdeflate0:amd64 (1.19-1) ... 880s Selecting previously unselected package libjbig0:amd64. 880s Preparing to unpack .../113-libjbig0_2.1-6.1ubuntu1_amd64.deb ... 880s Unpacking libjbig0:amd64 (2.1-6.1ubuntu1) ... 880s Selecting previously unselected package liblerc4:amd64. 880s Preparing to unpack .../114-liblerc4_4.0.0+ds-4ubuntu1_amd64.deb ... 880s Unpacking liblerc4:amd64 (4.0.0+ds-4ubuntu1) ... 880s Selecting previously unselected package libsharpyuv0:amd64. 880s Preparing to unpack .../115-libsharpyuv0_1.3.2-0.4_amd64.deb ... 880s Unpacking libsharpyuv0:amd64 (1.3.2-0.4) ... 880s Selecting previously unselected package libwebp7:amd64. 880s Preparing to unpack .../116-libwebp7_1.3.2-0.4_amd64.deb ... 880s Unpacking libwebp7:amd64 (1.3.2-0.4) ... 880s Selecting previously unselected package libtiff6:amd64. 880s Preparing to unpack .../117-libtiff6_4.5.1+git230720-3ubuntu1_amd64.deb ... 880s Unpacking libtiff6:amd64 (4.5.1+git230720-3ubuntu1) ... 880s Selecting previously unselected package libxpm4:amd64. 880s Preparing to unpack .../118-libxpm4_1%3a3.5.17-1_amd64.deb ... 880s Unpacking libxpm4:amd64 (1:3.5.17-1) ... 880s Selecting previously unselected package libgd3:amd64. 880s Preparing to unpack .../119-libgd3_2.3.3-9ubuntu1_amd64.deb ... 880s Unpacking libgd3:amd64 (2.3.3-9ubuntu1) ... 880s Selecting previously unselected package liblua5.4-0:amd64. 880s Preparing to unpack .../120-liblua5.4-0_5.4.6-3_amd64.deb ... 880s Unpacking liblua5.4-0:amd64 (5.4.6-3) ... 880s Selecting previously unselected package fontconfig. 880s Preparing to unpack .../121-fontconfig_2.15.0-1ubuntu1_amd64.deb ... 880s Unpacking fontconfig (2.15.0-1ubuntu1) ... 880s Selecting previously unselected package libgraphite2-3:amd64. 880s Preparing to unpack .../122-libgraphite2-3_1.3.14-2_amd64.deb ... 880s Unpacking libgraphite2-3:amd64 (1.3.14-2) ... 880s Selecting previously unselected package libharfbuzz0b:amd64. 880s Preparing to unpack .../123-libharfbuzz0b_8.3.0-2_amd64.deb ... 880s Unpacking libharfbuzz0b:amd64 (8.3.0-2) ... 880s Selecting previously unselected package libthai-data. 880s Preparing to unpack .../124-libthai-data_0.1.29-2_all.deb ... 880s Unpacking libthai-data (0.1.29-2) ... 880s Selecting previously unselected package libdatrie1:amd64. 880s Preparing to unpack .../125-libdatrie1_0.2.13-3_amd64.deb ... 880s Unpacking libdatrie1:amd64 (0.2.13-3) ... 880s Selecting previously unselected package libthai0:amd64. 880s Preparing to unpack .../126-libthai0_0.1.29-2_amd64.deb ... 880s Unpacking libthai0:amd64 (0.1.29-2) ... 880s Selecting previously unselected package libpango-1.0-0:amd64. 880s Preparing to unpack .../127-libpango-1.0-0_1.51.0+ds-4_amd64.deb ... 880s Unpacking libpango-1.0-0:amd64 (1.51.0+ds-4) ... 880s Selecting previously unselected package libpangoft2-1.0-0:amd64. 880s Preparing to unpack .../128-libpangoft2-1.0-0_1.51.0+ds-4_amd64.deb ... 880s Unpacking libpangoft2-1.0-0:amd64 (1.51.0+ds-4) ... 880s Selecting previously unselected package libpangocairo-1.0-0:amd64. 880s Preparing to unpack .../129-libpangocairo-1.0-0_1.51.0+ds-4_amd64.deb ... 880s Unpacking libpangocairo-1.0-0:amd64 (1.51.0+ds-4) ... 880s Selecting previously unselected package gnuplot-nox. 880s Preparing to unpack .../130-gnuplot-nox_5.4.4+dfsg1-2build1_amd64.deb ... 880s Unpacking gnuplot-nox (5.4.4+dfsg1-2build1) ... 880s Selecting previously unselected package dh-octave-autopkgtest. 880s Preparing to unpack .../131-dh-octave-autopkgtest_1.8.0_all.deb ... 880s Unpacking dh-octave-autopkgtest (1.8.0) ... 881s Selecting previously unselected package libapt-pkg-perl. 881s Preparing to unpack .../132-libapt-pkg-perl_0.1.40build4_amd64.deb ... 881s Unpacking libapt-pkg-perl (0.1.40build4) ... 881s Selecting previously unselected package libarray-intspan-perl. 881s Preparing to unpack .../133-libarray-intspan-perl_2.004-2_all.deb ... 881s Unpacking libarray-intspan-perl (2.004-2) ... 881s Selecting previously unselected package libyaml-libyaml-perl. 881s Preparing to unpack .../134-libyaml-libyaml-perl_0.89+ds-1_amd64.deb ... 881s Unpacking libyaml-libyaml-perl (0.89+ds-1) ... 881s Selecting previously unselected package libconfig-model-backend-yaml-perl. 881s Preparing to unpack .../135-libconfig-model-backend-yaml-perl_2.134-2_all.deb ... 881s Unpacking libconfig-model-backend-yaml-perl (2.134-2) ... 881s Selecting previously unselected package libexporter-lite-perl. 881s Preparing to unpack .../136-libexporter-lite-perl_0.09-2_all.deb ... 881s Unpacking libexporter-lite-perl (0.09-2) ... 881s Selecting previously unselected package libencode-locale-perl. 881s Preparing to unpack .../137-libencode-locale-perl_1.05-3_all.deb ... 881s Unpacking libencode-locale-perl (1.05-3) ... 881s Selecting previously unselected package libtimedate-perl. 881s Preparing to unpack .../138-libtimedate-perl_2.3300-2_all.deb ... 881s Unpacking libtimedate-perl (2.3300-2) ... 881s Selecting previously unselected package libhttp-date-perl. 881s Preparing to unpack .../139-libhttp-date-perl_6.06-1_all.deb ... 881s Unpacking libhttp-date-perl (6.06-1) ... 881s Selecting previously unselected package libfile-listing-perl. 881s Preparing to unpack .../140-libfile-listing-perl_6.16-1_all.deb ... 881s Unpacking libfile-listing-perl (6.16-1) ... 881s Selecting previously unselected package libhtml-tagset-perl. 881s Preparing to unpack .../141-libhtml-tagset-perl_3.20-6_all.deb ... 881s Unpacking libhtml-tagset-perl (3.20-6) ... 881s Selecting previously unselected package liburi-perl. 881s Preparing to unpack .../142-liburi-perl_5.27-1_all.deb ... 881s Unpacking liburi-perl (5.27-1) ... 881s Selecting previously unselected package libhtml-parser-perl:amd64. 881s Preparing to unpack .../143-libhtml-parser-perl_3.81-1build1_amd64.deb ... 881s Unpacking libhtml-parser-perl:amd64 (3.81-1build1) ... 881s Selecting previously unselected package libhtml-tree-perl. 881s Preparing to unpack .../144-libhtml-tree-perl_5.07-3_all.deb ... 881s Unpacking libhtml-tree-perl (5.07-3) ... 881s Selecting previously unselected package libclone-perl:amd64. 881s Preparing to unpack .../145-libclone-perl_0.46-1build1_amd64.deb ... 881s Unpacking libclone-perl:amd64 (0.46-1build1) ... 881s Selecting previously unselected package libio-html-perl. 881s Preparing to unpack .../146-libio-html-perl_1.004-3_all.deb ... 881s Unpacking libio-html-perl (1.004-3) ... 881s Selecting previously unselected package liblwp-mediatypes-perl. 881s Preparing to unpack .../147-liblwp-mediatypes-perl_6.04-2_all.deb ... 881s Unpacking liblwp-mediatypes-perl (6.04-2) ... 881s Selecting previously unselected package libhttp-message-perl. 881s Preparing to unpack .../148-libhttp-message-perl_6.45-1ubuntu1_all.deb ... 881s Unpacking libhttp-message-perl (6.45-1ubuntu1) ... 881s Selecting previously unselected package libhttp-cookies-perl. 881s Preparing to unpack .../149-libhttp-cookies-perl_6.11-1_all.deb ... 881s Unpacking libhttp-cookies-perl (6.11-1) ... 881s Selecting previously unselected package libhttp-negotiate-perl. 881s Preparing to unpack .../150-libhttp-negotiate-perl_6.01-2_all.deb ... 881s Unpacking libhttp-negotiate-perl (6.01-2) ... 881s Selecting previously unselected package perl-openssl-defaults:amd64. 881s Preparing to unpack .../151-perl-openssl-defaults_7_amd64.deb ... 881s Unpacking perl-openssl-defaults:amd64 (7) ... 881s Selecting previously unselected package libnet-ssleay-perl:amd64. 881s Preparing to unpack .../152-libnet-ssleay-perl_1.94-1_amd64.deb ... 881s Unpacking libnet-ssleay-perl:amd64 (1.94-1) ... 881s Selecting previously unselected package libio-socket-ssl-perl. 881s Preparing to unpack .../153-libio-socket-ssl-perl_2.085-1_all.deb ... 881s Unpacking libio-socket-ssl-perl (2.085-1) ... 881s Selecting previously unselected package libnet-http-perl. 881s Preparing to unpack .../154-libnet-http-perl_6.23-1_all.deb ... 881s Unpacking libnet-http-perl (6.23-1) ... 881s Selecting previously unselected package liblwp-protocol-https-perl. 881s Preparing to unpack .../155-liblwp-protocol-https-perl_6.13-1_all.deb ... 881s Unpacking liblwp-protocol-https-perl (6.13-1) ... 881s Selecting previously unselected package libwww-robotrules-perl. 881s Preparing to unpack .../156-libwww-robotrules-perl_6.02-1_all.deb ... 881s Unpacking libwww-robotrules-perl (6.02-1) ... 881s Selecting previously unselected package libwww-perl. 881s Preparing to unpack .../157-libwww-perl_6.76-1_all.deb ... 881s Unpacking libwww-perl (6.76-1) ... 881s Selecting previously unselected package liberror-perl. 881s Preparing to unpack .../158-liberror-perl_0.17029-2_all.deb ... 881s Unpacking liberror-perl (0.17029-2) ... 881s Selecting previously unselected package libparse-debcontrol-perl. 881s Preparing to unpack .../159-libparse-debcontrol-perl_2.005-6_all.deb ... 881s Unpacking libparse-debcontrol-perl (2.005-6) ... 881s Selecting previously unselected package libsoftware-copyright-perl. 881s Preparing to unpack .../160-libsoftware-copyright-perl_0.012-2_all.deb ... 881s Unpacking libsoftware-copyright-perl (0.012-2) ... 881s Selecting previously unselected package libalgorithm-c3-perl. 881s Preparing to unpack .../161-libalgorithm-c3-perl_0.11-2_all.deb ... 881s Unpacking libalgorithm-c3-perl (0.11-2) ... 881s Selecting previously unselected package libclass-c3-perl. 881s Preparing to unpack .../162-libclass-c3-perl_0.35-2_all.deb ... 881s Unpacking libclass-c3-perl (0.35-2) ... 881s Selecting previously unselected package libmro-compat-perl. 881s Preparing to unpack .../163-libmro-compat-perl_0.15-2_all.deb ... 881s Unpacking libmro-compat-perl (0.15-2) ... 881s Selecting previously unselected package libdata-section-perl. 881s Preparing to unpack .../164-libdata-section-perl_0.200008-1_all.deb ... 881s Unpacking libdata-section-perl (0.200008-1) ... 881s Selecting previously unselected package libtext-template-perl. 881s Preparing to unpack .../165-libtext-template-perl_1.61-1_all.deb ... 881s Unpacking libtext-template-perl (1.61-1) ... 881s Selecting previously unselected package libsoftware-license-perl. 882s Preparing to unpack .../166-libsoftware-license-perl_0.104006-1_all.deb ... 882s Unpacking libsoftware-license-perl (0.104006-1) ... 882s Selecting previously unselected package libsoftware-licensemoreutils-perl. 882s Preparing to unpack .../167-libsoftware-licensemoreutils-perl_1.009-1_all.deb ... 882s Unpacking libsoftware-licensemoreutils-perl (1.009-1) ... 882s Selecting previously unselected package libsort-versions-perl. 882s Preparing to unpack .../168-libsort-versions-perl_1.62-3_all.deb ... 882s Unpacking libsort-versions-perl (1.62-3) ... 882s Selecting previously unselected package libtext-reform-perl. 882s Preparing to unpack .../169-libtext-reform-perl_1.20-5_all.deb ... 882s Unpacking libtext-reform-perl (1.20-5) ... 882s Selecting previously unselected package libtext-autoformat-perl. 882s Preparing to unpack .../170-libtext-autoformat-perl_1.750000-2_all.deb ... 882s Unpacking libtext-autoformat-perl (1.750000-2) ... 882s Selecting previously unselected package libtext-levenshtein-damerau-perl. 882s Preparing to unpack .../171-libtext-levenshtein-damerau-perl_0.41-3_all.deb ... 882s Unpacking libtext-levenshtein-damerau-perl (0.41-3) ... 882s Selecting previously unselected package libtoml-tiny-perl. 882s Preparing to unpack .../172-libtoml-tiny-perl_0.16-1_all.deb ... 882s Unpacking libtoml-tiny-perl (0.16-1) ... 882s Selecting previously unselected package libindirect-perl. 882s Preparing to unpack .../173-libindirect-perl_0.39-2build2_amd64.deb ... 882s Unpacking libindirect-perl (0.39-2build2) ... 882s Selecting previously unselected package libxs-parse-keyword-perl. 882s Preparing to unpack .../174-libxs-parse-keyword-perl_0.39-1build1_amd64.deb ... 882s Unpacking libxs-parse-keyword-perl (0.39-1build1) ... 882s Selecting previously unselected package libxs-parse-sublike-perl:amd64. 882s Preparing to unpack .../175-libxs-parse-sublike-perl_0.21-2build1_amd64.deb ... 882s Unpacking libxs-parse-sublike-perl:amd64 (0.21-2build1) ... 882s Selecting previously unselected package libobject-pad-perl. 882s Preparing to unpack .../176-libobject-pad-perl_0.808-1build1_amd64.deb ... 882s Unpacking libobject-pad-perl (0.808-1build1) ... 882s Selecting previously unselected package libsyntax-keyword-try-perl. 882s Preparing to unpack .../177-libsyntax-keyword-try-perl_0.29-1build1_amd64.deb ... 882s Unpacking libsyntax-keyword-try-perl (0.29-1build1) ... 882s Selecting previously unselected package libio-interactive-perl. 882s Preparing to unpack .../178-libio-interactive-perl_1.025-1_all.deb ... 882s Unpacking libio-interactive-perl (1.025-1) ... 882s Selecting previously unselected package liblog-any-perl. 882s Preparing to unpack .../179-liblog-any-perl_1.717-1_all.deb ... 882s Unpacking liblog-any-perl (1.717-1) ... 882s Selecting previously unselected package liblog-any-adapter-screen-perl. 882s Preparing to unpack .../180-liblog-any-adapter-screen-perl_0.140-2_all.deb ... 882s Unpacking liblog-any-adapter-screen-perl (0.140-2) ... 882s Selecting previously unselected package libsub-exporter-progressive-perl. 882s Preparing to unpack .../181-libsub-exporter-progressive-perl_0.001013-3_all.deb ... 882s Unpacking libsub-exporter-progressive-perl (0.001013-3) ... 882s Selecting previously unselected package libvariable-magic-perl. 882s Preparing to unpack .../182-libvariable-magic-perl_0.63-1build1_amd64.deb ... 882s Unpacking libvariable-magic-perl (0.63-1build1) ... 882s Selecting previously unselected package libb-hooks-endofscope-perl. 882s Preparing to unpack .../183-libb-hooks-endofscope-perl_0.28-1_all.deb ... 882s Unpacking libb-hooks-endofscope-perl (0.28-1) ... 882s Selecting previously unselected package libsub-identify-perl. 882s Preparing to unpack .../184-libsub-identify-perl_0.14-3build1_amd64.deb ... 882s Unpacking libsub-identify-perl (0.14-3build1) ... 882s Selecting previously unselected package libsub-name-perl:amd64. 882s Preparing to unpack .../185-libsub-name-perl_0.27-1build1_amd64.deb ... 882s Unpacking libsub-name-perl:amd64 (0.27-1build1) ... 882s Selecting previously unselected package libnamespace-clean-perl. 882s Preparing to unpack .../186-libnamespace-clean-perl_0.27-2_all.deb ... 882s Unpacking libnamespace-clean-perl (0.27-2) ... 882s Selecting previously unselected package libnumber-compare-perl. 882s Preparing to unpack .../187-libnumber-compare-perl_0.03-3_all.deb ... 882s Unpacking libnumber-compare-perl (0.03-3) ... 882s Selecting previously unselected package libtext-glob-perl. 882s Preparing to unpack .../188-libtext-glob-perl_0.11-3_all.deb ... 882s Unpacking libtext-glob-perl (0.11-3) ... 882s Selecting previously unselected package libpath-iterator-rule-perl. 882s Preparing to unpack .../189-libpath-iterator-rule-perl_1.015-2_all.deb ... 882s Unpacking libpath-iterator-rule-perl (1.015-2) ... 882s Selecting previously unselected package libpod-parser-perl. 882s Preparing to unpack .../190-libpod-parser-perl_1.67-1_all.deb ... 882s Adding 'diversion of /usr/bin/podselect to /usr/bin/podselect.bundled by libpod-parser-perl' 882s Adding 'diversion of /usr/share/man/man1/podselect.1.gz to /usr/share/man/man1/podselect.bundled.1.gz by libpod-parser-perl' 882s Unpacking libpod-parser-perl (1.67-1) ... 882s Selecting previously unselected package libpod-constants-perl. 882s Preparing to unpack .../191-libpod-constants-perl_0.19-2_all.deb ... 882s Unpacking libpod-constants-perl (0.19-2) ... 882s Selecting previously unselected package libset-intspan-perl. 882s Preparing to unpack .../192-libset-intspan-perl_1.19-3_all.deb ... 882s Unpacking libset-intspan-perl (1.19-3) ... 882s Selecting previously unselected package libstring-copyright-perl. 882s Preparing to unpack .../193-libstring-copyright-perl_0.003014-1_all.deb ... 882s Unpacking libstring-copyright-perl (0.003014-1) ... 882s Selecting previously unselected package libstring-escape-perl. 882s Preparing to unpack .../194-libstring-escape-perl_2010.002-3_all.deb ... 882s Unpacking libstring-escape-perl (2010.002-3) ... 882s Selecting previously unselected package libregexp-pattern-license-perl. 882s Preparing to unpack .../195-libregexp-pattern-license-perl_3.11.0-1_all.deb ... 882s Unpacking libregexp-pattern-license-perl (3.11.0-1) ... 882s Selecting previously unselected package libregexp-pattern-perl. 882s Preparing to unpack .../196-libregexp-pattern-perl_0.2.14-2_all.deb ... 882s Unpacking libregexp-pattern-perl (0.2.14-2) ... 882s Selecting previously unselected package libstring-license-perl. 882s Preparing to unpack .../197-libstring-license-perl_0.0.9-2ubuntu1_all.deb ... 882s Unpacking libstring-license-perl (0.0.9-2ubuntu1) ... 882s Selecting previously unselected package licensecheck. 882s Preparing to unpack .../198-licensecheck_3.3.9-1ubuntu1_all.deb ... 882s Unpacking licensecheck (3.3.9-1ubuntu1) ... 882s Selecting previously unselected package diffstat. 882s Preparing to unpack .../199-diffstat_1.66-1_amd64.deb ... 882s Unpacking diffstat (1.66-1) ... 882s Selecting previously unselected package libberkeleydb-perl:amd64. 882s Preparing to unpack .../200-libberkeleydb-perl_0.64-2build1_amd64.deb ... 882s Unpacking libberkeleydb-perl:amd64 (0.64-2build1) ... 883s Selecting previously unselected package libclass-xsaccessor-perl. 883s Preparing to unpack .../201-libclass-xsaccessor-perl_1.19-4build2_amd64.deb ... 883s Unpacking libclass-xsaccessor-perl (1.19-4build2) ... 883s Selecting previously unselected package libconfig-tiny-perl. 883s Preparing to unpack .../202-libconfig-tiny-perl_2.30-1_all.deb ... 883s Unpacking libconfig-tiny-perl (2.30-1) ... 883s Selecting previously unselected package libconst-fast-perl. 883s Preparing to unpack .../203-libconst-fast-perl_0.014-2_all.deb ... 883s Unpacking libconst-fast-perl (0.014-2) ... 883s Selecting previously unselected package libcpanel-json-xs-perl:amd64. 883s Preparing to unpack .../204-libcpanel-json-xs-perl_4.37-1build1_amd64.deb ... 883s Unpacking libcpanel-json-xs-perl:amd64 (4.37-1build1) ... 883s Selecting previously unselected package libaliased-perl. 883s Preparing to unpack .../205-libaliased-perl_0.34-3_all.deb ... 883s Unpacking libaliased-perl (0.34-3) ... 883s Selecting previously unselected package libclass-data-inheritable-perl. 883s Preparing to unpack .../206-libclass-data-inheritable-perl_0.08-3_all.deb ... 883s Unpacking libclass-data-inheritable-perl (0.08-3) ... 883s Selecting previously unselected package libdevel-stacktrace-perl. 883s Preparing to unpack .../207-libdevel-stacktrace-perl_2.0500-1_all.deb ... 883s Unpacking libdevel-stacktrace-perl (2.0500-1) ... 883s Selecting previously unselected package libexception-class-perl. 883s Preparing to unpack .../208-libexception-class-perl_1.45-1_all.deb ... 883s Unpacking libexception-class-perl (1.45-1) ... 883s Selecting previously unselected package libiterator-perl. 883s Preparing to unpack .../209-libiterator-perl_0.03+ds1-2_all.deb ... 883s Unpacking libiterator-perl (0.03+ds1-2) ... 883s Selecting previously unselected package libiterator-util-perl. 883s Preparing to unpack .../210-libiterator-util-perl_0.02+ds1-2_all.deb ... 883s Unpacking libiterator-util-perl (0.02+ds1-2) ... 883s Selecting previously unselected package libdata-dpath-perl. 883s Preparing to unpack .../211-libdata-dpath-perl_0.59-1_all.deb ... 883s Unpacking libdata-dpath-perl (0.59-1) ... 883s Selecting previously unselected package libnet-domain-tld-perl. 883s Preparing to unpack .../212-libnet-domain-tld-perl_1.75-3_all.deb ... 883s Unpacking libnet-domain-tld-perl (1.75-3) ... 883s Selecting previously unselected package libdata-validate-domain-perl. 883s Preparing to unpack .../213-libdata-validate-domain-perl_0.10-1.1_all.deb ... 883s Unpacking libdata-validate-domain-perl (0.10-1.1) ... 883s Selecting previously unselected package libnet-ipv6addr-perl. 883s Preparing to unpack .../214-libnet-ipv6addr-perl_1.02-1_all.deb ... 883s Unpacking libnet-ipv6addr-perl (1.02-1) ... 883s Selecting previously unselected package libnet-netmask-perl. 883s Preparing to unpack .../215-libnet-netmask-perl_2.0002-2_all.deb ... 883s Unpacking libnet-netmask-perl (2.0002-2) ... 883s Selecting previously unselected package libnetaddr-ip-perl. 883s Preparing to unpack .../216-libnetaddr-ip-perl_4.079+dfsg-2build2_amd64.deb ... 883s Unpacking libnetaddr-ip-perl (4.079+dfsg-2build2) ... 883s Selecting previously unselected package libdata-validate-ip-perl. 883s Preparing to unpack .../217-libdata-validate-ip-perl_0.31-1_all.deb ... 883s Unpacking libdata-validate-ip-perl (0.31-1) ... 883s Selecting previously unselected package libdata-validate-uri-perl. 883s Preparing to unpack .../218-libdata-validate-uri-perl_0.07-3_all.deb ... 883s Unpacking libdata-validate-uri-perl (0.07-3) ... 883s Selecting previously unselected package libdevel-size-perl. 883s Preparing to unpack .../219-libdevel-size-perl_0.83-2build2_amd64.deb ... 883s Unpacking libdevel-size-perl (0.83-2build2) ... 883s Selecting previously unselected package libemail-address-xs-perl. 883s Preparing to unpack .../220-libemail-address-xs-perl_1.05-1build2_amd64.deb ... 883s Unpacking libemail-address-xs-perl (1.05-1build2) ... 883s Selecting previously unselected package libipc-system-simple-perl. 883s Preparing to unpack .../221-libipc-system-simple-perl_1.30-2_all.deb ... 883s Unpacking libipc-system-simple-perl (1.30-2) ... 883s Selecting previously unselected package libfile-basedir-perl. 883s Preparing to unpack .../222-libfile-basedir-perl_0.09-2_all.deb ... 883s Unpacking libfile-basedir-perl (0.09-2) ... 883s Selecting previously unselected package libfile-find-rule-perl. 883s Preparing to unpack .../223-libfile-find-rule-perl_0.34-3_all.deb ... 883s Unpacking libfile-find-rule-perl (0.34-3) ... 883s Selecting previously unselected package libio-string-perl. 883s Preparing to unpack .../224-libio-string-perl_1.08-4_all.deb ... 883s Unpacking libio-string-perl (1.08-4) ... 883s Selecting previously unselected package libfont-ttf-perl. 883s Preparing to unpack .../225-libfont-ttf-perl_1.06-2_all.deb ... 883s Unpacking libfont-ttf-perl (1.06-2) ... 883s Selecting previously unselected package libhtml-html5-entities-perl. 883s Preparing to unpack .../226-libhtml-html5-entities-perl_0.004-3_all.deb ... 883s Unpacking libhtml-html5-entities-perl (0.004-3) ... 883s Selecting previously unselected package libhtml-tokeparser-simple-perl. 883s Preparing to unpack .../227-libhtml-tokeparser-simple-perl_3.16-4_all.deb ... 883s Unpacking libhtml-tokeparser-simple-perl (3.16-4) ... 883s Selecting previously unselected package libipc-run3-perl. 883s Preparing to unpack .../228-libipc-run3-perl_0.049-1_all.deb ... 883s Unpacking libipc-run3-perl (0.049-1) ... 883s Selecting previously unselected package libjson-maybexs-perl. 883s Preparing to unpack .../229-libjson-maybexs-perl_1.004005-1_all.deb ... 883s Unpacking libjson-maybexs-perl (1.004005-1) ... 883s Selecting previously unselected package liblist-compare-perl. 883s Preparing to unpack .../230-liblist-compare-perl_0.55-2_all.deb ... 883s Unpacking liblist-compare-perl (0.55-2) ... 883s Selecting previously unselected package liblist-someutils-perl. 883s Preparing to unpack .../231-liblist-someutils-perl_0.59-1_all.deb ... 883s Unpacking liblist-someutils-perl (0.59-1) ... 883s Selecting previously unselected package liblist-utilsby-perl. 883s Preparing to unpack .../232-liblist-utilsby-perl_0.12-2_all.deb ... 883s Unpacking liblist-utilsby-perl (0.12-2) ... 883s Selecting previously unselected package libmldbm-perl. 883s Preparing to unpack .../233-libmldbm-perl_2.05-4_all.deb ... 883s Unpacking libmldbm-perl (2.05-4) ... 884s Selecting previously unselected package libclass-method-modifiers-perl. 884s Preparing to unpack .../234-libclass-method-modifiers-perl_2.15-1_all.deb ... 884s Unpacking libclass-method-modifiers-perl (2.15-1) ... 884s Selecting previously unselected package libimport-into-perl. 884s Preparing to unpack .../235-libimport-into-perl_1.002005-2_all.deb ... 884s Unpacking libimport-into-perl (1.002005-2) ... 884s Selecting previously unselected package librole-tiny-perl. 884s Preparing to unpack .../236-librole-tiny-perl_2.002004-1_all.deb ... 884s Unpacking librole-tiny-perl (2.002004-1) ... 884s Selecting previously unselected package libsub-quote-perl. 884s Preparing to unpack .../237-libsub-quote-perl_2.006008-1ubuntu1_all.deb ... 884s Unpacking libsub-quote-perl (2.006008-1ubuntu1) ... 884s Selecting previously unselected package libmoo-perl. 884s Preparing to unpack .../238-libmoo-perl_2.005005-1_all.deb ... 884s Unpacking libmoo-perl (2.005005-1) ... 884s Selecting previously unselected package libstrictures-perl. 884s Preparing to unpack .../239-libstrictures-perl_2.000006-1_all.deb ... 884s Unpacking libstrictures-perl (2.000006-1) ... 884s Selecting previously unselected package libmoox-aliases-perl. 884s Preparing to unpack .../240-libmoox-aliases-perl_0.001006-2_all.deb ... 884s Unpacking libmoox-aliases-perl (0.001006-2) ... 884s Selecting previously unselected package libperlio-gzip-perl. 884s Preparing to unpack .../241-libperlio-gzip-perl_0.20-1build2_amd64.deb ... 884s Unpacking libperlio-gzip-perl (0.20-1build2) ... 884s Selecting previously unselected package libperlio-utf8-strict-perl. 884s Preparing to unpack .../242-libperlio-utf8-strict-perl_0.010-1build1_amd64.deb ... 884s Unpacking libperlio-utf8-strict-perl (0.010-1build1) ... 884s Selecting previously unselected package libproc-processtable-perl:amd64. 884s Preparing to unpack .../243-libproc-processtable-perl_0.636-1build1_amd64.deb ... 884s Unpacking libproc-processtable-perl:amd64 (0.636-1build1) ... 884s Selecting previously unselected package libregexp-wildcards-perl. 884s Preparing to unpack .../244-libregexp-wildcards-perl_1.05-3_all.deb ... 884s Unpacking libregexp-wildcards-perl (1.05-3) ... 884s Selecting previously unselected package libsereal-decoder-perl. 884s Preparing to unpack .../245-libsereal-decoder-perl_5.004+ds-1build1_amd64.deb ... 884s Unpacking libsereal-decoder-perl (5.004+ds-1build1) ... 884s Selecting previously unselected package libsereal-encoder-perl. 884s Preparing to unpack .../246-libsereal-encoder-perl_5.004+ds-1build1_amd64.deb ... 884s Unpacking libsereal-encoder-perl (5.004+ds-1build1) ... 884s Selecting previously unselected package libterm-readkey-perl. 884s Preparing to unpack .../247-libterm-readkey-perl_2.38-2build2_amd64.deb ... 884s Unpacking libterm-readkey-perl (2.38-2build2) ... 884s Selecting previously unselected package libtext-levenshteinxs-perl. 884s Preparing to unpack .../248-libtext-levenshteinxs-perl_0.03-5build2_amd64.deb ... 884s Unpacking libtext-levenshteinxs-perl (0.03-5build2) ... 884s Selecting previously unselected package libmarkdown2:amd64. 884s Preparing to unpack .../249-libmarkdown2_2.2.7-2_amd64.deb ... 884s Unpacking libmarkdown2:amd64 (2.2.7-2) ... 884s Selecting previously unselected package libtext-markdown-discount-perl. 884s Preparing to unpack .../250-libtext-markdown-discount-perl_0.16-1build1_amd64.deb ... 884s Unpacking libtext-markdown-discount-perl (0.16-1build1) ... 884s Selecting previously unselected package libdata-messagepack-perl. 884s Preparing to unpack .../251-libdata-messagepack-perl_1.02-1build2_amd64.deb ... 884s Unpacking libdata-messagepack-perl (1.02-1build2) ... 884s Selecting previously unselected package libtext-xslate-perl:amd64. 884s Preparing to unpack .../252-libtext-xslate-perl_3.5.9-1build3_amd64.deb ... 884s Unpacking libtext-xslate-perl:amd64 (3.5.9-1build3) ... 884s Selecting previously unselected package libtime-duration-perl. 884s Preparing to unpack .../253-libtime-duration-perl_1.21-2_all.deb ... 884s Unpacking libtime-duration-perl (1.21-2) ... 884s Selecting previously unselected package libtime-moment-perl. 884s Preparing to unpack .../254-libtime-moment-perl_0.44-2build2_amd64.deb ... 884s Unpacking libtime-moment-perl (0.44-2build2) ... 884s Selecting previously unselected package libunicode-utf8-perl. 884s Preparing to unpack .../255-libunicode-utf8-perl_0.62-2build1_amd64.deb ... 884s Unpacking libunicode-utf8-perl (0.62-2build1) ... 884s Selecting previously unselected package libcgi-pm-perl. 884s Preparing to unpack .../256-libcgi-pm-perl_4.62-1_all.deb ... 884s Unpacking libcgi-pm-perl (4.62-1) ... 884s Selecting previously unselected package libhtml-form-perl. 884s Preparing to unpack .../257-libhtml-form-perl_6.11-1_all.deb ... 884s Unpacking libhtml-form-perl (6.11-1) ... 884s Selecting previously unselected package libwww-mechanize-perl. 884s Preparing to unpack .../258-libwww-mechanize-perl_2.17-1ubuntu1_all.deb ... 884s Unpacking libwww-mechanize-perl (2.17-1ubuntu1) ... 884s Selecting previously unselected package libxml-namespacesupport-perl. 884s Preparing to unpack .../259-libxml-namespacesupport-perl_1.12-2_all.deb ... 884s Unpacking libxml-namespacesupport-perl (1.12-2) ... 884s Selecting previously unselected package libxml-sax-base-perl. 884s Preparing to unpack .../260-libxml-sax-base-perl_1.09-3_all.deb ... 884s Unpacking libxml-sax-base-perl (1.09-3) ... 884s Selecting previously unselected package libxml-sax-perl. 884s Preparing to unpack .../261-libxml-sax-perl_1.02+dfsg-3_all.deb ... 884s Unpacking libxml-sax-perl (1.02+dfsg-3) ... 884s Selecting previously unselected package libxml-libxml-perl. 884s Preparing to unpack .../262-libxml-libxml-perl_2.0207+dfsg+really+2.0134-1build2_amd64.deb ... 884s Unpacking libxml-libxml-perl (2.0207+dfsg+really+2.0134-1build2) ... 884s Selecting previously unselected package lzip. 884s Preparing to unpack .../263-lzip_1.24.1-1_amd64.deb ... 884s Unpacking lzip (1.24.1-1) ... 884s Selecting previously unselected package lzop. 884s Preparing to unpack .../264-lzop_1.04-2build2_amd64.deb ... 884s Unpacking lzop (1.04-2build2) ... 884s Selecting previously unselected package patchutils. 884s Preparing to unpack .../265-patchutils_0.4.2-1build2_amd64.deb ... 884s Unpacking patchutils (0.4.2-1build2) ... 884s Selecting previously unselected package t1utils. 884s Preparing to unpack .../266-t1utils_1.41-4build2_amd64.deb ... 884s Unpacking t1utils (1.41-4build2) ... 885s Selecting previously unselected package unzip. 885s Preparing to unpack .../267-unzip_6.0-28ubuntu3_amd64.deb ... 885s Unpacking unzip (6.0-28ubuntu3) ... 885s Selecting previously unselected package lintian. 885s Preparing to unpack .../268-lintian_2.117.0ubuntu1_all.deb ... 885s Unpacking lintian (2.117.0ubuntu1) ... 885s Selecting previously unselected package libconfig-model-dpkg-perl. 885s Preparing to unpack .../269-libconfig-model-dpkg-perl_3.004_all.deb ... 885s Unpacking libconfig-model-dpkg-perl (3.004) ... 885s Selecting previously unselected package libconvert-binhex-perl. 885s Preparing to unpack .../270-libconvert-binhex-perl_1.125-3_all.deb ... 885s Unpacking libconvert-binhex-perl (1.125-3) ... 885s Selecting previously unselected package libnet-smtp-ssl-perl. 885s Preparing to unpack .../271-libnet-smtp-ssl-perl_1.04-2_all.deb ... 885s Unpacking libnet-smtp-ssl-perl (1.04-2) ... 885s Selecting previously unselected package libmailtools-perl. 885s Preparing to unpack .../272-libmailtools-perl_2.21-2_all.deb ... 885s Unpacking libmailtools-perl (2.21-2) ... 885s Selecting previously unselected package libmime-tools-perl. 885s Preparing to unpack .../273-libmime-tools-perl_5.514-1_all.deb ... 885s Unpacking libmime-tools-perl (5.514-1) ... 885s Selecting previously unselected package libsuitesparseconfig7:amd64. 885s Preparing to unpack .../274-libsuitesparseconfig7_1%3a7.6.1+dfsg-1_amd64.deb ... 885s Unpacking libsuitesparseconfig7:amd64 (1:7.6.1+dfsg-1) ... 885s Selecting previously unselected package libamd3:amd64. 885s Preparing to unpack .../275-libamd3_1%3a7.6.1+dfsg-1_amd64.deb ... 885s Unpacking libamd3:amd64 (1:7.6.1+dfsg-1) ... 885s Selecting previously unselected package libblas3:amd64. 885s Preparing to unpack .../276-libblas3_3.12.0-3_amd64.deb ... 885s Unpacking libblas3:amd64 (3.12.0-3) ... 885s Selecting previously unselected package libgfortran5:amd64. 885s Preparing to unpack .../277-libgfortran5_14-20240303-1ubuntu1_amd64.deb ... 885s Unpacking libgfortran5:amd64 (14-20240303-1ubuntu1) ... 885s Selecting previously unselected package liblapack3:amd64. 885s Preparing to unpack .../278-liblapack3_3.12.0-3_amd64.deb ... 885s Unpacking liblapack3:amd64 (3.12.0-3) ... 885s Selecting previously unselected package libarpack2:amd64. 885s Preparing to unpack .../279-libarpack2_3.9.1-1_amd64.deb ... 885s Unpacking libarpack2:amd64 (3.9.1-1) ... 885s Selecting previously unselected package libccolamd3:amd64. 885s Preparing to unpack .../280-libccolamd3_1%3a7.6.1+dfsg-1_amd64.deb ... 885s Unpacking libccolamd3:amd64 (1:7.6.1+dfsg-1) ... 885s Selecting previously unselected package libcamd3:amd64. 885s Preparing to unpack .../281-libcamd3_1%3a7.6.1+dfsg-1_amd64.deb ... 885s Unpacking libcamd3:amd64 (1:7.6.1+dfsg-1) ... 885s Selecting previously unselected package libcolamd3:amd64. 885s Preparing to unpack .../282-libcolamd3_1%3a7.6.1+dfsg-1_amd64.deb ... 885s Unpacking libcolamd3:amd64 (1:7.6.1+dfsg-1) ... 885s Selecting previously unselected package libcholmod5:amd64. 885s Preparing to unpack .../283-libcholmod5_1%3a7.6.1+dfsg-1_amd64.deb ... 885s Unpacking libcholmod5:amd64 (1:7.6.1+dfsg-1) ... 885s Selecting previously unselected package libcxsparse4:amd64. 885s Preparing to unpack .../284-libcxsparse4_1%3a7.6.1+dfsg-1_amd64.deb ... 885s Unpacking libcxsparse4:amd64 (1:7.6.1+dfsg-1) ... 885s Selecting previously unselected package libfftw3-double3:amd64. 886s Preparing to unpack .../285-libfftw3-double3_3.3.10-1ubuntu1_amd64.deb ... 886s Unpacking libfftw3-double3:amd64 (3.3.10-1ubuntu1) ... 886s Selecting previously unselected package libfftw3-single3:amd64. 886s Preparing to unpack .../286-libfftw3-single3_3.3.10-1ubuntu1_amd64.deb ... 886s Unpacking libfftw3-single3:amd64 (3.3.10-1ubuntu1) ... 886s Selecting previously unselected package libxfixes3:amd64. 886s Preparing to unpack .../287-libxfixes3_1%3a6.0.0-2_amd64.deb ... 886s Unpacking libxfixes3:amd64 (1:6.0.0-2) ... 886s Selecting previously unselected package libxcursor1:amd64. 886s Preparing to unpack .../288-libxcursor1_1%3a1.2.1-1_amd64.deb ... 886s Unpacking libxcursor1:amd64 (1:1.2.1-1) ... 886s Selecting previously unselected package libxft2:amd64. 886s Preparing to unpack .../289-libxft2_2.3.6-1_amd64.deb ... 886s Unpacking libxft2:amd64 (2.3.6-1) ... 886s Selecting previously unselected package libxinerama1:amd64. 886s Preparing to unpack .../290-libxinerama1_2%3a1.1.4-3_amd64.deb ... 886s Unpacking libxinerama1:amd64 (2:1.1.4-3) ... 886s Selecting previously unselected package libfltk1.3:amd64. 886s Preparing to unpack .../291-libfltk1.3_1.3.8-6_amd64.deb ... 886s Unpacking libfltk1.3:amd64 (1.3.8-6) ... 886s Selecting previously unselected package libglvnd0:amd64. 886s Preparing to unpack .../292-libglvnd0_1.7.0-1_amd64.deb ... 886s Unpacking libglvnd0:amd64 (1.7.0-1) ... 886s Selecting previously unselected package libglapi-mesa:amd64. 886s Preparing to unpack .../293-libglapi-mesa_24.0.1-1ubuntu1_amd64.deb ... 886s Unpacking libglapi-mesa:amd64 (24.0.1-1ubuntu1) ... 886s Selecting previously unselected package libx11-xcb1:amd64. 886s Preparing to unpack .../294-libx11-xcb1_2%3a1.8.7-1_amd64.deb ... 886s Unpacking libx11-xcb1:amd64 (2:1.8.7-1) ... 886s Selecting previously unselected package libxcb-dri2-0:amd64. 886s Preparing to unpack .../295-libxcb-dri2-0_1.15-1_amd64.deb ... 886s Unpacking libxcb-dri2-0:amd64 (1.15-1) ... 886s Selecting previously unselected package libxcb-dri3-0:amd64. 886s Preparing to unpack .../296-libxcb-dri3-0_1.15-1_amd64.deb ... 886s Unpacking libxcb-dri3-0:amd64 (1.15-1) ... 886s Selecting previously unselected package libxcb-glx0:amd64. 886s Preparing to unpack .../297-libxcb-glx0_1.15-1_amd64.deb ... 886s Unpacking libxcb-glx0:amd64 (1.15-1) ... 886s Selecting previously unselected package libxcb-present0:amd64. 886s Preparing to unpack .../298-libxcb-present0_1.15-1_amd64.deb ... 886s Unpacking libxcb-present0:amd64 (1.15-1) ... 886s Selecting previously unselected package libxcb-randr0:amd64. 886s Preparing to unpack .../299-libxcb-randr0_1.15-1_amd64.deb ... 886s Unpacking libxcb-randr0:amd64 (1.15-1) ... 886s Selecting previously unselected package libxcb-sync1:amd64. 886s Preparing to unpack .../300-libxcb-sync1_1.15-1_amd64.deb ... 886s Unpacking libxcb-sync1:amd64 (1.15-1) ... 886s Selecting previously unselected package libxcb-xfixes0:amd64. 886s Preparing to unpack .../301-libxcb-xfixes0_1.15-1_amd64.deb ... 886s Unpacking libxcb-xfixes0:amd64 (1.15-1) ... 886s Selecting previously unselected package libxshmfence1:amd64. 886s Preparing to unpack .../302-libxshmfence1_1.3-1build4_amd64.deb ... 886s Unpacking libxshmfence1:amd64 (1.3-1build4) ... 886s Selecting previously unselected package libxxf86vm1:amd64. 886s Preparing to unpack .../303-libxxf86vm1_1%3a1.1.4-1build3_amd64.deb ... 886s Unpacking libxxf86vm1:amd64 (1:1.1.4-1build3) ... 886s Selecting previously unselected package libvulkan1:amd64. 886s Preparing to unpack .../304-libvulkan1_1.3.275.0-1_amd64.deb ... 886s Unpacking libvulkan1:amd64 (1.3.275.0-1) ... 886s Selecting previously unselected package libdrm-amdgpu1:amd64. 886s Preparing to unpack .../305-libdrm-amdgpu1_2.4.120-2_amd64.deb ... 886s Unpacking libdrm-amdgpu1:amd64 (2.4.120-2) ... 886s Selecting previously unselected package libpciaccess0:amd64. 886s Preparing to unpack .../306-libpciaccess0_0.17-3_amd64.deb ... 886s Unpacking libpciaccess0:amd64 (0.17-3) ... 886s Selecting previously unselected package libdrm-intel1:amd64. 886s Preparing to unpack .../307-libdrm-intel1_2.4.120-2_amd64.deb ... 886s Unpacking libdrm-intel1:amd64 (2.4.120-2) ... 886s Selecting previously unselected package libdrm-nouveau2:amd64. 886s Preparing to unpack .../308-libdrm-nouveau2_2.4.120-2_amd64.deb ... 886s Unpacking libdrm-nouveau2:amd64 (2.4.120-2) ... 886s Selecting previously unselected package libdrm-radeon1:amd64. 886s Preparing to unpack .../309-libdrm-radeon1_2.4.120-2_amd64.deb ... 886s Unpacking libdrm-radeon1:amd64 (2.4.120-2) ... 886s Selecting previously unselected package libllvm17:amd64. 886s Preparing to unpack .../310-libllvm17_1%3a17.0.6-5build1_amd64.deb ... 886s Unpacking libllvm17:amd64 (1:17.0.6-5build1) ... 887s Selecting previously unselected package libgl1-mesa-dri:amd64. 887s Preparing to unpack .../311-libgl1-mesa-dri_24.0.1-1ubuntu1_amd64.deb ... 887s Unpacking libgl1-mesa-dri:amd64 (24.0.1-1ubuntu1) ... 887s Selecting previously unselected package libglx-mesa0:amd64. 887s Preparing to unpack .../312-libglx-mesa0_24.0.1-1ubuntu1_amd64.deb ... 887s Unpacking libglx-mesa0:amd64 (24.0.1-1ubuntu1) ... 887s Selecting previously unselected package libglx0:amd64. 887s Preparing to unpack .../313-libglx0_1.7.0-1_amd64.deb ... 887s Unpacking libglx0:amd64 (1.7.0-1) ... 887s Selecting previously unselected package libgl1:amd64. 887s Preparing to unpack .../314-libgl1_1.7.0-1_amd64.deb ... 887s Unpacking libgl1:amd64 (1.7.0-1) ... 887s Selecting previously unselected package libfltk-gl1.3:amd64. 887s Preparing to unpack .../315-libfltk-gl1.3_1.3.8-6_amd64.deb ... 887s Unpacking libfltk-gl1.3:amd64 (1.3.8-6) ... 887s Selecting previously unselected package libgl2ps1.4. 887s Preparing to unpack .../316-libgl2ps1.4_1.4.2+dfsg1-2_amd64.deb ... 887s Unpacking libgl2ps1.4 (1.4.2+dfsg1-2) ... 887s Selecting previously unselected package libltdl7:amd64. 887s Preparing to unpack .../317-libltdl7_2.4.7-7_amd64.deb ... 887s Unpacking libltdl7:amd64 (2.4.7-7) ... 887s Selecting previously unselected package libglpk40:amd64. 887s Preparing to unpack .../318-libglpk40_5.0-1build1_amd64.deb ... 887s Unpacking libglpk40:amd64 (5.0-1build1) ... 887s Selecting previously unselected package libopengl0:amd64. 887s Preparing to unpack .../319-libopengl0_1.7.0-1_amd64.deb ... 887s Unpacking libopengl0:amd64 (1.7.0-1) ... 887s Selecting previously unselected package libglu1-mesa:amd64. 887s Preparing to unpack .../320-libglu1-mesa_9.0.2-1.1_amd64.deb ... 887s Unpacking libglu1-mesa:amd64 (9.0.2-1.1) ... 887s Selecting previously unselected package libdav1d7:amd64. 887s Preparing to unpack .../321-libdav1d7_1.4.0-1_amd64.deb ... 887s Unpacking libdav1d7:amd64 (1.4.0-1) ... 888s Selecting previously unselected package libheif-plugin-dav1d:amd64. 888s Preparing to unpack .../322-libheif-plugin-dav1d_1.17.6-1ubuntu1_amd64.deb ... 888s Unpacking libheif-plugin-dav1d:amd64 (1.17.6-1ubuntu1) ... 888s Selecting previously unselected package libde265-0:amd64. 888s Preparing to unpack .../323-libde265-0_1.0.15-1_amd64.deb ... 888s Unpacking libde265-0:amd64 (1.0.15-1) ... 888s Selecting previously unselected package libheif-plugin-libde265:amd64. 888s Preparing to unpack .../324-libheif-plugin-libde265_1.17.6-1ubuntu1_amd64.deb ... 888s Unpacking libheif-plugin-libde265:amd64 (1.17.6-1ubuntu1) ... 888s Selecting previously unselected package libheif1:amd64. 888s Preparing to unpack .../325-libheif1_1.17.6-1ubuntu1_amd64.deb ... 888s Unpacking libheif1:amd64 (1.17.6-1ubuntu1) ... 888s Selecting previously unselected package libhwy1:amd64. 888s Preparing to unpack .../326-libhwy1_1.0.7-8_amd64.deb ... 888s Unpacking libhwy1:amd64 (1.0.7-8) ... 888s Selecting previously unselected package liblcms2-2:amd64. 888s Preparing to unpack .../327-liblcms2-2_2.14-2_amd64.deb ... 888s Unpacking liblcms2-2:amd64 (2.14-2) ... 888s Selecting previously unselected package libjxl0.7:amd64. 888s Preparing to unpack .../328-libjxl0.7_0.7.0-10.2ubuntu1_amd64.deb ... 888s Unpacking libjxl0.7:amd64 (0.7.0-10.2ubuntu1) ... 888s Selecting previously unselected package libwebpmux3:amd64. 888s Preparing to unpack .../329-libwebpmux3_1.3.2-0.4_amd64.deb ... 888s Unpacking libwebpmux3:amd64 (1.3.2-0.4) ... 888s Selecting previously unselected package libwmflite-0.2-7:amd64. 888s Preparing to unpack .../330-libwmflite-0.2-7_0.2.13-1.1_amd64.deb ... 888s Unpacking libwmflite-0.2-7:amd64 (0.2.13-1.1) ... 888s Selecting previously unselected package libgraphicsmagick-q16-3. 888s Preparing to unpack .../331-libgraphicsmagick-q16-3_1.4+really1.3.42-1build1_amd64.deb ... 888s Unpacking libgraphicsmagick-q16-3 (1.4+really1.3.42-1build1) ... 888s Selecting previously unselected package libgraphicsmagick++-q16-12. 888s Preparing to unpack .../332-libgraphicsmagick++-q16-12_1.4+really1.3.42-1build1_amd64.deb ... 888s Unpacking libgraphicsmagick++-q16-12 (1.4+really1.3.42-1build1) ... 888s Selecting previously unselected package libaec0:amd64. 888s Preparing to unpack .../333-libaec0_1.1.2-1_amd64.deb ... 888s Unpacking libaec0:amd64 (1.1.2-1) ... 888s Selecting previously unselected package libsz2:amd64. 888s Preparing to unpack .../334-libsz2_1.1.2-1_amd64.deb ... 888s Unpacking libsz2:amd64 (1.1.2-1) ... 888s Selecting previously unselected package libhdf5-103-1:amd64. 888s Preparing to unpack .../335-libhdf5-103-1_1.10.10+repack-3ubuntu1_amd64.deb ... 888s Unpacking libhdf5-103-1:amd64 (1.10.10+repack-3ubuntu1) ... 888s Selecting previously unselected package libasound2-data. 888s Preparing to unpack .../336-libasound2-data_1.2.10-3build1_all.deb ... 888s Unpacking libasound2-data (1.2.10-3build1) ... 888s Selecting previously unselected package libasound2:amd64. 888s Preparing to unpack .../337-libasound2_1.2.10-3build1_amd64.deb ... 888s Unpacking libasound2:amd64 (1.2.10-3build1) ... 888s Selecting previously unselected package libopus0:amd64. 888s Preparing to unpack .../338-libopus0_1.4-1_amd64.deb ... 888s Unpacking libopus0:amd64 (1.4-1) ... 888s Selecting previously unselected package libsamplerate0:amd64. 888s Preparing to unpack .../339-libsamplerate0_0.2.2-4_amd64.deb ... 888s Unpacking libsamplerate0:amd64 (0.2.2-4) ... 888s Selecting previously unselected package libjack-jackd2-0:amd64. 888s Preparing to unpack .../340-libjack-jackd2-0_1.9.21~dfsg-3_amd64.deb ... 888s Unpacking libjack-jackd2-0:amd64 (1.9.21~dfsg-3) ... 888s Selecting previously unselected package libportaudio2:amd64. 888s Preparing to unpack .../341-libportaudio2_19.6.0-1.2_amd64.deb ... 888s Unpacking libportaudio2:amd64 (19.6.0-1.2) ... 888s Selecting previously unselected package libqhull-r8.0:amd64. 888s Preparing to unpack .../342-libqhull-r8.0_2020.2-6_amd64.deb ... 888s Unpacking libqhull-r8.0:amd64 (2020.2-6) ... 888s Selecting previously unselected package libqrupdate1:amd64. 888s Preparing to unpack .../343-libqrupdate1_1.1.2-4_amd64.deb ... 888s Unpacking libqrupdate1:amd64 (1.1.2-4) ... 888s Selecting previously unselected package libqscintilla2-qt5-l10n. 888s Preparing to unpack .../344-libqscintilla2-qt5-l10n_2.14.1+dfsg-1_all.deb ... 888s Unpacking libqscintilla2-qt5-l10n (2.14.1+dfsg-1) ... 888s Selecting previously unselected package libdouble-conversion3:amd64. 888s Preparing to unpack .../345-libdouble-conversion3_3.3.0-1_amd64.deb ... 888s Unpacking libdouble-conversion3:amd64 (3.3.0-1) ... 888s Selecting previously unselected package libpcre2-16-0:amd64. 888s Preparing to unpack .../346-libpcre2-16-0_10.42-4ubuntu1_amd64.deb ... 888s Unpacking libpcre2-16-0:amd64 (10.42-4ubuntu1) ... 888s Selecting previously unselected package libqt5core5a:amd64. 888s Preparing to unpack .../347-libqt5core5a_5.15.12+dfsg-3ubuntu1_amd64.deb ... 888s Unpacking libqt5core5a:amd64 (5.15.12+dfsg-3ubuntu1) ... 889s Selecting previously unselected package libwayland-server0:amd64. 889s Preparing to unpack .../348-libwayland-server0_1.22.0-2.1_amd64.deb ... 889s Unpacking libwayland-server0:amd64 (1.22.0-2.1) ... 889s Selecting previously unselected package libgbm1:amd64. 889s Preparing to unpack .../349-libgbm1_24.0.1-1ubuntu1_amd64.deb ... 889s Unpacking libgbm1:amd64 (24.0.1-1ubuntu1) ... 889s Selecting previously unselected package libwayland-client0:amd64. 889s Preparing to unpack .../350-libwayland-client0_1.22.0-2.1_amd64.deb ... 889s Unpacking libwayland-client0:amd64 (1.22.0-2.1) ... 889s Selecting previously unselected package libegl-mesa0:amd64. 889s Preparing to unpack .../351-libegl-mesa0_24.0.1-1ubuntu1_amd64.deb ... 889s Unpacking libegl-mesa0:amd64 (24.0.1-1ubuntu1) ... 889s Selecting previously unselected package libegl1:amd64. 889s Preparing to unpack .../352-libegl1_1.7.0-1_amd64.deb ... 889s Unpacking libegl1:amd64 (1.7.0-1) ... 889s Selecting previously unselected package x11-common. 889s Preparing to unpack .../353-x11-common_1%3a7.7+23ubuntu2_all.deb ... 889s Unpacking x11-common (1:7.7+23ubuntu2) ... 889s Selecting previously unselected package libice6:amd64. 889s Preparing to unpack .../354-libice6_2%3a1.0.10-1build2_amd64.deb ... 889s Unpacking libice6:amd64 (2:1.0.10-1build2) ... 889s Selecting previously unselected package libmtdev1:amd64. 889s Preparing to unpack .../355-libmtdev1_1.1.6-1build4_amd64.deb ... 889s Unpacking libmtdev1:amd64 (1.1.6-1build4) ... 889s Selecting previously unselected package libwacom-common. 889s Preparing to unpack .../356-libwacom-common_2.10.0-1_all.deb ... 889s Unpacking libwacom-common (2.10.0-1) ... 889s Selecting previously unselected package libwacom9:amd64. 889s Preparing to unpack .../357-libwacom9_2.10.0-1_amd64.deb ... 889s Unpacking libwacom9:amd64 (2.10.0-1) ... 889s Selecting previously unselected package libinput-bin. 889s Preparing to unpack .../358-libinput-bin_1.25.0-1_amd64.deb ... 889s Unpacking libinput-bin (1.25.0-1) ... 889s Selecting previously unselected package libinput10:amd64. 889s Preparing to unpack .../359-libinput10_1.25.0-1_amd64.deb ... 889s Unpacking libinput10:amd64 (1.25.0-1) ... 889s Selecting previously unselected package libmd4c0:amd64. 889s Preparing to unpack .../360-libmd4c0_0.4.8-1_amd64.deb ... 889s Unpacking libmd4c0:amd64 (0.4.8-1) ... 889s Selecting previously unselected package libqt5dbus5:amd64. 889s Preparing to unpack .../361-libqt5dbus5_5.15.12+dfsg-3ubuntu1_amd64.deb ... 889s Unpacking libqt5dbus5:amd64 (5.15.12+dfsg-3ubuntu1) ... 889s Selecting previously unselected package libqt5network5:amd64. 889s Preparing to unpack .../362-libqt5network5_5.15.12+dfsg-3ubuntu1_amd64.deb ... 889s Unpacking libqt5network5:amd64 (5.15.12+dfsg-3ubuntu1) ... 889s Selecting previously unselected package libsm6:amd64. 889s Preparing to unpack .../363-libsm6_2%3a1.2.3-1build2_amd64.deb ... 889s Unpacking libsm6:amd64 (2:1.2.3-1build2) ... 889s Selecting previously unselected package libxcb-icccm4:amd64. 889s Preparing to unpack .../364-libxcb-icccm4_0.4.1-1.1build2_amd64.deb ... 889s Unpacking libxcb-icccm4:amd64 (0.4.1-1.1build2) ... 889s Selecting previously unselected package libxcb-util1:amd64. 889s Preparing to unpack .../365-libxcb-util1_0.4.0-1build2_amd64.deb ... 889s Unpacking libxcb-util1:amd64 (0.4.0-1build2) ... 889s Selecting previously unselected package libxcb-image0:amd64. 889s Preparing to unpack .../366-libxcb-image0_0.4.0-2_amd64.deb ... 889s Unpacking libxcb-image0:amd64 (0.4.0-2) ... 889s Selecting previously unselected package libxcb-keysyms1:amd64. 889s Preparing to unpack .../367-libxcb-keysyms1_0.4.0-1build3_amd64.deb ... 889s Unpacking libxcb-keysyms1:amd64 (0.4.0-1build3) ... 889s Selecting previously unselected package libxcb-render-util0:amd64. 889s Preparing to unpack .../368-libxcb-render-util0_0.3.9-1build3_amd64.deb ... 889s Unpacking libxcb-render-util0:amd64 (0.3.9-1build3) ... 889s Selecting previously unselected package libxcb-shape0:amd64. 889s Preparing to unpack .../369-libxcb-shape0_1.15-1_amd64.deb ... 889s Unpacking libxcb-shape0:amd64 (1.15-1) ... 889s Selecting previously unselected package libxcb-xinerama0:amd64. 889s Preparing to unpack .../370-libxcb-xinerama0_1.15-1_amd64.deb ... 889s Unpacking libxcb-xinerama0:amd64 (1.15-1) ... 889s Selecting previously unselected package libxcb-xinput0:amd64. 889s Preparing to unpack .../371-libxcb-xinput0_1.15-1_amd64.deb ... 889s Unpacking libxcb-xinput0:amd64 (1.15-1) ... 889s Selecting previously unselected package libxcb-xkb1:amd64. 889s Preparing to unpack .../372-libxcb-xkb1_1.15-1_amd64.deb ... 889s Unpacking libxcb-xkb1:amd64 (1.15-1) ... 889s Selecting previously unselected package libxkbcommon-x11-0:amd64. 889s Preparing to unpack .../373-libxkbcommon-x11-0_1.6.0-1_amd64.deb ... 889s Unpacking libxkbcommon-x11-0:amd64 (1.6.0-1) ... 889s Selecting previously unselected package libqt5gui5:amd64. 889s Preparing to unpack .../374-libqt5gui5_5.15.12+dfsg-3ubuntu1_amd64.deb ... 889s Unpacking libqt5gui5:amd64 (5.15.12+dfsg-3ubuntu1) ... 890s Selecting previously unselected package libavahi-common-data:amd64. 890s Preparing to unpack .../375-libavahi-common-data_0.8-13ubuntu2_amd64.deb ... 890s Unpacking libavahi-common-data:amd64 (0.8-13ubuntu2) ... 890s Selecting previously unselected package libavahi-common3:amd64. 890s Preparing to unpack .../376-libavahi-common3_0.8-13ubuntu2_amd64.deb ... 890s Unpacking libavahi-common3:amd64 (0.8-13ubuntu2) ... 890s Selecting previously unselected package libavahi-client3:amd64. 890s Preparing to unpack .../377-libavahi-client3_0.8-13ubuntu2_amd64.deb ... 890s Unpacking libavahi-client3:amd64 (0.8-13ubuntu2) ... 890s Selecting previously unselected package libcups2:amd64. 890s Preparing to unpack .../378-libcups2_2.4.6-0ubuntu3_amd64.deb ... 890s Unpacking libcups2:amd64 (2.4.6-0ubuntu3) ... 890s Selecting previously unselected package libqt5widgets5:amd64. 890s Preparing to unpack .../379-libqt5widgets5_5.15.12+dfsg-3ubuntu1_amd64.deb ... 890s Unpacking libqt5widgets5:amd64 (5.15.12+dfsg-3ubuntu1) ... 890s Selecting previously unselected package libqt5printsupport5:amd64. 890s Preparing to unpack .../380-libqt5printsupport5_5.15.12+dfsg-3ubuntu1_amd64.deb ... 890s Unpacking libqt5printsupport5:amd64 (5.15.12+dfsg-3ubuntu1) ... 890s Selecting previously unselected package libqscintilla2-qt5-15:amd64. 890s Preparing to unpack .../381-libqscintilla2-qt5-15_2.14.1+dfsg-1_amd64.deb ... 890s Unpacking libqscintilla2-qt5-15:amd64 (2.14.1+dfsg-1) ... 890s Selecting previously unselected package libqt5sql5:amd64. 890s Preparing to unpack .../382-libqt5sql5_5.15.12+dfsg-3ubuntu1_amd64.deb ... 890s Unpacking libqt5sql5:amd64 (5.15.12+dfsg-3ubuntu1) ... 890s Selecting previously unselected package libqt5help5:amd64. 890s Preparing to unpack .../383-libqt5help5_5.15.12-2_amd64.deb ... 890s Unpacking libqt5help5:amd64 (5.15.12-2) ... 890s Selecting previously unselected package libqt5xml5:amd64. 890s Preparing to unpack .../384-libqt5xml5_5.15.12+dfsg-3ubuntu1_amd64.deb ... 890s Unpacking libqt5xml5:amd64 (5.15.12+dfsg-3ubuntu1) ... 890s Selecting previously unselected package libogg0:amd64. 890s Preparing to unpack .../385-libogg0_1.3.5-3_amd64.deb ... 890s Unpacking libogg0:amd64 (1.3.5-3) ... 890s Selecting previously unselected package libflac12:amd64. 890s Preparing to unpack .../386-libflac12_1.4.3+ds-2ubuntu1_amd64.deb ... 890s Unpacking libflac12:amd64 (1.4.3+ds-2ubuntu1) ... 890s Selecting previously unselected package libmp3lame0:amd64. 890s Preparing to unpack .../387-libmp3lame0_3.100-6_amd64.deb ... 890s Unpacking libmp3lame0:amd64 (3.100-6) ... 890s Selecting previously unselected package libmpg123-0:amd64. 890s Preparing to unpack .../388-libmpg123-0_1.32.5-1_amd64.deb ... 890s Unpacking libmpg123-0:amd64 (1.32.5-1) ... 890s Selecting previously unselected package libvorbis0a:amd64. 890s Preparing to unpack .../389-libvorbis0a_1.3.7-1build2_amd64.deb ... 890s Unpacking libvorbis0a:amd64 (1.3.7-1build2) ... 890s Selecting previously unselected package libvorbisenc2:amd64. 890s Preparing to unpack .../390-libvorbisenc2_1.3.7-1build2_amd64.deb ... 890s Unpacking libvorbisenc2:amd64 (1.3.7-1build2) ... 890s Selecting previously unselected package libsndfile1:amd64. 890s Preparing to unpack .../391-libsndfile1_1.2.2-1ubuntu2_amd64.deb ... 890s Unpacking libsndfile1:amd64 (1.2.2-1ubuntu2) ... 890s Selecting previously unselected package libspqr4:amd64. 890s Preparing to unpack .../392-libspqr4_1%3a7.6.1+dfsg-1_amd64.deb ... 890s Unpacking libspqr4:amd64 (1:7.6.1+dfsg-1) ... 890s Selecting previously unselected package libsundials-ida6:amd64. 890s Preparing to unpack .../393-libsundials-ida6_6.4.1+dfsg1-3build2_amd64.deb ... 890s Unpacking libsundials-ida6:amd64 (6.4.1+dfsg1-3build2) ... 890s Selecting previously unselected package libbtf2:amd64. 890s Preparing to unpack .../394-libbtf2_1%3a7.6.1+dfsg-1_amd64.deb ... 890s Unpacking libbtf2:amd64 (1:7.6.1+dfsg-1) ... 890s Selecting previously unselected package libklu2:amd64. 890s Preparing to unpack .../395-libklu2_1%3a7.6.1+dfsg-1_amd64.deb ... 890s Unpacking libklu2:amd64 (1:7.6.1+dfsg-1) ... 890s Selecting previously unselected package libfftw3-long3:amd64. 890s Preparing to unpack .../396-libfftw3-long3_3.3.10-1ubuntu1_amd64.deb ... 890s Unpacking libfftw3-long3:amd64 (3.3.10-1ubuntu1) ... 890s Selecting previously unselected package libevent-pthreads-2.1-7:amd64. 890s Preparing to unpack .../397-libevent-pthreads-2.1-7_2.1.12-stable-9_amd64.deb ... 890s Unpacking libevent-pthreads-2.1-7:amd64 (2.1.12-stable-9) ... 890s Selecting previously unselected package libpsm-infinipath1. 890s Preparing to unpack .../398-libpsm-infinipath1_3.3+20.604758e7-6.3_amd64.deb ... 890s Unpacking libpsm-infinipath1 (3.3+20.604758e7-6.3) ... 890s Selecting previously unselected package libpsm2-2. 890s Preparing to unpack .../399-libpsm2-2_11.2.185-2_amd64.deb ... 890s Unpacking libpsm2-2 (11.2.185-2) ... 890s Selecting previously unselected package librdmacm1t64:amd64. 890s Preparing to unpack .../400-librdmacm1t64_50.0-2_amd64.deb ... 890s Unpacking librdmacm1t64:amd64 (50.0-2) ... 890s Selecting previously unselected package libfabric1:amd64. 890s Preparing to unpack .../401-libfabric1_1.17.0-3build1_amd64.deb ... 890s Unpacking libfabric1:amd64 (1.17.0-3build1) ... 890s Selecting previously unselected package libhwloc15:amd64. 890s Preparing to unpack .../402-libhwloc15_2.10.0-1_amd64.deb ... 890s Unpacking libhwloc15:amd64 (2.10.0-1) ... 891s Selecting previously unselected package libmunge2:amd64. 891s Preparing to unpack .../403-libmunge2_0.5.15-3ubuntu1_amd64.deb ... 891s Unpacking libmunge2:amd64 (0.5.15-3ubuntu1) ... 891s Selecting previously unselected package libxnvctrl0:amd64. 891s Preparing to unpack .../404-libxnvctrl0_510.47.03-0ubuntu1_amd64.deb ... 891s Unpacking libxnvctrl0:amd64 (510.47.03-0ubuntu1) ... 891s Selecting previously unselected package ocl-icd-libopencl1:amd64. 891s Preparing to unpack .../405-ocl-icd-libopencl1_2.3.2-1_amd64.deb ... 891s Unpacking ocl-icd-libopencl1:amd64 (2.3.2-1) ... 891s Selecting previously unselected package libhwloc-plugins:amd64. 891s Preparing to unpack .../406-libhwloc-plugins_2.10.0-1_amd64.deb ... 891s Unpacking libhwloc-plugins:amd64 (2.10.0-1) ... 891s Selecting previously unselected package libpmix2:amd64. 891s Preparing to unpack .../407-libpmix2_5.0.1-4_amd64.deb ... 891s Unpacking libpmix2:amd64 (5.0.1-4) ... 891s Selecting previously unselected package libamd-comgr2:amd64. 891s Preparing to unpack .../408-libamd-comgr2_6.0+git20231212.4510c28+dfsg-3_amd64.deb ... 891s Unpacking libamd-comgr2:amd64 (6.0+git20231212.4510c28+dfsg-3) ... 891s Selecting previously unselected package libhsakmt1:amd64. 891s Preparing to unpack .../409-libhsakmt1_5.7.0-1_amd64.deb ... 891s Unpacking libhsakmt1:amd64 (5.7.0-1) ... 891s Selecting previously unselected package libhsa-runtime64-1. 891s Preparing to unpack .../410-libhsa-runtime64-1_5.7.1-1_amd64.deb ... 891s Unpacking libhsa-runtime64-1 (5.7.1-1) ... 891s Selecting previously unselected package libamdhip64-5. 891s Preparing to unpack .../411-libamdhip64-5_5.2.3-12_amd64.deb ... 891s Unpacking libamdhip64-5 (5.2.3-12) ... 891s Selecting previously unselected package libucx0:amd64. 891s Preparing to unpack .../412-libucx0_1.16.0+ds-4_amd64.deb ... 891s Unpacking libucx0:amd64 (1.16.0+ds-4) ... 891s Selecting previously unselected package libopenmpi3:amd64. 891s Preparing to unpack .../413-libopenmpi3_4.1.6-5ubuntu1_amd64.deb ... 891s Unpacking libopenmpi3:amd64 (4.1.6-5ubuntu1) ... 891s Selecting previously unselected package libfftw3-mpi3:amd64. 891s Preparing to unpack .../414-libfftw3-mpi3_3.3.10-1ubuntu1_amd64.deb ... 891s Unpacking libfftw3-mpi3:amd64 (3.3.10-1ubuntu1) ... 891s Selecting previously unselected package libhdf5-openmpi-103-1:amd64. 891s Preparing to unpack .../415-libhdf5-openmpi-103-1_1.10.10+repack-3ubuntu1_amd64.deb ... 891s Unpacking libhdf5-openmpi-103-1:amd64 (1.10.10+repack-3ubuntu1) ... 892s Selecting previously unselected package libcombblas2.0.0:amd64. 892s Preparing to unpack .../416-libcombblas2.0.0_2.0.0-3_amd64.deb ... 892s Unpacking libcombblas2.0.0:amd64 (2.0.0-3) ... 892s Selecting previously unselected package libmetis5:amd64. 892s Preparing to unpack .../417-libmetis5_5.1.0.dfsg-7build2_amd64.deb ... 892s Unpacking libmetis5:amd64 (5.1.0.dfsg-7build2) ... 892s Selecting previously unselected package libptscotch-7.0:amd64. 892s Preparing to unpack .../418-libptscotch-7.0_7.0.4-1_amd64.deb ... 892s Unpacking libptscotch-7.0:amd64 (7.0.4-1) ... 892s Selecting previously unselected package libsuperlu-dist8:amd64. 892s Preparing to unpack .../419-libsuperlu-dist8_8.2.1+dfsg1-1_amd64.deb ... 892s Unpacking libsuperlu-dist8:amd64 (8.2.1+dfsg1-1) ... 892s Selecting previously unselected package libhypre-2.28.0:amd64. 892s Preparing to unpack .../420-libhypre-2.28.0_2.28.0-8_amd64.deb ... 892s Unpacking libhypre-2.28.0:amd64 (2.28.0-8) ... 892s Selecting previously unselected package openmpi-common. 892s Preparing to unpack .../421-openmpi-common_4.1.6-5ubuntu1_all.deb ... 892s Unpacking openmpi-common (4.1.6-5ubuntu1) ... 892s Selecting previously unselected package openmpi-bin. 892s Preparing to unpack .../422-openmpi-bin_4.1.6-5ubuntu1_amd64.deb ... 892s Unpacking openmpi-bin (4.1.6-5ubuntu1) ... 892s Selecting previously unselected package mpi-default-bin. 892s Preparing to unpack .../423-mpi-default-bin_1.15_amd64.deb ... 892s Unpacking mpi-default-bin (1.15) ... 892s Selecting previously unselected package libscalapack-openmpi2.2:amd64. 892s Preparing to unpack .../424-libscalapack-openmpi2.2_2.2.1-3_amd64.deb ... 892s Unpacking libscalapack-openmpi2.2:amd64 (2.2.1-3) ... 892s Selecting previously unselected package libmumps-5.6:amd64. 892s Preparing to unpack .../425-libmumps-5.6_5.6.2-2_amd64.deb ... 892s Unpacking libmumps-5.6:amd64 (5.6.2-2) ... 892s Selecting previously unselected package libsuperlu6:amd64. 892s Preparing to unpack .../426-libsuperlu6_6.0.1+dfsg1-1_amd64.deb ... 892s Unpacking libsuperlu6:amd64 (6.0.1+dfsg1-1) ... 892s Selecting previously unselected package libscotch-7.0:amd64. 892s Preparing to unpack .../427-libscotch-7.0_7.0.4-1_amd64.deb ... 892s Unpacking libscotch-7.0:amd64 (7.0.4-1) ... 892s Selecting previously unselected package libtrilinos-kokkos-13.2:amd64. 892s Preparing to unpack .../428-libtrilinos-kokkos-13.2_13.2.0-5_amd64.deb ... 892s Unpacking libtrilinos-kokkos-13.2:amd64 (13.2.0-5) ... 892s Selecting previously unselected package libtrilinos-teuchos-13.2:amd64. 892s Preparing to unpack .../429-libtrilinos-teuchos-13.2_13.2.0-5_amd64.deb ... 892s Unpacking libtrilinos-teuchos-13.2:amd64 (13.2.0-5) ... 892s Selecting previously unselected package libtrilinos-epetra-13.2:amd64. 892s Preparing to unpack .../430-libtrilinos-epetra-13.2_13.2.0-5_amd64.deb ... 892s Unpacking libtrilinos-epetra-13.2:amd64 (13.2.0-5) ... 892s Selecting previously unselected package libtrilinos-triutils-13.2:amd64. 892s Preparing to unpack .../431-libtrilinos-triutils-13.2_13.2.0-5_amd64.deb ... 892s Unpacking libtrilinos-triutils-13.2:amd64 (13.2.0-5) ... 892s Selecting previously unselected package libtrilinos-epetraext-13.2:amd64. 892s Preparing to unpack .../432-libtrilinos-epetraext-13.2_13.2.0-5_amd64.deb ... 892s Unpacking libtrilinos-epetraext-13.2:amd64 (13.2.0-5) ... 892s Selecting previously unselected package libtrilinos-trilinosss-13.2:amd64. 892s Preparing to unpack .../433-libtrilinos-trilinosss-13.2_13.2.0-5_amd64.deb ... 892s Unpacking libtrilinos-trilinosss-13.2:amd64 (13.2.0-5) ... 892s Selecting previously unselected package libtrilinos-amesos-13.2:amd64. 892s Preparing to unpack .../434-libtrilinos-amesos-13.2_13.2.0-5_amd64.deb ... 892s Unpacking libtrilinos-amesos-13.2:amd64 (13.2.0-5) ... 892s Selecting previously unselected package libtrilinos-aztecoo-13.2:amd64. 892s Preparing to unpack .../435-libtrilinos-aztecoo-13.2_13.2.0-5_amd64.deb ... 892s Unpacking libtrilinos-aztecoo-13.2:amd64 (13.2.0-5) ... 892s Selecting previously unselected package libtrilinos-galeri-13.2:amd64. 892s Preparing to unpack .../436-libtrilinos-galeri-13.2_13.2.0-5_amd64.deb ... 892s Unpacking libtrilinos-galeri-13.2:amd64 (13.2.0-5) ... 892s Selecting previously unselected package libtrilinos-ifpack-13.2:amd64. 892s Preparing to unpack .../437-libtrilinos-ifpack-13.2_13.2.0-5_amd64.deb ... 892s Unpacking libtrilinos-ifpack-13.2:amd64 (13.2.0-5) ... 892s Selecting previously unselected package libtrilinos-zoltan-13.2:amd64. 892s Preparing to unpack .../438-libtrilinos-zoltan-13.2_13.2.0-5_amd64.deb ... 892s Unpacking libtrilinos-zoltan-13.2:amd64 (13.2.0-5) ... 892s Selecting previously unselected package libtrilinos-ml-13.2:amd64. 892s Preparing to unpack .../439-libtrilinos-ml-13.2_13.2.0-5_amd64.deb ... 892s Unpacking libtrilinos-ml-13.2:amd64 (13.2.0-5) ... 893s Selecting previously unselected package libumfpack6:amd64. 893s Preparing to unpack .../440-libumfpack6_1%3a7.6.1+dfsg-1_amd64.deb ... 893s Unpacking libumfpack6:amd64 (1:7.6.1+dfsg-1) ... 893s Selecting previously unselected package libpetsc-real3.19:amd64. 893s Preparing to unpack .../441-libpetsc-real3.19_3.19.6+dfsg1-2ubuntu1_amd64.deb ... 893s Unpacking libpetsc-real3.19:amd64 (3.19.6+dfsg1-2ubuntu1) ... 893s Selecting previously unselected package libsundials-nvecparallel-petsc6:amd64. 893s Preparing to unpack .../442-libsundials-nvecparallel-petsc6_6.4.1+dfsg1-3build2_amd64.deb ... 893s Unpacking libsundials-nvecparallel-petsc6:amd64 (6.4.1+dfsg1-3build2) ... 893s Selecting previously unselected package libsundials-sunmatrix4:amd64. 893s Preparing to unpack .../443-libsundials-sunmatrix4_6.4.1+dfsg1-3build2_amd64.deb ... 893s Unpacking libsundials-sunmatrix4:amd64 (6.4.1+dfsg1-3build2) ... 893s Selecting previously unselected package libsundials-sunlinsol3:amd64. 893s Preparing to unpack .../444-libsundials-sunlinsol3_6.4.1+dfsg1-3build2_amd64.deb ... 893s Unpacking libsundials-sunlinsol3:amd64 (6.4.1+dfsg1-3build2) ... 893s Selecting previously unselected package libtext-unidecode-perl. 893s Preparing to unpack .../445-libtext-unidecode-perl_1.30-3_all.deb ... 893s Unpacking libtext-unidecode-perl (1.30-3) ... 893s Selecting previously unselected package texinfo-lib. 893s Preparing to unpack .../446-texinfo-lib_7.1-3_amd64.deb ... 893s Unpacking texinfo-lib (7.1-3) ... 893s Selecting previously unselected package tex-common. 893s Preparing to unpack .../447-tex-common_6.18_all.deb ... 893s Unpacking tex-common (6.18) ... 893s Selecting previously unselected package texinfo. 893s Preparing to unpack .../448-texinfo_7.1-3_all.deb ... 893s Unpacking texinfo (7.1-3) ... 893s Selecting previously unselected package octave-common. 893s Preparing to unpack .../449-octave-common_8.4.0-1build1_all.deb ... 893s Unpacking octave-common (8.4.0-1build1) ... 893s Selecting previously unselected package octave. 893s Preparing to unpack .../450-octave_8.4.0-1build1_amd64.deb ... 893s Unpacking octave (8.4.0-1build1) ... 894s Selecting previously unselected package libncurses-dev:amd64. 894s Preparing to unpack .../451-libncurses-dev_6.4+20240113-1ubuntu1_amd64.deb ... 894s Unpacking libncurses-dev:amd64 (6.4+20240113-1ubuntu1) ... 894s Selecting previously unselected package libreadline-dev:amd64. 894s Preparing to unpack .../452-libreadline-dev_8.2-3_amd64.deb ... 894s Unpacking libreadline-dev:amd64 (8.2-3) ... 894s Selecting previously unselected package libhdf5-fortran-102:amd64. 894s Preparing to unpack .../453-libhdf5-fortran-102_1.10.10+repack-3ubuntu1_amd64.deb ... 894s Unpacking libhdf5-fortran-102:amd64 (1.10.10+repack-3ubuntu1) ... 894s Selecting previously unselected package libhdf5-hl-100:amd64. 894s Preparing to unpack .../454-libhdf5-hl-100_1.10.10+repack-3ubuntu1_amd64.deb ... 894s Unpacking libhdf5-hl-100:amd64 (1.10.10+repack-3ubuntu1) ... 894s Selecting previously unselected package libhdf5-hl-fortran-100:amd64. 894s Preparing to unpack .../455-libhdf5-hl-fortran-100_1.10.10+repack-3ubuntu1_amd64.deb ... 894s Unpacking libhdf5-hl-fortran-100:amd64 (1.10.10+repack-3ubuntu1) ... 894s Selecting previously unselected package libhdf5-cpp-103-1:amd64. 894s Preparing to unpack .../456-libhdf5-cpp-103-1_1.10.10+repack-3ubuntu1_amd64.deb ... 894s Unpacking libhdf5-cpp-103-1:amd64 (1.10.10+repack-3ubuntu1) ... 894s Selecting previously unselected package libhdf5-hl-cpp-100:amd64. 894s Preparing to unpack .../457-libhdf5-hl-cpp-100_1.10.10+repack-3ubuntu1_amd64.deb ... 894s Unpacking libhdf5-hl-cpp-100:amd64 (1.10.10+repack-3ubuntu1) ... 894s Selecting previously unselected package zlib1g-dev:amd64. 894s Preparing to unpack .../458-zlib1g-dev_1%3a1.3.dfsg-3ubuntu1_amd64.deb ... 894s Unpacking zlib1g-dev:amd64 (1:1.3.dfsg-3ubuntu1) ... 894s Selecting previously unselected package libjpeg-turbo8-dev:amd64. 894s Preparing to unpack .../459-libjpeg-turbo8-dev_2.1.5-2ubuntu1_amd64.deb ... 894s Unpacking libjpeg-turbo8-dev:amd64 (2.1.5-2ubuntu1) ... 894s Selecting previously unselected package libjpeg8-dev:amd64. 894s Preparing to unpack .../460-libjpeg8-dev_8c-2ubuntu11_amd64.deb ... 894s Unpacking libjpeg8-dev:amd64 (8c-2ubuntu11) ... 894s Selecting previously unselected package libjpeg-dev:amd64. 894s Preparing to unpack .../461-libjpeg-dev_8c-2ubuntu11_amd64.deb ... 894s Unpacking libjpeg-dev:amd64 (8c-2ubuntu11) ... 894s Selecting previously unselected package libaec-dev:amd64. 894s Preparing to unpack .../462-libaec-dev_1.1.2-1_amd64.deb ... 894s Unpacking libaec-dev:amd64 (1.1.2-1) ... 894s Selecting previously unselected package libcurl4-openssl-dev:amd64. 894s Preparing to unpack .../463-libcurl4-openssl-dev_8.5.0-2ubuntu2_amd64.deb ... 894s Unpacking libcurl4-openssl-dev:amd64 (8.5.0-2ubuntu2) ... 894s Selecting previously unselected package libssl-dev:amd64. 894s Preparing to unpack .../464-libssl-dev_3.0.10-1ubuntu4_amd64.deb ... 894s Unpacking libssl-dev:amd64 (3.0.10-1ubuntu4) ... 894s Selecting previously unselected package hdf5-helpers. 894s Preparing to unpack .../465-hdf5-helpers_1.10.10+repack-3ubuntu1_amd64.deb ... 894s Unpacking hdf5-helpers (1.10.10+repack-3ubuntu1) ... 894s Selecting previously unselected package libhdf5-dev. 894s Preparing to unpack .../466-libhdf5-dev_1.10.10+repack-3ubuntu1_amd64.deb ... 894s Unpacking libhdf5-dev (1.10.10+repack-3ubuntu1) ... 894s Selecting previously unselected package xorg-sgml-doctools. 894s Preparing to unpack .../467-xorg-sgml-doctools_1%3a1.11-1.1_all.deb ... 894s Unpacking xorg-sgml-doctools (1:1.11-1.1) ... 894s Selecting previously unselected package x11proto-dev. 894s Preparing to unpack .../468-x11proto-dev_2023.2-1_all.deb ... 894s Unpacking x11proto-dev (2023.2-1) ... 894s Selecting previously unselected package libxau-dev:amd64. 895s Preparing to unpack .../469-libxau-dev_1%3a1.0.9-1build5_amd64.deb ... 895s Unpacking libxau-dev:amd64 (1:1.0.9-1build5) ... 895s Selecting previously unselected package libxdmcp-dev:amd64. 895s Preparing to unpack .../470-libxdmcp-dev_1%3a1.1.3-0ubuntu5_amd64.deb ... 895s Unpacking libxdmcp-dev:amd64 (1:1.1.3-0ubuntu5) ... 895s Selecting previously unselected package xtrans-dev. 895s Preparing to unpack .../471-xtrans-dev_1.4.0-1_all.deb ... 895s Unpacking xtrans-dev (1.4.0-1) ... 895s Selecting previously unselected package libpthread-stubs0-dev:amd64. 895s Preparing to unpack .../472-libpthread-stubs0-dev_0.4-1build2_amd64.deb ... 895s Unpacking libpthread-stubs0-dev:amd64 (0.4-1build2) ... 895s Selecting previously unselected package libxcb1-dev:amd64. 895s Preparing to unpack .../473-libxcb1-dev_1.15-1_amd64.deb ... 895s Unpacking libxcb1-dev:amd64 (1.15-1) ... 895s Selecting previously unselected package libx11-dev:amd64. 895s Preparing to unpack .../474-libx11-dev_2%3a1.8.7-1_amd64.deb ... 895s Unpacking libx11-dev:amd64 (2:1.8.7-1) ... 895s Selecting previously unselected package libglx-dev:amd64. 895s Preparing to unpack .../475-libglx-dev_1.7.0-1_amd64.deb ... 895s Unpacking libglx-dev:amd64 (1.7.0-1) ... 895s Selecting previously unselected package libgl-dev:amd64. 895s Preparing to unpack .../476-libgl-dev_1.7.0-1_amd64.deb ... 895s Unpacking libgl-dev:amd64 (1.7.0-1) ... 895s Selecting previously unselected package libblas-dev:amd64. 895s Preparing to unpack .../477-libblas-dev_3.12.0-3_amd64.deb ... 895s Unpacking libblas-dev:amd64 (3.12.0-3) ... 895s Selecting previously unselected package liblapack-dev:amd64. 895s Preparing to unpack .../478-liblapack-dev_3.12.0-3_amd64.deb ... 895s Unpacking liblapack-dev:amd64 (3.12.0-3) ... 895s Selecting previously unselected package libfftw3-quad3:amd64. 895s Preparing to unpack .../479-libfftw3-quad3_3.3.10-1ubuntu1_amd64.deb ... 895s Unpacking libfftw3-quad3:amd64 (3.3.10-1ubuntu1) ... 895s Selecting previously unselected package libfftw3-bin. 895s Preparing to unpack .../480-libfftw3-bin_3.3.10-1ubuntu1_amd64.deb ... 895s Unpacking libfftw3-bin (3.3.10-1ubuntu1) ... 895s Selecting previously unselected package libfftw3-dev:amd64. 895s Preparing to unpack .../481-libfftw3-dev_3.3.10-1ubuntu1_amd64.deb ... 895s Unpacking libfftw3-dev:amd64 (3.3.10-1ubuntu1) ... 895s Selecting previously unselected package libgfortran-13-dev:amd64. 895s Preparing to unpack .../482-libgfortran-13-dev_13.2.0-17ubuntu2_amd64.deb ... 895s Unpacking libgfortran-13-dev:amd64 (13.2.0-17ubuntu2) ... 895s Selecting previously unselected package gfortran-13-x86-64-linux-gnu. 895s Preparing to unpack .../483-gfortran-13-x86-64-linux-gnu_13.2.0-17ubuntu2_amd64.deb ... 895s Unpacking gfortran-13-x86-64-linux-gnu (13.2.0-17ubuntu2) ... 896s Selecting previously unselected package gfortran-13. 896s Preparing to unpack .../484-gfortran-13_13.2.0-17ubuntu2_amd64.deb ... 896s Unpacking gfortran-13 (13.2.0-17ubuntu2) ... 896s Selecting previously unselected package gfortran-x86-64-linux-gnu. 896s Preparing to unpack .../485-gfortran-x86-64-linux-gnu_4%3a13.2.0-7ubuntu1_amd64.deb ... 896s Unpacking gfortran-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 896s Selecting previously unselected package gfortran. 896s Preparing to unpack .../486-gfortran_4%3a13.2.0-7ubuntu1_amd64.deb ... 896s Unpacking gfortran (4:13.2.0-7ubuntu1) ... 896s Selecting previously unselected package octave-dev. 896s Preparing to unpack .../487-octave-dev_8.4.0-1build1_amd64.deb ... 896s Unpacking octave-dev (8.4.0-1build1) ... 896s Selecting previously unselected package dh-octave. 896s Preparing to unpack .../488-dh-octave_1.8.0_all.deb ... 896s Unpacking dh-octave (1.8.0) ... 896s Selecting previously unselected package libfontenc1:amd64. 896s Preparing to unpack .../489-libfontenc1_1%3a1.1.8-1_amd64.deb ... 896s Unpacking libfontenc1:amd64 (1:1.1.8-1) ... 896s Selecting previously unselected package libxt6:amd64. 896s Preparing to unpack .../490-libxt6_1%3a1.2.1-1.1_amd64.deb ... 896s Unpacking libxt6:amd64 (1:1.2.1-1.1) ... 896s Selecting previously unselected package libxmu6:amd64. 896s Preparing to unpack .../491-libxmu6_2%3a1.1.3-3_amd64.deb ... 896s Unpacking libxmu6:amd64 (2:1.1.3-3) ... 896s Selecting previously unselected package libxaw7:amd64. 896s Preparing to unpack .../492-libxaw7_2%3a1.0.14-1_amd64.deb ... 896s Unpacking libxaw7:amd64 (2:1.0.14-1) ... 896s Selecting previously unselected package libxfont2:amd64. 896s Preparing to unpack .../493-libxfont2_1%3a2.0.6-1_amd64.deb ... 896s Unpacking libxfont2:amd64 (1:2.0.6-1) ... 896s Selecting previously unselected package libxkbfile1:amd64. 896s Preparing to unpack .../494-libxkbfile1_1%3a1.1.0-1build3_amd64.deb ... 896s Unpacking libxkbfile1:amd64 (1:1.1.0-1build3) ... 896s Selecting previously unselected package libxrandr2:amd64. 896s Preparing to unpack .../495-libxrandr2_2%3a1.5.2-2_amd64.deb ... 896s Unpacking libxrandr2:amd64 (2:1.5.2-2) ... 896s Selecting previously unselected package python3-mpmath. 896s Preparing to unpack .../496-python3-mpmath_1.2.1-3_all.deb ... 896s Unpacking python3-mpmath (1.2.1-3) ... 896s Selecting previously unselected package python3-sympy. 896s Preparing to unpack .../497-python3-sympy_1.12-7_all.deb ... 896s Unpacking python3-sympy (1.12-7) ... 896s Selecting previously unselected package octave-symbolic. 896s Preparing to unpack .../498-octave-symbolic_3.1.1-2_all.deb ... 896s Unpacking octave-symbolic (3.1.1-2) ... 896s Selecting previously unselected package x11-xkb-utils. 896s Preparing to unpack .../499-x11-xkb-utils_7.7+8_amd64.deb ... 896s Unpacking x11-xkb-utils (7.7+8) ... 896s Selecting previously unselected package xserver-common. 897s Preparing to unpack .../500-xserver-common_2%3a21.1.11-2ubuntu1_all.deb ... 897s Unpacking xserver-common (2:21.1.11-2ubuntu1) ... 897s Selecting previously unselected package xvfb. 897s Preparing to unpack .../501-xvfb_2%3a21.1.11-2ubuntu1_amd64.deb ... 897s Unpacking xvfb (2:21.1.11-2ubuntu1) ... 897s Setting up libapt-pkg-perl (0.1.40build4) ... 897s Setting up libmodule-pluggable-perl (5.2-4) ... 897s Setting up libgraphite2-3:amd64 (1.3.14-2) ... 897s Setting up libstring-escape-perl (2010.002-3) ... 897s Setting up libxcb-dri3-0:amd64 (1.15-1) ... 897s Setting up liblcms2-2:amd64 (2.14-2) ... 897s Setting up libberkeleydb-perl:amd64 (0.64-2build1) ... 897s Setting up libpixman-1-0:amd64 (0.42.2-1) ... 897s Setting up libsharpyuv0:amd64 (1.3.2-0.4) ... 897s Setting up libwayland-server0:amd64 (1.22.0-2.1) ... 897s Setting up libx11-xcb1:amd64 (2:1.8.7-1) ... 897s Setting up libpciaccess0:amd64 (0.17-3) ... 897s Setting up libfile-which-perl (1.27-2) ... 897s Setting up libdw1:amd64 (0.190-1) ... 897s Setting up libdouble-conversion3:amd64 (3.3.0-1) ... 897s Setting up libdrm-nouveau2:amd64 (2.4.120-2) ... 897s Setting up libunicode-utf8-perl (0.62-2build1) ... 897s Setting up libset-intspan-perl (1.19-3) ... 897s Setting up libmpg123-0:amd64 (1.32.5-1) ... 897s Setting up libxcb-xfixes0:amd64 (1.15-1) ... 897s Setting up libogg0:amd64 (1.3.5-3) ... 897s Setting up libmouse-perl (2.5.10-1build6) ... 897s Setting up liblerc4:amd64 (4.0.0+ds-4ubuntu1) ... 897s Setting up libpod-pom-perl (2.01-4) ... 897s Setting up libxpm4:amd64 (1:3.5.17-1) ... 897s Setting up hdf5-helpers (1.10.10+repack-3ubuntu1) ... 897s Setting up libwmflite-0.2-7:amd64 (0.2.13-1.1) ... 897s Setting up libregexp-pattern-perl (0.2.14-2) ... 897s Setting up libdata-messagepack-perl (1.02-1build2) ... 897s Setting up libxcb-xinput0:amd64 (1.15-1) ... 897s Setting up libxrender1:amd64 (1:0.9.10-1.1) ... 897s Setting up libdynaloader-functions-perl (0.003-3) ... 897s Setting up libdatrie1:amd64 (0.2.13-3) ... 897s Setting up libtext-glob-perl (0.11-3) ... 897s Setting up libclass-method-modifiers-perl (2.15-1) ... 897s Setting up liblist-compare-perl (0.55-2) ... 897s Setting up libxcb-render0:amd64 (1.15-1) ... 897s Setting up libclone-perl:amd64 (0.46-1build1) ... 897s Setting up libarchive-zip-perl (1.68-1) ... 897s Setting up libsub-identify-perl (0.14-3build1) ... 897s Setting up libdrm-radeon1:amd64 (2.4.120-2) ... 897s Setting up libcpanel-json-xs-perl:amd64 (4.37-1build1) ... 897s Setting up libglvnd0:amd64 (1.7.0-1) ... 897s Setting up libio-stringy-perl (2.111-3) ... 897s Setting up libscotch-7.0:amd64 (7.0.4-1) ... 897s Setting up libhtml-tagset-perl (3.20-6) ... 897s Setting up liblog-any-perl (1.717-1) ... 897s Setting up libqscintilla2-qt5-l10n (2.14.1+dfsg-1) ... 897s Setting up libyaml-pp-perl (0.38.0-1) ... 897s Setting up libxcb-glx0:amd64 (1.15-1) ... 897s Setting up libdevel-size-perl (0.83-2build2) ... 897s Setting up unzip (6.0-28ubuntu3) ... 897s Setting up libdebhelper-perl (13.14.1ubuntu1) ... 897s Setting up libregexp-pattern-license-perl (3.11.0-1) ... 897s Setting up libconvert-binhex-perl (1.125-3) ... 897s Setting up libdrm-intel1:amd64 (2.4.120-2) ... 897s Setting up liblwp-mediatypes-perl (6.04-2) ... 897s Setting up libyaml-libyaml-perl (0.89+ds-1) ... 897s Setting up fonts-freefont-otf (20211204+svn4273-2) ... 897s Setting up libio-interactive-perl (1.025-1) ... 897s Setting up libxcb-keysyms1:amd64 (0.4.0-1build3) ... 897s Setting up libxcb-shape0:amd64 (1.15-1) ... 897s Setting up x11-common (1:7.7+23ubuntu2) ... 897s Setting up libtry-tiny-perl (0.31-2) ... 897s Setting up libcxsparse4:amd64 (1:7.6.1+dfsg-1) ... 897s Setting up libdeflate0:amd64 (1.19-1) ... 897s Setting up perl-openssl-defaults:amd64 (7) ... 897s Setting up libmldbm-perl (2.05-4) ... 897s Setting up linux-libc-dev:amd64 (6.8.0-11.11) ... 897s Setting up libxml-namespacesupport-perl (1.12-2) ... 897s Setting up m4 (1.4.19-4) ... 897s Setting up libclone-choose-perl (0.010-2) ... 897s Setting up libqhull-r8.0:amd64 (2020.2-6) ... 897s Setting up libxcb-render-util0:amd64 (0.3.9-1build3) ... 897s Setting up libtime-moment-perl (0.44-2build2) ... 897s Setting up libencode-locale-perl (1.05-3) ... 897s Setting up libhwy1:amd64 (1.0.7-8) ... 897s Setting up libtrilinos-kokkos-13.2:amd64 (13.2.0-5) ... 897s Setting up libmetis5:amd64 (5.1.0.dfsg-7build2) ... 897s Setting up libxcb-shm0:amd64 (1.15-1) ... 897s Setting up libxcb-icccm4:amd64 (0.4.1-1.1build2) ... 897s Setting up texinfo-lib (7.1-3) ... 897s Setting up libgomp1:amd64 (14-20240303-1ubuntu1) ... 897s Setting up libconfig-tiny-perl (2.30-1) ... 897s Setting up libsereal-encoder-perl (5.004+ds-1build1) ... 897s Setting up liblist-utilsby-perl (0.12-2) ... 897s Setting up libyaml-tiny-perl (1.74-1) ... 897s Setting up libpthread-stubs0-dev:amd64 (0.4-1build2) ... 897s Setting up libjbig0:amd64 (2.1-6.1ubuntu1) ... 897s Setting up octave-common (8.4.0-1build1) ... 897s Setting up libregexp-common-perl (2017060201-3) ... 897s Setting up libpcre2-16-0:amd64 (10.42-4ubuntu1) ... 897s Setting up libaec0:amd64 (1.1.2-1) ... 897s Setting up libnet-netmask-perl (2.0002-2) ... 897s Setting up libopengl0:amd64 (1.7.0-1) ... 897s Setting up libsub-install-perl (0.929-1) ... 897s Setting up libxcb-util1:amd64 (0.4.0-1build2) ... 897s Setting up libxxf86vm1:amd64 (1:1.1.4-1build3) ... 897s Setting up libindirect-perl (0.39-2build2) ... 897s Setting up libxcb-xkb1:amd64 (1.15-1) ... 897s Setting up libxcb-image0:amd64 (0.4.0-2) ... 897s Setting up libxs-parse-sublike-perl:amd64 (0.21-2build1) ... 897s Setting up libnumber-compare-perl (0.03-3) ... 897s Setting up libxnvctrl0:amd64 (510.47.03-0ubuntu1) ... 897s Setting up libxcb-present0:amd64 (1.15-1) ... 897s Setting up liberror-perl (0.17029-2) ... 897s Setting up libtrilinos-trilinosss-13.2:amd64 (13.2.0-5) ... 897s Setting up libasound2-data (1.2.10-3build1) ... 897s Setting up patchutils (0.4.2-1build2) ... 897s Setting up tex-common (6.18) ... 897s update-language: texlive-base not installed and configured, doing nothing! 897s Setting up libbtf2:amd64 (1:7.6.1+dfsg-1) ... 897s Setting up libjson-maybexs-perl (1.004005-1) ... 897s Setting up libxml-sax-base-perl (1.09-3) ... 897s Setting up libio-string-perl (1.08-4) ... 897s Setting up libboolean-perl (0.46-3) ... 897s Setting up libnetaddr-ip-perl (4.079+dfsg-2build2) ... 897s Setting up xtrans-dev (1.4.0-1) ... 897s Setting up libfontenc1:amd64 (1:1.1.8-1) ... 897s Setting up autotools-dev (20220109.1) ... 897s Setting up libblas3:amd64 (3.12.0-3) ... 897s update-alternatives: using /usr/lib/x86_64-linux-gnu/blas/libblas.so.3 to provide /usr/lib/x86_64-linux-gnu/libblas.so.3 (libblas.so.3-x86_64-linux-gnu) in auto mode 897s Setting up libclass-data-inheritable-perl (0.08-3) ... 897s Setting up libxs-parse-keyword-perl (0.39-1build1) ... 897s Setting up libxcb-xinerama0:amd64 (1.15-1) ... 897s Setting up libtirpc-dev:amd64 (1.3.4+ds-1build1) ... 897s Setting up libflac12:amd64 (1.4.3+ds-2ubuntu1) ... 897s Setting up libalgorithm-c3-perl (0.11-2) ... 897s Setting up rpcsvc-proto (1.4.2-0ubuntu6) ... 897s Setting up libmunge2:amd64 (0.5.15-3ubuntu1) ... 897s Setting up liblog-log4perl-perl (1.57-1) ... 897s Setting up libtext-reform-perl (1.20-5) ... 897s Setting up libfile-find-rule-perl (0.34-3) ... 897s Setting up libxfixes3:amd64 (1:6.0.0-2) ... 897s Setting up libcurl4-openssl-dev:amd64 (8.5.0-2ubuntu2) ... 897s Setting up libxcb-sync1:amd64 (1.15-1) ... 897s Setting up libipc-system-simple-perl (1.30-2) ... 897s Setting up libio-tiecombine-perl (1.005-3) ... 897s Setting up libnet-domain-tld-perl (1.75-3) ... 897s Setting up libperlio-utf8-strict-perl (0.010-1build1) ... 897s Setting up aglfn (1.7+git20191031.4036a9c-2) ... 897s Setting up lzip (1.24.1-1) ... 897s update-alternatives: using /usr/bin/lzip.lzip to provide /usr/bin/lzip (lzip) in auto mode 897s update-alternatives: using /usr/bin/lzip.lzip to provide /usr/bin/lzip-compressor (lzip-compressor) in auto mode 897s update-alternatives: using /usr/bin/lzip.lzip to provide /usr/bin/lzip-decompressor (lzip-decompressor) in auto mode 897s Setting up libavahi-common-data:amd64 (0.8-13ubuntu2) ... 897s Setting up libopus0:amd64 (1.4-1) ... 897s Setting up t1utils (1.41-4build2) ... 897s Setting up libquadmath0:amd64 (14-20240303-1ubuntu1) ... 897s Setting up libxinerama1:amd64 (2:1.1.4-3) ... 897s Setting up diffstat (1.66-1) ... 897s Setting up libxkbcommon-x11-0:amd64 (1.6.0-1) ... 897s Setting up fonts-dejavu-mono (2.37-8) ... 897s Setting up libssl-dev:amd64 (3.0.10-1ubuntu4) ... 897s Setting up libhwloc15:amd64 (2.10.0-1) ... 897s Setting up libmpc3:amd64 (1.3.1-1) ... 897s Setting up libatomic1:amd64 (14-20240303-1ubuntu1) ... 897s Setting up libvorbis0a:amd64 (1.3.7-1build2) ... 897s Setting up libvariable-magic-perl (0.63-1build1) ... 897s Setting up libio-html-perl (1.004-3) ... 897s Setting up libxrandr2:amd64 (2:1.5.2-2) ... 897s Setting up libtext-template-perl (1.61-1) ... 897s Setting up libpod-parser-perl (1.67-1) ... 897s Setting up autopoint (0.21-14ubuntu1) ... 897s Setting up libb-hooks-op-check-perl:amd64 (0.22-2build2) ... 897s Setting up fonts-dejavu-core (2.37-8) ... 897s Setting up liblist-moreutils-xs-perl (0.430-3build3) ... 897s Setting up libjxl0.7:amd64 (0.7.0-10.2ubuntu1) ... 897s Setting up libjpeg-turbo8:amd64 (2.1.5-2ubuntu1) ... 897s Setting up libqt5core5a:amd64 (5.15.12+dfsg-3ubuntu1) ... 897s Setting up libltdl7:amd64 (2.4.7-7) ... 897s Setting up libfftw3-double3:amd64 (3.3.10-1ubuntu1) ... 897s Setting up libglapi-mesa:amd64 (24.0.1-1ubuntu1) ... 897s Setting up libparams-util-perl (1.102-2build1) ... 897s Setting up libgfortran5:amd64 (14-20240303-1ubuntu1) ... 897s Setting up libmtdev1:amd64 (1.1.6-1build4) ... 897s Setting up libvulkan1:amd64 (1.3.275.0-1) ... 897s Setting up libtime-duration-perl (1.21-2) ... 897s Setting up autoconf (2.71-3) ... 897s Setting up libtext-xslate-perl:amd64 (3.5.9-1build3) ... 897s Setting up libsub-exporter-progressive-perl (0.001013-3) ... 897s Setting up libwebp7:amd64 (1.3.2-0.4) ... 897s Setting up libarray-intspan-perl (2.004-2) ... 897s Setting up libcapture-tiny-perl (0.48-2) ... 897s Setting up libtimedate-perl (2.3300-2) ... 897s Setting up libexporter-lite-perl (0.09-2) ... 897s Setting up libubsan1:amd64 (14-20240303-1ubuntu1) ... 897s Setting up libxcb-dri2-0:amd64 (1.15-1) ... 897s Setting up libsub-name-perl:amd64 (0.27-1build1) ... 897s Setting up libsyntax-keyword-try-perl (0.29-1build1) ... 897s Setting up dwz (0.15-1) ... 897s Setting up libdata-validate-domain-perl (0.10-1.1) ... 897s Setting up libproc-processtable-perl:amd64 (0.636-1build1) ... 897s Setting up libparse-recdescent-perl (1.967015+dfsg-4) ... 897s Setting up libdav1d7:amd64 (1.4.0-1) ... 897s Setting up libnsl-dev:amd64 (1.3.0-3) ... 897s Setting up ocl-icd-libopencl1:amd64 (2.3.2-1) ... 897s Setting up libxshmfence1:amd64 (1.3-1build4) ... 897s Setting up libhwasan0:amd64 (14-20240303-1ubuntu1) ... 897s Setting up libqt5dbus5:amd64 (5.15.12+dfsg-3ubuntu1) ... 897s Setting up libcrypt-dev:amd64 (1:4.4.36-4) ... 897s Setting up libxcb-randr0:amd64 (1.15-1) ... 897s Setting up libpath-tiny-perl (0.144-1) ... 897s Setting up libasan8:amd64 (14-20240303-1ubuntu1) ... 897s Setting up lzop (1.04-2build2) ... 897s Setting up libjson-perl (4.10000-1) ... 897s Setting up libasound2:amd64 (1.2.10-3build1) ... 897s Setting up liblog-any-adapter-screen-perl (0.140-2) ... 897s Setting up librole-tiny-perl (2.002004-1) ... 897s Setting up libpsm2-2 (11.2.185-2) ... 897s Setting up openmpi-common (4.1.6-5ubuntu1) ... 897s Setting up debugedit (1:5.0-5) ... 897s Setting up libipc-run3-perl (0.049-1) ... 897s Setting up libmd4c0:amd64 (0.4.8-1) ... 897s Setting up libregexp-wildcards-perl (1.05-3) ... 897s Setting up libmousex-strictconstructor-perl (0.02-3) ... 897s Setting up libsub-uplevel-perl (0.2800-3) ... 897s Setting up libsuitesparseconfig7:amd64 (1:7.6.1+dfsg-1) ... 897s Setting up librdmacm1t64:amd64 (50.0-2) ... 897s Setting up liblua5.4-0:amd64 (5.4.6-3) ... 897s Setting up libsub-override-perl (0.10-1) ... 897s Setting up libaliased-perl (0.34-3) ... 897s Setting up libharfbuzz0b:amd64 (8.3.0-2) ... 897s Setting up libthai-data (0.1.29-2) ... 897s Setting up xorg-sgml-doctools (1:1.11-1.1) ... 897s Setting up libstrictures-perl (2.000006-1) ... 897s Setting up libsub-quote-perl (2.006008-1ubuntu1) ... 897s Setting up libdevel-stacktrace-perl (2.0500-1) ... 897s Setting up libclass-xsaccessor-perl (1.19-4build2) ... 897s Setting up libtext-autoformat-perl (1.750000-2) ... 897s Setting up libglu1-mesa:amd64 (9.0.2-1.1) ... 897s Setting up libtoml-tiny-perl (0.16-1) ... 897s Setting up libxkbfile1:amd64 (1:1.1.0-1build3) ... 897s Setting up libpsm-infinipath1 (3.3+20.604758e7-6.3) ... 897s update-alternatives: using /usr/lib/libpsm1/libpsm_infinipath.so.1.16 to provide /usr/lib/x86_64-linux-gnu/libpsm_infinipath.so.1 (libpsm_infinipath.so.1) in auto mode 897s Setting up libsort-versions-perl (1.62-3) ... 897s Setting up libtsan2:amd64 (14-20240303-1ubuntu1) ... 897s Setting up libexporter-tiny-perl (1.006002-1) ... 897s Setting up libterm-readkey-perl (2.38-2build2) ... 897s Setting up python3-mpmath (1.2.1-3) ... 898s Setting up libisl23:amd64 (0.26-3) ... 898s Setting up libtext-unidecode-perl (1.30-3) ... 898s Setting up libde265-0:amd64 (1.0.15-1) ... 898s Setting up libc-dev-bin (2.39-0ubuntu2) ... 898s Setting up libfont-ttf-perl (1.06-2) ... 898s Setting up libfile-homedir-perl (1.006-2) ... 898s Setting up libsamplerate0:amd64 (0.2.2-4) ... 898s Setting up libwebpmux3:amd64 (1.3.2-0.4) ... 898s Setting up libtext-levenshteinxs-perl (0.03-5build2) ... 898s Setting up libllvm17:amd64 (1:17.0.6-5build1) ... 898s Setting up libperlio-gzip-perl (0.20-1build2) ... 898s Setting up libxfont2:amd64 (1:2.0.6-1) ... 898s Setting up libhtml-html5-entities-perl (0.004-3) ... 898s Setting up libtext-levenshtein-damerau-perl (0.41-3) ... 898s Setting up libsereal-decoder-perl (5.004+ds-1build1) ... 898s Setting up libmarkdown2:amd64 (2.2.7-2) ... 898s Setting up libcc1-0:amd64 (14-20240303-1ubuntu1) ... 898s Setting up liburi-perl (5.27-1) ... 898s Setting up libnet-ipv6addr-perl (1.02-1) ... 898s Setting up liblsan0:amd64 (14-20240303-1ubuntu1) ... 898s Setting up libmp3lame0:amd64 (3.100-6) ... 898s Setting up libblas-dev:amd64 (3.12.0-3) ... 898s update-alternatives: using /usr/lib/x86_64-linux-gnu/blas/libblas.so to provide /usr/lib/x86_64-linux-gnu/libblas.so (libblas.so-x86_64-linux-gnu) in auto mode 898s Setting up libsz2:amd64 (1.1.2-1) ... 898s Setting up libitm1:amd64 (14-20240303-1ubuntu1) ... 898s Setting up libvorbisenc2:amd64 (1.3.7-1build2) ... 898s Setting up libevent-pthreads-2.1-7:amd64 (2.1.12-stable-9) ... 898s Setting up libdata-validate-ip-perl (0.31-1) ... 898s Setting up libdrm-amdgpu1:amd64 (2.4.120-2) ... 898s Setting up libwacom-common (2.10.0-1) ... 898s Setting up libmousex-nativetraits-perl (1.09-3) ... 898s Setting up libemail-address-xs-perl (1.05-1build2) ... 898s Setting up libwayland-client0:amd64 (1.22.0-2.1) ... 898s Setting up libnet-ssleay-perl:amd64 (1.94-1) ... 898s Setting up libjpeg8:amd64 (8c-2ubuntu11) ... 898s Setting up automake (1:1.16.5-1.3ubuntu1) ... 898s update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode 898s Setting up x11proto-dev (2023.2-1) ... 898s Setting up libfile-stripnondeterminism-perl (1.13.1-1) ... 898s Setting up libfabric1:amd64 (1.17.0-3build1) ... 898s Setting up python3-sympy (1.12-7) ... 903s Setting up gnuplot-data (5.4.4+dfsg1-2build1) ... 903s Setting up libice6:amd64 (2:1.0.10-1build2) ... 903s Setting up libhttp-date-perl (6.06-1) ... 903s Setting up liblapack3:amd64 (3.12.0-3) ... 903s update-alternatives: using /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3 to provide /usr/lib/x86_64-linux-gnu/liblapack.so.3 (liblapack.so.3-x86_64-linux-gnu) in auto mode 903s Setting up libfile-basedir-perl (0.09-2) ... 903s Setting up gettext (0.21-14ubuntu1) ... 903s Setting up libfftw3-single3:amd64 (3.3.10-1ubuntu1) ... 903s Setting up libamd3:amd64 (1:7.6.1+dfsg-1) ... 903s Setting up libfile-listing-perl (6.16-1) ... 903s Setting up libxau-dev:amd64 (1:1.0.9-1build5) ... 903s Setting up libgbm1:amd64 (24.0.1-1ubuntu1) ... 903s Setting up libcolamd3:amd64 (1:7.6.1+dfsg-1) ... 903s Setting up libwacom9:amd64 (2.10.0-1) ... 903s Setting up cpp-13-x86-64-linux-gnu (13.2.0-17ubuntu2) ... 903s Setting up fontconfig-config (2.15.0-1ubuntu1) ... 903s Setting up liblist-moreutils-perl (0.430-2) ... 903s Setting up libxcursor1:amd64 (1:1.2.1-1) ... 903s Setting up libpod-constants-perl (0.19-2) ... 903s Setting up libgl1-mesa-dri:amd64 (24.0.1-1ubuntu1) ... 903s Setting up libhash-merge-perl (0.302-1) ... 903s Setting up libsoftware-copyright-perl (0.012-2) ... 903s Setting up libaec-dev:amd64 (1.1.2-1) ... 903s Setting up libarpack2:amd64 (3.9.1-1) ... 903s Setting up libavahi-common3:amd64 (0.8-13ubuntu2) ... 903s Setting up libfftw3-long3:amd64 (3.3.10-1ubuntu1) ... 903s Setting up libnet-http-perl (6.23-1) ... 903s Setting up libpath-iterator-rule-perl (1.015-2) ... 903s Setting up libtext-markdown-discount-perl (0.16-1build1) ... 903s Setting up libexception-class-perl (1.45-1) ... 903s Setting up libsundials-sunmatrix4:amd64 (6.4.1+dfsg1-3build2) ... 903s Setting up libclass-c3-perl (0.35-2) ... 903s Setting up libsuperlu6:amd64 (6.0.1+dfsg1-1) ... 903s Setting up libhwloc-plugins:amd64 (2.10.0-1) ... 903s Setting up libqrupdate1:amd64 (1.1.2-4) ... 903s Setting up libdevel-callchecker-perl:amd64 (0.008-2build1) ... 903s Setting up libxml-sax-perl (1.02+dfsg-3) ... 903s update-perl-sax-parsers: Registering Perl SAX parser XML::SAX::PurePerl with priority 10... 903s update-perl-sax-parsers: Updating overall Perl SAX parser modules info file... 903s 903s Creating config file /etc/perl/XML/SAX/ParserDetails.ini with new version 903s Setting up libsundials-ida6:amd64 (6.4.1+dfsg1-3build2) ... 903s Setting up libqt5network5:amd64 (5.15.12+dfsg-3ubuntu1) ... 903s Setting up libcamd3:amd64 (1:7.6.1+dfsg-1) ... 903s Setting up libinput-bin (1.25.0-1) ... 903s Setting up intltool-debian (0.35.0+20060710.6) ... 903s Setting up libobject-pad-perl (0.808-1build1) ... 903s Setting up libqt5sql5:amd64 (5.15.12+dfsg-3ubuntu1) ... 903s Setting up libthai0:amd64 (0.1.29-2) ... 903s Setting up libxdmcp-dev:amd64 (1:1.1.3-0ubuntu5) ... 903s Setting up libqt5xml5:amd64 (5.15.12+dfsg-3ubuntu1) ... 903s Setting up libegl-mesa0:amd64 (24.0.1-1ubuntu1) ... 903s Setting up libdata-validate-uri-perl (0.07-3) ... 903s Setting up libtest-exception-perl (0.43-3) ... 903s Setting up libglpk40:amd64 (5.0-1build1) ... 903s Setting up libstring-copyright-perl (0.003014-1) ... 903s Setting up libfftw3-quad3:amd64 (3.3.10-1ubuntu1) ... 903s Setting up liblapack-dev:amd64 (3.12.0-3) ... 903s update-alternatives: using /usr/lib/x86_64-linux-gnu/lapack/liblapack.so to provide /usr/lib/x86_64-linux-gnu/liblapack.so (liblapack.so-x86_64-linux-gnu) in auto mode 903s Setting up libdata-optlist-perl (0.114-1) ... 903s Setting up libccolamd3:amd64 (1:7.6.1+dfsg-1) ... 903s Setting up libxml-libxml-perl (2.0207+dfsg+really+2.0134-1build2) ... 903s update-perl-sax-parsers: Registering Perl SAX parser XML::LibXML::SAX::Parser with priority 50... 904s update-perl-sax-parsers: Registering Perl SAX parser XML::LibXML::SAX with priority 50... 904s update-perl-sax-parsers: Updating overall Perl SAX parser modules info file... 904s Replacing config file /etc/perl/XML/SAX/ParserDetails.ini with new version 904s Setting up dh-strip-nondeterminism (1.13.1-1) ... 904s Setting up libwww-robotrules-perl (6.02-1) ... 904s Setting up libjack-jackd2-0:amd64 (1.9.21~dfsg-3) ... 904s Setting up libhdf5-103-1:amd64 (1.10.10+repack-3ubuntu1) ... 904s Setting up libgcc-13-dev:amd64 (13.2.0-17ubuntu2) ... 904s Setting up libtiff6:amd64 (4.5.1+git230720-3ubuntu1) ... 904s Setting up libhtml-parser-perl:amd64 (3.81-1build1) ... 904s Setting up libhdf5-cpp-103-1:amd64 (1.10.10+repack-3ubuntu1) ... 904s Setting up libegl1:amd64 (1.7.0-1) ... 904s Setting up libc6-dev:amd64 (2.39-0ubuntu2) ... 904s Setting up libamd-comgr2:amd64 (6.0+git20231212.4510c28+dfsg-3) ... 904s Setting up libfontconfig1:amd64 (2.15.0-1ubuntu1) ... 904s Setting up libsndfile1:amd64 (1.2.2-1ubuntu2) ... 904s Setting up libmro-compat-perl (0.15-2) ... 904s Setting up libgfortran-13-dev:amd64 (13.2.0-17ubuntu2) ... 904s Setting up libsm6:amd64 (2:1.2.3-1build2) ... 904s Setting up libavahi-client3:amd64 (0.8-13ubuntu2) ... 904s Setting up libio-socket-ssl-perl (2.085-1) ... 904s Setting up libhsakmt1:amd64 (5.7.0-1) ... 904s Setting up libstdc++-13-dev:amd64 (13.2.0-17ubuntu2) ... 904s Setting up libsub-exporter-perl (0.990-1) ... 904s Setting up libhttp-message-perl (6.45-1ubuntu1) ... 904s Setting up libhdf5-hl-100:amd64 (1.10.10+repack-3ubuntu1) ... 904s Setting up libhtml-form-perl (6.11-1) ... 904s Setting up cpp-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 904s Setting up libiterator-perl (0.03+ds1-2) ... 904s Setting up libinput10:amd64 (1.25.0-1) ... 904s Setting up libportaudio2:amd64 (19.6.0-1.2) ... 904s Setting up libhttp-negotiate-perl (6.01-2) ... 904s Setting up fontconfig (2.15.0-1ubuntu1) ... 906s Regenerating fonts cache... done. 906s Setting up libjpeg-turbo8-dev:amd64 (2.1.5-2ubuntu1) ... 906s Setting up libcarp-assert-more-perl (2.3.0-1) ... 906s Setting up libcholmod5:amd64 (1:7.6.1+dfsg-1) ... 906s Setting up libxft2:amd64 (2.3.6-1) ... 906s Setting up libncurses-dev:amd64 (6.4+20240113-1ubuntu1) ... 906s Setting up libglx-mesa0:amd64 (24.0.1-1ubuntu1) ... 906s Setting up libxcb1-dev:amd64 (1.15-1) ... 906s Setting up libiterator-util-perl (0.02+ds1-2) ... 906s Setting up libglx0:amd64 (1.7.0-1) ... 906s Setting up cpp-13 (13.2.0-17ubuntu2) ... 906s Setting up libpmix2:amd64 (5.0.1-4) ... 906s Setting up libhttp-cookies-perl (6.11-1) ... 906s Setting up libspqr4:amd64 (1:7.6.1+dfsg-1) ... 906s Setting up libfftw3-bin (3.3.10-1ubuntu1) ... 906s Setting up gcc-13-x86-64-linux-gnu (13.2.0-17ubuntu2) ... 906s Setting up po-debconf (1.0.21+nmu1) ... 906s Setting up libhtml-tree-perl (5.07-3) ... 906s Setting up libfltk1.3:amd64 (1.3.8-6) ... 906s Setting up libparams-classify-perl:amd64 (0.015-2build3) ... 906s Setting up libpango-1.0-0:amd64 (1.51.0+ds-4) ... 906s Setting up libcgi-pm-perl (4.62-1) ... 906s Setting up libx11-dev:amd64 (2:1.8.7-1) ... 906s Setting up libreadline-dev:amd64 (8.2-3) ... 906s Setting up gfortran-13-x86-64-linux-gnu (13.2.0-17ubuntu2) ... 906s Setting up libcairo2:amd64 (1.18.0-1) ... 906s Setting up libhdf5-hl-cpp-100:amd64 (1.10.10+repack-3ubuntu1) ... 906s Setting up libgl1:amd64 (1.7.0-1) ... 906s Setting up libnet-smtp-ssl-perl (1.04-2) ... 906s Setting up libmodule-runtime-perl (0.016-2) ... 906s Setting up libmailtools-perl (2.21-2) ... 906s Setting up libklu2:amd64 (1:7.6.1+dfsg-1) ... 906s Setting up libconfig-model-perl (2.153-3) ... 906s Setting up libgd3:amd64 (2.3.3-9ubuntu1) ... 906s Setting up gcc-13 (13.2.0-17ubuntu2) ... 906s Setting up libhdf5-fortran-102:amd64 (1.10.10+repack-3ubuntu1) ... 906s Setting up libxt6:amd64 (1:1.2.1-1.1) ... 906s Setting up texinfo (7.1-3) ... 906s Setting up libcups2:amd64 (2.4.6-0ubuntu3) ... 906s Setting up zlib1g-dev:amd64 (1:1.3.dfsg-3ubuntu1) ... 906s Setting up libumfpack6:amd64 (1:7.6.1+dfsg-1) ... 906s Setting up libconst-fast-perl (0.014-2) ... 906s Setting up libhsa-runtime64-1 (5.7.1-1) ... 906s Setting up cpp (4:13.2.0-7ubuntu1) ... 906s Setting up libdata-section-perl (0.200008-1) ... 906s Setting up libhdf5-hl-fortran-100:amd64 (1.10.10+repack-3ubuntu1) ... 906s Setting up libglx-dev:amd64 (1.7.0-1) ... 906s Setting up libpangoft2-1.0-0:amd64 (1.51.0+ds-4) ... 906s Setting up libjpeg8-dev:amd64 (8c-2ubuntu11) ... 906s Setting up libdata-dpath-perl (0.59-1) ... 906s Setting up libfftw3-dev:amd64 (3.3.10-1ubuntu1) ... 906s Setting up libgl-dev:amd64 (1.7.0-1) ... 906s Setting up libstring-rewriteprefix-perl (0.009-1) ... 906s Setting up libpangocairo-1.0-0:amd64 (1.51.0+ds-4) ... 906s Setting up libconfig-model-backend-yaml-perl (2.134-2) ... 906s Setting up libxmu6:amd64 (2:1.1.3-3) ... 906s Setting up g++-13-x86-64-linux-gnu (13.2.0-17ubuntu2) ... 906s Setting up gcc-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 906s Setting up libtool (2.4.7-7) ... 906s Setting up libmodule-implementation-perl (0.09-2) ... 906s Setting up libpackage-stash-perl (0.40-1) ... 906s Setting up libimport-into-perl (1.002005-2) ... 906s Setting up libmoo-perl (2.005005-1) ... 906s Setting up libfltk-gl1.3:amd64 (1.3.8-6) ... 906s Setting up libqt5gui5:amd64 (5.15.12+dfsg-3ubuntu1) ... 906s Setting up libjpeg-dev:amd64 (8c-2ubuntu11) ... 906s Setting up liblist-someutils-perl (0.59-1) ... 906s Setting up libqt5widgets5:amd64 (5.15.12+dfsg-3ubuntu1) ... 906s Setting up libxaw7:amd64 (2:1.0.14-1) ... 906s Setting up libmime-tools-perl (5.514-1) ... 906s Setting up gfortran-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 906s Setting up libqt5help5:amd64 (5.15.12-2) ... 906s Setting up libsoftware-license-perl (0.104006-1) ... 906s Setting up libclass-load-perl (0.25-2) ... 906s Setting up gcc (4:13.2.0-7ubuntu1) ... 906s Setting up libgl2ps1.4 (1.4.2+dfsg1-2) ... 906s Setting up dh-autoreconf (20) ... 906s Setting up libqt5printsupport5:amd64 (5.15.12+dfsg-3ubuntu1) ... 906s Setting up libamdhip64-5 (5.2.3-12) ... 906s Setting up gfortran-13 (13.2.0-17ubuntu2) ... 906s Setting up libhdf5-dev (1.10.10+repack-3ubuntu1) ... 906s update-alternatives: using /usr/lib/x86_64-linux-gnu/pkgconfig/hdf5-serial.pc to provide /usr/lib/x86_64-linux-gnu/pkgconfig/hdf5.pc (hdf5.pc) in auto mode 906s Setting up g++-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 906s Setting up gnuplot-nox (5.4.4+dfsg1-2build1) ... 906s update-alternatives: using /usr/bin/gnuplot-nox to provide /usr/bin/gnuplot (gnuplot) in auto mode 906s Setting up libmoox-aliases-perl (0.001006-2) ... 906s Setting up libparams-validate-perl:amd64 (1.31-2build1) ... 906s Setting up libb-hooks-endofscope-perl (0.28-1) ... 906s Setting up g++-13 (13.2.0-17ubuntu2) ... 906s Setting up libucx0:amd64 (1.16.0+ds-4) ... 906s Setting up libsoftware-licensemoreutils-perl (1.009-1) ... 906s Setting up x11-xkb-utils (7.7+8) ... 906s Setting up libopenmpi3:amd64 (4.1.6-5ubuntu1) ... 906s Setting up debhelper (13.14.1ubuntu1) ... 906s Setting up libfftw3-mpi3:amd64 (3.3.10-1ubuntu1) ... 906s Setting up libqscintilla2-qt5-15:amd64 (2.14.1+dfsg-1) ... 906s Setting up gfortran (4:13.2.0-7ubuntu1) ... 906s update-alternatives: using /usr/bin/gfortran to provide /usr/bin/f95 (f95) in auto mode 906s update-alternatives: warning: skip creation of /usr/share/man/man1/f95.1.gz because associated file /usr/share/man/man1/gfortran.1.gz (of link group f95) doesn't exist 906s update-alternatives: using /usr/bin/gfortran to provide /usr/bin/f77 (f77) in auto mode 906s update-alternatives: warning: skip creation of /usr/share/man/man1/f77.1.gz because associated file /usr/share/man/man1/gfortran.1.gz (of link group f77) doesn't exist 906s Setting up libtrilinos-teuchos-13.2:amd64 (13.2.0-5) ... 906s Setting up dh-octave-autopkgtest (1.8.0) ... 906s Setting up libcombblas2.0.0:amd64 (2.0.0-3) ... 906s Setting up libtrilinos-epetra-13.2:amd64 (13.2.0-5) ... 906s Setting up libnamespace-clean-perl (0.27-2) ... 906s Setting up libstring-license-perl (0.0.9-2ubuntu1) ... 906s Setting up libgetopt-long-descriptive-perl (0.111-1) ... 906s Setting up g++ (4:13.2.0-7ubuntu1) ... 906s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 906s Setting up libtrilinos-aztecoo-13.2:amd64 (13.2.0-5) ... 906s Setting up build-essential (12.10ubuntu1) ... 906s Setting up xserver-common (2:21.1.11-2ubuntu1) ... 906s Setting up libtrilinos-triutils-13.2:amd64 (13.2.0-5) ... 906s Setting up openmpi-bin (4.1.6-5ubuntu1) ... 906s update-alternatives: using /usr/bin/mpirun.openmpi to provide /usr/bin/mpirun (mpirun) in auto mode 906s update-alternatives: using /usr/bin/mpicc.openmpi to provide /usr/bin/mpicc (mpi) in auto mode 906s Setting up licensecheck (3.3.9-1ubuntu1) ... 906s Setting up libhdf5-openmpi-103-1:amd64 (1.10.10+repack-3ubuntu1) ... 906s Setting up libptscotch-7.0:amd64 (7.0.4-1) ... 906s Setting up libsuperlu-dist8:amd64 (8.2.1+dfsg1-1) ... 906s Setting up libapp-cmd-perl (0.336-1) ... 906s Setting up xvfb (2:21.1.11-2ubuntu1) ... 906s Setting up mpi-default-bin (1.15) ... 906s Setting up libtrilinos-zoltan-13.2:amd64 (13.2.0-5) ... 906s Setting up libhypre-2.28.0:amd64 (2.28.0-8) ... 906s Setting up libtrilinos-epetraext-13.2:amd64 (13.2.0-5) ... 906s Setting up libtrilinos-galeri-13.2:amd64 (13.2.0-5) ... 906s Setting up cme (1.040-1) ... 906s Setting up libscalapack-openmpi2.2:amd64 (2.2.1-3) ... 906s Setting up libmumps-5.6:amd64 (5.6.2-2) ... 906s Setting up libtrilinos-amesos-13.2:amd64 (13.2.0-5) ... 906s Setting up libtrilinos-ifpack-13.2:amd64 (13.2.0-5) ... 906s Setting up libtrilinos-ml-13.2:amd64 (13.2.0-5) ... 906s Setting up libpetsc-real3.19:amd64 (3.19.6+dfsg1-2ubuntu1) ... 906s update-alternatives: using /usr/lib/x86_64-linux-gnu/libpetsc_real.so.3.19.6 to provide /usr/lib/x86_64-linux-gnu/libpetsc.so.3.19 (libpetsc.so.3.19) in auto mode 906s Setting up libsundials-nvecparallel-petsc6:amd64 (6.4.1+dfsg1-3build2) ... 906s Setting up libsundials-sunlinsol3:amd64 (6.4.1+dfsg1-3build2) ... 906s Setting up libheif-plugin-dav1d:amd64 (1.17.6-1ubuntu1) ... 906s Setting up liblwp-protocol-https-perl (6.13-1) ... 906s Setting up libheif-plugin-libde265:amd64 (1.17.6-1ubuntu1) ... 906s Setting up libwww-perl (6.76-1) ... 906s Setting up libheif1:amd64 (1.17.6-1ubuntu1) ... 906s Setting up libparse-debcontrol-perl (2.005-6) ... 906s Setting up libhtml-tokeparser-simple-perl (3.16-4) ... 906s Setting up libwww-mechanize-perl (2.17-1ubuntu1) ... 906s Setting up libgraphicsmagick-q16-3 (1.4+really1.3.42-1build1) ... 906s Setting up libgraphicsmagick++-q16-12 (1.4+really1.3.42-1build1) ... 906s Setting up lintian (2.117.0ubuntu1) ... 906s Setting up libconfig-model-dpkg-perl (3.004) ... 906s Setting up octave (8.4.0-1build1) ... 906s Setting up octave-dev (8.4.0-1build1) ... 906s Setting up dh-octave (1.8.0) ... 906s Setting up octave-symbolic (3.1.1-2) ... 906s Processing triggers for man-db (2.12.0-3) ... 908s Processing triggers for udev (255.2-3ubuntu2) ... 909s Processing triggers for install-info (7.1-3) ... 909s Processing triggers for libc-bin (2.39-0ubuntu2) ... 920s Reading package lists... 920s Building dependency tree... 920s Reading state information... 921s Starting pkgProblemResolver with broken count: 0 921s Starting 2 pkgProblemResolver with broken count: 0 921s Done 921s The following NEW packages will be installed: 921s autopkgtest-satdep 921s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 921s Need to get 0 B/696 B of archives. 921s After this operation, 0 B of additional disk space will be used. 921s Get:1 /tmp/autopkgtest.Wql6nV/2-autopkgtest-satdep.deb autopkgtest-satdep amd64 0 [696 B] 921s Selecting previously unselected package autopkgtest-satdep. 921s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 91331 files and directories currently installed.) 921s Preparing to unpack .../2-autopkgtest-satdep.deb ... 921s Unpacking autopkgtest-satdep (0) ... 922s Setting up autopkgtest-satdep (0) ... 923s (Reading database ... 91331 files and directories currently installed.) 923s Removing autopkgtest-satdep (0) ... 924s autopkgtest [22:37:34]: test command1: DH_OCTAVE_TEST_ENV="xvfb-run -a" /usr/bin/dh_octave_check --use-installed-package 924s autopkgtest [22:37:34]: test command1: [----------------------- 924s Checking package... 925s Run the unit tests... 925s Checking m files ... 925s [inst/@logical/isAlways.m] 925s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@logical/isAlways.m 925s ***** error isAlways (true, false) 925s ***** assert(isAlways(true)) 925s ***** assert(~isAlways(false)) 925s 3 tests, 3 passed, 0 known failure, 0 skipped 925s [inst/laguerreL.m] 925s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/laguerreL.m 925s ***** error laguerreL (1) 925s ***** error laguerreL (1, 2, 3) 925s ***** assert (isequal (laguerreL (0, rand), 1)) 925s ***** test 925s x = rand; 925s assert (isequal (laguerreL (1, x), 1 - x)) 925s ***** test 925s x=rand; 925s y1=laguerreL(2, x); 925s p2=[.5 -2 1]; 925s y2=polyval(p2,x); 925s assert(y1 - y2, 0, 10*eps); 925s ***** test 925s x=rand; 925s y1=laguerreL(3, x); 925s p3=[-1/6 9/6 -18/6 1]; 925s y2=polyval(p3,x); 925s assert(y1 - y2, 0, 20*eps); 925s ***** test 925s x=rand; 925s y1=laguerreL(4, x); 925s p4=[1/24 -16/24 72/24 -96/24 1]; 925s y2=polyval(p4,x); 925s assert(y1 - y2, 0, 30*eps) 925s ***** error laguerreL(1.5, 10) 925s ***** error laguerreL([0 1], [1 2 3]) 925s ***** error laguerreL([0 1], [1; 2]) 925s ***** test 925s % numerically stable implementation (in n) 925s L = laguerreL (10, 10); 925s Lex = 1763/63; 925s assert (L, Lex, -eps) 925s L = laguerreL (20, 10); 925s Lex = -177616901779/14849255421; % e.g., laguerreL(sym(20),10) 925s assert (L, Lex, -eps) 925s ***** test 925s % vectorized x 925s L = laguerreL (2, [5 6 7]); 925s Lex = [3.5 7 11.5]; 925s assert (L, Lex, eps) 925s ***** test 925s L = laguerreL (0, [4 5]); 925s assert (L, [1 1], eps) 925s ***** test 925s % vector n 925s L = laguerreL ([0 1 2 3], [4 5 6 9]); 925s assert (L, [1 -4 7 -26], eps) 925s ***** test 925s % vector n, scalar x 925s L = laguerreL ([0 1 2 3], 6); 925s assert (L, [1 -5 7 1], eps) 925s ***** assert (isa (laguerreL (0, single (1)), 'single')) 925s ***** assert (isa (laguerreL (1, single ([1 2])), 'single')) 925s ***** assert (isa (laguerreL ([1 2], single ([1 2])), 'single')) 925s 18 tests, 18 passed, 0 known failure, 0 skipped 925s [inst/cell2sym.m] 925s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/cell2sym.m 925s ***** test 925s A = {1 2 3; 4 5 6}; 925s B = [1 2 3; 4 5 6]; 925s assert (isequal (cell2sym(A), sym(B))) 926s Symbolic pkg v3.1.1: Python communication link active, SymPy v1.12. 926s ***** test 926s A = {'a' 'b'; 'c' 10}; 926s B = [sym('a') sym('b'); sym('c') sym(10)]; 926s assert (isequal (cell2sym(A), B)) 926s warning: test: file /tmp/autopkgtest.Wql6nV/build.25d/src/inst/cell2sym.m leaked file descriptors 926s 2 tests, 2 passed, 0 known failure, 0 skipped 926s [inst/vpasolve.m] 926s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/vpasolve.m 926s ***** test 926s syms x 926s vpi = vpa(sym(pi), 64); 926s e = tan(x/4) == 1; 926s q = vpasolve(e, x, 3.0); 926s w = q - vpi ; 926s assert (double(w) < 1e-30) 926s ***** test 926s syms x 926s vpi = vpa(sym(pi), 64); 926s e = tan(x/4) == 1; 926s q = vpasolve(e, x); 926s w = q - vpi; 926s assert (double(w) < 1e-30) 926s q = vpasolve(e); 926s w = q - vpi; 926s assert (double(w) < 1e-30) 927s ***** test 927s % very accurate pi 927s syms x 927s e = tan(x/4) == 1; 927s m = digits(256); 927s q = vpasolve(e, x, 3); 927s assert (double(abs(sin(q))) < 1e-256) 927s digits(m); 927s ***** test 927s % very accurate sqrt 2 927s syms x 927s e = x*x == 2; 927s m = digits(256); 927s q = vpasolve(e, x, 1.5); 927s assert (double(abs(q*q - 2)) < 1e-256) 927s digits(m); 927s ***** test 927s % very accurate sqrt pi 927s % (used to fail https://github.com/sympy/sympy/issues/8564) 927s syms x 927s e = x*x == sym(pi); 927s m = digits(256); 927s q = vpasolve(e, x, 3); 927s assert (double(abs(sin(q*q))) < 1e-256) 927s digits(m); 927s ***** test 927s syms x 927s r = vpasolve(x^2 + 2 == 0, x, 1i); 927s assert (double (imag(r)^2 - 2), 0, 1e-32) 927s assert (double (real(r)^2), 0, 1e-32) 927s r = vpasolve(x^2 + 2 == 0, x, -3i + 5); 927s assert (double (imag(r)^2 - 2), 0, 1e-32) 927s assert (double (real(r)^2), 0, 1e-32) 927s ***** test 927s % system 927s syms x y 927s f = 3*x^2 - 2*y^2 - 1; 927s g = x^2 - 2*x + y^2 + 2*y - 8; 927s r = vpasolve([f; g], [x; y], sym([-1; 1])); 927s assert (isa (r, 'sym')) 927s assert (numel (r) == 2) 928s ***** test 928s % system, double guess 928s syms x y 928s f = 3*x^2 - 2*y^2 - 1; 928s g = x^2 - 2*x + y^2 + 2*y - 8; 928s r = vpasolve([f; g], [x; y], [-1.1 1.2]); 928s ***** test 928s % system, double guess 928s syms x y 928s f = 3*x^2 - 2*y^2 - 1; 928s g = x^2 - 2*x + y^2 + 2*y - 8; 928s r1 = vpasolve([f; g], [x; y], [-1.1]); 928s r2 = vpasolve([f; g], [x; y], [-1.1 -1.1]); 928s assert (isequal (r1, r2)) 928s ***** test 928s % system, more eqns than unknowns 928s syms x y 928s eqns = [x^3 - x - y == 0; y*exp(x) == 16; log(y) + x == 4*log(sym(2))]; 928s r = vpasolve (eqns, [x; y], [1; 1]); 928s A = subs (lhs (eqns), [x; y], r); 928s err = A - [0; 16; 4*log(sym(2))]; 928s assert (double (err), zeros (size (err)), 1e-31) 928s :7: SymPyDeprecationWarning: 928s 928s non-Expr objects in a Matrix is deprecated. Matrix represents 928s a mathematical matrix. To represent a container of non-numeric 928s entities, Use a list of lists, TableForm, NumPy array, or some 928s other data structure instead. 928s 928s See https://docs.sympy.org/latest/explanation/active-deprecations.html#deprecated-non-expr-in-matrix 928s for details. 928s 928s This has been deprecated since SymPy version 1.9. It 928s will be removed in a future version of SymPy. 928s 929s 10 tests, 10 passed, 0 known failure, 0 skipped 929s [inst/finiteset.m] 929s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/finiteset.m 929s ***** test 929s s1 = finiteset(sym(1), 2, 2); 929s s2 = finiteset(sym(1), 2, 2, 2); 929s assert (isequal (s1, s2)) 929s ***** test 929s s1 = finiteset(sym(0), 1); 929s s2 = finiteset(sym(0), 2, 3); 929s s = finiteset(sym(0), 1, 2, 3); 929s assert (isequal (s1 + s2, s)) 929s ***** test 929s e = finiteset(); 929s s = finiteset(sym(1)); 929s s2 = e + s; 929s assert (isequal (s, s2)) 929s 3 tests, 3 passed, 0 known failure, 0 skipped 929s [inst/eulergamma.m] 929s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/eulergamma.m 929s ***** error catalan (sym(1)) 929s ***** assert (double (eulergamma ()) > 0.577215664901) 929s ***** assert (double (eulergamma ()) < 0.577215664902) 929s 3 tests, 3 passed, 0 known failure, 0 skipped 929s [inst/heaviside.m] 929s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/heaviside.m 929s ***** assert (heaviside (0) == 0.5) 929s ***** assert (isnan (heaviside (nan))) 929s ***** assert (isequal (heaviside ([-inf -eps 0 eps inf]), [0 0 0.5 1 1])) 929s ***** assert (isequaln (heaviside ([-1 1 nan]), [0 1 nan])) 929s ***** assert (heaviside (0, 1) == 1) 929s ***** error heaviside (1i) 929s ***** assert (isa (heaviside (single (0)), 'single')) 929s 7 tests, 7 passed, 0 known failure, 0 skipped 929s [inst/octsympy_tests.m] 929s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/octsympy_tests.m 929s ***** assert(true) 929s 1 test, 1 passed, 0 known failure, 0 skipped 929s [inst/catalan.m] 929s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/catalan.m 929s ***** error catalan (sym(1)) 929s ***** assert (double (catalan ()) > 0.915965594177) 929s ***** assert (double (catalan ()) < 0.915965594178) 929s 3 tests, 3 passed, 0 known failure, 0 skipped 929s [inst/pycall_sympy__.m] 929s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/pycall_sympy__.m 929s ***** test 929s % general test 929s x = 10; y = 6; 929s cmd = '(x,y) = _ins; return (x+y,x-y)'; 929s [a,b] = pycall_sympy__ (cmd, x, y); 929s assert (a == x + y && b == x - y) 929s ***** test 929s % bool 929s assert (pycall_sympy__ ('return True,')) 929s assert (~pycall_sympy__ ('return False,')) 929s ***** test 929s % float 929s assert (abs(pycall_sympy__ ('return 1.0/3,') - 1/3) < 1e-15) 929s ***** test 929s % int 929s r = pycall_sympy__ ('return 123456'); 929s assert (r == 123456) 929s assert (isinteger (r)) 929s ***** test 929s % string 929s x = 'octave'; 929s cmd = 's = _ins[0]; return s.capitalize(),'; 929s y = pycall_sympy__ (cmd, x); 929s assert (strcmp(y, 'Octave')) 929s ***** test 929s % string with escaped newlines, comes back as escaped newlines 929s x = 'a string\nbroke off\nmy guitar\n'; 929s y = pycall_sympy__ ('return _ins', x); 929s assert (strcmp(y, x)) 929s ***** test 929s % string with actual newlines, comes back as actual newlines 929s x = sprintf('a string\nbroke off\nmy guitar\n'); 929s y = pycall_sympy__ ('return _ins', x); 929s y2 = strrep(y, sprintf('\n'), sprintf('\r\n')); % windows 929s assert (strcmp(x, y) || strcmp(x, y2)) 929s ***** test 929s % cmd string with newlines, works with cell 929s y = pycall_sympy__ ('return "string\nbroke",'); 929s y2 = sprintf('string\nbroke'); 929s y3 = strrep(y2, sprintf('\n'), sprintf('\r\n')); % windows 929s assert (strcmp(y, y2) || strcmp(y, y3)) 929s ***** test 929s % string with XML escapes 929s x = '<> >< <<>>'; 929s y = pycall_sympy__ ('return _ins', x); 929s assert (strcmp(y, x)) 929s x = '&'; 929s y = pycall_sympy__ ('return _ins', x); 929s assert (strcmp(y, x)) 929s ***** test 929s % strings with double quotes 929s x = 'a\"b\"c'; 929s y = pycall_sympy__ ('return _ins', x); 929s assert (strcmp(y, x)) 929s x = '\"'; 929s y = pycall_sympy__ ('return _ins', x); 929s assert (strcmp(y, x)) 929s ***** test 929s % cmd has double quotes, these must be escaped by user 929s % (of course: she is writing python code) 929s expy = 'a"b"c'; 929s y = pycall_sympy__ ('return "a\"b\"c",'); 929s assert (strcmp(y, expy)) 929s ***** test 929s % strings with quotes 929s x = 'a''b'; % this is a single quote 929s y = pycall_sympy__ ('return _ins', x); 929s assert (strcmp(y, x)) 929s ***** test 929s % strings with quotes 929s x = '\"a''b\"c''\"d'; 929s y = pycall_sympy__ ('return _ins[0]', x); 929s assert (strcmp(y, x)) 929s ***** test 929s % strings with quotes 929s expy = '"a''b"c''"d'; 929s y = pycall_sympy__ ('s = "\"a''b\"c''\"d"; return s'); 929s assert (strcmp(y, expy)) 929s ***** test 929s % strings with printf escapes 929s x = '% %% %%% %%%% %s %g %%s'; 929s y = pycall_sympy__ ('return _ins', x); 929s assert (strcmp(y, x)) 929s ***** test 929s % cmd with printf escapes 929s x = '% %% %%% %%%% %s %g %%s'; 929s y = pycall_sympy__ (['return "' x '",']); 929s assert (strcmp(y, x)) 929s ***** test 929s % cmd w/ backslash and \n must be escaped by user 929s expy = 'a\b\\c\nd\'; 929s y = pycall_sympy__ ('return "a\\b\\\\c\\nd\\",'); 929s assert (strcmp(y, expy)) 929s ***** test 929s % slashes 929s x = '/\\ // \\\\ \\/\\/\\'; 929s z = '/\ // \\ \/\/\'; 929s y = pycall_sympy__ ('return _ins', x); 929s assert (strcmp(y, x)) 929s ***** test 929s % slashes 929s z = '/\ // \\ \/\/\'; 929s y = pycall_sympy__ ('return "/\\ // \\\\ \\/\\/\\"'); 929s assert (strcmp(y, z)) 929s ***** test 929s % strings with special chars 929s x = '!@#$^&* you!'; 929s y = pycall_sympy__ ('return _ins', x); 929s assert (strcmp(y, x)) 929s x = '~-_=+[{]}|;:,.?'; 929s y = pycall_sympy__ ('return _ins', x); 929s assert (strcmp(y, x)) 929s ***** xtest 929s % string with backtick trouble for system -c (sysoneline) 929s x = '`'; 929s y = pycall_sympy__ ('return _ins', x); 929s assert (strcmp(y, x)) 929s ***** test 929s % unicode 929s s1 = '我爱你'; 929s cmd = 'return u"\u6211\u7231\u4f60",'; 929s s2 = pycall_sympy__ (cmd); 929s assert (strcmp (s1, s2)) 929s ***** test 929s % unicode with \x 929s s1 = '我'; 929s cmd = 'return b"\xe6\x88\x91".decode("utf-8")'; 929s s2 = pycall_sympy__ (cmd); 929s assert (strcmp (s1, s2)) 929s ***** test 929s % unicode with \x and some escaped backslashes 929s s1 = '\我\'; 929s cmd = 'return b"\\\xe6\x88\x91\\".decode("utf-8")'; 929s s2 = pycall_sympy__ (cmd); 929s assert (strcmp (s1, s2)) 929s ***** xtest 929s % unicode passthru 929s s = '我爱你'; 929s s2 = pycall_sympy__ ('return _ins', s); 929s assert (strcmp (s, s2)) 929s s = '我爱你<>\&//\#%% %\我'; 929s s2 = pycall_sympy__ ('return _ins', s); 929s assert (strcmp (s, s2)) 929s ***** xtest 929s % unicode w/ slashes, escapes 929s s = '我<>\&//\#%% %\我'; 929s s2 = pycall_sympy__ ('return "我<>\\&//\\#%% %\\我"'); 929s assert (strcmp (s, s2)) 929s ***** test 929s % list, tuple 929s assert (isequal (pycall_sympy__ ('return [1,2,3],'), {1, 2, 3})) 929s assert (isequal (pycall_sympy__ ('return (4,5),'), {4, 5})) 929s assert (isequal (pycall_sympy__ ('return (6,),'), {6,})) 929s assert (isequal (pycall_sympy__ ('return [],'), {})) 929s ***** test 929s % dict 929s cmd = 'd = dict(); d["a"] = 6; d["b"] = 10; return d,'; 929s d = pycall_sympy__ (cmd); 929s assert (d.a == 6 && d.b == 10) 929s ***** test 929s r = pycall_sympy__ ('return 6'); 929s assert (isequal (r, 6)) 929s ***** test 929s r = pycall_sympy__ ('return "Hi"'); 929s assert (strcmp (r, 'Hi')) 929s ***** test 929s % blank lines, lines with spaces 929s a = pycall_sympy__ ({ '', '', ' ', 'return 6', ' ', ''}); 929s assert (isequal (a, 6)) 929s ***** test 929s % blank lines, strange comment lines 929s cmd = {'a = 1', '', '#', '', '# ', ' #', 'a = a + 2', ' #', 'return a'}; 929s a = pycall_sympy__ (cmd); 929s assert (isequal (a, 3)) 929s ***** test 929s % return empty string (was https://bugs.python.org/issue25270) 929s assert (isempty (pycall_sympy__ ('return ""'))) 929s ***** test 929s % return nothing (via an empty list) 929s % note distinct from 'return [],' 929s pycall_sympy__ ('return []') 929s ***** test 929s % return nothing (because no return command) 929s pycall_sympy__ ('dummy = 1') 929s ***** test 929s % return nothing (because no command) 929s pycall_sympy__ ('') 929s ***** test 929s % return nothing (because no command) 929s pycall_sympy__ ({}) 929s ***** error 929s % python exception while passing variables to python 929s % This tests the "INTERNAL_PYTHON_ERROR" path. 929s % FIXME: this is a very specialized test, relies on internal octsympy 929s % implementation details, and may need to be adjusted for changes. 929s disp('') 929s disp('**********************************************************************') 929s disp('') 929s disp(' Some deliberate AttributeError and ValueError may appear next') 929s disp('') 929s disp('v v v v v v v v v v v v v v v v v v v v v v v v') 929s b = sym([], 'S.This_is_supposed_to_make_an_exception', [1 1], 'Test', 'Test', 'Test'); 929s c = b + 1; 929s 929s ********************************************************************** 929s 929s Some deliberate AttributeError and ValueError may appear next 929s 929s v v v v v v v v v v v v v v v v v v v v v v v v 929s Traceback (most recent call last): 929s File "", line 4, in 929s File "/usr/lib/python3/dist-packages/sympy/core/singleton.py", line 118, in __getattr__ 929s raise AttributeError( 929s AttributeError: Attribute 'This_is_supposed_to_make_an_exception' was not installed on SymPy registry S 929s ***** test 929s % ...and after the above test, the pipe should still work 929s a = pycall_sympy__ ('return _ins[0]*2', 3); 929s assert (isequal (a, 6)) 929s ***** test 929s % This command does not fail with native interface and '@pyobject' 929s s = warning ('off', 'OctSymPy:pythonic_no_convert'); 929s try 929s q = pycall_sympy__ ({'return type(int)'}); 929s catch 929s msg = lasterror.message; 929s assert (~ isempty (regexp (msg, '.*does not know how to.*'))) 929s end 929s warning (s) 929s disp('^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^') 929s disp(' End of deliberate errors!') 929s disp(' You should see "46/46" or "Passes 46 out of 46 tests" below') 929s disp('**********************************************************************') 929s % ...and after the above test, the pipe should still work 929s a = pycall_sympy__ ('return _ins[0]*2', 3); 929s assert (isequal (a, 6)) 929s Traceback (most recent call last): 929s File "", line 2, in 929s File "", line 12, in octoutput_drv 929s File "", line 96, in octoutput 929s ValueError: octoutput does not know how to export type 929s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 929s End of deliberate errors! 929s You should see "46/46" or "Passes 46 out of 46 tests" below 929s ********************************************************************** 929s ***** test 929s % complex input 929s [A, B] = pycall_sympy__ ('z = 2*_ins[0]; return (z.real,z.imag)', 3+4i); 929s assert (A, 6) 929s assert (B, 8) 929s ***** test 929s % complex output 929s z = pycall_sympy__ ('return 3+2j'); 929s assert (z, 3+2i) 929s ***** error 929s s = char ('abc', 'defgh', '12345'); 929s r = pycall_sympy__ ('return _ins[0]', s); 929s ***** test 929s r = pycall_sympy__ ('return len(_ins[0])', ''); 929s assert (r == 0) 929s ***** test 929s % ensure the 0x0 matrix in octave gets mapped to the empty list in python 929s % @sym/subsasgn currently replies on this behaviour 929s assert (pycall_sympy__ ('return _ins[0] == []', [])); 929s ***** test 929s % ensure the empty string gets mapped to the empty string in python 929s assert (pycall_sympy__ ('return _ins[0] == ""', '')); 929s 46 tests, 46 passed, 0 known failure, 0 skipped 929s [inst/digits.m] 929s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/digits.m 929s ***** test 929s orig = digits(32); % to reset later 929s m = digits(64); 929s p = vpa(sym(pi)); 929s assert (abs (double (sin(p))) < 1e-64) 929s n = digits(m); 929s assert (n == 64) 929s p = vpa(sym(pi)); 929s assert (abs (double (sin(p))) < 1e-32) 929s assert (abs (double (sin(p))) > 1e-40) 929s digits(orig) 929s 1 test, 1 passed, 0 known failure, 0 skipped 929s [inst/vpa.m] 929s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/vpa.m 929s ***** test 929s a = vpa(0, 4); 929s b = double(a); 929s assert(b == 0) 929s ***** test 929s a = vpa(pi, 4); 929s b = sin(a); 929s assert(abs(double(b)) < 1e-4) 929s ***** test 929s % vpa from double is ok, doesn't warn (c.f., sym(2.3)) 929s a = vpa(2.3); 929s assert(true) 929s ***** test 929s % vpa from double not more than 16 digits 929s a = vpa(sqrt(pi), 32); 929s b = sin(a^2); 929s assert(abs(double(b)) > 1e-20) 929s assert(abs(double(b)) < 1e-15) 929s ***** test 929s a = vpa(sym(pi), 32); 929s b = sin(a); 929s assert(abs(double(b)) < 1e-30) 929s ***** test 929s a = vpa(sym(pi), 256); 929s b = sin(a); 929s assert(abs(double(b)) < 1e-256) 929s ***** test 929s % pi str 929s a = vpa('pi', 32); 929s b = sin(a); 929s assert(abs(double(b)) < 1e-32) 929s ***** test 929s % pi str 929s a = vpa('pi', 32); 929s b = vpa(sym('pi'), 32); 929s assert (double (a - b) == 0) 930s ***** test 930s spi = sym(pi); 930s a = vpa(spi, 10); 930s b = double(a); 930s assert(~isAlways(spi == a)) 930s ***** test 930s % matrix of sym 930s a = [sym(pi) 0; sym(1)/2 1]; 930s b = [pi 0; 0.5 1]; 930s c = vpa(a, 6); 930s assert(max(max(abs(double(c)-b))) < 1e-6) 930s ***** test 930s % matrix of double 930s b = [pi 0; 0.5 1]; 930s c = vpa(b, 6); 930s assert(max(max(abs(double(c)-b))) < 1e-6) 930s ***** test 930s % integer type 930s a = vpa(int32(6), 64); 930s b = vpa(6, 64); 930s assert (isequal (a, b)) 930s ***** test 930s % matrix of int 930s b = int32([pi 0; 6.25 1]); 930s c = vpa(b, 6); 930s assert (isequal (double(c), [3 0; 6 1])) 930s ***** test 930s % can pass pi directly to vpa 930s a = vpa(sym(pi), 128); 930s b = vpa(pi, 128); 930s assert (isequal (a, b)) 930s ***** test 930s % if sym does sth special for e so should vpa 930s a = vpa(sym(exp(1)), 64); 930s b = vpa(exp(1), 64); 930s assert (isequal (a, b)) 930s ***** test 930s % can pass pi directly to vpa, even in array 930s a = vpa(sym([2 pi]), 128); 930s b = vpa([2 pi], 128); 930s assert (isequal (a, b)) 930s ***** test 930s % can pass i directly to vpa 930s a = vpa(sym(i)); 930s b = vpa(i); 930s ***** test 930s % 'i' and 'I' just make vars 930s a = vpa(sym(1i)); 930s b = vpa('i'); 930s c = vpa('I'); 930s assert (~isequal (a, b)) 930s assert (~isequal (a, c)) 930s ***** test 930s % '1i' and '1j' strings 930s a = vpa(sym(1i)); 930s b = vpa('1i'); 930s c = vpa('1j'); 930s assert (isequal (a, b)) 930s assert (isequal (a, c)) 930s ***** test 930s % Issue #868, precision loss on '0.33j' 930s a = vpa('0.33j', 40); 930s b = vpa('0.33i', 40); 930s assert (double (abs (imag (a)*100/33) - 1) < 1e-39) 930s assert (isequal (a, b)) 931s ***** test 931s % inf/-inf do not become symbol('inf') 931s S = {'oo', '-oo', 'inf', 'Inf', '-inf', '+inf'}; 931s for j = 1:length(S) 931s a = vpa(S{j}); 931s b = vpa(sym(S{j})); 931s assert (isequal (a, b)) 931s end 931s ***** test 931s a = vpa('2.3', 20); 931s s = strtrim(disp(a, 'flat')); 931s assert (strcmp (s, '2.3000000000000000000')) 931s ***** test 931s % these should *not* be the same 931s a = vpa(2.3, 40); 931s b = vpa('2.3', 40); 931s sa = sympy (a); 931s sb = sympy (b); 931s assert (~isequal (a, b)) 931s assert (abs(double(a - b)) > 1e-20) 931s assert (abs(double(a - b)) < 1e-15) 931s assert (~strcmp(sa, sb)) 931s ***** test 931s % these should *not* be the same 931s x = vpa('1/3', 32); 931s y = vpa(sym(1)/3, 32); 931s z = vpa(1/3, 32); 931s assert (isequal (x, y)) 931s assert (~isequal (x, z)) 931s ***** test 931s % big integers 931s a = int64(12345678); 931s a = a*a; 931s b = vpa(a); 931s c = vpa('152415765279684'); 931s assert (isequal (b, c)) 931s ***** test 931s % big integers (workaround poor num2str, works in 4.0?) 931s a = int64(1234567891); a = a*a; 931s b = vpa(a); 931s c = vpa('1524157877488187881'); 931s assert (isequal (b, c)) 931s ***** warning vpa ('sqrt(2.0)'); 931s ***** warning 931s if (pycall_sympy__ ('return Version(spver) > Version("1.4")')) 931s a = vpa('2**0.5'); 931s b = vpa(sqrt(sym(2))); 931s assert (isequal (a, b)) 931s else 931s warning('dangerous') % fake it until we drop 1.4 931s end 931s ***** test 931s a = vpa('2.3e1'); 931s b = vpa(' 2.3e+1 '); 931s assert (isequal (a, b)) 931s a = vpa('21e-1'); 931s b = vpa('2.1'); 931s assert (isequal (a, b)) 931s ***** test 931s % Issue #859, operations on immutable matrices 931s x = vpa (sym ([1 2])); 931s % If vpa no longer makes an ImmutableDenseMatrix, 931s % may need to adjust or remove this test. 931s assert (~ isempty (strfind (sympy (x), 'Immutable'))) 931s y = sin(x); 931s y2 = [sin(vpa(sym(1))) sin(vpa(sym(2)))]; 931s assert (isequal (y, y2)) 931s 30 tests, 30 passed, 0 known failure, 0 skipped 931s [inst/assumptions.m] 931s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/assumptions.m 931s ***** test 931s syms x 931s assert(isempty(assumptions(x))) 931s ***** test 931s x = sym('x', 'positive'); 931s a = assumptions(x); 931s assert(~isempty(strfind(a{1}, 'positive'))) 931s ***** test 931s syms x 931s assert(isempty(assumptions(x))) 931s ***** test 931s clear variables % for matlab test script 931s syms x positive 931s assert(~isempty(assumptions())) 931s clear x 931s assert(isempty(assumptions())) 931s ***** test 931s % make sure we have at least these possible assumptions 931s A = {'real' 'positive' 'negative' 'integer' 'even' 'odd' 'rational'}; 931s B = assumptions('possible'); 931s assert (isempty (setdiff(A, B))) 931s ***** test 931s A = assumptions('possible'); 931s for i = 1:length(A) 931s x = sym('x', A{i}); 931s a = assumptions(x); 931s assert(strcmp(a{1}, ['x: ' A{i}] )) 931s s1 = sympy (x); 931s s2 = ['Symbol(''x'', ' A{i} '=True)']; 931s assert (strcmp (s1, s2)) 931s end 932s ***** test 932s syms x positive 932s syms y real 932s syms z 932s f = x*y*z; 932s a = assumptions(f); 932s assert(length(a) == 2) 932s assert(~isempty(strfind(a{1}, 'positive'))) 932s assert(~isempty(strfind(a{2}, 'real'))) 932s ***** test 932s % dict output 932s syms x positive 932s syms y real 932s syms z 932s f = x*y*z; 932s [v, d] = assumptions(f, 'dict'); 932s assert(length(v) == 2) 932s assert(iscell(v)) 932s assert(isa(v{1}, 'sym')) 932s assert(isa(v{2}, 'sym')) 932s assert(length(d) == 2) 932s assert(iscell(d)) 932s assert(isstruct(d{1})) 932s assert(isstruct(d{2})) 932s ***** test 932s %% assumptions on just the vars in an expression 932s clear variables % for matlab test script 932s syms x y positive 932s f = 2*x; 932s assert(length(assumptions(f))==1) 932s assert(length(assumptions())==2) 932s ***** test 932s %% assumptions in cell/struct 932s clear variables % for matlab test script 932s syms x y z w positive 932s f = {2*x [1 2 y] {1, {z}}}; 932s assert(length(assumptions())==4) 932s assert(length(assumptions(f))==3) 932s clear x y z w 932s assert(length(assumptions())==3) 932s assert(length(assumptions(f))==3) 933s ***** test 933s % multiple assumptions 933s n = sym('n', 'negative', 'even'); 933s assert (logical (n < 0)) 933s assert (~(logical (n > 0))) 933s assert (~(logical (n == -1))) 933s ***** test 933s % multiple assumptions: eqn neither true nor false 933s n = sym('n', 'negative', 'even'); 933s assert (~isequal (n, sym(true)) && ~isequal (n, sym(false))) 933s ***** test 933s %% TODO: rewrite later with https://github.com/cbm755/octsympy/issues/622 933s a = pycall_sympy__ ('return Symbol("a", real=False)'); 933s assert (strcmp (assumptions (a), {'a: ~real'})) 933s 13 tests, 13 passed, 0 known failure, 0 skipped 933s [inst/@double/sinhint.m] 933s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@double/sinhint.m 933s ***** error sinhint (1, 2) 933s ***** test 933s x = 1.1; 933s y = sym(11)/10; 933s A = sinhint (x); 933s B = double (sinhint (y)); 933s assert (A, B, -4*eps); 933s ***** test 933s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 933s x = double (y); 933s A = sinhint (x); 933s B = double (sinhint (y)); 933s assert (A, B, -4*eps); 933s ***** test 933s % maple: 933s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 933s % > for a in A do evalf(Shi(a)) end do; 933s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 933s A = [ 0.45769171128668800567 + 1.8332099215048436239*1i 933s 0.60888490416819746440 + 1.2482232175376056201*1i 933s 0.13577763724269399110e42 933s 1.6583475942188740493*1i 933s -0.00010000000005553888891 + 0.10000000016666111119e-5*1i 933s -0.74701205140887967022e7 - 0.10381447401236722090e8*1i ]; 933s B = sinhint (x); 933s assert (A, B, -eps) 933s ***** assert (sinhint (inf), inf) 933s ***** assert (sinhint (-inf), -inf) 933s 6 tests, 6 passed, 0 known failure, 0 skipped 933s [inst/@double/polylog.m] 933s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@double/polylog.m 933s ***** error polylog (1) 934s ***** error polylog (1, 2, 3) 934s ***** error polylog ([1 2], [1 2 3]) 934s ***** error polylog ([1 2], [1; 2]) 934s ***** test 934s y = sym(11)/10; 934s t = sym(2); 934s x = 1.1; 934s s = 2; 934s A = polylog (s, x); 934s B = double (polylog (t, y)); 934s assert (A, B, -eps); 934s ***** test 934s % maple 934s A = 2.3201804233130983964 - 3.4513922952232026614*1i; 934s B = polylog (2, 3); 934s assert (A, B, -eps) 934s ***** test 934s % maple, complex inputs 934s A = -11.381456201167411758 + 6.2696695219721651947*1i; 934s B = polylog (1+2i, 3+4i); 934s assert (A, B, -eps); 934s ***** test 934s % maple, matrix inputs 934s A1 = 0.47961557317612748431 - 0.52788287823025778869*1i; 934s A2 = -0.0049750526563452645369 - 0.024579343612396884851*1i; 934s B = polylog ([-1-2i -3], [30+40i 40i]); 934s assert ([A1 A2], B, -eps); 934s ***** test 934s % x matrix, s scalar 934s y = [1 2 sym(pi); exp(sym(1)) 5 6]; 934s t = sym(2); 934s x = double (y); 934s s = 2; 934s A = polylog (s, x); 934s B = double (polylog (t, y)); 934s assert (A, B, -eps); 934s ***** test 934s % s matrix, x scalar 934s t = [1 2 sym(pi); exp(sym(1)) 5 6]; 934s y = sym(2); 934s s = double (t); 934s x = 2; 934s A = polylog (s, x); 934s B = double (polylog (t, y)); 934s assert (A, B, -eps); 935s 10 tests, 10 passed, 0 known failure, 0 skipped 935s [inst/@double/adjoint.m] 935s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@double/adjoint.m 935s ***** test 935s M = [1 2; 3 4]; 935s A = [4 -2; -3 1]; 935s assert (isequal (adjoint (M), A)); 935s ***** test 935s assert (isequal (adjoint (42), 1)); 935s 2 tests, 2 passed, 0 known failure, 0 skipped 935s [inst/@double/chebyshevT.m] 935s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@double/chebyshevT.m 935s ***** error chebyshevT (1) 935s ***** error chebyshevT (1, 2, 3) 935s ***** error chebyshevT ([1 2], [1 2 3]) 935s ***** error chebyshevT ([1 2], [1; 2]) 935s ***** test 935s y = sym(11)/10; 935s t = sym(2); 935s x = 1.1; 935s s = 2; 935s A = chebyshevT (s, x); 935s B = double (chebyshevT (t, y)); 935s assert (A, B, -2*eps); 935s ***** test 935s % maple 935s A = -0.304681164165948269030369; 935s B = chebyshevT (18.1, 0.9); 935s assert (A, B, -10*eps) 935s ***** test 935s % maple, complex inputs 935s % ChebyshevT(12.1+3.1*I, 0.5+0.2*I); 935s A = 0.637229289490379273451 - 0.475324703778957991318*1i; 935s B = chebyshevT (12.1+3.1*i, 0.5+0.2i); 935s assert (A, B, -5*eps); 935s ***** test 935s % maple, matrix inputs 935s A = [0.59523064198266880000 0.57727442996887552000]; 935s B = chebyshevT ([16 17], [0.9 0.7]); 935s assert (A, B, -10*eps); 935s ***** test 935s % x matrix, s scalar 935s y = [1 2 sym(pi); exp(sym(1)) 5 6]; 935s t = sym(2); 935s x = double (y); 935s s = 2; 935s A = chebyshevT (s, x); 935s B = double (chebyshevT (t, y)); 935s assert (A, B, -eps); 936s ***** test 936s % s matrix, x scalar 936s t = [1 2 sym(pi); exp(sym(1)) 5 6]; 936s y = sym(2); 936s s = double (t); 936s x = 2; 936s A = chebyshevT (s, x); 936s B = double (chebyshevT (t, y)); 936s assert (A, B, -eps); 936s ***** xtest 936s % https://github.com/fredrik-johansson/mpmath/issues/469 936s assert (chebyshevT (4, inf), inf) 936s assert (chebyshevT (4, -inf), inf) 936s assert (chebyshevT (3, inf), inf) 936s assert (chebyshevT (3, -inf), -inf) 936s !!!!! known failure 936s ASSERT errors for: assert (chebyshevT (4, inf),inf) 936s 936s Location | Observed | Expected | Reason 936s () 1 Inf 'Inf' mismatch 936s 11 tests, 10 passed, 1 known failure, 0 skipped 936s [inst/@double/sinint.m] 936s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@double/sinint.m 936s ***** error sinint (1, 2) 936s ***** test 936s x = 1.1; 936s y = sym(11)/10; 936s A = sinint (x); 936s B = double (sinint (y)); 936s assert (A, B, -4*eps); 936s ***** test 936s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 936s x = double (y); 936s A = sinint (x); 936s B = double (sinint (y)); 936s assert (A, B, -4*eps); 937s ***** assert (sinint (0), 0) 937s ***** assert (sinint (inf), pi/2) 937s ***** assert (sinint (-inf), -pi/2) 937s ***** assert (sinint (1), 0.9460830703671830149414, -2*eps) 937s ***** assert (sinint (-1), -0.9460830703671830149414, -2*eps) 937s ***** assert (sinint (pi), 1.851937051982466170361, -2*eps) 937s ***** assert (sinint (-pi), -1.851937051982466170361, -2*eps) 937s ***** assert (sinint (300), 1.5708810882137495193, -2*eps) 937s ***** assert (sinint (1e4), 1.5708915453859619157, -2*eps) 937s ***** assert (sinint (20i), 1.2807826332028294459e7*1i, -2*eps) 937s ***** test 937s % maple: 937s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 937s % > for a in A do evalf(Si(a)) end do; 937s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 937s A = [ 1.6782404878293681180 + 2.0396845546022061045*1i 937s -18.154174221650281533 + 1.6146414539230479060*1i 937s 1.5622254668890562934 937s 1246.1144901994233444*1i 937s -0.000099999999944461111128 + 0.99999999833338888972e-6*1i 937s -1.5386156269726011209 - 0.053969388020443786229*1i ]; 937s B = sinint (x); 937s assert (A, B, -eps) 937s 14 tests, 14 passed, 0 known failure, 0 skipped 937s [inst/@double/chebyshevU.m] 937s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@double/chebyshevU.m 937s ***** error chebyshevU (1) 937s ***** error chebyshevU (1, 2, 3) 937s ***** error chebyshevU ([1 2], [1 2 3]) 937s ***** error chebyshevU ([1 2], [1; 2]) 937s ***** test 937s y = sym(11)/10; 937s t = sym(2); 937s x = 1.1; 937s s = 2; 937s A = chebyshevU (s, x); 937s B = double (chebyshevU (t, y)); 937s assert (A, B, -2*eps); 937s ***** test 937s % maple 937s A = 1.661891066691338157; 937s B = chebyshevU (18.1, 0.9); 937s assert (A, B, -3*eps) 937s ***** test 937s % maple, complex inputs> 937s % ChebyshevU(12.1+3.1*I, 0.5+0.2*I); 937s A = 1.046959313670290818 - 0.03386773634958834846*1i; 937s B = chebyshevU (12.1+3.1*i, 0.5+0.2i); 937s assert (A, B, -3*eps); 937s ***** test 937s % maple, matrix inputs 937s A = [2.2543638828875776000 -1.3872651600553574400]; 937s B = chebyshevU ([16 17], [0.9 0.8]); 937s assert (A, B, -10*eps); 937s ***** test 937s % x matrix, s scalar 937s y = [1 2 sym(pi); exp(sym(1)) 5 6]; 937s t = sym(2); 937s x = double (y); 937s s = 2; 937s A = chebyshevU (s, x); 937s B = double (chebyshevU (t, y)); 937s assert (A, B, -eps); 937s ***** test 937s % s matrix, x scalar 937s t = [1 2 sym(pi); exp(sym(1)) 5 6]; 937s y = sym(2); 937s s = double (t); 937s x = 2; 937s A = chebyshevU (s, x); 937s B = double (chebyshevU (t, y)); 937s assert (A, B, -2*eps); 938s ***** xtest 938s % https://github.com/fredrik-johansson/mpmath/issues/469 938s assert (chebyshevU (4, inf), inf) 938s assert (chebyshevU (4, -inf), inf) 938s assert (chebyshevU (3, inf), inf) 938s assert (chebyshevU (3, -inf), -inf) 938s !!!!! known failure 938s ASSERT errors for: assert (chebyshevU (4, inf),inf) 938s 938s Location | Observed | Expected | Reason 938s () 5 Inf 'Inf' mismatch 938s 11 tests, 10 passed, 1 known failure, 0 skipped 938s [inst/@double/fresnelc.m] 938s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@double/fresnelc.m 938s ***** error fresnelc (1, 2) 938s ***** test 938s x = 1.1; 938s y = sym(11)/10; 938s A = fresnelc (x); 938s B = double (fresnelc (y)); 938s assert (A, B, -4*eps); 938s ***** test 938s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 938s x = double (y); 938s A = fresnelc (x); 938s B = double (fresnelc (y)); 938s assert (A, B, -4*eps); 938s ***** test 938s % maple: 938s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 938s % > for a in A do evalf(FresnelC(a)) end do; 938s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 938s A = [ 16.087871374125480424 - 36.225687992881650217*1i 938s 0.47688568479874574722e12 + 0.12213736710985573216e13*1i 938s 0.49999989867881789756 938s 0.49989869420551572361*1i 938s -0.000099999999999999997535 + 0.99999999999999987665e-6*1i 938s 0.15391592966931193100e26 - 0.75738824160998910388e24*1i ]; 938s B = fresnelc (x); 938s assert (A, B, -eps) 938s ***** assert (fresnelc (inf), 0.5) 938s ***** assert (fresnelc (-inf), -0.5) 938s 6 tests, 6 passed, 0 known failure, 0 skipped 938s [inst/@double/dilog.m] 938s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@double/dilog.m 938s ***** test 938s x = 1.1; 938s y = sym(11)/10; 938s A = dilog (x); 938s B = double (dilog (y)); 938s assert (A, B, -4*eps); 938s ***** test 938s y = [2 2 sym(pi); exp(sym(1)) 5 6]; 938s x = double (y); 938s A = dilog (x); 938s B = double (dilog (y)); 938s assert (A, B, -eps); 939s ***** test 939s % maple: 939s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 939s % > for a in A do evalf(dilog(a)) end do; 939s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 939s A = [ -0.59248494924959145800 - 1.5760154034463234224*1i 939s -1.0549087538833908441 - 3.8759788000863368495*1i 939s -12.192421669033171348 939s -2.9195729380904939394 - 3.9540920181102973073*1i 939s 1.6459519160623984119 - 0.00032335296277550987686*1i 939s -1.5445800511775466879 + 9.4256034277816069684*1i ]; 939s B = dilog (x); 939s assert (A, B, -eps) 939s ***** xtest 939s % https://github.com/fredrik-johansson/mpmath/issues/473 939s assert (isinf (dilog (inf))) 939s !!!!! known failure 939s assert (isinf (dilog (inf))) failed 939s ***** assert (isnan (dilog (-inf))) 939s 5 tests, 4 passed, 1 known failure, 0 skipped 939s [inst/@double/bernoulli.m] 939s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@double/bernoulli.m 939s ***** error bernoulli (1, 2, 3) 939s ***** error bernoulli ([1 2], [1 2 3]) 939s ***** error bernoulli ([1 2], [1; 2]) 939s ***** assert (bernoulli (0), 1) 939s ***** assert (bernoulli (3), 0) 939s ***** test 939s % two different definitions in literature 939s assert (abs (bernoulli (1)), 0.5, -eps) 939s ***** xtest 939s % we want to use B_1 = 1/2, possible with a version-specific filter 939s assert (bernoulli (1), 0.5, -eps) 939s !!!!! known failure 939s ASSERT errors for: assert (bernoulli (1),0.5,-eps) 939s 939s Location | Observed | Expected | Reason 939s () -0.5 0.5 Rel err 2 exceeds tol 2.2204e-16 by 2 939s ***** test 939s n = sym(88); 939s m = 88; 939s A = bernoulli (m); 939s B = double (bernoulli (n)); 939s assert (A, B, -eps); 939s ***** test 939s m = [0 2; 3 4]; 939s n = sym(m); 939s A = bernoulli (m); 939s B = double (bernoulli (n)); 939s assert (isequal (A, B)); 939s ***** test 939s y = sym(19)/10; 939s n = sym(2); 939s x = 1.9; 939s m = 2; 939s A = bernoulli (m, x); 939s B = double (bernoulli (n, y)); 939s assert (A, B, -eps); 939s ***** test 939s assert (isequal (bernoulli (4, inf), inf)) 939s assert (isequal (bernoulli (4, -inf), inf)) 939s ***** xtest 939s % still broken? 939s assert (isequal (bernoulli (3, inf), inf)) 939s assert (isequal (bernoulli (3, -inf), -inf)) 939s ***** test 939s assert (isnan (bernoulli(3, nan))) 939s assert (isnumeric (bernoulli(3, nan))) 939s ***** test 939s % maple, complex input 939s A = 34.21957245745810513 - 130.0046256649829101i; 939s B = bernoulli(7, 2.123 + 1.234i); 939s assert (A, B, -5*eps); 939s ***** test 939s % x matrix, m scalar 939s y = [1 2 sym(pi); exp(sym(1)) 5 6]; 939s n = sym(2); 939s x = double (y); 939s m = 2; 939s A = bernoulli (m, x); 939s B = double (bernoulli (n, y)); 939s assert (A, B, -eps); 940s ***** test 940s % m matrix, x scalar 940s m = [1 2 3; 4 5 6]; 940s n = sym(m); 940s y = sym(21)/10; 940s x = 2.1; 940s A = bernoulli (m, x); 940s B = double (bernoulli (n, y)); 940s assert (A, B, -3*eps); 940s 16 tests, 15 passed, 1 known failure, 0 skipped 940s [inst/@double/logint.m] 940s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@double/logint.m 940s ***** error logint (1, 2) 940s ***** test 940s x = 1.1; 940s y = sym(11)/10; 940s A = logint (x); 940s B = double (logint (y)); 940s assert (A, B, -4*eps); 940s ***** test 940s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 940s x = double (y); 940s A = logint (x); 940s B = double (logint (y)); 940s assert (A, B, -4*eps); 940s ***** test 940s % maple: 940s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 940s % > for a in A do evalf(Li(a)) end do; 940s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 940s A = [ 1.3876787420229375511 + 2.5087546988592328752*1i 940s 1.6987684473874802274 + 4.5936366057115204667*1i 940s 30.126141584079629926 940s 3.4936715673748995398 + 5.5260023797127391973*1i 940s 0.90264689772681592152e-5 + 3.1415953634267361942*1i 940s -2.3996350854560916779 - 7.6971739096353664559*1i ]; 940s B = logint (x); 940s assert (A, B, -eps) 940s ***** assert (logint (inf), inf) 940s ***** assert (isnan (logint (-inf))) 940s 6 tests, 6 passed, 0 known failure, 0 skipped 940s [inst/@double/zeta.m] 940s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@double/zeta.m 940s ***** error zeta (1, 2, 3) 940s ***** assert (isnan (zeta (nan))) 940s ***** test 940s x = 1.1; 940s y = sym(11)/10; 940s A = zeta (x); 940s B = double (zeta (y)); 940s assert (A, B, -4*eps); 940s ***** test 940s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 940s x = double (y); 940s A = zeta (x); 940s B = double (zeta (y)); 940s assert (A, B, -4*eps); 941s ***** test 941s % maple: 941s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 941s % > for a in A do evalf(Zeta(a)) end do; 941s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 941s A = [ 0.59816556976238173670 - 0.35185474521784529050*1i 941s 0.21425967567391921717 + 0.52503846985036050707*1i 941s 1.0 941s 1.7564685929749629608 - 0.10151198543617116894*1i 941s -0.49990811617645824900 - 0.91873792757763831501e-6*1i 941s 175.09070083717643866 - 71.512541417467273425*1i ]; 941s B = zeta (x); 941s assert (A, B, -eps) 941s ***** assert (zeta (inf), 1.0) 941s 6 tests, 6 passed, 0 known failure, 0 skipped 941s [inst/@double/coshint.m] 941s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@double/coshint.m 941s ***** error coshint (1, 2) 941s ***** test 941s x = 1.1; 941s y = sym(11)/10; 941s A = coshint (x); 941s B = double (coshint (y)); 941s assert (A, B, -4*eps); 941s ***** test 941s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 941s x = double (y); 941s A = coshint (x); 941s B = double (coshint (y)); 941s assert (A, B, -4*eps); 941s ***** test 941s % maple: 941s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 941s % > for a in A do evalf(Chi(a)) end do; 941s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 941s A = [ 0.58447599687824767874 + 1.8682915044330306402*1i 941s -0.63131069034703116988 + 1.8986171211850702957*1i 941s 0.13577763724269399110e42 941s -0.045456433004455372635 + 1.5707963267948966192*1i 941s -8.6330747070747332203 + 3.1315929868531280002*1i 941s 0.74701205140887966531e7 + 0.10381444259644068585e8*1i ]; 941s B = coshint (x); 941s assert (A, B, -eps) 941s ***** assert (coshint (inf), inf) 941s ***** assert (isinf (coshint (-inf))) 941s ***** assert (imag (coshint (-inf)), pi) 941s 7 tests, 7 passed, 0 known failure, 0 skipped 941s [inst/@double/pochhammer.m] 941s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@double/pochhammer.m 941s ***** error pochhammer (1) 942s ***** error pochhammer (1, 2, 3) 942s ***** error pochhammer ([1 2], [1 2 3]) 942s ***** error pochhammer ([1 2], [1; 2]) 942s ***** test 942s y = sym(11)/10; 942s t = sym(3); 942s x = 1.1; 942s s = 3; 942s A = pochhammer (x, s); 942s B = double (pochhammer (y, t)); 942s assert (A, B, -2*eps); 942s ***** test 942s % maple 942s A = 256.798558090310131720; 942s B = pochhammer (18.1, 1.9); 942s assert (A, B, -20*eps) 942s ***** test 942s % maple, complex inputs> 942s A = 2.67921619474318221972 + 1.96716724764630702653*1i; 942s B = pochhammer (12.1+3.1*i, 0.5+0.2i); 942s assert (A, B, -4*eps); 942s ***** test 942s % maple, matrix inputs 942s A = [5.61467232547723663908 20.6144884613920190965]; 942s B = pochhammer ([0.9 0.8], [3.1 4.2]); 942s assert (A, B, -3*eps); 942s ***** test 942s % x matrix, s scalar 942s y = [1 2 sym(pi); exp(sym(1)) 5 6]; 942s t = sym(2); 942s x = double (y); 942s s = 2; 942s A = pochhammer (s, x); 942s B = double (pochhammer (t, y)); 942s assert (A, B, -3*eps); 942s ***** test 942s % s matrix, x scalar 942s t = [1 2 sym(pi); exp(sym(1)) 5 6]; 942s y = sym(2); 942s s = double (t); 942s x = 2; 942s A = pochhammer (s, x); 942s B = double (pochhammer (t, y)); 942s assert (A, B, -5*eps); 943s 10 tests, 10 passed, 0 known failure, 0 skipped 943s [inst/@double/fresnels.m] 943s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@double/fresnels.m 943s ***** error fresnels (1, 2) 943s ***** test 943s x = 1.1; 943s y = sym(11)/10; 943s A = fresnels (x); 943s B = double (fresnels (y)); 943s assert (A, B, -4*eps); 943s ***** test 943s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 943s x = double (y); 943s A = fresnels (x); 943s B = double (fresnels (y)); 943s assert (A, B, -4*eps); 943s ***** test 943s % maple: 943s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 943s % > for a in A do evalf(FresnelS(a)) end do; 943s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 943s A = [ 36.725464883991438430 + 15.587751104404587334*1i 943s 0.12213736710980573217e13 - 0.47688568479924574726e12*1i 943s 0.49681690114783755327 943s -0.46816997858488224040*1i 943s -0.52344169596561937423e-12 + 0.15707439669173367248e-13*1i 943s 0.75738824160998910399e24 + 0.15391592966931193100e26*1i ]; 943s B = fresnels (x); 943s assert (A, B, -eps) 943s ***** assert (fresnels (inf), 0.5) 943s ***** assert (fresnels (-inf), -0.5) 943s 6 tests, 6 passed, 0 known failure, 0 skipped 943s [inst/@double/euler.m] 943s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@double/euler.m 943s ***** error euler (1, 2, 3) 943s ***** error euler ([1 2], [1 2 3]) 943s ***** error euler ([1 2], [1; 2]) 943s ***** assert (isequal (euler (0), 1)) 943s ***** assert (isequal (euler (1), 0)) 943s ***** assert (isequal (euler (10), -50521)) 943s ***** test 943s n = sym(88); 943s m = 88; 943s A = euler (m); 943s B = double (euler (n)); 943s assert (A, B, -eps); 943s ***** test 943s m = [0 1; 2 4]; 943s n = sym(m); 943s A = euler (m); 943s B = double (euler (n)); 943s assert (isequal (A, B)); 943s ***** test 943s y = sym(19)/10; 943s n = sym(2); 943s x = 1.9; 943s m = 2; 943s A = euler (m, x); 943s B = double (euler (n, y)); 943s assert (A, B, -eps); 943s ***** test 943s % correct behaviour at floating point infinity 943s assert (isequal (euler (4, inf), inf)) 943s assert (isequal (euler (4, -inf), inf)) 943s assert (isequal (euler (3, inf), inf)) 943s assert (isequal (euler (3, -inf), -inf)) 943s ***** test 943s assert (isnan (euler(3, nan))) 943s assert (isnumeric (euler(3, nan))) 943s ***** test 943s % maple, complex input 943s A = 113.33970046079423204 - 46.991080726974811540i; 943s B = euler(7, 2.12345 + 1.23i); 943s assert (A, B, -eps); 943s ***** test 943s % maple, complex input, large m, small x 943s A = 0.18034673393294025238e276 + 0.27756266681280689172e276*i; 943s B = euler (200, 0.123+0.234i); 943s assert (A, B, -eps); 943s ***** test 943s % x matrix, m scalar 943s y = [1 2 sym(pi); exp(sym(1)) 5 6]; 943s n = sym(2); 943s x = double (y); 943s m = 2; 943s A = euler (m, x); 943s B = double (euler (n, y)); 943s assert (A, B, -eps); 944s ***** test 944s % m matrix, x scalar 944s m = [1 2 3; 4 5 6]; 944s n = sym(m); 944s y = sym(21)/10; 944s x = 2.1; 944s A = euler (m, x); 944s B = double (euler (n, y)); 944s assert (A, B, -3*eps); 944s 15 tests, 15 passed, 0 known failure, 0 skipped 944s [inst/@double/cosint.m] 944s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@double/cosint.m 944s ***** error cosint (1, 2) 944s ***** test 944s x = 1.1; 944s y = sym(11)/10; 944s A = cosint (x); 944s B = double (cosint (y)); 944s assert (A, B, -4*eps); 944s ***** test 944s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 944s x = double (y); 944s A = cosint (x); 944s B = double (cosint (y)); 944s assert (A, B, -4*eps); 944s ***** test 944s % maple: 944s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 944s % > for a in A do evalf(Ci(a)) end do; 944s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 944s A = [ 2.0302963932917216378 - 0.15190715517585688438*1i 944s 1.6153896382910774851 + 19.725754055338264980*1i 944s -0.0051488251426104921444 944s 1246.1144860424544147 + 1.5707963267948966192*1i 944s -8.6330747120742332203 + 3.1315929869531280002*1i 944s 0.069822228467306149311 - 3.1184744625477294643*1i ]; 944s B = cosint (x); 944s assert (A, B, -eps) 945s ***** xtest 945s % is it nan or -inf? SymPy says zoo. 945s assert (isnan (cosint (0))) 945s !!!!! known failure 945s assert (isnan (cosint (0))) failed 945s ***** assert (cosint (inf), 0) 945s ***** assert (cosint (-inf), pi*1i, -eps) 945s ***** assert (cosint (1), 0.33740392290096813466, -eps) 945s ***** assert (cosint (-1), 0.33740392290096813466 + pi*1i, -eps) 945s ***** assert (cosint (pi), 0.073667912046425485978, -5*eps) 945s ***** assert (cosint (-pi), 0.07366791204642548597821 + pi*1i, -5*eps) 945s ***** assert (cosint (300), -3.3321999185921117800e-3, -2*eps) 945s ***** assert (cosint (1e4), -3.0551916724485212665e-5, -2*eps) 945s ***** assert (cosint (1 + 1i), 0.8821721805559363250506+0.2872491335199559395273*1i, eps) 945s ***** assert (cosint (1i), 0.8378669409802082408947 + pi/2*1i, -2*eps) 945s ***** test 945s % compare both sinint and cosint to expint 945s x = pi; 945s C1 = cosint (x); 945s S1 = sinint (x); 945s R = expint (1i*x); 945s C2 = -real (R); 945s S2 = imag (R) + pi/2; 945s assert (C1, C2, -100*eps); 945s assert (S1, S2, -100*eps); 945s 16 tests, 15 passed, 1 known failure, 0 skipped 945s [inst/@double/harmonic.m] 945s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@double/harmonic.m 945s ***** error harmonic (1, 2) 945s ***** test 945s x = 1.1; 945s y = sym(11)/10; 945s A = harmonic (x); 945s B = double (harmonic (y)); 945s assert (A, B, -4*eps); 945s ***** test 945s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 945s x = double (y); 945s A = harmonic (x); 945s B = double (harmonic (y)); 945s assert (A, B, -4*eps); 945s 3 tests, 3 passed, 0 known failure, 0 skipped 945s [inst/@sym/subsindex.m] 945s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/subsindex.m 945s ***** test 945s i = sym(1); 945s a = 7; 945s assert(a(i)==a); 945s i = sym(2); 945s a = 2:2:10; 945s assert(a(i)==4); 945s ***** test 945s i = sym([1 3 5]); 945s a = 1:10; 945s assert( isequal (a(i), [1 3 5])) 945s ***** test 945s i = sym([1 3 5]); 945s a = sym(1:10); 945s assert( isequal (a(i), sym([1 3 5]))); 945s ***** test 945s % should be an error if it doesn't convert to double 945s syms x 945s a = 1:10; 945s try 945s a(x) 945s waserr = false; 945s catch 945s waserr = true; 945s end 945s assert(waserr) 945s ***** test 945s syms x 945s assert (isequal (x(sym (true)), x)) 945s assert (isequal (x(sym (false)), sym ([]))) 946s ***** test 946s x = 6; 946s assert (isequal (x(sym (true)), 6)) 946s assert (isequal (x(sym (false)), [])) 946s ***** test 946s a = sym([10 12 14]); 946s assert (isequal (a(sym ([true false true])), a([1 3]))) 946s assert (isequal (a(sym ([false false false])), sym (ones(1,0)))) 946s ***** test 946s a = [10 11; 12 13]; 946s p = [true false; true true]; 946s assert (isequal (a(sym (p)), a(p))) 946s p = [false false false]; 946s assert (isequal (a(sym (p)), a(p))) 946s ***** error 946s a = [10 12]; 946s I = [sym(true) 2]; 946s b = a(I); 946s 9 tests, 9 passed, 0 known failure, 0 skipped 946s [inst/@sym/uplus.m] 946s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/uplus.m 946s ***** test 946s syms x 946s assert (isa (+x, 'sym')) 946s assert (isequal (+x, x)) 946s ***** test 946s A = sym([0 -1 inf]); 946s assert( isequal ( +A, A)) 946s 2 tests, 2 passed, 0 known failure, 0 skipped 946s [inst/@sym/prod.m] 946s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/prod.m 946s ***** error prod (sym(1), 2, 3) 946s ***** error prod (sym(1), 42) 946s ***** shared x,y,z 946s syms x y z 946s ***** assert (isequal (prod (x), x)) 946s ***** assert (isequal (prod ([x y z]), x*y*z)) 946s ***** assert (isequal (prod ([x; y; z]), x*y*z)) 946s ***** assert (isequal (prod ([x y z], 1), [x y z])) 946s ***** assert (isequal (prod ([x y z], 2), x*y*z)) 946s ***** shared a,b 946s b = [1 2; 3 4]; a = sym(b); 946s ***** assert (isequal (prod(a), prod(b))) 947s ***** assert (isequal (prod(a,1), prod(b,1))) 947s ***** assert (isequal (prod(a,2), prod(b,2))) 947s ***** test 947s % weird inputs 947s a = prod('xx', sym(1)); 947s assert (isequal (a, sym('xx'))) 947s 11 tests, 11 passed, 0 known failure, 0 skipped 947s [inst/@sym/hypot.m] 947s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/hypot.m 947s ***** assert (isequal (hypot (sym(3), 4), sym(5))) 947s ***** test 947s % compare to @double (note Matlab hypot only takes 2 inputs) 947s A = hypot (hypot ([1 2 3], [4 5 6]), [7 8 9]); 947s B = double (hypot (sym([1 2 3]), [4 5 6], [7 8 9])); 947s assert (A, B, -eps) 947s ***** test 947s % compare to @double, with complex 947s A = hypot ([1+2i 3+4i], [1 3+1i]); 947s B = double (hypot (sym([1+2i 3+4i]), [1 3+1i])); 947s assert (A, B, -eps) 947s ***** test 947s % matrices 947s x = sym([1 -2; 0 3]); 947s y = sym([0 0; 8 4]); 947s A = hypot (x, y); 947s B = sym([1 2; 8 5]); 947s assert (isequal (A, B)) 947s 4 tests, 4 passed, 0 known failure, 0 skipped 947s [inst/@sym/sinhint.m] 947s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/sinhint.m 947s ***** error sinhint (sym(1), 2) 947s ***** xtest 947s assert (isequaln (sinhint (sym(nan)), sym(nan))) 948s !!!!! known failure 948s assert (isequaln (sinhint (sym (nan)), sym (nan))) failed 948s ***** shared x, d 948s d = 1; 948s x = sym('1'); 948s ***** test 948s f1 = sinhint(x); 948s f2 = 1.057250875375728514572; 948s assert( abs(double(f1) - f2) < 1e-15 ) 948s ***** test 948s D = [d d; d d]; 948s A = [x x; x x]; 948s f1 = sinhint(A); 948s f2 = 1.057250875375728514572; 948s f2 = [f2 f2; f2 f2]; 948s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 948s ***** test 948s % round trip 948s y = sym('y'); 948s A = sinhint (d); 948s f = sinhint (y); 948s h = function_handle (f); 948s B = h (d); 948s assert (A, B, -eps) 948s 5 tests, 4 passed, 1 known failure, 0 skipped 948s [inst/@sym/gradient.m] 948s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/gradient.m 948s ***** shared x,y,z 948s syms x y z 948s ***** test 948s % 1D 948s f = x^2; 948s assert (isequal (gradient(f), diff(f,x))) 948s assert (isequal (gradient(f,{x}), diff(f,x))) 948s assert (isequal (gradient(f,[x]), diff(f,x))) 948s assert (isequal (gradient(f,x), diff(f,x))) 948s ***** test 948s % const 948s f = sym(1); 948s g = sym(0); 948s assert (isequal (gradient(f), g)) 948s assert (isequal (gradient(f,x), g)) 948s ***** test 948s % double const 948s f = 1; 948s g = sym(0); 948s assert (isequal (gradient(f,x), g)) 948s ***** test 948s % 1D fcn in 2d/3d 948s f = sin(y); 948s assert (isequal (gradient(f), diff(f,y))) 948s assert (isequal (gradient(f, {x,y}), [sym(0); diff(f,y)])) 948s assert (isequal (gradient(f, [x y]), [sym(0); diff(f,y)])) 948s assert (isequal (size (gradient(f, {x,y})), [2 1])) 948s assert (isequal (gradient(f, {x,y,z}), [0; diff(f,y); 0])) 948s assert (isequal (gradient(f, [x y z]), [0; diff(f,y); 0])) 948s assert (isequal (size (gradient(f, {x,y,z})), [3 1])) 948s ***** test 948s % grad is column vector 948s f = sin(y); 948s assert (isequal (size (gradient(f, {x,y})), [2 1])) 948s assert (isequal (size (gradient(f, {x,y,z})), [3 1])) 948s assert (isequal (size (gradient(f, [x y])), [2 1])) 948s assert (isequal (size (gradient(f, [x;y])), [2 1])) 948s ***** test 948s % 2d fcn in 2d/3d 948s f = sin(exp(x)*y); 948s g2 = [diff(f,x); diff(f,y)]; 948s g3 = [diff(f,x); diff(f,y); diff(f,z)]; 948s assert (isequal (gradient(f), g2)) 948s assert (isequal (gradient(f, {x,y}), g2)) 948s assert (isequal (gradient(f, {x,y,z}), g3)) 949s ***** test 949s % 2d fcn in 2d/3d 949s f = sin(exp(x)*y+sinh(z)); 949s g2 = [diff(f,x); diff(f,y)]; 949s g3 = [diff(f,x); diff(f,y); diff(f,z)]; 949s assert (isequal (gradient(f), g3)) 949s assert (isequal (gradient(f, {x,y}), g2)) 949s assert (isequal (gradient(f, {x,y,z}), g3)) 949s ***** error gradient(sym('x'), 42, 42) 949s ***** error gradient([sym('x') sym('x')]) 949s 9 tests, 9 passed, 0 known failure, 0 skipped 949s [inst/@sym/lhs.m] 949s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/lhs.m 949s ***** test 949s syms x y 949s f = x + 1 == 2*y; 949s assert (isequal (lhs(f), x + 1)) 949s assert (isequal (rhs(f), 2*y)) 949s ***** test 949s syms x y 949s f = x + 1 < 2*y; 949s assert (isequal (lhs(f), x + 1)) 949s assert (isequal (rhs(f), 2*y)) 949s ***** test 949s syms x y 949s f = x + 1 >= 2*y; 949s assert (isequal (lhs(f), x + 1)) 949s assert (isequal (rhs(f), 2*y)) 949s ***** test 949s syms x y 949s A = [x == y 2*x < 2*y; 3*x > 3*y 4*x <= 4*y; 5*x >= 5*y x < 0]; 949s L = [x 2*x; 3*x 4*x; 5*x x]; 949s R = [y 2*y; 3*y 4*y; 5*y 0]; 949s assert (isequal( lhs(A), L)) 949s assert (isequal( rhs(A), R)) 950s ***** error 950s syms x 950s lhs(x) 950s ***** error 950s lhs(sym(true)) 950s ***** error 950s syms x 950s A = [1 + x == 2*x sym(6)]; 950s lhs(A) 950s 7 tests, 7 passed, 0 known failure, 0 skipped 950s [inst/@sym/union.m] 950s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/union.m 950s ***** test 950s A = sym([1 2 3]); 950s B = sym([1 2 4]); 950s C = union(A, B); 950s D = sym([1 2 3 4]); 950s assert (isequal (C, D)) 950s ***** test 950s % one nonsym 950s A = sym([1 2 3]); 950s B = [1 2 4]; 950s C = union(A, B); 950s D = sym([1 2 3 4]); 950s assert (isequal (C, D)) 950s ***** test 950s % empty 950s A = sym([1 2 3]); 950s C = union(A, A); 950s assert (isequal(C, A)) 950s ***** test 950s % empty input 950s A = sym([1 2]); 950s C = union(A, []); 950s assert (isequal (C, sym([1 2]))) 951s ***** test 951s % scalar 951s syms x 951s assert (isequal (union([x 1], x), [1 x])) 951s assert (isequal (union(x, x), x)) 951s ***** test 951s A = interval(sym(1), 3); 951s B = interval(sym(2), 5); 951s C = union(A, B); 951s assert( isequal( C, interval(sym(1), 5))) 951s 6 tests, 6 passed, 0 known failure, 0 skipped 951s [inst/@sym/interval.m] 951s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/interval.m 951s ***** test 951s a = interval(sym(1), 2); 951s assert (isa (a, 'sym')) 951s ***** test 951s % some set subtraction 951s a = interval(sym(0), 4); 951s b = interval(sym(0), 1); 951s c = interval(sym(1), 4, true); 951s q = a - b; 951s assert (isequal( q, c)) 951s 2 tests, 2 passed, 0 known failure, 0 skipped 951s [inst/@sym/linspace.m] 951s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/linspace.m 951s ***** test 951s a = linspace(sym(3), 5, 5); 951s b = [sym(6) 7 8 9 10]/2; 951s assert (isequal (a, b)) 951s ***** test 951s % non-integers 951s A = linspace(0, sym(pi), 10); 951s assert (length (A) == 10); 951s assert (isequal (A(6), 5*sym(pi)/9)); 951s ***** test 951s % default argument for N 951s A = linspace(1, 100); 951s assert (length (A) == 100); 951s ***** test 951s % special case for just N = 1 951s A = linspace(sym(2), 3, 1); 951s assert (isequal (A, 3)) 951s A = linspace(sym(2), 3, 0); 951s assert (isequal (A, 3)) 951s A = linspace(sym(2), 3, sym(3)/2); 951s assert (isequal (A, 3)) 951s 4 tests, 4 passed, 0 known failure, 0 skipped 951s [inst/@sym/char.m] 951s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/char.m 951s ***** test 951s % issue #91: expose as string 951s a = sym(pi); 951s assert (strcmp (char (a), 'pi')) 951s ***** shared x 951s x = sym('x'); 951s ***** assert (strcmp (char (x), 'x')) 951s ***** assert (strcmp (char (2*x), '2*x')) 951s ***** assert (strcmp (char ([2*x x]), 'Matrix([[2*x, x]])')) 951s ***** assert (strcmp (char ([2*x 2; 1 x]), 'Matrix([[2*x, 2], [1, x]])')) 951s 5 tests, 5 passed, 0 known failure, 0 skipped 951s [inst/@sym/ge.m] 951s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/ge.m 951s ***** test 951s % simple 951s x = sym(1); y = sym(1); e = x >= y; 951s assert (logical (e)) 951s x = sym(1); y = sym(2); e = x >= y; 951s assert (~logical(e)) 951s ***** test 951s % array -- array 951s syms x 951s a = sym([1 3 3 2*x]); 951s b = sym([2 x 3 10]); 951s e = a >= b; 951s assert (isa (e, 'sym')) 951s assert (~logical (e(1))) 951s assert (isa (e(2), 'sym')) 951s assert (isequal (e(2), 3 >= x)) 951s assert (logical (e(3))) 951s assert (isa (e(4), 'sym')) 951s assert (isequal (e(4), 2*x >= 10)) 951s 2 tests, 2 passed, 0 known failure, 0 skipped 951s [inst/@sym/cumprod.m] 951s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/cumprod.m 951s ***** shared x, y 951s x = sym ('x'); 951s y = sym ('y'); 951s ***** error cumprod (x, 1, 2) 951s ***** assert (isequal (cumprod ([-x; -2*x; -3*x]), [-x; 2*x^2; -6*x^3])) 952s ***** assert (isequal (expand (cumprod ([x + i, x - i])), [x + i, x^2 + 1])) 952s ***** assert (isequal (cumprod ([1, x; y, 2], 1), [1, x; y, 2*x] )) 952s ***** assert (isequal (cumprod ([1, x; y, 2], 2), [1, x; y, 2*y] )) 952s ***** test cumprod ([x, x], [2, 1]); # ensure behaves like builtin cumprod 952s ***** test cumprod ([x, x], [1, -2]); # ensure behaves like builtin cumprod 952s ***** error cumprod (x, []) 952s ***** error cumprod (x, {1}) 952s ***** error cumprod (x, struct('a', 1)) 952s ***** error cumprod (x, x) 952s ***** error cumprod (x, 0) 952s ***** error cumprod (x, -1) 952s 13 tests, 13 passed, 0 known failure, 0 skipped 952s [inst/@sym/sym2poly.m] 952s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/sym2poly.m 952s ***** shared x,y,a,b,c 952s syms x y a b c 953s ***** assert (isequal (sym2poly (x^2 + 3*x - 4), [1 3 -4])) 953s ***** assert (isequal (sym2poly (x^6 - x^3), [1 0 0 -1 0 0 0])) 953s ***** assert (isequal (sym2poly (x^2 + 3*x - 4, x), [1 3 -4])) 953s ***** assert (norm (sym2poly (pi*x^2 + exp(sym(1))) - [pi 0 exp(1)]) < 10*eps) 953s ***** assert (isa (sym2poly (x^2 + 3*x - 4), 'double')) 954s ***** assert (isa (sym2poly (x^2 + 3*x - 4, x), 'sym')) 954s ***** assert (isequal (sym2poly (x^2+y*x, x), [sym(1) y sym(0)])) 954s ***** assert (isequal (sym2poly (x^2+y*x, y), [x x^2])) 954s ***** assert (isequal (sym2poly (poly2sym ([a b c], x), x), [a b c])) 954s ***** assert (isequal (poly2sym (sym2poly(a*x^2 + c, x), x), a*x^2 + c)) 954s ***** assert (isequal (sym2poly (poly2sym ([1 2 3])), [1 2 3])) 955s ***** error 955s % too many symbols for single-input 955s p = a*x^2 + 2; 955s c = sym2poly (p); 955s ***** assert (isequal (sym2poly (sym(5)), sym(5))) 955s 13 tests, 13 passed, 0 known failure, 0 skipped 955s [inst/@sym/laguerreL.m] 955s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/laguerreL.m 955s ***** shared x 955s syms x 955s ***** assert (isequal (laguerreL(0, x), sym(1))) 955s ***** assert (isequal (laguerreL(1, x), 1-x)) 955s ***** assert (isequal (laguerreL(2, x), x^2/2 - 2*x + 1)) 955s ***** error laguerreL(x) 955s ***** error laguerreL(1, 2, x, 3) 955s ***** shared 955s ***** test 955s if (pycall_sympy__ ('return Version(spver) > Version("1.4")')) 955s syms x 955s assert (isequal (laguerreL (-3, x), exp(x)*(x^2/2 + 2*x + 1))) 955s end 955s ***** test 955s syms x n 955s L = laguerreL([2 n], x); 955s expected = [laguerreL(2, x) laguerreL(n, x)]; 955s assert (isequal (L, expected)) 955s ***** test 955s syms x y 955s L = laguerreL([1; 2], [x; y]); 955s expected = [laguerreL(1, x); laguerreL(2, y)]; 955s assert (isequal (L, expected)) 955s ***** test 955s syms x n 955s assert (isequal (laguerreL(n, 0, x), laguerreL(n, x))) 955s ***** shared x, y, n 955s syms x y n 955s ***** assert (isequal (laguerreL([1 n], 0, x), laguerreL([1 n], x))) 955s ***** test 955s L = laguerreL([1; n], [pi; 0], [x; y]); 955s expected = [laguerreL(1, pi, x); laguerreL(n, 0, y)]; 955s assert (isequal (L, expected)) 956s ***** test 956s L = laguerreL([1 n], [pi 0], x); 956s expected = [laguerreL(1, pi, x) laguerreL(n, 0, x)]; 956s assert (isequal (L, expected)) 956s ***** test 956s L = laguerreL([1 n], pi, [x y]); 956s expected = [laguerreL(1, pi, x) laguerreL(n, pi, y)]; 956s assert (isequal (L, expected)) 956s ***** test 956s L = laguerreL(1, [pi 0], [x y]); 956s expected = [laguerreL(1, pi, x) laguerreL(1, 0, y)]; 956s assert (isequal (L, expected)) 956s ***** test 956s L = laguerreL([1 n], pi, x); 956s expected = [laguerreL(1, pi, x) laguerreL(n, pi, x)]; 956s assert (isequal (L, expected)) 956s ***** test 956s L = laguerreL(1, [pi 0], x); 956s expected = [laguerreL(1, pi, x) laguerreL(1, 0, x)]; 956s assert (isequal (L, expected)) 956s ***** test 956s L = laguerreL(1, pi, [x y]); 956s expected = [laguerreL(1, pi, x) laguerreL(1, pi, y)]; 956s assert (isequal (L, expected)) 956s ***** test 956s % round trip 956s f = laguerreL (n, x); 956s h = function_handle (f); 956s A = h (1, 3.2); 956s B = laguerreL (1, 3.2); 956s assert (A, B) 956s A = h ([1 2], [3.3 4.4]); 956s B = laguerreL ([1 2], [3.3 4.4]); 956s assert (A, B) 956s ***** error 956s % round trip 956s f = laguerreL (n, y, x); 956s h = function_handle (f); 956s 19 tests, 19 passed, 0 known failure, 0 skipped 956s [inst/@sym/not.m] 956s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/not.m 956s ***** shared t, f 956s t = sym(true); 956s f = sym(false); 956s ***** test 956s % simple 956s assert (isequal( ~t, f)) 956s assert (isequal( ~t, f)) 956s ***** test 956s % array 956s w = [t t f t]; 956s z = [f f t f]; 956s assert (isequal( ~w, z)) 956s ***** test 956s % number 956s assert (isequal( ~sym(5), f)) 956s assert (isequal( ~sym(0), t)) 956s ***** test 956s % output is sym 956s syms x 956s e = ~(x == 4); 956s assert (isa (e, 'sym')) 956s assert (strncmp (sympy(e), 'Unequality', 10)) 956s ***** test 956s % output is sym even for scalar t/f (should match other bool fcns) 956s assert (isa (~t, 'sym')) 956s ***** test 956s % symbol ineq 956s syms x 956s a = [t f x == 1 x ~= 2 x < 3 x <= 4 x > 5 x >= 6]; 956s b = [f t x ~= 1 x == 2 x >= 3 x > 4 x <= 5 x < 6]; 956s assert (isequal( ~a, b)) 957s ***** test 957s syms x 957s y = ~x; 957s s = disp(y, 'flat'); 957s assert (strcmp (strtrim (s), '~x') || strcmpi (strtrim (s), 'Not(x)')) 957s ***** error not (sym(1), 2) 957s 8 tests, 8 passed, 0 known failure, 0 skipped 957s [inst/@sym/psi.m] 957s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/psi.m 957s ***** assert (isequal (psi (sym (1)), -eulergamma)) 957s ***** assert (isequal (psi (1, sym (1)), sym (pi)^2/6)) 957s ***** assert (isinf (psi (sym ('inf')))) 957s ***** test 957s % compare to Maple: evalf(Psi(-101/100)); 957s maple = vpa ('100.3963127058453949545769053445198842332424', 40); 957s us = vpa (psi (sym (-101)/100), 40); 957s assert (abs(double(maple-us)) < 1e-39) 957s ***** test 957s % compare to Maple: evalf(Psi(1, 3*I-2)); 957s maple = vpa ('-0.1651414829219882371561038184133243839778799', 40) - ... 957s vpa ('0.1960040752985823275302034466611711263617296j', 40); 957s us = vpa (psi (1, sym (-2) + sym(3i)), 40); 957s assert (abs(double(maple-us)) < 1e-39) 957s ***** test 957s % should match @double/psi 957s if (exist ('psi','builtin')) 957s assert (psi (pi), double (psi (sym (pi))), -3*eps) 957s assert (psi (100), double (psi (sym (100))), -3*eps) 957s assert (psi (1e-3), double (psi (1/sym (1e3))), -3*eps) 957s if (exist ('OCTAVE_VERSION', 'builtin')) 957s % 2014a doesn't support negative or complex arguments 957s assert (psi (-1.5), double (psi (sym (-3)/2)), -3*eps) 957s assert (psi (-8.3), double (psi (sym (-83)/10)),-4*eps) 957s assert (psi (2i), double (psi (sym (2i))), -3*eps) 957s assert (psi (10i+3), double (psi (sym (10i)+3)), -3*eps) 957s end 957s end 957s ***** test 957s % @double/psi loses accuracy near the poles: note higher rel tol 957s if (exist ('psi','builtin')) 957s if (exist ('OCTAVE_VERSION', 'builtin')) 957s assert (psi (-1.1), double (psi (sym (-11)/10)), -6*eps) 957s assert (psi (-1.01), double (psi (sym (-101)/100)), -50*eps) 957s end 957s end 958s ***** test 958s if (exist ('psi','builtin')) 958s assert (psi (1, pi), double (psi (1, sym (pi))), -3*eps) 958s assert (psi (1, 100), double (psi (1, sym (100))), -3*eps) 958s assert (psi (1, 1e-4), double (psi (1, 1/sym (1e4))), -3*eps) 958s end 958s ***** test 958s if (exist ('psi','builtin')) 958s assert (psi (2, pi), double (psi (2, sym (pi))), -3*eps) 958s assert (psi (2, 1000), double (psi (2, sym (1000))), -3*eps) 958s assert (psi (2, 1e-4), double (psi (2, 1/sym (1e4))), -3*eps) 958s end 958s ***** test 958s % round trip 958s if (exist ('psi','builtin')) 958s syms x 958s f = psi (x); 958s h = function_handle (f); 958s A = h (1.1); 958s B = psi (1.1); 958s assert (A, B) 958s end 958s 10 tests, 10 passed, 0 known failure, 0 skipped 958s [inst/@sym/svd.m] 958s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/svd.m 958s ***** test 958s % basic 958s A = [1 2; 3 4]; 958s B = sym(A); 958s sd = svd(A); 958s s = svd(B); 958s s2 = double(s); 958s assert (norm(s2 - sd) <= 10*eps) 958s ***** test 958s % scalars 958s syms x 958s syms y positive 958s a = sym(-10); 958s assert (isequal (svd(a), sym(10))) 958s assert (isequal (svd(x), sqrt(x*conj(x)))) 958s assert (isequal (svd(y), y)) 958s ***** test 958s % matrix with symbols 958s syms x positive 958s A = [x+1 0; sym(0) 2*x+1]; 958s s = svd(A); 958s s2 = subs(s, x, 2); 958s assert (isequal (s2, [sym(5); 3])) 959s ***** test 959s % matrix with symbols 959s syms x positive 959s A = [x+1 0; sym(0) 2*x+1]; 959s s = svd(A); 959s s2 = subs(s, x, 2); 959s assert (isequal (s2, [sym(5); 3])) 959s ***** test 959s % matrix with symbols, nonneg sing values 959s syms x real 959s A = [x 0; 0 sym(-5)]; 959s s = svd(A); 959s assert (isequal (s, [abs(x); 5])) 959s 5 tests, 5 passed, 0 known failure, 0 skipped 959s [inst/@sym/ipermute.m] 959s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/ipermute.m 959s ***** error permute (sym(1)) 959s ***** error permute (sym(1), 2, 3) 959s ***** test 959s syms x 959s A = [1 x]; 959s perm = [2 1]; 959s B = permute(A, perm); 959s C = ipermute(B, perm); 959s assert (isequal(C, A)) 959s 3 tests, 3 passed, 0 known failure, 0 skipped 959s [inst/@sym/diag.m] 959s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/diag.m 959s ***** test 959s % scalar 959s syms x 959s assert (isequal (diag(x), x)) 959s ***** test 959s % row,col vec input 959s syms x 959s r = [1 x 2]; 959s c = [sym(1); x]; 959s assert (isequal (diag(diag(c)), c)) 959s assert (isequal (diag(c), [sym(1) 0; 0 x])) 959s assert (isequal (diag(diag(r)), r.')) 959s assert (isequal (diag(r), [sym(1) 0 0; 0 x 0; sym(0) 0 2])) 959s ***** test 959s % create matrix, kth diag 959s syms x 959s r = [1 x]; 959s z = sym(0); 959s assert (isequal (diag (x, 0), x)) 959s assert (isequal (diag (x, 1), [z x; z z])) 959s assert (isequal (diag (x, -1), [z z; x z])) 959s assert (isequal (diag (x, 2), [z z x; z z z; z z z])) 959s assert (isequal (diag (r, 1), [z 1 z; z z x; z z z])) 960s ***** test 960s % extract kth diag 960s A = sym([1 2 3; 4 5 6]); 960s assert (isequal (diag(A), sym([1; 5]))) 960s assert (isequal (diag(A, 0), sym([1; 5]))) 960s assert (isequal (diag(A, 1), sym([2; 6]))) 960s assert (isequal (diag(A, 2), sym(3))) 960s assert (isequal (diag(A, -1), sym(4))) 960s assert (isempty (diag(A, -2))) 960s assert (isempty (diag(A, 3))) 960s 4 tests, 4 passed, 0 known failure, 0 skipped 960s [inst/@sym/children.m] 960s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/children.m 960s ***** test 960s % basics, sum 960s syms x y 960s f = 2*x + x*x + sin(y); 960s assert (isempty (setxor (children(f), [2*x x*x sin(y)]))) 960s ***** test 960s % basics, product 960s syms x y 960s f = 2*x*sin(y); 960s assert (isempty (setxor (children(f), [2 x sin(y)]))) 960s ***** test 960s % basics, product and powers 960s syms x y 960s f = 2*x^2*y^3; 960s assert (isempty (setxor (children(f), [2 x^2 y^3]))) 960s ***** test 960s % eqn, ineq 960s syms x y 960s lhs = 2*x^2; rhs = y^3 + 7; 960s assert (isequal (children(lhs == rhs), [lhs rhs])) 960s assert (isequal (children(lhs < rhs), [lhs rhs])) 960s assert (isequal (children(lhs >= rhs), [lhs rhs])) 960s ***** test 960s % matrix 960s syms x y 960s f = [4 + y 1 + x; 2 + x 3 + x]; 960s c = children(f); 960s ec = {[4 y], [1 x]; [2 x], [3 x]}; 960s assert (isequal (size(c), size(ec))) 960s for i=1:length(c) 960s assert (isempty (setxor (c{i}, ec{i}))) 960s end 961s ***** test 961s % matrix, sum/prod 961s syms x y 961s f = [x + y; x*sin(y); sin(x)]; 961s ec = {[x y]; [x sin(y)]; [x]}; 961s c = children(f); 961s assert (isequal (size(c), size(ec))) 961s for i=1:length(c) 961s assert (isempty (setxor (c{i}, ec{i}))) 961s end 961s ***** test 961s % scalar symbol 961s syms x 961s assert (isequal (children(x), x)) 961s ***** test 961s % scalar number 961s x = sym(6); 961s assert (isequal (children(x), x)) 961s ***** test 961s % symbolic size matrix 961s syms n m integer 961s A = sym('a', [n m]); 961s C = children (A); 961s assert (isequal (C(2), n)) 961s assert (isequal (C(3), m)) 961s ***** xtest 961s % symbolic size matrix, fails on newer SymPy Issue #1089 961s syms n m integer 961s A = sym('a', [n m]); 961s assert (isequal (children (A), [sym('a') n m])) 961s !!!!! known failure 961s assert (isequal (children (A), [sym('a'), n, m])) failed 961s 10 tests, 9 passed, 1 known failure, 0 skipped 961s [inst/@sym/tan.m] 961s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/tan.m 961s ***** error tan (sym(1), 2) 961s ***** assert (isequaln (tan (sym(nan)), sym(nan))) 961s ***** shared x, d 961s d = 1; 961s x = sym('1'); 961s ***** test 961s f1 = tan(x); 961s f2 = tan(d); 961s assert( abs(double(f1) - f2) < 1e-15 ) 961s ***** test 961s D = [d d; d d]; 961s A = [x x; x x]; 961s f1 = tan(A); 961s f2 = tan(D); 961s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 961s ***** test 961s % round trip 961s y = sym('y'); 961s A = tan (d); 961s f = tan (y); 961s h = function_handle (f); 961s B = h (d); 961s assert (A, B, -eps) 961s 5 tests, 5 passed, 0 known failure, 0 skipped 961s [inst/@sym/log10.m] 961s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/log10.m 961s ***** assert (isequal (log10 (sym (1000)), sym (3))) 961s ***** assert (isequal (log10 (sym ([10 100])), sym ([1 2]))) 961s ***** test 961s % round-trip 961s syms x 961s f = log10 (x); 961s h = function_handle (f); 961s A = h (1.1); 961s B = log10 (1.1); 961s assert (A, B, -eps) 961s 3 tests, 3 passed, 0 known failure, 0 skipped 961s [inst/@sym/tand.m] 961s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/tand.m 961s ***** error tand (sym(1), 2) 961s ***** assert (isequaln (tand (sym(nan)), sym(nan))) 961s ***** test 961s f1 = tand (sym(1)); 961s f2 = tand (1); 961s assert (double (f1), f2, -eps) 961s ***** test 961s D = [10 30; 110 -45]; 961s A = sym(D); 961s f1 = tand (A); 961s f2 = tand (D); 961s assert (double (f1), f2, -eps) 962s 4 tests, 4 passed, 0 known failure, 0 skipped 962s [inst/@sym/size.m] 962s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/size.m 962s ***** test 962s a = sym([1 2 3]); 962s [n,m] = size(a); 962s assert (n == 1 && m == 3) 962s ***** test 962s a = sym([1 2 3]); 962s n = size(a); 962s assert (isequal (n, [1 3])) 962s ***** test 962s %% size, numel, length 962s a = sym([1 2 3; 4 5 6]); 962s assert (isa (size(a), 'double')) 962s assert (isa (numel(a), 'double')) 962s assert (isa (length(a), 'double')) 962s assert (isequal (size(a), [2 3])) 962s assert (length(a) == 3) 962s assert (numel(a) == 6) 962s a = sym([1; 2; 3]); 962s assert (isequal (size(a), [3 1])) 962s assert (length(a) == 3) 962s assert (numel(a) == 3) 962s ***** test 962s %% size by dim 962s a = sym([1 2 3; 4 5 6]); 962s n = size(a, 1); 962s assert (n == 2) 962s m = size(a, 2); 962s assert (m == 3) 962s a = sym([1 2 3]'); 962s n = size(a, 1); 962s assert (n == 3) 962s m = size(a, 2); 962s assert (m == 1) 962s ***** xtest 962s % symbolic-size matrices 962s syms n m integer 962s A = sym('A', [n m]); 962s d = size(A); 962s assert (~isa(d, 'sym')) 962s assert (isnumeric(d)) 962s assert (isequaln (d, [NaN NaN])) 962s !!!!! known failure 962s assert (isequaln (d, [NaN, NaN])) failed 962s ***** xtest 962s % half-symbolic-size matrices 962s % FIXME: will fail until size stop lying by saying 1x1 962s syms n integer 962s A = sym('A', [n 3]); 962s assert (isequaln (size(A), [NaN 3])) 962s A = sym('A', [4 n]); 962s assert (isequaln (size(A), [4 NaN])) 962s !!!!! known failure 962s assert (isequaln (size (A), [NaN, 3])) failed 962s ***** xtest 962s % half-symbolic-size empty matrices 962s % FIXME: will fail until size stop lying by saying 1x1 962s syms n integer 962s A = sym('A', [n 0]); 962s assert (isequaln (size(A), [NaN 0])) 962s !!!!! known failure 962s assert (isequaln (size (A), [NaN, 0])) failed 962s 7 tests, 4 passed, 3 known failures, 0 skipped 962s [inst/@sym/exp.m] 962s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/exp.m 962s ***** error exp (sym(1), 2) 962s ***** assert (isequaln (exp (sym(nan)), sym(nan))) 962s ***** shared x, d 962s d = 1; 962s x = sym('1'); 962s ***** test 962s f1 = exp(x); 962s f2 = exp(d); 962s assert( abs(double(f1) - f2) < 1e-15 ) 962s ***** test 962s D = [d d; d d]; 962s A = [x x; x x]; 962s f1 = exp(A); 962s f2 = exp(D); 962s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 962s ***** test 962s % round trip 962s y = sym('y'); 962s A = exp (d); 962s f = exp (y); 962s h = function_handle (f); 962s B = h (d); 962s assert (A, B, -eps) 962s 5 tests, 5 passed, 0 known failure, 0 skipped 962s [inst/@sym/polylog.m] 962s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/polylog.m 962s ***** assert (isequal (polylog (sym('s'), 0), sym(0))) 962s ***** assert (isequal (double (polylog (1, sym(-1))), -log(2))) 962s ***** assert (isequal (double (polylog (0, sym(2))), -2)) 962s ***** assert (isequal (double (polylog (-1, sym(2))), 2)) 962s ***** assert (isequal (double (polylog (-2, sym(3))), -1.5)) 962s ***** assert (isequal (double (polylog (-3, sym(2))), 26)) 962s ***** assert (isequal (double (polylog (-4, sym(3))), -15)) 962s ***** assert (isequal (double (polylog (1, sym(1)/2)), log(2))) 962s ***** test 962s % round trip 962s syms s z 962s f = polylog (s, z); 962s h = function_handle (f, 'vars', [s z]); 962s A = h (1.1, 2.2); 962s B = polylog (1.1, 2.2); 962s assert (A, B) 962s 9 tests, 9 passed, 0 known failure, 0 skipped 962s [inst/@sym/degree.m] 962s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/degree.m 962s ***** error degree (sym(1), 2, 3) 962s ***** test 962s syms x 962s assert (isequal (degree(x^3), 3)) 962s assert (isequal (degree(x^3 + 6), 3)) 963s ***** test 963s % specify variable 963s syms x y 963s p = x^2 + y*x + 1; 963s assert (isequal (degree(p), 2)) 963s assert (isequal (degree(p, x), 2)) 963s assert (isequal (degree(p, y), 1)) 963s ***** test 963s syms x a oo 963s assert (isequal (degree(x^3, a), 0)) 963s assert (isequal (degree(sym(1), a), 0)) 963s assert (isequal (degree(sym(0), a), -oo)) 963s ***** xtest 963s % constant inputs 963s syms oo 963s assert (isequal (degree(sym(1)), 0)) 963s assert (isequal (degree(sym(0)), -oo)) 963s 5 tests, 5 passed, 0 known failure, 0 skipped 963s [inst/@sym/gamma.m] 963s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/gamma.m 963s ***** error gamma (sym(1), 2) 963s ***** assert (isequaln (gamma (sym(nan)), sym(nan))) 963s ***** shared x, d 963s d = 1; 963s x = sym('1'); 963s ***** test 963s f1 = gamma(x); 963s f2 = gamma(d); 963s assert( abs(double(f1) - f2) < 1e-15 ) 963s ***** test 963s D = [d d; d d]; 963s A = [x x; x x]; 963s f1 = gamma(A); 963s f2 = gamma(D); 963s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 963s ***** test 963s % round trip 963s y = sym('y'); 963s A = gamma (d); 963s f = gamma (y); 963s h = function_handle (f); 963s B = h (d); 963s assert (A, B, -eps) 963s 5 tests, 5 passed, 0 known failure, 0 skipped 963s [inst/@sym/logical.m] 963s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/logical.m 963s ***** test 963s % basics, many others in isAlways.m 963s assert (logical(true)) 963s assert (~(logical(false))) 963s ***** test 963s % numbers to logic? 963s assert (logical(sym(1))) 963s assert (logical(sym(-1))) 963s assert (~logical(sym(0))) 963s ***** test 963s % eqns, "structurally equivalent" 963s syms x 963s e = logical(x == x); 963s assert ( islogical (e)) 963s assert (e) 963s e = logical(x == 1); 963s assert ( islogical (e)) 963s assert (~e) 963s ***** test 963s % eqn could have solutions but are false in general 963s syms x 963s e = logical(x^2 == x); 963s assert ( islogical (e)) 963s assert (~e) 963s e = logical(2*x == x); 963s assert ( islogical (e)) 963s assert (~e) 963s ***** test 963s % FIXME: (not sure yet) T/F matrices should stay sym until logical() 963s a = sym(1); 963s e = a == a; 963s assert (isa (e, 'sym')) 963s assert (islogical (logical (e))) 963s e = [a == a a == 0 a == a]; 963s assert (isa (e, 'sym')) 963s assert (islogical (logical (e))) 963s ***** test 963s % sym vectors of T/F to logical 963s a = sym(1); 963s e = [a == a a == 0 a == a]; 963s w = logical(e); 963s assert (islogical (w)) 963s assert (isequal (w, [true false true])) 963s e = e'; 963s w = logical(e); 963s assert (islogical (w)) 963s assert (isequal (w, [true; false; true])) 964s /usr/lib/python3/dist-packages/sympy/matrices/common.py:1989: SymPyDeprecationWarning: 964s 964s non-Expr objects in a Matrix is deprecated. Matrix represents 964s a mathematical matrix. To represent a container of non-numeric 964s entities, Use a list of lists, TableForm, NumPy array, or some 964s other data structure instead. 964s 964s See https://docs.sympy.org/latest/explanation/active-deprecations.html#deprecated-non-expr-in-matrix 964s for details. 964s 964s This has been deprecated since SymPy version 1.9. It 964s will be removed in a future version of SymPy. 964s 964s return self._eval_applyfunc(f) 964s ***** test 964s % sym matrix of T/F to logical 964s a = sym([1 2 3; 4 5 6]); 964s b = sym([1 2 0; 4 0 6]); 964s e = a == b; 964s w = logical(e); 964s assert (islogical (w)) 964s assert (isequal (w, [true true false; true false true])) 964s ***** error 964s syms x 964s logical(x); 964s ***** error 964s logical(sym(nan)) 964s ***** test 964s % but oo and zoo are non-zero so we call those true 964s % (SMT errors on these) FIXME 964s syms oo zoo 964s assert (logical (oo)) 964s % assert (logical (zoo)) 964s ***** test 964s % older Octave (< 4.2) didn't automatically do "if (logical(obj))" 964s e = sym(true); 964s if (e) 964s assert(true); 964s else 964s assert(false); 964s end 964s ***** test 964s % more of above 964s e2 = sym(1) == sym(1); 964s if (e2) 964s assert(true); 964s else 964s assert(false); 964s end 964s e3 = sym([1 2]) == sym([1 1]); 964s if (e3(1)) 964s assert(true); 964s else 964s assert(false); 964s end 964s 12 tests, 12 passed, 0 known failure, 0 skipped 964s [inst/@sym/acos.m] 964s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/acos.m 964s ***** error acos (sym(1), 2) 964s ***** assert (isequaln (acos (sym(nan)), sym(nan))) 964s ***** shared x, d 964s d = 1; 964s x = sym('1'); 964s ***** test 964s f1 = acos(x); 964s f2 = acos(d); 964s assert( abs(double(f1) - f2) < 1e-15 ) 964s ***** test 964s D = [d d; d d]; 964s A = [x x; x x]; 964s f1 = acos(A); 964s f2 = acos(D); 964s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 964s ***** test 964s % round trip 964s y = sym('y'); 964s A = acos (d); 964s f = acos (y); 964s h = function_handle (f); 964s B = h (d); 964s assert (A, B, -eps) 964s 5 tests, 5 passed, 0 known failure, 0 skipped 964s [inst/@sym/adjoint.m] 964s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/adjoint.m 964s ***** test 964s syms x 964s A = [x x^2; x^3 x^4]; 964s B = [x^4 -x^2; -x^3 x]; 964s assert( isequal( adjoint(A), B )) 964s ***** test syms x 964s assert( isequal( adjoint(x), 1)) 964s 2 tests, 2 passed, 0 known failure, 0 skipped 964s [inst/@sym/arg.m] 964s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/arg.m 964s ***** test 964s syms x 964s assert (isequal (angle (x), arg (x))); 964s 1 test, 1 passed, 0 known failure, 0 skipped 964s [inst/@sym/kroneckerDelta.m] 964s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/kroneckerDelta.m 964s ***** error kroneckerDelta (sym(1), 2, 3) 964s ***** test 964s syms x 964s assert (isequal (kroneckerDelta (x, x), sym(1))) 964s ***** assert (isequal (kroneckerDelta ([sym(1) 2 3], [1 2 0]), sym([1 1 0]))) 964s ***** test 964s % round trip 964s syms x y 964s f = kroneckerDelta (x, y); 964s h = function_handle (f); 964s assert (h (1, 2), 0) 964s assert (h (2, 2), 1) 965s 4 tests, 4 passed, 0 known failure, 0 skipped 965s [inst/@sym/airy.m] 965s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/airy.m 965s ***** test 965s syms z 965s a = airy(0, z); 965s ap = airy(1, z); 965s assert (isequal (diff (a), ap)) 965s assert (isequal (diff (ap), z*a)) 965s ***** test 965s syms z 965s b = airy(2, z); 965s bp = airy(3, z); 965s assert (isequal (diff (b), bp)) 965s assert (isequal (diff (bp), z*b)) 965s ***** test 965s % default to k=0 965s syms z 965s a = airy(0, z); 965s a2 = airy(z); 965s assert (isequal (a, a2)) 965s ***** error airy(0, sym('x'), 2) 965s ***** error airy(4, sym('z')) 965s ***** error airy(-1, sym('z')) 965s ***** test 965s % symbolic k 965s syms z 965s b1 = airy(2, z); 965s b2 = airy(sym(2), z); 965s assert (isequal (b1, b2)) 965s ***** test 965s % doubles, relative error 965s X = [1 2 pi; 4i 5 6+6i]; 965s Xs = sym(X); 965s for k = 0:3 965s A = double(airy(k, Xs)); 965s B = airy(k, X); 965s assert (all (all (abs(A - B) < 500*eps*abs(A)))) 965s end 966s ***** test 966s % round-trip 966s syms x 966s for k = 0:3 966s A = airy(k, 10); 966s q = airy(k, x); 966s h = function_handle(q); 966s B = h(10); 966s assert (abs(A-B) < 500*eps*abs(A)) 966s end 966s 9 tests, 9 passed, 0 known failure, 0 skipped 966s [inst/@sym/tanh.m] 966s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/tanh.m 966s ***** error tanh (sym(1), 2) 966s ***** assert (isequaln (tanh (sym(nan)), sym(nan))) 966s ***** shared x, d 966s d = 1; 966s x = sym('1'); 966s ***** test 966s f1 = tanh(x); 966s f2 = tanh(d); 966s assert( abs(double(f1) - f2) < 1e-15 ) 966s ***** test 966s D = [d d; d d]; 966s A = [x x; x x]; 966s f1 = tanh(A); 966s f2 = tanh(D); 966s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 966s ***** test 966s % round trip 966s y = sym('y'); 966s A = tanh (d); 966s f = tanh (y); 966s h = function_handle (f); 966s B = h (d); 966s assert (A, B, -eps) 966s 5 tests, 5 passed, 0 known failure, 0 skipped 966s [inst/@sym/sind.m] 966s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/sind.m 966s ***** error sind (sym(1), 2) 966s ***** assert (isequaln (sind (sym(nan)), sym(nan))) 966s ***** test 966s f1 = sind (sym(1)); 966s f2 = sind (1); 966s assert (double (f1), f2, -eps) 966s ***** test 966s D = [10 30; 110 -45]; 966s A = sym(D); 966s f1 = sind (A); 966s f2 = sind (D); 966s assert (double (f1), f2, -eps) 966s 4 tests, 4 passed, 0 known failure, 0 skipped 966s [inst/@sym/assumeAlso.m] 966s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/assumeAlso.m 966s ***** test 966s syms x 966s x = assumeAlso(x, 'positive'); 966s a = assumptions(x); 966s assert(strcmp(a, 'x: positive')) 966s ***** error 966s syms x 966s x = assumeAlso (x, x); 966s ***** test 966s syms x positive 966s x = assumeAlso(x, 'integer'); 966s [tilde, a] = assumptions(x, 'dict'); 966s assert(a{1}.integer) 966s assert(a{1}.positive) 966s ***** test 966s % multiple assumptions 966s syms x positive 966s x = assumeAlso(x, 'integer', 'even'); 966s [tilde, a] = assumptions(x, 'dict'); 966s assert(a{1}.integer) 966s assert(a{1}.positive) 966s assert(a{1}.even) 967s ***** test 967s % multiple assumptions 967s syms x integer 967s x = assumeAlso (x, 'even', 'positive'); 967s [tilde, a] = assumptions (x, 'dict'); 967s assert (a{1}.integer) 967s assert (a{1}.even) 967s assert (a{1}.positive) 967s ***** test 967s % has output so avoids workspace 967s syms x positive 967s x2 = x; 967s f = sin(x); 967s assumeAlso(x, 'integer'); 967s a = assumptions(x); 967s assert(strcmp(a, 'x: positive, integer') || strcmp(a, 'x: integer, positive')) 967s a = assumptions(x2); 967s assert(strcmp(a, 'x: positive, integer') || strcmp(a, 'x: integer, positive')) 967s a = assumptions(f); 967s assert(strcmp(a, 'x: positive, integer') || strcmp(a, 'x: integer, positive')) 967s ***** test 967s % has no output so does workspace 967s syms x positive 967s x2 = x; 967s f = sin(x); 967s assumeAlso(x, 'integer'); 967s a = assumptions(x); 967s assert(strcmp(a, 'x: positive, integer') || strcmp(a, 'x: integer, positive')) 967s a = assumptions(x2); 967s assert(strcmp(a, 'x: positive, integer') || strcmp(a, 'x: integer, positive')) 967s a = assumptions(f); 967s assert(strcmp(a, 'x: positive, integer') || strcmp(a, 'x: integer, positive')) 967s ***** error 967s syms a 967s assumeAlso (a > 0) 967s ***** test 967s syms x y 967s assumeAlso ([x y], 'even') 967s assert (strcmp (assumptions (x), 'x: even')) 967s assert (strcmp (assumptions (y), 'y: even')) 967s ***** test 967s syms x y positive 967s f = sin (2*x); 967s assumeAlso ([x y], 'even') 967s assert (strcmp (assumptions (x), 'x: even, positive') || strcmp (assumptions (x), 'x: positive, even')) 967s assert (strcmp (assumptions (y), 'y: even, positive') || strcmp (assumptions (y), 'y: positive, even')) 967s assert (strcmp (assumptions (f), 'x: even, positive') || strcmp (assumptions (f), 'x: positive, even')) 967s ***** test 967s % with output, original x and y are unchanged 967s syms x y positive 967s f = sin (2*x); 967s [p, q] = assumeAlso ([x y], 'even'); 967s assert (strcmp (assumptions (x), 'x: positive')) 967s assert (strcmp (assumptions (y), 'y: positive')) 967s assert (strcmp (assumptions (f), 'x: positive')) 967s assert (strcmp (assumptions (p), 'x: even, positive') || strcmp (assumptions (p), 'x: positive, even')) 967s assert (strcmp (assumptions (q), 'y: even, positive') || strcmp (assumptions (q), 'y: positive, even')) 967s 11 tests, 11 passed, 0 known failure, 0 skipped 967s [inst/@sym/igamma.m] 968s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/igamma.m 968s ***** test 968s % mostly tested in @sym/gammainc 968s syms x 968s assert (isequal (igamma (2, x), gammainc(x, 2, 'upper'))) 968s ***** test 968s % unregularized 968s B = double (igamma (sym(3), 1)); 968s A = gammainc (1, 3, 'upper')*gamma (3); 968s assert (A, B, -2*eps) 968s ***** test 968s % something like a round trip: no igamma() 968s syms x a 968s f = igamma (a, x); 968s h = function_handle (f, 'vars', [a x]); 968s A = h (1.1, 2.2); 968s B = double (igamma (sym(11)/10, sym(22)/10)); 968s C = gammainc (2.2, 1.1, 'upper')*gamma(1.1); 968s assert (A, B, -10*eps) 968s assert (A, C, -10*eps) 968s 3 tests, 3 passed, 0 known failure, 0 skipped 968s [inst/@sym/log2.m] 968s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/log2.m 968s ***** assert (isequal (log2 (sym (1024)), sym (10))) 968s ***** assert (isequal (log2 (sym ([2 16; 32 1])), sym ([1 4; 5 0]))) 968s ***** test 968s % round-trip 968s syms x 968s f = log2 (x); 968s h = function_handle (f); 968s A = h (1.1); 968s B = log2 (1.1); 968s assert (A, B, -5*eps) 968s 3 tests, 3 passed, 0 known failure, 0 skipped 968s [inst/@sym/cat.m] 968s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/cat.m 968s ***** test 968s % mostly tested in horzcat, vertcat: one for good measure 968s syms x 968s assert (isequal (cat(1, x, x), [x x])) 968s assert (isequal (cat(2, x, x), [x; x])) 968s ***** error cat(3, sym(2), sym(3)) 968s ***** error cat(0, sym(2), sym(3)) 968s 3 tests, 3 passed, 0 known failure, 0 skipped 968s [inst/@sym/hilb.m] 968s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/hilb.m 968s ***** test 968s A = hilb (sym(3)); 968s B = [sym(1) sym(1)/2 sym(1)/3; sym(1)/2 sym(1)/3 sym(1)/4; sym(1)/3 sym(1)/4 sym(1)/5]; 968s assert (isequal (A, B)) 969s 1 test, 1 passed, 0 known failure, 0 skipped 969s [inst/@sym/chebyshevT.m] 969s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/chebyshevT.m 969s ***** error chebyshevT (sym(1)) 969s ***** error chebyshevT (sym(1), 2, 3) 969s ***** assert (isequaln (chebyshevT (2, sym(nan)), sym(nan))) 969s ***** shared x 969s syms x 969s ***** assert(isequal(chebyshevT(0, x), sym(1))) 969s ***** assert(isequal(chebyshevT(1, x), x)) 969s ***** assert(isequal(chebyshevT(2, x), 2*x*x - 1)) 969s ***** assert(isequal(chebyshevT([0 1 2], x), [sym(1) x (2*x*x-1)])) 969s ***** test 969s % round trip 969s syms n z 969s f = chebyshevT (n, z); 969s h = function_handle (f, 'vars', [n z]); 969s A = h (1.1, 2.2); 969s B = chebyshevT (1.1, 2.2); 969s assert (A, B) 969s 8 tests, 8 passed, 0 known failure, 0 skipped 969s [inst/@sym/laplacian.m] 969s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/laplacian.m 969s ***** shared x,y,z 969s syms x y z 969s ***** test 969s % 1D 969s f = x^2; 969s g = diff(f,x,x); 969s assert (isequal (laplacian(f), g)) 969s assert (isequal (laplacian(f,{x}), g)) 969s assert (isequal (laplacian(f,[x]), g)) 969s assert (isequal (laplacian(f,x), g)) 969s ***** test 969s % const 969s f = sym(1); 969s g = sym(0); 969s assert (isequal (laplacian(f), g)) 969s assert (isequal (laplacian(f,x), g)) 969s f = sym('c'); 969s assert (isequal (laplacian(f,x), g)) 970s ***** test 970s % double const 970s f = 1; 970s g = sym(0); 970s assert (isequal (laplacian(f,x), g)) 970s ***** test 970s % 1D fcn in 2d/3d 970s f = sin(2*y); 970s g = -4*f; 970s assert (isequal (laplacian(f), g)) 970s assert (isequal (laplacian(f, {x,y}), g)) 970s assert (isequal (laplacian(f, {x,y,z}), g)) 970s ***** test 970s % 2d fcn in 2d/3d 970s f = sin(exp(x)*y); 970s g = diff(f,x,x) + diff(f,y,y); 970s assert (isequal (laplacian(f), g)) 970s assert (isequal (laplacian(f, {x,y}), g)) 970s ***** test 970s % 2d fcn in 2d/3d 970s f = sin(exp(x)*y+sinh(z)); 970s gr2 = gradient(f, {x,y}); 970s divgr2 = divergence(gr2, {x,y}); 970s l2 = laplacian(f,{x,y}); 970s gr3 = gradient(f, {x,y,z}); 970s divgr3 = divergence(gr3, {x,y,z}); 970s l3 = laplacian(f,{x,y,z}); 970s assert (isAlways (l2 == divgr2)) 970s assert (isAlways (l3 == divgr3)) 975s ***** error laplacian(sym('x'), sym('x'), 42) 975s ***** error laplacian([sym('x'), sym('x')]) 975s 8 tests, 8 passed, 0 known failure, 0 skipped 975s [inst/@sym/isAlways.m] 975s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/isAlways.m 975s ***** test 975s % basics 975s assert(isAlways(true)) 975s assert(isAlways(1==1)) 975s assert(isAlways(sym(1)==sym(1))) 975s assert(isAlways(sym(1)==1)) 975s ***** test 975s % numbers to logic? 975s assert (isAlways(sym(1))) 975s assert (isAlways(sym(-1))) 975s assert (~isAlways(sym(0))) 975s ***** shared x 975s syms x 975s ***** test 975s % in this case it is boolean 975s expr = x - x == 0; 975s assert (logical(expr)) 975s assert (isAlways(expr)) 975s % and both are logical type 975s assert (islogical(logical(expr))) 975s assert (islogical(isAlways(expr))) 975s ***** test 975s % structurally same and mathematically true 975s % (here expr should be sym, non-boolean) 975s expr = x == x; 975s assert (logical(expr)) 975s assert (isAlways(expr)) 975s %assert (~islogical(expr)) % FIXME: Issue #56 975s %assert (isa(expr, 'sym)) 975s ***** test 975s % structurally same and mathematically true 975s % (here expr should be sym, non-boolean) 975s expr = 1 + x == x + 1; 975s assert (logical(expr)) 975s assert (isAlways(expr)) 975s ***** test 975s % non-zero numbers are true 975s assert (isAlways(sym(1))) 975s assert (isAlways(sym(-10))) 975s assert (~isAlways(sym(0))) 975s ***** shared x, y 975s syms x y 975s ***** test 975s % structurally same and mathematically true 975s % (here expr should be sym, non-boolean) 975s expr = x*(1+y) == x*(y+1); 975s assert (logical(expr)) 975s assert (isAlways(expr)) 975s assert (islogical(isAlways(expr))) 975s ***** test 975s % Now for some differences 975s % simplest example from SymPy FAQ 975s expr = x*(1+y) == x+x*y; 975s assert (~logical(expr)) 975s assert (isAlways(expr)) 975s ***** test 975s % more differences 1, these don't simplify in sympy (as of 2016-01) 975s expr = (x+1)^2 == x*x + 2*x + 1; 975s assert (~logical(expr)) 975s assert (isAlways(expr)) 975s ***** test 975s % more differences 2 975s expr = sin(2*x) == 2*sin(x)*cos(x); 975s assert (~logical(expr)) 975s assert (isAlways(expr)) 975s ***** test 975s % more differences 3, false 975s expr = x*(x+y) == x^2 + x*y + 1; 975s assert (~logical(expr)) 975s assert (~isAlways(expr)) 975s assert (~isAlways(expr, 'unknown', 'error')) 976s ***** test 976s % logically not equal, math equal 976s exprn = x*(x+y) ~= x^2 + x*y; 976s assert (logical(exprn)) 976s assert (~isAlways(exprn)) 976s ***** test 976s % logically not equal, math not equal 976s exprn = x*(x+y) ~= x^2 + x*y + 1; 976s assert (logical(exprn)) 976s assert (isAlways(exprn)) 976s ***** test 976s % equal and not equal 976s e1 = sin(x)^2 + cos(x)^2 == 1; 976s e2 = sin(x)^2 + cos(x)^2 == 2; 976s assert (~logical(e1)) 976s assert (isAlways(e1)) 976s assert (~logical(e2)) 976s assert (~isAlways(e2)) 976s assert (~isAlways(e2, 'unknown', 'error')) 976s ***** error isAlways(x, 'unknown', 'kevin') 976s ***** error isAlways(x, 'unknown') 976s ***** error isAlways(x, 'kevin', 'true') 976s ***** error 976s a = [x*(x+y)==x^2+x*y x==y]; 976s b = isAlways(a, 'unknown', 'error'); 976s ***** error 976s a = x==y; 976s b = isAlways(a, 'unknown', 'error'); 977s ***** test 977s % array, unknown keyword 977s a = [x==x x==x+1 x==y x*(x+y)==x^2+x*y cos(x)^2+sin(x)^2==2]; 977s b = isAlways(a, 'unknown', false); 977s c = isAlways(a, 'unknown', 'false'); 977s expect = [true false false true false]; 977s assert (islogical(b)) 977s assert (isequal (b, expect)) 977s assert (isequal (c, expect)) 977s b = isAlways(a, 'unknown', true); 977s c = isAlways(a, 'unknown', 'true'); 977s expect = [true false true true false]; 977s assert (islogical(b)) 977s assert (isequal (b, expect)) 977s assert (isequal (c, expect)) 977s ***** test 977s % ineq 977s e = x*(x+y) <= x^2 + x*y + 1; 977s assert (~logical(e)) 977s assert (isAlways(e)) 977s e = x*(x+y) <= x^2 + x*y; 977s assert (~logical(e)) 977s assert (isAlways(e)) 977s 21 tests, 21 passed, 0 known failure, 0 skipped 977s [inst/@sym/atand.m] 977s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/atand.m 977s ***** error atand (sym(1), 2) 977s ***** assert (isequaln (atand (sym(nan)), sym(nan))) 977s ***** test 977s f1 = atand (sym(1)/2); 977s f2 = atand (1/2); 977s assert (double (f1), f2, -eps) 978s ***** test 978s D = [1 2; 3 4]/4; 978s A = sym([1 2; 3 4])/4; 978s f1 = atand (A); 978s f2 = atand (D); 978s assert (double (f1), f2, -eps) 978s 4 tests, 4 passed, 0 known failure, 0 skipped 978s [inst/@sym/min.m] 978s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/min.m 978s ***** test 978s % scalars with dim 978s a = min(sym(pi), [], 1); 978s b = sym(pi); 978s assert (isequal (a, b)); 978s a = min(sym(pi), [], 2); 978s assert (isequal (a, b)); 978s a = max(sym(pi), [], 1); 978s assert (isequal (a, b)); 978s a = max(sym(pi), [], 2); 978s assert (isequal (a, b)); 978s ***** shared A, D 978s D = [0 1 2 3]; 978s A = sym(D); 978s ***** test 978s % row vectors 978s assert (isequal (min(A), sym(min(D)))) 978s assert (isequal (min(A), sym(0))) 978s assert (isequal (max(A), sym(max(D)))) 978s assert (isequal (max(A), sym(3))) 978s ***** test 978s % row vectors with dim 978s assert (isequal (min(A, [], 1), sym(min(D, [], 1)))) 978s assert (isequal (min(A, [], 2), sym(min(D, [], 2)))) 978s assert (isequal (max(A, [], 1), sym(max(D, [], 1)))) 978s assert (isequal (max(A, [], 2), sym(max(D, [], 2)))) 978s ***** test 978s % column vectors 978s A = A.'; 978s D = D.'; 978s assert (isequal (min(A), sym(min(D)))) 978s assert (isequal (min(A), sym(0))) 978s assert (isequal (max(A), sym(max(D)))) 978s assert (isequal (max(A), sym(3))) 978s ***** test 978s % row vectors with dim 978s assert (isequal (min(A, [], 1), sym(min(D, [], 1)))) 978s assert (isequal (min(A, [], 2), sym(min(D, [], 2)))) 978s assert (isequal (max(A, [], 1), sym(max(D, [], 1)))) 978s assert (isequal (max(A, [], 2), sym(max(D, [], 2)))) 978s ***** shared 978s ***** test 978s % empty 978s a = min(sym([])); 978s assert(isempty(a)) 978s a = max(sym([])); 978s assert(isempty(a)) 978s ***** test 978s % matrix 978s A = [1 4 6; 2 2 5]; 978s A = sym(A); 978s assert (isequal (min(A), sym([1 2 5]))) 978s assert (isequal (min(A, [], 1), sym([1 2 5]))) 978s assert (isequal (min(A, [], 2), sym([1; 2]))) 978s assert (isequal (max(A), sym([2 4 6]))) 978s assert (isequal (max(A, [], 1), sym([2 4 6]))) 978s assert (isequal (max(A, [], 2), sym([6; 5]))) 979s ***** test 979s % index output is double not sym 979s [m, I] = min(sym(2), [], 1); 979s assert (strcmp(class(I), 'double')) 979s [m, I] = max(sym(2), [], 1); 979s assert (strcmp(class(I), 'double')) 979s ***** test 979s % empty rows/columns, I is double 979s A = sym(zeros(0, 4)); 979s [m, I] = min(A, [], 1); 979s assert (strcmp(class(I), 'double')) 979s [m, I] = max(A, [], 1); 979s assert (strcmp(class(I), 'double')) 979s A = sym(zeros(3, 0)); 979s [m, I] = min(A, [], 2); 979s assert (strcmp(class(I), 'double')) 979s [m, I] = max(A, [], 2); 979s assert (strcmp(class(I), 'double')) 979s ***** test 979s % index output 979s A = [0 1 9; 10 7 4]; 979s B = sym(A); 979s [m1, I1] = min(A); 979s [m2, I2] = min(B); 979s assert (isequal (I1, I2)) 979s assert (isequal (m1, double(m2))) 979s [m1, I1] = max(A); 979s [m2, I2] = max(B); 979s assert (isequal (I1, I2)) 979s assert (isequal (m1, double(m2))) 979s ***** test 979s % index output, with dim 979s A = [0 1 9; 10 7 4]; 979s B = sym(A); 979s [m1, I1] = min(A, [], 1); 979s [m2, I2] = min(B, [], 1); 979s assert (isequal (I1, I2)) 979s assert (isequal (m1, double(m2))) 979s [m1, I1] = min(A, [], 2); 979s [m2, I2] = min(B, [], 2); 979s assert (isequal (I1, I2)) 979s assert (isequal (m1, double(m2))) 979s [m1, I1] = max(A, [], 1); 979s [m2, I2] = max(B, [], 1); 979s assert (isequal (I1, I2)) 979s assert (isequal (m1, double(m2))) 979s [m1, I1] = max(A, [], 2); 979s [m2, I2] = max(B, [], 2); 979s assert (isequal (I1, I2)) 979s assert (isequal (m1, double(m2))) 980s ***** test 980s % empty columns 980s A = sym(zeros(0, 4)); 980s [m, I] = min(A, [], 1); 980s assert (isequal (size(m), [0 4])) 980s assert (isequal (size(I), [0 4])) 980s [m, I] = max(A, [], 1); 980s assert (isequal (size(m), [0 4])) 980s assert (isequal (size(I), [0 4])) 980s ***** test 980s % empty rows 980s A = sym(zeros(3, 0)); 980s [m, I] = min(A, [], 2); 980s assert (isequal (size(m), [3 0])) 980s assert (isequal (size(I), [3 0])) 980s [m, I] = max(A, [], 2); 980s assert (isequal (size(m), [3 0])) 980s assert (isequal (size(I), [3 0])) 980s ***** test 980s % another empty case 980s % we differ slightly from double which gives 1x0/0x1 980s A = sym(zeros(3, 0)); 980s [m, I] = min(A, [], 1); 980s assert (isempty (m)) 980s assert (isempty (I)) 980s A = sym(zeros(0, 3)); 980s [m, I] = min(A, [], 2); 980s assert (isempty (m)) 980s assert (isempty (I)) 980s ***** test 980s % empty without index output 980s A = sym(zeros(3, 0)); 980s assert (isempty (min (A, [], 1))) 980s assert (isempty (max (A, [], 1))) 980s assert (isempty (min (A, [], 2))) 980s assert (isempty (max (A, [], 2))) 980s A = sym(zeros(0, 3)); 980s assert (isempty (min (A, [], 1))) 980s assert (isempty (max (A, [], 1))) 980s assert (isempty (min (A, [], 2))) 980s assert (isempty (max (A, [], 2))) 980s ***** test 980s % binary op form, one a scalar 980s A = sym([3 1 9]); 980s m = min(A, sym(2)); 980s M = max(A, sym(2)); 980s assert (isequal (m, sym([2 1 2]))) 980s assert (isequal (M, sym([3 2 9]))) 980s m = min(sym(2), A); 980s M = max(sym(2), A); 980s assert (isequal (m, sym([2 1 2]))) 980s assert (isequal (M, sym([3 2 9]))) 980s ***** test 980s % binary op form, both scalar 980s m = min(sym(1), sym(2)); 980s M = max(sym(2), sym(2)); 980s assert (isequal (m, sym(1))) 980s assert (isequal (M, sym(2))) 980s ***** test 980s syms x y 980s assert (isequal (children (min (x, y)), [x y])) 980s ***** test 980s syms x y z 980s A = [x 1; y z]; 980s assert (isequal (min (A, [], 1), [min(x, y) min(1, z)])) 980s assert (isequal (max (A, [], 1), [max(x, y) max(1, z)])) 980s assert (isequal (min (A, [], 2), [min(x, 1); min(y, z)])) 980s assert (isequal (max (A, [], 2), [max(x, 1); max(y, z)])) 982s ***** test 982s syms x y positive 982s a = min([x 2 y -6]); 982s assert (isequal (a, -6)) 982s a = max([x y -6]); 982s assert (isequal (a, max(x, y))) 982s ***** test 982s syms x negative 982s a = min([x 6 10]); 982s assert (isequal (a, x)) 982s a = max([x -2 6]); 982s assert (isequal (a, 6)) 982s 21 tests, 21 passed, 0 known failure, 0 skipped 982s [inst/@sym/sinint.m] 982s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/sinint.m 982s ***** error sinint (sym(1), 2) 982s ***** xtest 982s assert (isequaln (sinint (sym(nan)), sym(nan))) 982s !!!!! known failure 982s assert (isequaln (sinint (sym (nan)), sym (nan))) failed 982s ***** shared x, d 982s d = 1; 982s x = sym('1'); 982s ***** test 982s f1 = sinint(x); 982s f2 = 0.9460830703671830149414; 982s assert( abs(double(f1) - f2) < 1e-15 ) 982s ***** test 982s D = [d d; d d]; 982s A = [x x; x x]; 982s f1 = sinint(A); 982s f2 = 0.9460830703671830149414; 982s f2 = [f2 f2; f2 f2]; 982s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 982s ***** test 982s % round trip 982s y = sym('y'); 982s A = sinint (d); 982s f = sinint (y); 982s h = function_handle (f); 982s B = h (d); 982s assert (A, B, -eps) 982s 5 tests, 4 passed, 1 known failure, 0 skipped 982s [inst/@sym/cond.m] 982s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/cond.m 982s ***** test 982s A = [1 2; 3 4]; 982s B = sym(A); 982s k1 = cond(A); 982s k2 = cond(B); 982s k3 = double(k2); 982s assert (k1 - k3 <= 100*eps) 982s ***** test 982s % matrix with symbols 982s syms x positive 982s A = [x 0; sym(0) 2*x]; 982s k1 = cond(A); 982s assert (isequal (k1, sym(2))) 982s 2 tests, 2 passed, 0 known failure, 0 skipped 982s [inst/@sym/rdivide.m] 982s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/rdivide.m 982s ***** test 982s % scalar 982s syms x 982s assert (isa (x ./ 1, 'sym')) 982s assert (isa (x ./ x, 'sym')) 982s assert (isequal (x ./ 1, x)) 982s assert (isequal (x ./ x, sym(1))) 982s ***** test 982s % matrix-scalar 982s D = 2*[0 1; 2 3]; 982s A = sym(D); 982s assert (isequal ( A./2 , D/2 )) 982s assert (isequal ( A./sym(2) , D/2 )) 982s assert (isequal ( D./sym(2) , D/2 )) 982s ***** test 982s % matrix ./ matrix 982s D = [1 2; 3 4]; 982s A = sym(D); 982s assert (isequal ( A./A , D./D )) 982s assert (isequal ( A./D , D./D )) 982s assert (isequal ( D./A , D./D )) 982s ***** test 982s % matrix ./ matrix with symbols 982s syms x y 982s A = [x y; x^2 2*y]; 982s B = [y x; x y]; 982s assert (isequal ( A./A , sym(ones(2,2)) )) 982s assert (isequal ( A./B , [x/y y/x; x 2] )) 982s ***** test 982s % scalar ./ matrix 982s D = [1 2; 3 4]; 982s A = sym(D); 982s assert (isequal ( 12./A , 12./D )) 982s 5 tests, 5 passed, 0 known failure, 0 skipped 982s [inst/@sym/ellipticK.m] 982s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/ellipticK.m 982s ***** error ellipticK (sym(1), 2) 982s ***** assert (isequal (ellipticK (sym (0)), sym (pi)/2)) 983s ***** assert (isequal (ellipticK (sym (-inf)), sym (0))) 983s ***** assert (double (ellipticK (sym (1)/2)), 1.854074677, 10e-10) 983s ***** assert (double (ellipticK (sym (pi)/4)), 2.225253684, 10e-10) 983s ***** assert (double (ellipticK (sym (-55)/10)), 0.9324665884, 10e-11) 983s ***** test 983s % compare to double ellipke 983s m = 1/5; 983s ms = sym(1)/5; 983s [K, E] = ellipke (m); 983s assert (double (ellipticK (ms)), K, -1e-15) 983s assert (double (ellipticE (ms)), E, -1e-15) 983s ***** test 983s % compare to double ellipke 983s if (exist ('OCTAVE_VERSION', 'builtin')) 983s m = -10.3; 983s ms = -sym(103)/10; 983s [K, E] = ellipke (m); 983s assert (double (ellipticK (ms)), K, -1e-15) 983s assert (double (ellipticE (ms)), E, -1e-15) 983s end 983s ***** test 983s % compare to Maple 983s us = vpa (ellipticK (sym (7)), 40); 983s % > evalf(EllipticK(sqrt(7)), 40); 983s maple = vpa ('0.6168027921799632674669917683443602673441', 40) - ... 983s vpa ('0.9114898734184488922164103102629560336918j', 40); 983s assert (abs (double (maple - us)), 0, 1e-39) 983s 9 tests, 9 passed, 0 known failure, 0 skipped 983s [inst/@sym/chebyshevU.m] 983s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/chebyshevU.m 983s ***** error chebyshevU (sym(1)) 983s ***** error chebyshevU (sym(1), 2, 3) 983s ***** assert (isequaln (chebyshevU (2, sym(nan)), sym(nan))) 983s ***** shared x 983s syms x 983s ***** assert(isequal(chebyshevU(0, x), sym(1))) 983s ***** assert(isequal(chebyshevU(1, x), 2*x)) 983s ***** assert(isequal(chebyshevU(2, x), 4*x*x - 1)) 983s ***** assert(isequal(chebyshevU([0 1 2], x), [sym(1) 2*x (4*x*x-1)])) 984s ***** test 984s % round trip 984s syms n z 984s f = chebyshevU (n, z); 984s h = function_handle (f, 'vars', [n z]); 984s A = h (1.1, 2.2); 984s B = chebyshevU (1.1, 2.2); 984s assert (A, B) 984s 8 tests, 8 passed, 0 known failure, 0 skipped 984s [inst/@sym/besselk.m] 984s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/besselk.m 984s ***** test 984s X = [1 2 3; 4 5 6]; 984s ns = [sym(0) 1 -2; sym(1)/2 -sym(3)/2 pi]; 984s n = double(ns); 984s A = double(besselk(ns, X)); 984s B = besselk(n, X); 984s assert (all (all (abs (A - B) < 2*eps*abs(A)))) 984s ***** test 984s % roundtrip 984s syms x 984s A = besselk(2, 10); 984s q = besselk(2, x); 984s h = function_handle(q); 984s B = h(10); 984s assert (abs (A - B) <= eps*abs(A)) 984s ***** error besselk(sym('x')) 984s 3 tests, 3 passed, 0 known failure, 0 skipped 984s [inst/@sym/mrdivide.m] 984s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/mrdivide.m 984s ***** test 984s % scalar 984s syms x 984s assert (isa( x/x, 'sym')) 984s assert (isequal( x/x, sym(1))) 984s assert (isa( 2/x, 'sym')) 984s assert (isa( x/2, 'sym')) 984s ***** test 984s % matrix / scalar 984s D = 2*[0 1; 2 3]; 984s A = sym(D); 984s assert (isequal ( A/2 , D/2 )) 984s assert (isequal ( A/sym(2) , D/2 )) 985s ***** test 985s % I/A: either invert A or leave unevaluated: not bothered which 985s A = sym([1 2; 3 4]); 985s B = sym(eye(2)) / A; 985s assert (isequal (B, inv(A)) || strncmpi (sympy (B), 'MatPow', 6)) 985s ***** xtest 985s % immutable test, upstream: TODO 985s A = sym([1 2; 3 4]); 985s B = sym('ImmutableDenseMatrix([[Integer(1), Integer(2)], [Integer(3), Integer(4)]])'); 985s assert (isequal (A/A, B/B)) 985s :18: SyntaxWarning: invalid escape sequence '\(' 985s ***** test 985s % A = C/B is C = A*B 985s A = sym([1 2; 3 4]); 985s B = sym([1 3; 4 8]); 985s C = A*B; 985s A2 = C / B; 985s assert (isequal (A, A2)) 985s ***** test 985s A = [1 2; 3 4]; 985s B = A / A; 985s % assert (isequal (B, sym(eye(2)) 985s assert (isequal (B(1,1), 1)) 985s assert (isequal (B(2,2), 1)) 985s assert (isequal (B(2,1), 0)) 985s assert (isequal (B(1,2), 0)) 985s ***** test 985s A = sym([5 6]); 985s B = sym([1 2; 3 4]); 985s C = A*B; 985s A2 = C / B; 985s assert (isequal (A, A2)) 985s 7 tests, 7 passed, 0 known failure, 0 skipped 985s [inst/@sym/factorial.m] 985s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/factorial.m 985s ***** error factorial (sym(1), 2) 985s ***** xtest 985s assert (isequaln (factorial (sym(nan)), sym(nan))) 985s !!!!! known failure 985s assert (isequaln (factorial (sym (nan)), sym (nan))) failed 985s ***** shared x, d 985s d = 1; 985s x = sym('1'); 985s ***** test 985s f1 = factorial(x); 985s f2 = factorial(d); 985s assert( abs(double(f1) - f2) < 1e-15 ) 985s ***** test 985s D = [d d; d d]; 985s A = [x x; x x]; 985s f1 = factorial(A); 985s f2 = factorial(D); 985s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 985s ***** test 985s % round trip 985s y = sym('y'); 985s A = factorial (d); 985s f = factorial (y); 985s h = function_handle (f); 985s B = h (d); 985s assert (A, B, -eps) 985s 5 tests, 4 passed, 1 known failure, 0 skipped 985s [inst/@sym/flipud.m] 985s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/flipud.m 985s ***** test 985s % simple 985s syms x 985s A = [x 2; sym(pi) x]; 985s B = [sym(pi) x; x 2]; 985s assert (isequal (flipud(A), B)) 985s ***** test 985s % simple, odd # rows 985s syms x 985s A = [x 2; sym(pi) x; [1 2]]; 985s B = [[1 2]; sym(pi) x; x 2]; 985s assert (isequal (flipud(A), B)) 986s ***** test 986s % scalar 986s syms x 986s assert (isequal (flipud(x), x)) 986s 3 tests, 3 passed, 0 known failure, 0 skipped 986s [inst/@sym/le.m] 986s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/le.m 986s ***** test 986s % simple 986s x = sym(1); y = sym(1); e = x <= y; 986s assert (logical (e)) 986s x = sym(1); y = sym(2); e = x <= y; 986s assert (logical (e)) 986s ***** test 986s % array -- array 986s syms x 986s a = sym([1 3 3 2*x]); 986s b = sym([2 x 3 10]); 986s e = a <= b; 986s assert (isa (e, 'sym')) 986s assert (logical (e(1))) 986s assert (isa (e(2), 'sym')) 986s assert (isequal (e(2), 3 <= x)) 986s assert (logical (e(3))) 986s assert (isa (e(4), 'sym')) 986s assert (isequal (e(4), 2*x <= 10)) 986s 2 tests, 2 passed, 0 known failure, 0 skipped 986s [inst/@sym/all.m] 986s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/all.m 986s ***** test 986s % matrix 986s a = [0 3; 1 2]; 986s s = sym (a); 986s assert (isequal (all (s), all (a))) 986s assert (isequal (all (s,1), all (a,1))) 986s assert (isequal (all (s,2), all (a,2))) 986s ***** test 986s % vector 986s a = [1 2 3]; 986s s = sym (a); 986s assert (isequal (all (s), all (a))) 986s assert (isequal (all (s,1), all (a,1))) 986s assert (isequal (all (s,2), all (a,2))) 986s ***** test 986s % should fail on symbols 986s syms x 986s s = [1 2 x]; 986s try 986s all (s) 986s waserr = false; 986s catch 986s waserr = true; 986s end 986s assert (waserr) 986s 3 tests, 3 passed, 0 known failure, 0 skipped 986s [inst/@sym/nextprime.m] 986s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/nextprime.m 986s ***** assert (isequal (nextprime(sym(2)), 3)); 986s ***** assert (isequal (nextprime(sym(18)), 19)); 986s ***** assert (isequal (nextprime(sym([1 2 3])), [2 3 5])); 986s ***** assert (isequal (nextprime(sym([-1 0])), [2 2])); 986s ***** test 986s % result is a sym 986s p = nextprime(sym(2)); 986s assert (isa (p, 'sym')) 986s 5 tests, 5 passed, 0 known failure, 0 skipped 986s [inst/@sym/heaviside.m] 986s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/heaviside.m 986s ***** error heaviside (sym(1), 2, 3) 986s ***** assert (isequal (heaviside (sym(1)), sym(1))) 986s ***** assert (isequal (heaviside (-sym(1)), sym(0))) 986s ***** assert (double (heaviside (1)), heaviside (1)) 986s ***** test 986s D = [1 -1; -10 20]; 986s A = sym(D); 986s assert (double (heaviside (A)), heaviside (D)) 987s ***** test 987s H0 = sym([1 -2 0; 3 0 pi]); 987s A = heaviside (sym(0), H0); 987s assert (isequal (A, H0)) 987s ***** test 987s A = heaviside ([-1 0 1], sym(1)/2); 987s assert (isequal (A, [0 sym(1)/2 1])) 987s ***** test 987s A = heaviside ([-1 0 1], sym(1)/2); 987s assert (isequal (A, [0 sym(1)/2 1])) 987s ***** assert (isequaln (heaviside (sym(nan)), sym(nan))) 987s ***** test 987s assert (isequaln (heaviside (sym(nan), sym(nan)), sym(nan))) 987s assert (isequaln (heaviside (0, sym(nan)), sym(nan))) 987s assert (isequaln (heaviside (2, sym(nan)), sym(1))) 987s assert (isequaln (heaviside (-2, sym(nan)), sym(0))) 987s ***** test 987s % round trip 987s syms x 987s A = heaviside (1); 987s f = heaviside (x); 987s h = function_handle (f); 987s B = h (1); 987s assert (A, B, -eps) 987s ***** test 987s % round trip 987s syms x h0 987s f = heaviside (x, h0); 987s h = function_handle (f, 'vars', {x h0}); 987s A = heaviside (1, 1/2); 987s B = h (1, 1/2); 987s assert (A, B, -eps) 987s A = heaviside (0, 1/2); 987s B = h (0, 1/2); 987s assert (A, B, -eps) 987s 12 tests, 12 passed, 0 known failure, 0 skipped 987s [inst/@sym/null.m] 987s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/null.m 987s ***** test 987s A = sym([1 2; 3 4]); 987s assert (isempty (null (A))) 987s ***** assert (isempty (null (sym(4)))) 987s ***** test 987s A = sym([1 2 3; 3 4 5]); 987s assert (isequal (null(A), sym([1;-2;1]))) 987s 3 tests, 3 passed, 0 known failure, 0 skipped 987s [inst/@sym/conj.m] 987s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/conj.m 987s ***** test 987s a = sym(6); 987s b = sym(5i); 987s assert (isequal (conj(a), a)) 987s assert (isequal (conj(b), -b)) 987s assert (isequal (conj(a+b), a-b)) 987s ***** test 987s syms x 987s assert (isequal (conj(conj(x)), x)) 987s ***** test 987s syms x real 987s assert (isequal (conj(x), x)) 987s ***** test 987s % array 987s syms x 987s A = [x 6+1i; sym(1) x+2i]; 987s B = [conj(x) 6-1i; sym(1) conj(x)-2i]; 987s assert (isequal (conj(A), B)) 988s ***** test 988s % true/false 988s t = sym(true); 988s f = sym(false); 988s assert (isequal ( conj(t), t)) 988s assert (isequal ( conj(f), f)) 988s ***** test 988s % round trip 988s syms x 988s d = 3 - 5i; 988s f = conj (x); 988s A = conj (d); 988s h = function_handle (f); 988s B = h (d); 988s assert (A, B) 988s 6 tests, 6 passed, 0 known failure, 0 skipped 988s [inst/@sym/partfrac.m] 988s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/partfrac.m 988s ***** test 988s % basic 988s syms x y z 988s assert(logical( partfrac(y/(x + 2)/(x + 1),x) == -y/(x + 2) + y/(x + 1) )) 988s assert(logical( factor(partfrac(x^2/(x^2 - y^2),y)) == factor(x/(2*(x + y)) + x/(2*(x - y)) ))) 988s assert(logical( factor(partfrac(x^2/(x^2 - y^2),x)) == factor(-y/(2*(x + y)) + y/(2*(x - y)) + 1 ))) 989s 1 test, 1 passed, 0 known failure, 0 skipped 989s [inst/@sym/mpower.m] 989s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/mpower.m 989s ***** test 989s syms x 989s assert(isequal(x^(sym(4)/5), x.^(sym(4)/5))) 989s ***** test 989s % integer powers of scalars 989s syms x 989s assert (isequal (x^2, x*x)) 989s assert (isequal (x^sym(3), x*x*x)) 989s ***** test 989s % array ^ integer 989s syms x y 989s A = [x 2; y 4]; 989s assert (isequal (A^2, A*A)) 989s assert (isequal (simplify(A^3 - A*A*A), [0 0; 0 0])) 989s ***** test 989s % array ^ rational 989s Ad = [1 2; 0 3]; 989s A = sym(Ad); 989s B = A^(sym(1)/3); 989s Bd = Ad^(1/3); 989s assert (max(max(abs(double(B) - Bd))) < 1e-14) 989s ***** test 989s % non-integer power 989s A = sym([1 2; 0 3]); 989s B = A^pi; 989s C = [1 -1+3^sym(pi); 0 sym(3)^pi]; 989s assert (isequal (B, C)) 990s ***** test 990s % matpow 990s syms n 990s A = sym([1 2; 3 4]); 990s B = A^n; 990s C = 10 + B + B^2; 990s D = subs(C, n, 1); 990s E = 10 + A + A^2; 990s assert (isequal (simplify(D), simplify(E))) 992s ***** test 992s % matpow, sub in zero gives identity 992s A = sym([1 2; 0 3]); 992s syms n; 992s B = A^n; 992s C = subs(B, n, 1); 992s assert (isequal (C, A)) 992s C = subs(B, n, 0); 992s assert (isequal (C, sym(eye(2)))) 992s ***** xtest 992s % scalar^array (e.g., defined by matrix exponential) not implemented in SymPy? 992s % on 1.0 < SymPy <= 1.5.1, you can form the expression but still cannot eval 992s syms x 992s A = [1 2; 3 4]; 992s B = x^A; 992s assert (strcmp (regexprep (disp (B, 'flat'), '\s+', ''), 'x**Matrix([[1,2],[3,4]])')) 992s % sub in and compare to double 992s Bs = subs(B, x, sym(3)/2); 992s D1 = double(Bs); 992s D2 = (3/2)^[1 2; 3 4]; 992s assert (max(max(abs(D1 - D2))) < 1e-14) 992s !!!!! known failure 992s Python exception: TypeError: unsupported operand type(s) for ** or pow(): 'Symbol' and 'MutableDenseMatrix' 992s occurred at line 2 of the Python code block: 992s return x**y 992s ***** error 992s A = sym([1 2; 3 4]); 992s B = A^A; 992s 9 tests, 8 passed, 1 known failure, 0 skipped 992s [inst/@sym/fliplr.m] 992s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/fliplr.m 992s ***** test 992s % simple 992s syms x 992s A = [x 2; sym(pi) x]; 992s B = [2 x; x sym(pi)]; 992s assert (isequal (fliplr(A), B)) 992s ***** test 992s % simple, odd # cols 992s syms x 992s A = [x 2 sym(pi); x 1 2]; 992s B = [sym(pi) 2 x; 2 1 x]; 992s assert (isequal (fliplr(A), B)) 993s ***** test 993s % scalar 993s syms x 993s assert (isequal (fliplr(x), x)) 993s 3 tests, 3 passed, 0 known failure, 0 skipped 993s [inst/@sym/asin.m] 993s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/asin.m 993s ***** error asin (sym(1), 2) 993s ***** assert (isequaln (asin (sym(nan)), sym(nan))) 993s ***** shared x, d 993s d = 1; 993s x = sym('1'); 993s ***** test 993s f1 = asin(x); 993s f2 = asin(d); 993s assert( abs(double(f1) - f2) < 1e-15 ) 993s ***** test 993s D = [d d; d d]; 993s A = [x x; x x]; 993s f1 = asin(A); 993s f2 = asin(D); 993s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 993s ***** test 993s % round trip 993s y = sym('y'); 993s A = asin (d); 993s f = asin (y); 993s h = function_handle (f); 993s B = h (d); 993s assert (A, B, -eps) 993s 5 tests, 5 passed, 0 known failure, 0 skipped 993s [inst/@sym/isfinite.m] 993s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/isfinite.m 993s ***** assert (isfinite(sym(1))) 993s ***** assert (isfinite(sym(-10))) 993s ***** assert (~isfinite(sym('oo'))) 993s ***** assert (~isfinite(sym('-oo'))) 993s ***** assert (~isfinite(sym(1)/0)) 993s ***** assert (~isfinite(sym(nan))) 993s ***** assert (isequal (isfinite (sym ([1 inf])), [true false])) 993s ***** test 993s % finite-by-assumption 993s syms x finite 993s assert (isfinite (x)) 993s 8 tests, 8 passed, 0 known failure, 0 skipped 993s [inst/@sym/erfinv.m] 993s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/erfinv.m 993s ***** error erfinv (sym(1), 2) 993s ***** assert (isequaln (erfinv (sym(nan)), sym(nan))) 993s ***** shared x, d 993s d = 1/2; 993s x = sym('1/2'); 993s ***** test 993s f1 = erfinv(x); 993s f2 = erfinv(d); 993s assert( abs(double(f1) - f2) < 1e-15 ) 993s ***** test 993s D = [d d; d d]; 993s A = [x x; x x]; 993s f1 = erfinv(A); 993s f2 = erfinv(D); 993s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 993s ***** test 993s % round trip 993s y = sym('y'); 993s A = erfinv (d); 993s f = erfinv (y); 993s h = function_handle (f); 993s B = h (d); 993s assert (A, B, -eps) 993s 5 tests, 5 passed, 0 known failure, 0 skipped 993s [inst/@sym/fresnelc.m] 993s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/fresnelc.m 993s ***** error fresnelc (sym(1), 2) 993s ***** test 993s a = fresnelc(sym(0)); 993s assert (isequal (a, sym(0))) 993s ***** test 993s b = fresnelc(sym('oo')); 993s assert (isequal (b, sym(1)/2)) 993s ***** test 993s % values in a matrix 993s syms x 993s a = fresnelc([sym(0) sym('oo') x 1]); 993s b = [sym(0) sym(1)/2 fresnelc(x) fresnelc(sym(1))]; 993s assert (isequal (a, b)) 993s ***** test 993s % round trip 993s syms x 993s f = fresnelc (x); 993s h = function_handle (f); 993s A = h (1.1); 993s B = fresnelc (1.1); 993s assert (A, B) 993s 5 tests, 5 passed, 0 known failure, 0 skipped 993s [inst/@sym/expint.m] 993s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/expint.m 993s ***** error expint (sym(1), 2, 3) 993s ***** test 993s f1 = expint(sym(1)); 993s f2 = expint(1); 993s assert( abs(double(f1) - f2) < 1e-15 ) 993s ***** test 993s f1 = expint(sym(1i)); 993s f2 = expint(1i); 993s assert( abs(double(f1) - f2) < 1e-15 ) 993s ***** test 993s D = [1 2; 3 4]; 993s A = sym(D); 993s f1 = expint(A); 993s f2 = expint(D); 993s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 994s ***** test 994s syms x 994s A = expint(x); 994s B = expint(1, x); 994s assert (isequal (A, B)) 994s ***** test 994s syms x 994s A = exp(-x)/x; 994s B = expint(0, x); 994s assert (isequal (A, B)) 994s ***** test 994s % round trip 994s syms x 994s A = expint (3); 994s f = expint (x); 994s h = function_handle (f); 994s B = h (3); 994s assert (A, B, -eps) 994s ***** error 994s % round trip 994s syms n x 994s f = expint (n, x); 994s h = function_handle (f); 994s 8 tests, 8 passed, 0 known failure, 0 skipped 994s [inst/@sym/max.m] 994s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/max.m 994s ***** test 994s % simple 994s assert (isequal (max([sym(10) sym(11)]), sym(11))) 994s ***** test 994s syms x y 994s assert (isequal (children (max (x, y)), [x y])) 994s 2 tests, 2 passed, 0 known failure, 0 skipped 994s [inst/@sym/solve.m] 994s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/solve.m 994s ***** test 994s % Simple, single variable, single solution 994s syms x 994s d = solve(10*x == 50); 994s assert (isequal (d, 5)) 994s ***** test 994s % Single variable, multiple solutions 994s syms x 994s d = solve(x^2 == 4); 994s assert (length(d) == 2); 994s assert (isequal (d, [2; -2]) || isequal (d, [-2; 2])) 994s ***** shared x,y,eq 994s syms x y 994s eq = 10*x == 20*y; 994s ***** test 994s d = solve(eq, x); 994s assert (isequal (d, 2*y)) 994s ***** test 994s d = solve(eq, y); 994s assert (isequal (d, x/2)) 994s ***** test 994s d = solve(eq); 994s assert (isequal (d, 2*y)) 994s ***** shared x,y 994s syms x y 994s ***** test 994s d = solve(2*x - 3*y == 0, x + y == 1); 994s assert (isequal (d.x, sym(3)/5) && isequal(d.y, sym(2)/5)) 994s ***** test 994s d = solve(2*x - 3*y == 0, x + y == 1, x, y); 994s assert (isequal (d.x, sym(3)/5) && isequal(d.y, sym(2)/5)) 995s ***** test 995s % Multiple solutions, multiple variables 995s d = solve(x^2 == 4, x + y == 1); 995s assert (length(d) == 2); 995s % FIXME: SMT has d.x gives vector and d.y giving vector, what is 995s % more intuitive? 995s for i = 1:2 995s assert (isequal (d{i}.x + d{i}.y, 1)) 995s assert (isequal ((d{i}.x)^2, 4)) 995s end 995s ***** test 995s % No solutions 995s syms x y z 995s d = solve(x == y, z); 995s assert (isempty (d)); 995s ***** test 995s % Multiple outputs with single solution 995s [X, Y] = solve(2*x + y == 5, x + y == 3); 995s assert (isequal (X, 2)) 995s assert (isequal (Y, 1)) 995s ***** test 995s % system: vector of equations, vector of vars 995s [X, Y] = solve([2*x + y == 5, x + y == 3], [x y]); 995s assert (isequal (X, 2)) 995s assert (isequal (Y, 1)) 995s ***** test 995s % system: vector of equations, individual vars 995s [X, Y] = solve([2*x + y == 5, x + y == 3], x, y); 995s assert (isequal (X, 2)) 995s assert (isequal (Y, 1)) 995s ***** test 995s % system: individual equations, vector of vars 995s [X, Y] = solve(2*x + y == 5, x + y == 3, [x y]); 995s assert (isequal (X, 2)) 995s assert (isequal (Y, 1)) 996s ***** test 996s % Multiple outputs with multiple solns 996s [X, Y] = solve(x*x == 4, x == 2*y); 996s assert ((isequal (X, [2; -2]) && isequal (Y, [1; -1])) || ... 996s (isequal (X, [-2; 2]) && isequal (Y, [-1; 1]))) 996s ***** test 996s % Multiple outputs with multiple solns, specify vars 996s [X, Y] = solve(x*x == 4, x == 2*y, x, y); 996s assert ((isequal (X, [2; -2]) && isequal (Y, [1; -1])) || ... 996s (isequal (X, [-2; 2]) && isequal (Y, [-1; 1]))) 996s ***** error 996s % mult outputs not allowed for scalar equation, even with mult soln (?) 996s [s1, s2] = solve(x^2 == 4, x); 996s ***** test 996s % overdetermined 996s X = solve(2*x - 10 == 0, 3*x - 15 == 0, x); 996s assert (isequal (X, sym(5))) 996s ***** test 996s a = solve(2*x >= 10, 10*x <= 50); 996s assert (isequal( a, x==sym(5))) 996s ***** test 996s A = solve([2*x == 4*y, 2 == 3], x); 996s assert (isempty (A)) 996s ***** test 996s % Issue #850 996s A = solve (sym(pi)^2*x + y == 0); 996s assert (isequal (A, -y/sym(pi)^2)) 996s ***** test 996s % https://github.com/sympy/sympy/issues/14632 996s A = solve([2*x == 4*y, sym(2) == 2], x); 996s assert (isequal (A, 2*y)) 996s ***** test 996s % https://github.com/sympy/sympy/issues/14632 996s A = solve([2*x^2 == 32*y^2, sym(2) == 2], x); 996s B = solve([2*x^2 == 32*y^2], x); 996s assert (isequal (A, B) || isequal (A, flip (B))) 997s ***** test 997s A = solve ([x+1 0], x); 997s assert (isequal (A, sym (-1))) 997s ***** test 997s A = solve (x + 1, x); 997s assert (isequal (A, sym (-1))) 997s A = solve (x, x); 997s assert (isequal (A, sym (0))) 997s 24 tests, 24 passed, 0 known failure, 0 skipped 997s [inst/@sym/findsym.m] 997s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/findsym.m 997s ***** assert (strcmp (findsym (sym(2)), '')); 997s ***** shared x,y,f 997s x=sym('x'); y=sym('y'); f=x^2+3*x*y-y^2; 997s ***** assert (strcmp (findsym (f), 'x,y')); 997s ***** assert (strcmp (findsym (f,1), 'x')); 997s ***** test 997s % test order of returned vars 997s syms x y a b c xx 997s % https://www.mathworks.com/matlabcentral/newsreader/view_thread/237730 997s alpha = sym('alpha'); 997s assert (strcmp (findsym(b*xx*exp(alpha) + c*sin(a*y), 2), 'xx,y')) 997s 4 tests, 4 passed, 0 known failure, 0 skipped 997s [inst/@sym/ismatrix.m] 997s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/ismatrix.m 997s ***** assert(ismatrix(sym('x'))) 997s ***** assert(ismatrix(sym([1 2 3]))) 997s ***** assert(ismatrix(sym([1; 2]))) 997s ***** assert(ismatrix(sym([1 2; 3 4]))) 997s ***** assert(ismatrix(sym([]))) 997s ***** assert(ismatrix(sym(ones(1,0)))) 997s ***** assert(ismatrix(sym(ones(0,3)))) 997s 7 tests, 7 passed, 0 known failure, 0 skipped 997s [inst/@sym/divisors.m] 997s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/divisors.m 997s ***** test 997s assert( isequal( divisors(sym(150)), divisors(sym(-150)) )) 998s 1 test, 1 passed, 0 known failure, 0 skipped 998s [inst/@sym/factor.m] 998s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/factor.m 998s ***** test 998s % n = 152862; 998s % [p,m] = factor(n); % only works on Octave, no Matlab as of 2014a 998s n = 330; % so we use an output without repeated factors 998s p = factor(n); m = ones(size(p)); 998s [ps,ms] = factor(sym(n)); 998s assert (isequal (p, ps)) 998s assert (isequal (m, ms)) 998s ***** test 998s n = sym(2)^4*13; 998s [p,m] = factor(n); 998s assert (isequal (p, [2 13])) 998s assert (isequal (m, [4 1])) 998s ***** test syms x 998s assert( logical (factor(x^2 + 6*x + 5) == (x+5)*(x+1))) 998s ***** test 998s syms x 998s f = [ x^4/2 + 5*x^3/12 - x^2/3 x^2 - 1 10]; 998s g = [ x^2*(2*x - 1)*(3*x + 4)/12 (x+1)*(x-1) 10]; 998s assert (isequal (factor(f), g)) 998s ***** test 998s % "fragile form" works 998s A = factor(sym(124)); 998s B = strtrim(disp(A, 'flat')); 998s assert (strcmp (B, '2**2*31**1')) 998s ***** error [p, m] = factor(sym('x')); 999s ***** error [p, m] = factor(sym(42), sym('x')); 999s ***** test 999s % if polynomial happens to be a constant, don't attempt integer 999s % factorization if a variable is specified 999s f = sym(42); 999s q = factor(f, sym('x')); 999s assert (isequal (f, q)); 999s 8 tests, 8 passed, 0 known failure, 0 skipped 999s [inst/@sym/rref.m] 999s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/rref.m 999s ***** test 999s A = sym([1 2; 3 4]); 999s [r, k] = rref(A); 999s assert (isequal (r, eye(2))) 999s assert (isequal (k, [1 2])) 999s ***** assert (isequal (rref(sym([2 1])), [1 sym(1)/2])) 999s ***** assert (isequal (rref(sym([1 2; 2 4])), [1 2; 0 0])) 999s ***** assert (isequal (rref(sym([0 0; 2 4])), [1 2; 0 0])) 999s ***** test 999s A = sym([1 2 3; 2 3 4]); 999s [r, k] = rref(A); 999s assert (isequal (r, [1 0 -1; 0 1 2])) 999s assert (isequal (k, [1 2])); 1000s 5 tests, 5 passed, 0 known failure, 0 skipped 1000s [inst/@sym/norm.m] 1000s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/norm.m 1000s ***** assert (isequal (norm(sym(-6)), 6)) 1000s ***** test 1000s % 2-norm default 1000s A = [1 2; 3 4]; 1000s n1 = norm (sym (A)); 1000s assert (isequal (n1, sqrt (sqrt (sym(221)) + 15))) 1000s assert (norm (A), double (n1), -eps) 1000s ***** test 1000s syms x y real 1000s assert (isequal (norm([x 1; 3 y], 'fro'), sqrt(x^2 + y^2 + 10))) 1000s ***** test 1000s syms x real 1000s assert (isequal (norm([x 1], 2), sqrt(x^2 + 1))) 1000s ***** test 1000s % test sym vs double ord 1000s syms x 1000s assert (isequal (norm([x 2 1], 1), abs(x) + 3)) 1000s assert (isequal (norm([x 2 1], sym(1)), abs(x) + 3)) 1000s assert (isequal (norm([sym(-3) 2 1], inf), sym(3))) 1000s assert (isequal (norm([sym(-3) 2 1], sym(inf)), sym(3))) 1000s 5 tests, 5 passed, 0 known failure, 0 skipped 1000s [inst/@sym/signIm.m] 1000s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/signIm.m 1000s ***** assert (isequal (signIm (sym(1)), sym(0))) 1000s ***** assert (isequal (signIm (sym(1) + 2i), sym(1))) 1000s ***** assert (isequal (signIm (sym(1) - 2i), sym(-1))) 1000s ***** test 1000s % intermediate A looks bit weird, but it works 1000s syms z 1000s A = signIm (z); 1000s assert (isequal (subs(A, z, 3+sym(4i)), sym(1))) 1000s assert (isequal (subs(A, z, 3-sym(4i)), sym(-1))) 1001s ***** test 1001s % really a @sym/sign test, but that one is autogen 1001s z = 3 + sym(4i); 1001s A = sign (z); 1001s B = z / abs(z); 1001s assert (double (A), double (B), eps) 1001s 5 tests, 5 passed, 0 known failure, 0 skipped 1001s [inst/@sym/prevprime.m] 1001s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/prevprime.m 1001s ***** assert (isequal (prevprime(sym(3)), 2)); 1001s ***** assert (isequal (prevprime(sym(20)), 19)); 1001s ***** assert (isequal (prevprime(sym([3 5 10])), [2 3 7])); 1001s ***** error prevprime(sym(2)) 1001s ***** error prevprime(sym(-2)) 1001s ***** test 1001s % result is a sym 1001s p = prevprime(sym(3)); 1001s assert (isa (p, 'sym')) 1001s 6 tests, 6 passed, 0 known failure, 0 skipped 1001s [inst/@sym/limit.m] 1001s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/limit.m 1001s ***** error limit (sym(1), 2, 3, 4, 5) 1001s ***** shared x, oo 1001s syms x 1001s oo = sym(inf); 1001s ***** assert (isa (limit(x, x, pi), 'sym')) 1001s ***** assert (isequal (limit(x, x, pi), sym(pi))) 1001s ***** assert (isequal (limit(sin(x)/x, x, 0), 1)) 1001s ***** test 1001s % left/right-hand limit 1001s assert (isequal (limit(1/x, x, 0, 'right'), oo)) 1001s assert (isequal (limit(1/x, x, 0), oo)) 1001s assert (isequal (limit(1/x, x, 0, 'left'), -oo)) 1001s assert (isequal (limit(1/x, x, oo), 0)) 1001s assert (isequal (limit(sign(x), x, 0, 'left'), -1)) 1001s assert (isequal (limit(sign(x), x, 0, 'right'), 1)) 1001s assert (isequal (limit(sign(x), x, 0, '-'), -1)) 1001s assert (isequal (limit(sign(x), x, 0, '+'), 1)) 1001s ***** test 1001s % matrix 1001s syms y 1001s A = [x 1/x x*y]; 1001s B = sym([3 sym(1)/3 3*y]); 1001s assert (isequal (limit(A, x, 3), B)) 1002s ***** test 1002s % omitting arguments 1002s syms a 1002s assert (isequal (limit(a), 0)) 1002s assert (isequal (limit(a*x+a+2), a+2)) 1002s assert (isequal (limit(a*x+a+2, 6), 7*a+2)) 1002s ***** test 1002s % constants 1002s assert (isequal (limit(sym(6)), 6)) 1002s assert (isequal (limit(sym(6), 7), 6)) 1002s assert (isequal (limit([sym(6) sym(2)], 7), [6 2])) 1002s ***** test 1002s % double constant, with sym limit 1002s a = limit (6, sym(0)); 1002s assert (isa (a, 'sym')) 1002s assert (isequal (a, sym(6))) 1002s 9 tests, 9 passed, 0 known failure, 0 skipped 1002s [inst/@sym/plus.m] 1002s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/plus.m 1002s ***** test 1002s % basic addition 1002s syms x 1002s assert (isa (x+5, 'sym')) 1002s assert (isa (5+x, 'sym')) 1002s assert (isa (5+sym(4), 'sym')) 1002s assert (isequal (5+sym(4), sym(9))) 1002s ***** test 1002s % array addition 1002s syms x 1002s D = [0 1; 2 3]; 1002s A = [sym(0) 1; sym(2) 3]; 1002s DZ = D - D; 1002s assert( isequal ( A + D , 2*D )) 1002s assert( isequal ( D + A , 2*D )) 1002s assert( isequal ( A + A , 2*D )) 1002s assert( isequal ( A + 2 , D + 2 )) 1002s assert( isequal ( 4 + A , 4 + D )) 1003s ***** test 1003s % ensure MatrixExpr can be manipulated somewhat 1003s syms n m integer 1003s A = sym('A', [n m]); 1003s B = subs(A, [n m], [5 6]); 1003s B = B + 1; 1003s assert (isa (B, 'sym')) 1003s C = B(1, 1); % currently makes a MatrixElement 1003s C = C + 1; 1003s assert (isa (C, 'sym')) 1003s 3 tests, 3 passed, 0 known failure, 0 skipped 1003s [inst/@sym/sinc.m] 1003s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/sinc.m 1003s ***** error sinc (sym(1), 2) 1003s ***** assert (isequaln (sinc (sym(nan)), sym(nan))) 1003s ***** assert (isequal (sinc (sym(0)), sym(1))) 1003s ***** assert (isequal (sinc (sym(1)), sym(0))) 1003s ***** assert (isequal (sinc (-sym(1)), sym(0))) 1003s ***** assert (double (sinc (sym(pi))), sinc (pi), -10*eps) 1003s ***** test 1003s A = [-sym(1)/2 sym(1)/2 pi; -sym(7)/2 sym(71)/2 sym(101)/3]; 1003s D = double (A); 1003s assert (sinc (D), double (sinc (A)), -200*eps) 1003s ***** test 1003s A = [sym(51)/2 sym(1001)/3 sym(10001)/3 sym(100001)/3]; 1003s D = double (A); 1003s assert (sinc (D), double (sinc (A)), 1e-10) 1004s ***** test 1004s % round trip 1004s syms x 1004s A = sinc (1); 1004s f = sinc (x); 1004s h = function_handle (f); 1004s B = h (1); 1004s assert (A, B, -eps) 1004s ***** test 1004s % round trip 1004s syms x 1004s f = sinc (x); 1004s h = function_handle (f); 1004s A = sinc (1.5); 1004s B = h (1.5); 1004s assert (A, B, -eps) 1004s ***** test 1004s syms x 1004s h = function_handle (sinc (x)); 1004s A = double (sinc (sym (12)/10)); 1004s B = h (1.2); 1004s C = sinc (1.2); 1004s assert (A, B, -eps) 1004s assert (A, C, -eps) 1004s 11 tests, 11 passed, 0 known failure, 0 skipped 1004s [inst/@sym/and.m] 1004s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/and.m 1004s ***** shared t, f 1004s t = sym(true); 1004s f = sym(false); 1004s ***** test 1004s % simple 1004s assert (isequal (t & f, f)) 1004s assert (isequal (t & t, t)) 1004s ***** test 1004s % mix wih nonsym 1004s assert (isequal (t & false, f)) 1004s assert (isequal (t & true, t)) 1004s assert (isequal (t & 0, f)) 1004s assert (isequal (t & 1, t)) 1004s assert (isa (t & false, 'sym')) 1004s assert (isa (t & 1, 'sym')) 1004s ***** test 1004s % array 1004s w = [t t f f]; 1004s z = [t f t f]; 1004s assert (isequal (w & z, [t f f f])) 1004s ***** test 1004s % number 1004s assert (isequal( sym(1) & t, t)) 1004s assert (isequal( sym(0) & t, f)) 1004s ***** test 1004s % output is sym even for scalar t/f 1004s assert (isa (t & f, 'sym')) 1004s ***** test 1004s % eqns, exclusive 1004s syms x 1004s e = (x == 3) & (x^2 == 9); 1004s assert (isequal (subs(e, x, [-3 0 3]), [f f t])) 1004s ***** error and (sym('x'), 2, 3) 1004s 7 tests, 7 passed, 0 known failure, 0 skipped 1004s [inst/@sym/fix.m] 1004s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/fix.m 1004s ***** test 1004s d = 3/2; 1004s x = sym('3/2'); 1004s f1 = fix(x); 1004s f2 = fix(d); 1004s assert (isequal (f1, f2)) 1004s ***** test 1004s D = [1.1 4.6; -3.4 -8.9]; 1004s A = [sym(11)/10 sym(46)/10; sym(-34)/10 sym(-89)/10]; 1004s f1 = fix(A); 1004s f2 = fix(D); 1004s assert( isequal (f1, f2)) 1005s ***** test 1005s d = sym(-11)/10; 1005s c = -1; 1005s assert (isequal (fix (d), c)) 1005s ***** test 1005s d = sym(-19)/10; 1005s c = -1; 1005s assert (isequal (fix (d), c)) 1005s 4 tests, 4 passed, 0 known failure, 0 skipped 1005s [inst/@sym/fourier.m] 1005s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/fourier.m 1005s ***** test 1005s % matlab SMT compatibiliy for arguments 1005s syms r x u w v 1005s Pi=sym('pi'); 1005s assert(logical( fourier(exp(-x^2)) == sqrt(Pi)/exp(w^2/4) )) 1005s assert(logical( fourier(exp(-w^2)) == sqrt(Pi)/exp(v^2/4) )) 1005s assert(logical( fourier(exp(-r^2),u) == sqrt(Pi)/exp(u^2/4) )) 1005s assert(logical( fourier(exp(-r^2),r,u) == sqrt(Pi)/exp(u^2/4) )) 1007s ***** test 1007s % basic tests 1007s syms x w 1007s assert(logical( fourier(exp(-abs(x))) == 2/(w^2 + 1) )) 1007s assert(logical( fourier(x*exp(-abs(x))) == -(w*4*1i)/(w^4 + 2*w^2 + 1) )) 1008s ***** test 1008s % Dirac delta tests 1008s syms x w 1008s Pi=sym('pi'); 1008s assert(logical( fourier(dirac(x-2)) == exp(-2*1i*w) )) 1008s assert (logical( fourier(sym(2), x, w) == 4*Pi*dirac(w) )) 1009s ***** test 1009s % advanced test 1009s syms x w c d 1009s Pi=sym('pi'); 1009s F=Pi*(dirac(w-c)+dirac(w+c))+2*Pi*1i*(dirac(w+3*d)-dirac(w-3*d))+2/(w^2+1); 1009s assert(logical( fourier(cos(c*x)+2*sin(3*d*x)+exp(-abs(x))) == expand(F) )) 1009s ***** xtest 1009s % Differential operator to algebraic 1009s % SymPy cannot evaluate? (Issue #170) 1009s syms x w f(x) 1009s assert(logical( fourier(diff(f(x),x),x,w) == -1i*w*fourier(f(x),x,w) )) 1010s !!!!! known failure 1010s assert (logical (fourier (diff (f (x), x), x, w) == -1i * w * fourier (f (x), x, w))) failed 1010s 5 tests, 4 passed, 1 known failure, 0 skipped 1010s [inst/@sym/cot.m] 1010s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/cot.m 1010s ***** error cot (sym(1), 2) 1010s ***** assert (isequaln (cot (sym(nan)), sym(nan))) 1010s ***** shared x, d 1010s d = 1; 1010s x = sym('1'); 1010s ***** test 1010s f1 = cot(x); 1010s f2 = cot(d); 1010s assert( abs(double(f1) - f2) < 1e-15 ) 1010s ***** test 1010s D = [d d; d d]; 1010s A = [x x; x x]; 1010s f1 = cot(A); 1010s f2 = cot(D); 1010s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1011s ***** test 1011s % round trip 1011s y = sym('y'); 1011s A = cot (d); 1011s f = cot (y); 1011s h = function_handle (f); 1011s B = h (d); 1011s assert (A, B, -eps) 1011s 5 tests, 5 passed, 0 known failure, 0 skipped 1011s [inst/@sym/subsasgn.m] 1011s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/subsasgn.m 1011s ***** shared a,b 1011s b = [1:4]; 1011s a = sym(b); 1011s ***** test a(1) = 10; b(1) = 10; 1011s assert(isequal( a, b )) 1011s ***** test I = logical([1 0 1 0]); 1011s a(I) = 2; b(I) = 2; 1011s assert(isequal( a, b )) 1011s ***** test I = logical([1 0 1 0]); 1011s a(I) = [2 4]; b(I) = [2 4]; 1011s assert(isequal( a, b )) 1011s ***** test I = logical([1 0 1 0]); 1011s a(I) = [2; 4]; b(I) = [2; 4]; 1011s assert(isequal( a, b )) 1011s ***** shared 1011s ***** test 1011s b = 1:4; b = [b; 2*b; 3*b]; 1011s a = sym(b); 1011s rhs = [10 11; 12 13]; 1011s a([1:2],[1:2]) = rhs; 1011s b([1:2],[1:2]) = rhs; 1011s assert(isequal( a, b )) 1011s a(1:2,1:2) = rhs; 1011s assert(isequal( a, b )) 1012s ***** test 1012s % slice : 1012s b = 1:4; b = [b; 2*b]; 1012s a = sym(b); 1012s rhs = [10 11; 12 13]; 1012s a(:,2:3) = rhs; 1012s b(:,2:3) = rhs; 1012s assert(isequal( a, b )) 1012s ***** test 1012s % grow 2D 1012s b = 1:4; b = [b; 2*b]; 1012s a = sym(b); 1012s rhs = [10 11; 12 13]; 1012s a([1 end+1],end:end+1) = rhs; 1012s b([1 end+1],end:end+1) = rhs; 1012s assert(isequal( a, b )) 1012s ***** test 1012s % grow from nothing 1012s clear a 1012s a(3) = sym (1); 1012s b = sym ([0 0 1]); 1012s assert (isequal (a, b)) 1012s ***** test 1012s % grow from nothing, 2D 1012s clear a 1012s a(2, 3) = sym (1); 1012s b = sym ([0 0 0; 0 0 1;]); 1012s assert (isequal (a, b)) 1012s ***** test 1012s % linear indices of 2D 1012s b = 1:4; b = [b; 2*b; 3*b]; 1012s a = sym(b); 1012s b(1:4) = [10 11 12 13]; 1012s a(1:4) = [10 11 12 13]; 1012s assert(isequal( a, b )) 1012s b(1:4) = [10 11; 12 13]; 1012s a(1:4) = [10 11; 12 13]; 1012s assert(isequal( a, b )) 1013s ***** error 1013s % Wrong shape matrix RHS: Matlab/Octave don't allow this on doubles. 1013s % Matlab SMT 2013b gets it wrong. We throw an error. 1013s rhs = [10 11; 12 13]; 1013s a = sym (magic (3)); 1013s a(1:2,1:2) = rhs(:); 1013s ***** test 1013s % Issue #963: vector RHS with diff orientation from 2D indexing 1013s b = 1:4; b = [b; 2*b; 3*b]; 1013s a = sym(b); 1013s b(1:2:3, 1) = 11:2:13; 1013s a(1:2:3, 1) = sym(11:2:13); 1013s assert (isequal (a, b)) 1013s b(1:2:3, 1) = 1:2:3; 1013s a(1:2:3, 1) = 1:2:3; 1013s assert (isequal (a, b)) 1013s ***** test 1013s % Issue #963: vector RHS with diff orientation from 2D indexing 1013s a = sym (magic (3)); 1013s b = a; 1013s a(1:2:3, 2) = [14 15]; 1013s b(1:2:3, 2) = [14; 15]; 1013s assert (isequal (a, b)) 1013s a(2, 1:2:3) = [24 25]; 1013s b(2, 1:2:3) = [24; 25]; 1013s assert (isequal (a, b)) 1014s ***** test 1014s % 1D growth and 'end' 1014s g = sym([1 2 3]); 1014s g(3:4) = [67 68]; 1014s g(end:end+1) = [12 14]; 1014s assert(isequal( g, [1 2 67 12 14] )) 1014s ***** test 1014s % expanding empty and scalar 1014s syms x 1014s c = sym([]); 1014s c(1) = x; 1014s assert(isequal( c, x )) 1014s c(2) = 2*x; 1014s assert(isequal( c, [x 2*x] )) 1014s ***** shared a,b,I,J 1014s b = 1:4; b = [b; 3*b; 5*b]; a = sym(b); 1014s I = logical([1 0 1]); 1014s J = logical([1 0 1 0]); 1014s ***** assert(isequal( a(I,J), b(I,J) )) 1014s ***** test 1014s rhs = [90 91; 92 93]; 1014s b(I, J) = rhs; 1014s a(I, J) = rhs; 1014s assert(isequal( a, b )) 1014s ***** test 1014s b(I, J) = 100; 1014s a(I, J) = 100; 1014s assert(isequal( a, b )) 1014s ***** shared 1014s ***** test 1014s % logical with all false 1014s syms x 1014s y = x; 1014s y(false) = 6; 1014s assert(isequal( y, x )); 1014s a = [x x]; 1014s a([false false]) = [6 6]; 1014s assert(isequal( a, [x x] )); 1014s ***** test 1014s % issue #18, scalar access 1014s syms x 1014s x(1) = sym(6); 1014s assert(isequal( x, sym(6) )); 1014s x(1) = 6; 1014s assert(isequal( x, sym(6) )); 1014s x(true) = 88; 1014s assert(isequal( x, sym(88) )); 1015s ***** test 1015s % bug: assignment to column vector used to fail 1015s A = sym(zeros(3,1)); 1015s A(1) = 5; 1015s ***** test 1015s % symfun creation (generic function) 1015s syms x 1015s g(x) = x*x; 1015s assert(isa(g,'symfun')) 1015s ***** test 1015s % symfun creation (generic function) 1015s syms x g(x) 1015s assert(isa(g,'symfun')) 1015s ***** test 1015s % symfun creation when g already exists and is a sym/symfun 1015s syms x 1015s g = x; 1015s syms g(x) 1015s assert(isa(g,'symfun')) 1015s clear g 1015s g(x) = x; 1015s g(x) = x*x; 1015s assert(isa(g,'symfun')) 1015s ***** test 1015s % Issue #443: assignment with sym indices 1015s A = sym([10 11]); 1015s A(sym(1)) = 12; 1015s assert (isequal (A, sym([12 11]))) 1015s ***** test 1015s % Issue #443: assignment with sym indices 1015s A = sym([10 11]); 1015s A(sym(1), 1) = 12; 1015s assert (isequal (A, sym([12 11]))) 1015s A(sym(1), sym(1)) = 13; 1015s assert (isequal (A, sym([13 11]))) 1015s ***** test 1015s % Issue #443: assignment with sym indices, increase size 1015s A = sym([10 11]); 1015s A(sym(2), 1) = 12; 1015s assert (isequal (A, sym([10 11; 12 0]))) 1015s ***** error 1015s % Issue #443 1015s A = sym([10 11]); 1015s A(2, sym('x')) = sym(12); 1015s ***** error 1015s % Issue #443 1015s A = sym([10 11]); 1015s A(sym(2), sym('x')) = sym(12); 1015s ***** error 1015s % issue #445 1015s A = sym([10 11]); 1015s A(1.1) = 13 1015s ***** error 1015s % issue #445 1015s A = sym([10 11]); 1015s A(sym(pi)) = 13 1015s ***** error 1015s % issue #445 1015s A = sym([1 2; 3 4]); 1015s A(1.3, 1.2) = 13 1015s ***** test 1015s % older expansion tests 1015s syms x 1015s f = [2*x 3*x]; 1015s f(2) = 4*x; 1015s assert (isequal (f, [2*x 4*x])) 1015s f(2) = 2; 1015s assert (isequal(f, [2*x 2])) 1015s g = f; 1015s g(1,3) = x*x; 1015s assert (isequal(g, [2*x 2 x^2])) 1015s g = f; 1015s g(3) = x*x; 1015s assert (isequal(g, [2*x 2 x^2])) 1015s g = f; 1015s g(3) = 4; 1015s assert (isequal(g, [2*x 2 4])) 1016s ***** test 1016s % older slicing tests 1016s syms x 1016s f = [1 x^2 x^4]; 1016s f(1:2) = [x x]; 1016s assert (isequal( f, [x x x^4] )) 1016s f(1:2) = [1 2]; 1016s assert (isequal( f, [1 2 x^4] )) 1016s f(end-1:end) = [3 4]; 1016s assert (isequal( f, [1 3 4] )) 1016s f(3:4) = [10 11]; 1016s assert (isequal( f, [1 3 10 11] )) 1016s f(end:end+1) = [12 14]; 1016s assert (isequal( f, [1 3 10 12 14] )) 1016s ***** test 1016s % struct.str = sym, sometimes calls subsasgn 1016s d = struct(); 1016s syms x 1016s d.a = x; 1016s assert (isa (d, 'struct')) 1016s assert (isequal (d.a, x)) 1016s d.('a') = x; 1016s assert (isa (d, 'struct')) 1016s assert (isequal (d.a, x)) 1016s d = setfield(d, 'a', x); 1016s assert (isa (d, 'struct')) 1016s assert (isequal (d.a, x)) 1016s % at least on Oct 3.8, this calls sym's subsasgn 1016s d = struct(); 1016s d = setfield(d, 'a', x); 1016s assert (isa (d, 'struct')) 1016s assert (isequal (d.a, x)) 1016s ***** test 1016s % bool scalar assignments of true/false into sym 1016s syms x 1016s a = sym([1 2 x 3]); 1016s b = [1 2 10 4]; 1016s e = a == b; 1016s assert (logical (e(2))) 1016s e(2) = false; 1016s assert (~logical (e(2))) 1016s ***** test 1016s % bool vector assignments of true/false into sym 1016s syms x 1016s a = sym([1 2 x 3]); 1016s b = [1 2 10 4]; 1016s e = a == b; 1016s e(1:2) = [true true]; 1016s assert (isequal (e, [sym(1)==1 sym(2)==2 x==10 sym(3)==4])) 1017s ***** test 1017s % bool scalar promoted to vector assignments into sym 1017s syms x 1017s a = sym([1 2 x 3]); 1017s b = [1 2 10 4]; 1017s e = a == b; 1017s e(1:2) = true; 1017s assert (isequal (e, [sym(1)==1 sym(2)==2 x==10 sym(3)==4])) 1017s ***** test 1017s % grow scalar equality expression into a matrix of equalities 1017s syms a b c d 1017s e = a == b; 1017s e(2) = c == d; 1017s assert (isequal (e, [a==b c==d])) 1017s ***** shared a, b, I 1017s b = [1:4]; b = [b; 3*b; 5*b]; 1017s a = sym(b); 1017s I = mod (b, 5) > 1; 1017s ***** test 1017s A = a; A(I) = 2*b(I); 1017s B = b; B(I) = 2*b(I); 1017s assert (isequal (A, B)) 1017s ***** test 1017s % scalar RHS 1017s A = a; A(I) = 17; 1017s B = b; B(I) = 17; 1017s assert (isequal (A, B)) 1017s ***** test 1017s % nonetheless, above strange case should give right answer 1017s I = logical([1 0 1 0; 0 1 0 1; 1 0 1 0]); 1017s rhs = 2*b(I); 1017s rhs2 = reshape(rhs, 2, 3); 1017s A0 = a; A1 = a; 1017s A0(I) = rhs; 1017s A1(I) = rhs2; 1017s assert (isequal (A0, A1)) 1017s ***** shared AA, BB 1017s BB = [1 2 3; 4 5 6]; 1017s AA = sym(BB); 1017s ***** test 1017s A = AA; B = BB; 1017s B([1 6]) = [8 9]; 1017s A([1 6]) = [8 9]; 1017s assert (isequal (A, B)) 1018s ***** test 1018s % rhs scalar 1018s A = AA; B = BB; 1018s B([1 6]) = 88; 1018s A([1 6]) = 88; 1018s assert (isequal (A, B)) 1018s ***** test 1018s % If rhs is not a vector, make sure col-based access works 1018s rhs = [18 20; 19 21]; 1018s A = AA; B = BB; 1018s B([1 6]) = 88; 1018s A([1 6]) = 88; 1018s B([1 2 3 4]) = rhs; 1018s A([1 2 3 4]) = rhs; 1018s assert (isequal (A, B)) 1018s ***** test 1018s % Growth 1018s A = AA; B = BB; 1018s A(1,5) = 10; 1018s B(1,5) = 10; 1018s assert (isequal (A, B)) 1018s ***** shared 1018s ***** test 1018s % Check row deletion 1D 1018s a = sym([1; 3; 5]); 1018s b = sym([3; 5]); 1018s a(1) = []; 1018s assert( isequal( a, b)) 1018s ***** test 1018s % Check column deletion 1D 1018s a = sym([1, 4, 8]); 1018s b = sym([4, 8]); 1018s a(1) = []; 1018s assert( isequal( a, b)) 1018s ***** test 1018s % Check row deletion 2D 1018s a = sym([1, 2; 3, 4]); 1018s b = sym([3, 4]); 1018s a(1, :) = []; 1018s assert( isequal( a, b)) 1018s ***** test 1018s % Check column deletion 2D 1018s a = sym([1, 2; 3, 4]); 1018s b = sym([2; 4]); 1018s a(:, 1) = []; 1018s assert( isequal( a, b)) 1018s ***** test 1018s % General assign 1018s a = sym([1, 2; 3, 4]); 1018s b = sym([5, 5; 5, 5]); 1018s a(:) = 5; 1018s assert( isequal( a, b)) 1018s ***** test 1018s % Empty matrix 1018s a = sym([1, 2; 3, 4]); 1018s a(:) = []; 1018s assert( isequal( a, sym([]))) 1018s ***** test 1018s % Disassemble matrix 1018s a = sym([1 2; 3 4; 5 6]); 1018s b = sym([3 5 2 4 6]); 1018s a(1) = []; 1018s assert (isequal (a, b)); 1019s ***** error 1019s a = sym([1, 2; 3, 4]); 1019s a(1, 2) = []; 1019s ***** test 1019s % Issue #964 1019s a = sym(10); 1019s a(1) = []; 1019s assert (isempty (a)) 1019s assert (isequal (a, zeros(1, 0))) 1019s ***** test 1019s % Issue #963: scalar asgn to empty part of matrix 1019s A = sym (magic (3)); 1019s B = A; 1019s A(1, []) = 42; 1019s assert (isequal (A, B)) 1019s A([], 2) = 42; 1019s assert (isequal (A, B)) 1019s A([]) = 42; 1019s assert (isequal (A, B)) 1019s A([], []) = 42; 1019s assert (isequal (A, B)) 1019s A(2:3, []) = 42; 1019s assert (isequal (A, B)) 1019s A([], 2:3) = 42; 1019s assert (isequal (A, B)) 1019s A(:, []) = 42; 1019s assert (isequal (A, B)) 1019s A([], :) = 42; 1019s assert (isequal (A, B)) 1019s ***** test 1019s % Issue #1026 1019s a = sym(1:5); 1019s a(1:3) = []; 1019s assert (isequal (a, sym([4 5]))) 1019s ***** test 1019s % Issue #1026 1019s B = eye(4); 1019s A = sym(B); 1019s A(1:2, :) = []; 1019s B(1:2, :) = []; 1019s assert (isequal (A, B)) 1019s ***** error 1019s % TODO: do we care what error? 1019s A = sym (magic (3)); 1019s A(2:3, []) = [66; 66]; 1020s ***** error 1020s A = sym (magic (3)); 1020s A([]) = [66; 66]; 1020s ***** error 1020s A = sym (magic (3)); 1020s A([], 1) = [66; 66]; 1020s ***** test 1020s % Issue #966: empty indexing, empty RHS, A unchanged 1020s B = magic(3); 1020s A = sym(B); 1020s A(1, []) = []; 1020s assert (isequal (A, B)) 1020s A([], 2) = []; 1020s assert (isequal (A, B)) 1020s A([], []) = []; 1020s assert (isequal (A, B)) 1020s A(2:3, []) = []; 1020s assert (isequal (A, B)) 1020s A([], 2:3) = []; 1020s assert (isequal (A, B)) 1020s A(:, []) = []; 1020s assert (isequal (A, B)) 1020s A([], :) = []; 1020s assert (isequal (A, B)) 1020s ***** test 1020s % Issue 967 1020s B = [1 2; 3 4]; 1020s A = sym(B); 1020s A([]) = []; 1020s assert (isequal (A, B)) 1021s ***** test 1021s % Issue #965 1021s a = sym(7); 1021s a([]) = []; 1021s assert (isequal (a, sym(7))) 1021s ***** test 1021s % Issue #965 1021s a = sym(7); 1021s a([]) = 42; 1021s assert (isequal (a, sym(7))) 1021s ***** error 1021s % Issue #965 1021s a = sym(7); 1021s a([]) = [42 42] 1021s ***** test 1021s b = eye (3); 1021s a = sym (b); 1021s I = [2 3; 4 5]; 1021s a(I) = -2*I; 1021s b(I) = -2*I; 1021s assert (isequal (a, sym (b))); 1021s assert (size (a), [3 3]); 1021s ***** error 1021s syms x 1021s A = [1 x; x 2]; 1021s A(5) = x; 1021s ***** test 1021s % 2D indexing with length in one dimension more than 2 1021s a = sym ([1 2; 3 4; 5 6]); 1021s indices = [1 4; 2 5; 3 6]; 1021s b = [10 11; 12 13; 14 15]; 1021s a(indices) = b; 1021s assert (isequal (a, sym (b))); 1021s ***** test 1021s A = sym ([0 0 0]); 1021s indices = [false true false]; 1021s A(indices) = 1; 1021s assert (isequal (A, sym ([0 1 0]))); 1021s A(indices) = []; 1021s assert (isequal (A, sym ([0 0]))); 1021s indices = [false false]; 1021s A(indices) = []; 1021s assert (isequal (A, sym ([0 0]))); 1021s ***** shared a, b 1021s a = [1 2 3 5; 4 5 6 9; 7 5 3 2]; 1021s b = sym (a); 1021s ***** test 1021s A = a; B = b; 1021s A(true) = 0; 1021s B(true) = 0; 1021s assert (isequal (A, B)) 1022s ***** test 1022s A = a; B = b; 1022s A(false) = 0; 1022s B(false) = 0; 1022s assert (isequal (A, B)) 1022s ***** test 1022s c = [false true]; 1022s A = a; B = b; 1022s A(c) = 0; B(c) = 0; 1022s assert (isequal (A, B)) 1022s d = c | true; 1022s A(d) = 1; B(d) = 1; 1022s assert (isequal (A, B)) 1022s d = c & false; 1022s A(d) = 2; B(d) = 2; 1022s assert (isequal (A, B)) 1022s ***** test 1022s c = [false true false true; true false true false; false true false true]; 1022s A = a; B = b; 1022s A(c) = 0; B(c) = 0; 1022s assert (isequal (A, B)) 1022s d = c | true; 1022s A(d) = 1; B(d) = 1; 1022s assert (isequal (A, B)) 1022s d = c & false; 1022s A(d) = 2; B(d) = 2; 1022s assert (isequal (A, B)) 1023s ***** test 1023s c = [false true false true false]; 1023s A = a; B = b; 1023s A(c) = 0; B(c) = 0; 1023s assert (isequal (A, B)) 1023s d = c | true; 1023s A(d) = 1; B(d) = 1; 1023s assert (isequal (A, B)) 1023s d = c & false; 1023s A(d) = 2; B(d) = 2; 1023s assert (isequal (A, B)) 1023s ***** test 1023s c = [false; true; false; true; false]; 1023s A = a; B = b; 1023s A(c) = 0; B(c) = 0; 1023s assert (isequal (A, B)) 1023s d = c | true; 1023s A(d) = 1; B(d) = 1; 1023s assert (isequal (A, B)) 1023s d = c & false; 1023s A(d) = 2; B(d) = 2; 1023s assert (isequal (A, B)) 1023s ***** test 1023s c = [false true; false true; true false]; 1023s A = a; B = b; 1023s A(c) = 0; B(c) = 0; 1023s assert (isequal (A, B)) 1023s d = c | true; 1023s A(d) = 1; B(d) = 1; 1023s assert (isequal (A, B)) 1023s d = c & false; 1023s A(d) = 2; B(d) = 2; 1023s assert (isequal (A, B)) 1024s 77 tests, 77 passed, 0 known failure, 0 skipped 1024s [inst/@sym/gt.m] 1024s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/gt.m 1024s ***** test 1024s % simple 1024s x = sym(1); y = sym(1); e = x > y; 1024s assert (~logical (e)) 1024s x = sym(1); y = sym(2); e = x > y; 1024s assert (~logical (e)) 1024s ***** test 1024s % array -- array 1024s syms x 1024s a = sym([1 3 3 2*x]); 1024s b = sym([2 x 3 10]); 1024s e = a > b; 1024s assert (isa (e, 'sym')) 1024s assert (~logical (e(1))) 1024s assert (isa (e(2), 'sym')) 1024s assert (isequal (e(2), 3 > x)) 1024s assert (~logical (e(3))) 1024s assert (isa (e(4), 'sym')) 1024s assert (isequal (e(4), 2*x > 10)) 1024s 2 tests, 2 passed, 0 known failure, 0 skipped 1024s [inst/@sym/any.m] 1024s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/any.m 1024s ***** test 1024s % matrix 1024s a = [0 0; 1 0]; 1024s s = sym(a); 1024s assert (isequal (any (s), any (a))) 1024s assert (isequal (any (s,1), any (a,1))) 1024s assert (isequal (any (s,2), any (a,2))) 1024s ***** test 1024s % vector 1024s a = [0 1 0]; 1024s s = sym(a); 1024s assert (isequal (any (s), any (a))) 1024s assert (isequal (any (s,1), any (a,1))) 1024s assert (isequal (any (s,2), any (a,2))) 1024s ***** test 1024s % should fail on symbols 1024s syms x 1024s s = [0 1 x]; 1024s try 1024s any (s) 1024s waserr = false; 1024s catch 1024s waserr = true; 1024s end 1024s assert (waserr) 1024s 3 tests, 3 passed, 0 known failure, 0 skipped 1024s [inst/@sym/real.m] 1024s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/real.m 1024s ***** assert (isequal (real (sym (4) + 3i),4)) 1024s ***** test 1024s syms x y real 1024s z = x + 1i*y; 1024s assert (isequal (real (z),x)) 1024s ***** test 1024s syms x y real 1024s Z = [4 x + 1i*y; x 4 + 3i]; 1024s assert (isequal (real (Z),[4 x; x 4])) 1025s ***** test 1025s syms x real 1025s d = exp (x*i); 1025s assert (isequal (real (d), cos (x))) 1025s ***** test 1025s % round trip 1025s syms x 1025s d = 3 - 5i; 1025s f = real (x); 1025s A = real (d); 1025s h = function_handle (f); 1025s B = h (d); 1025s assert (A, B) 1025s 5 tests, 5 passed, 0 known failure, 0 skipped 1025s [inst/@sym/kron.m] 1025s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/kron.m 1025s ***** error kron (sym (2)) 1025s ***** test 1025s syms x y 1025s A = [sin(x), sin(y); x, y]; 1025s B = ones(2); 1025s expected = sym([sin(x), sin(x), sin(y), sin(y); sin(x), sin(x), sin(y), sin(y); x, x, y, y; x, x, y, y]); 1025s assert (isequal (kron(A, B), expected)) 1025s ***** test 1025s syms x y 1025s A = [sin(x), sin(y); x, y]; 1025s B = 2; 1025s assert (isequal (kron(A, B), 2*A)) 1025s ***** test 1025s syms x y 1025s A = [sin(x), sin(y)]; 1025s B = 2; 1025s assert (isequal( kron(B, A), 2*A)) 1025s ***** test 1025s syms x y; 1025s X = [tan(x), tan(x)]; 1025s Y = [cot(x); cot(x)]; 1025s expected = sym(ones(2)); 1025s assert (isequal (simplify(kron(X, Y)), expected)) 1026s ***** test 1026s syms x y z 1026s X = [x, y, z]; 1026s Y = [y, y; x, x]; 1026s expected = [x*y, x*y, y^2, y^2, y*z, y*z; x^2, x^2, x*y, x*y, x*z, x*z]; 1026s assert (isequal (kron(X, Y), expected)) 1026s ***** test 1026s syms x y 1026s X = [x, x^2; y, y^2]; 1026s Y = [1, 0; 0, 1]; 1026s expected = [x, x^2, 0, 0; y, y^2, 0, 0; 0, 0, x, x^2; 0, 0, y, y^2]; 1026s assert (isequal (kron(Y, X), expected)) 1026s ***** test 1026s syms x y z 1026s assert (isequal (kron (x, y, z), x*y*z)) 1026s assert (isequal (kron (x, y, z, 4), 4*x*y*z)) 1026s assert (isequal (kron ([2 3], y, z), [2 3]*y*z)) 1026s assert (isequal (kron ([2 3], [4; 5], y), [8 12; 10 15]*y)) 1026s ***** test 1026s syms x y 1026s A = kron ([x y], [1, -1; -1, 1], [2 3; 4 5]); 1026s D = kron ([7 9], [1, -1; -1, 1], [2 3; 4 5]); 1026s A = double (subs (A, [x y], [7 9])); 1026s assert (isequal (A, D)) 1027s 9 tests, 9 passed, 0 known failure, 0 skipped 1027s [inst/@sym/chol.m] 1027s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/chol.m 1027s ***** error chol (sym ([1 2; 3 4])); 1027s ***** error chol (sym ([1 2; 3 4; 5 6])); 1028s ***** test 1028s A = chol(hilb(sym(2))); 1028s B = [[1 0]; sym(1)/2 sqrt(sym(3))/6]; 1028s assert( isequal( A, B )) 1028s 3 tests, 3 passed, 0 known failure, 0 skipped 1028s [inst/@sym/formula.m] 1028s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/formula.m 1028s ***** test 1028s syms x 1028s assert (isequal (formula(x), x)) 1028s assert (isequal (formula(2*x), 2*x)) 1028s 1 test, 1 passed, 0 known failure, 0 skipped 1028s [inst/@sym/iscolumn.m] 1028s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/iscolumn.m 1028s ***** assert (iscolumn (sym ([1]))) 1028s ***** assert (iscolumn (sym ([1 2 3]'))) 1028s ***** assert (~iscolumn (sym ([]))) 1028s ***** assert (~iscolumn (sym ([1 2 3]))) 1028s ***** assert (~iscolumn (sym ([1 2; 3 4]))) 1028s 5 tests, 5 passed, 0 known failure, 0 skipped 1028s [inst/@sym/divergence.m] 1028s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/divergence.m 1028s ***** shared x,y,z 1028s syms x y z 1028s ***** test 1028s % 1D 1028s f = x^2; 1028s assert (isequal (divergence(f), diff(f,x))) 1028s assert (isequal (divergence(f,{x}), diff(f,x))) 1028s assert (isequal (divergence(f,[x]), diff(f,x))) 1028s assert (isequal (divergence(f,x), diff(f,x))) 1028s ***** test 1028s % const 1028s f = [sym(1); 2; exp(sym(3))]; 1028s assert (isequal (divergence(f,{x,y,z}), 0)) 1028s f = [sym(1); 2; exp(sym('c'))]; 1028s assert (isequal (divergence(f,{x,y,z}), 0)) 1029s ***** test 1029s % double const 1029s f = [1 2]; 1029s g = sym(0); 1029s assert (isequal (divergence(f, [x y]), g)) 1029s % should fail, calls @double: divergence(f, {x y}), g)) 1029s ***** test 1029s % 1D fcn in 2d/3d 1029s f = [x y z]; 1029s assert (isequal (divergence(f), 3)) 1029s assert (isequal (divergence(f, {x,y,z}), 3)) 1029s assert (isequal (divergence(f, [x,y,z]), 3)) 1029s ***** test 1029s % 2d fcn in 2d/3d 1029s f = sin(exp(x)*y+sinh(z)); 1029s g2 = [diff(f,x); diff(f,y)]; 1029s l2 = diff(g2(1),x) + diff(g2(2),y); 1029s g3 = [diff(f,x); diff(f,y); diff(f,z)]; 1029s l3 = diff(g3(1),x) + diff(g3(2),y) + diff(g3(3),z); 1029s assert (isequal (divergence(g2, {x,y}), l2)) 1029s assert (isequal (divergence(g3, {x,y,z}), l3)) 1030s ***** error divergence ([1 2], [sym('x')]) 1030s ***** error divergence ([1 2], sym('x'), 42) 1030s 7 tests, 7 passed, 0 known failure, 0 skipped 1030s [inst/@sym/mtimes.m] 1030s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/mtimes.m 1030s ***** test 1030s % scalar 1030s syms x 1030s assert (isa (x*2, 'sym')) 1030s assert (isequal (2*sym(3), sym(6))) 1030s assert (isequal (sym(2)*3, sym(6))) 1030s ***** test 1030s % matrix-scalar 1030s D = [0 1; 2 3]; 1030s A = sym(D); 1030s assert (isa (2*A, 'sym')) 1030s assert (isequal ( 2*A , 2*D )) 1030s assert (isequal ( A*2 , 2*D )) 1030s ***** test 1030s % matrix-matrix 1030s D = [0 1; 2 3]; 1030s A = sym(D); 1030s assert (isa (A*A, 'sym')) 1030s assert (isequal ( A*A , D*D )) 1030s 3 tests, 3 passed, 0 known failure, 0 skipped 1030s [inst/@sym/erfcinv.m] 1030s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/erfcinv.m 1030s ***** error erfcinv (sym(1), 2) 1030s ***** assert (isequaln (erfcinv (sym(nan)), sym(nan))) 1030s ***** shared x, d 1030s d = 1; 1030s x = sym('1'); 1030s ***** test 1030s f1 = erfcinv(x); 1030s f2 = erfcinv(d); 1030s assert( abs(double(f1) - f2) < 1e-15 ) 1030s ***** test 1030s D = [d d; d d]; 1030s A = [x x; x x]; 1030s f1 = erfcinv(A); 1030s f2 = erfcinv(D); 1030s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1030s ***** test 1030s % round trip 1030s y = sym('y'); 1030s A = erfcinv (d); 1030s f = erfcinv (y); 1030s h = function_handle (f); 1030s B = h (d); 1030s assert (A, B, -eps) 1030s 5 tests, 5 passed, 0 known failure, 0 skipped 1030s [inst/@sym/eq.m] 1030s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/eq.m 1030s ***** test 1030s % simple tests with scalar numbers 1030s assert (logical (sym(1) == sym(1))) 1030s assert (logical (sym(1) == 1)) 1030s assert (~logical (sym(1) == 0)) 1030s assert (isequal (sym(1) == sym(1), sym(true))) 1030s assert (isequal (sym(1) == 1, sym(true))) 1030s assert (isequal (sym(1) == 0, sym(false))) 1031s ***** test 1031s % Type of the output is sym or logical? 1031s % FIXME: in current version, they are sym 1031s e = sym(1) == sym(1); 1031s %assert (islogical (e)) 1031s assert (isa (e, 'sym')) 1031s ***** test 1031s % things involving a variable are usually not bool but sym. 1031s % (SMT behaviour says always, FIXME: currently we differ.) 1031s syms x 1031s e = x == 0; 1031s assert (~islogical (e)) 1031s assert (isa (e, 'sym')) 1031s ***** test 1031s % ... except of course via cancelation 1031s syms x 1031s e = x - x == 0; 1031s assert (logical (e)) 1031s assert (isequal (e, sym(true))) 1031s ***** test 1031s % array == array 1031s a = sym([1 2; 3 4]); 1031s y = a == a; 1031s assert (isequal( size(y), [2 2])) 1031s assert (isequal (y, sym([true true; true true]))) 1031s assert (all(all(y))) 1031s y = a == 1; 1031s assert (isequal( size(y), [2 2])) 1031s assert (isequal (y, sym([true false; false false]))) 1031s assert (any(any(y))) 1031s y = a == 42; 1031s assert (isequal( size(y), [2 2])) 1031s assert (isequal (y, sym([false false; false false]))) 1031s ***** test 1031s % more array == array 1031s D = [0 1; 2 3]; 1031s A = [sym(0) 1; sym(2) 3]; 1031s DZ = D - D; 1031s assert (isequal (logical(A == A), [true true; true true])) 1031s assert (isequal (logical(A == D), [true true; true true])) 1031s assert (isequal (logical(A - D == DZ), [true true; true true])) 1031s assert (all (all ( A == A ))) 1031s assert (all (all ( A == D ))) 1031s assert (all (all ( A - D == DZ ))) 1031s ***** test 1031s % logical output, right shape, etc 1031s t = true; f = false; 1031s a = sym([0 1 2; 3 4 5]); 1031s b = sym([0 1 1; 3 5 5]); 1031s e = a == b; 1031s eexp = sym(logical([1 1 0; 1 0 1])); 1031s assert (isequal (e, eexp)) 1031s a = sym([0 1 2]); 1031s b = sym([0 1 1]); 1031s e = a == b; 1031s eexp = sym(logical([1 1 0])); 1031s assert (isequal (e, eexp)) 1031s e = a' == b'; 1031s eexp = eexp.'; % is/was bug here with ' 1031s assert (isequal (e, eexp)) 1032s ***** test 1032s % empty matrices compare to correct empty size 1032s a = zeros (sym(3), 0); 1032s assert (size (a == a), [3, 0]) 1032s a = zeros (sym(0), 2); 1032s assert (size (a == a), [0, 2]) 1032s 8 tests, 8 passed, 0 known failure, 0 skipped 1032s [inst/@sym/function_handle.m] 1032s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/function_handle.m 1032s ***** shared x,y,z 1032s syms x y z 1032s ***** test 1032s % basic test 1032s h = function_handle(2*x); 1032s assert(isa(h, 'function_handle')) 1032s assert(h(3)==6) 1032s ***** test 1032s % autodetect inputs 1032s h = function_handle(2*x*y, x+y); 1032s [t1, t2] = h(3,5); 1032s assert(t1 == 30 && t2 == 8) 1032s ***** test 1032s % specified inputs 1032s h = function_handle(2*x*y, 'vars', [x y]); 1032s assert(h(3,5)==30) 1032s h = function_handle(2*x*y, x+y, 'vars', [x y]); 1032s [t1, t2] = h(3,5); 1032s assert(t1 == 30 && t2 == 8) 1032s ***** test 1032s % cell arrays for vars list 1032s h = function_handle(2*x*y, x+y, 'vars', {x y}); 1032s [t1, t2] = h(3,5); 1032s assert(t1 == 30 && t2 == 8) 1032s h = function_handle(2*x*y, x+y, 'vars', {'x' 'y'}); 1032s [t1, t2] = h(3,5); 1032s assert(t1 == 30 && t2 == 8) 1032s ***** test 1032s % cell arrays specfies order, overriding symvar order 1032s h = function_handle(x*y, 12/y, 'vars', {y x}); 1032s [t1, t2] = h(3, 6); 1032s assert(t1 == 18 && t2 == 4) 1032s h = function_handle(x*y, 12/y, 'vars', [y x]); 1032s [t1, t2] = h(3, 6); 1032s assert(t1 == 18 && t2 == 4) 1032s ***** test 1032s % cell arrays specfies order, overriding symvar order 1032s h = function_handle(x*y, 12/y, 'vars', {y x}); 1032s [t1, t2] = h(3, 6); 1032s assert(t1 == 18 && t2 == 4) 1032s h = function_handle(x*y, 12/y, 'vars', [y x]); 1032s [t1, t2] = h(3, 6); 1032s assert(t1 == 18 && t2 == 4) 1032s ***** test 1032s % Functions with different names in Sympy. 1032s f = abs(x); % becomes Abs(x) 1032s h = function_handle(f); 1032s assert(h(-10) == 10) 1032s f = ceil(x); 1032s h = function_handle(f); 1032s assert(h(10.1) == 11) 1032s ***** test 1032s % 'file' with empty filename returns handle 1032s h = function_handle(2*x*y, 'file', ''); 1032s assert(isa(h, 'function_handle')) 1032s assert(h(3,5)==30) 1032s h = function_handle(2*x*y, 'vars', {x y}, 'file', ''); 1032s assert(isa(h, 'function_handle')) 1032s assert(h(3,5)==30) 1033s ***** test 1033s % output to disk 1033s fprintf('\n') 1033s if (exist ('OCTAVE_VERSION', 'builtin')) 1033s temp_file = tempname('', 'oct_'); 1033s else 1033s temp_file = tempname(); 1033s end 1033s % allow loading function from temp_file 1033s [temp_path, ans, ans] = fileparts(temp_file); 1033s addpath(temp_path); 1033s f = function_handle(2*x*y, 2^x, 'vars', {x y z}, 'file', temp_file); 1033s assert( isa(f, 'function_handle')) 1033s addpath(temp_path); % Matlab 2014a needs this? 1033s [a,b] = f(10,20,30); 1033s assert (isnumeric (a) && isnumeric (b)) 1033s assert (a == 400) 1033s assert (b == 1024) 1033s if (exist ('OCTAVE_VERSION', 'builtin')) 1033s assert (unlink([temp_file '.m']) == 0) 1033s else 1033s delete ([temp_file '.m']) 1033s end 1033s % remove temp_path from load path 1033s rmpath(temp_path); 1033s 1033s Wrote file /tmp/oct_ypS3rL.m. 1033s ***** test 1033s % output to disk: also works with .m specified 1033s if (exist ('OCTAVE_VERSION', 'builtin')) 1033s temp_file = [tempname('', 'oct_') '.m']; 1033s else 1033s temp_file = [tempname() '.m']; 1033s end 1033s % allow loading function from temp_file 1033s [temp_path, ans, ans] = fileparts(temp_file); 1033s addpath(temp_path); 1033s f = function_handle(2*x*y, 2^x, 'vars', {x y z}, 'file', temp_file); 1033s assert( isa(f, 'function_handle')) 1033s addpath(temp_path); % Matlab 2014a needs this? 1033s [a,b] = f(10,20,30); 1033s assert (isnumeric (a) && isnumeric (b)) 1033s assert (a == 400) 1033s assert (b == 1024) 1033s if (exist ('OCTAVE_VERSION', 'builtin')) 1033s assert (unlink(temp_file) == 0) 1033s else 1033s delete (temp_file) 1033s end 1033s % remove temp_path from load path 1033s rmpath(temp_path); 1033s Wrote file /tmp/oct_xMciAc.m. 1033s ***** test 1033s % non-scalar outputs 1033s H = [x y z]; 1033s M = [x y; z 16]; 1033s V = [x;y;z]; 1033s h = function_handle(H, M, V); 1033s [t1,t2,t3] = h(1,2,3); 1033s assert(isequal(t1, [1 2 3])) 1033s assert(isequal(t2, [1 2; 3 16])) 1033s assert(isequal(t3, [1;2;3])) 1033s ***** test 1033s % non-scalar outputs in .m files 1033s H = [x y z]; 1033s M = [x y; z 16]; 1033s V = [x;y;z]; 1033s if (exist ('OCTAVE_VERSION', 'builtin')) 1033s temp_file = tempname('', 'oct_'); 1033s else 1033s temp_file = tempname(); 1033s end 1033s % allow loading function from temp_file 1033s [temp_path, ans, ans] = fileparts(temp_file); 1033s addpath(temp_path); 1033s h = function_handle(H, M, V, 'vars', {x y z}, 'file', temp_file); 1033s assert( isa(h, 'function_handle')) 1033s addpath(temp_path); % Matlab 2014a needs this? 1033s [t1,t2,t3] = h(1,2,3); 1033s assert(isequal(t1, [1 2 3])) 1033s assert(isequal(t2, [1 2; 3 16])) 1033s assert(isequal(t3, [1;2;3])) 1033s if (exist ('OCTAVE_VERSION', 'builtin')) 1033s assert (unlink([temp_file '.m']) == 0) 1033s else 1033s delete ([temp_file '.m']) 1033s end 1033s % remove temp_path from load path 1033s rmpath(temp_path); 1033s Wrote file /tmp/oct_Z04qGy.m. 1033s ***** test 1033s % order of outputs is lexiographic 1033s syms a A x y 1033s f = y + 10*a + 100*x + 1000*A; 1033s h = function_handle(f); 1033s assert (h(1, 2, 3, 4) == 1000 + 20 + 300 + 4) 1033s ***** test 1033s % https://github.com/cbm755/octsympy/issues/854 1033s f = function_handle (x + 1i*sqrt (sym(3))); 1033s assert (f (1), complex (1, sqrt (3)), -eps) 1033s 14 tests, 14 passed, 0 known failure, 0 skipped 1033s [inst/@sym/csc.m] 1033s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/csc.m 1033s ***** error csc (sym(1), 2) 1033s ***** assert (isequaln (csc (sym(nan)), sym(nan))) 1033s ***** shared x, d 1033s d = 1; 1033s x = sym('1'); 1033s ***** test 1033s f1 = csc(x); 1033s f2 = csc(d); 1033s assert( abs(double(f1) - f2) < 1e-15 ) 1033s ***** test 1033s D = [d d; d d]; 1033s A = [x x; x x]; 1033s f1 = csc(A); 1033s f2 = csc(D); 1033s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1033s ***** test 1033s % round trip 1033s y = sym('y'); 1033s A = csc (d); 1033s f = csc (y); 1033s h = function_handle (f); 1033s B = h (d); 1033s assert (A, B, -eps) 1033s 5 tests, 5 passed, 0 known failure, 0 skipped 1033s [inst/@sym/frac.m] 1033s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/frac.m 1033s ***** test 1033s f1 = frac(sym(11)/10); 1033s f2 = sym(1)/10; 1033s assert (isequal (f1, f2)) 1033s ***** test 1033s d = sym(-11)/10; 1033s c = sym(9)/10; 1033s assert (isequal (frac (d), c)) 1033s ***** test 1033s d = sym(-19)/10; 1033s c = sym(1)/10; 1033s assert (isequal (frac (d), c)) 1034s 3 tests, 3 passed, 0 known failure, 0 skipped 1034s [inst/@sym/has.m] 1034s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/has.m 1034s ***** shared A, x, y 1034s syms x y 1034s A = [sym(pi) 2*sym(pi); x*y x+y]; 1034s ***** assert (isequal (has(A, x), [false false; true true])); 1034s ***** assert (isequal (has(A, x+y), [false false; false true])); 1034s ***** assert (isequal (has(A, 2), [false true; false false])); 1034s ***** assert (isequal (has(A, sym(pi)), [true true; false false])); 1034s 4 tests, 4 passed, 0 known failure, 0 skipped 1034s [inst/@sym/bessely.m] 1034s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/bessely.m 1034s ***** test 1034s X = [1 2 3; 4 5 6]; 1034s ns = [sym(0) 1 -2; sym(1)/2 -sym(3)/2 pi]; 1034s n = double(ns); 1034s A = double(bessely(ns, X)); 1034s B = bessely(n, X); 1034s assert (all (all (abs (A - B) < 50*eps*abs(A)))) 1034s ***** test 1034s % roundtrip 1034s syms x 1034s A = bessely(2, 10); 1034s q = bessely(2, x); 1034s h = function_handle(q); 1034s B = h(10); 1034s assert (abs (A - B) <= eps*abs(A)) 1034s ***** error bessely(sym('x')) 1034s 3 tests, 3 passed, 0 known failure, 0 skipped 1034s [inst/@sym/nchoosek.m] 1034s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/nchoosek.m 1034s ***** assert (isequal (nchoosek(sym(5), sym(2)), sym(10))) 1034s ***** assert (isequal (nchoosek(sym(5), 2), sym(10))) 1035s ***** assert (isequal (nchoosek(5, sym(2)), sym(10))) 1035s ***** assert (isequal (nchoosek(sym(10), 0), 1)) 1035s ***** assert (isequal (nchoosek(sym(10), -1), 0)) 1035s ***** test 1035s n = sym('n', 'nonnegative', 'integer'); 1035s assert (isequal (nchoosek (n, n), sym(1))) 1035s ***** test 1035s n = sym('n', 'integer'); 1035s q = nchoosek(n, 2); 1035s w = subs(q, n, 5); 1035s assert (isequal (w, 10)) 1035s ***** test 1035s n = sym('n', 'integer'); 1035s k = sym('k', 'integer'); 1035s q = nchoosek(n, k); 1035s w = subs(q, {n k}, {5 2}); 1035s assert (isequal (w, 10)) 1035s ***** test 1035s % negative input 1035s assert (isequal (nchoosek (sym(-2), sym(5)), sym(-6))) 1035s ***** test 1035s % complex input 1035s n = sym(1 + 3i); 1035s k = sym(5); 1035s A = nchoosek (n, k); 1035s B = gamma (n + 1) / (gamma (k + 1) * gamma (n - k + 1)); 1035s assert (double (A), double (B), -2*eps) 1035s ***** test 1035s % complex input 1035s n = sym(-2 + 3i); 1035s k = sym(1 + i); 1035s A = nchoosek (n, k); 1035s B = gamma (n + 1) / (gamma (k + 1) * gamma (n - k + 1)); 1035s assert (double (A), double (B), -2*eps) 1035s 11 tests, 11 passed, 0 known failure, 0 skipped 1035s [inst/@sym/dawson.m] 1035s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/dawson.m 1035s ***** test 1035s if (exist ('OCTAVE_VERSION', 'builtin')) 1035s % dawson missing on Matlab, Issue #742 1035s A = dawson([1 2]); 1035s B = double(dawson(sym([1 2]))); 1035s assert(A, B, -eps) 1035s end 1035s 1 test, 1 passed, 0 known failure, 0 skipped 1035s [inst/@sym/xor.m] 1035s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/xor.m 1035s ***** shared t, f 1035s t = sym(true); 1035s f = sym(false); 1035s ***** test 1035s % simple 1035s assert (isequal (xor(t, f), t)) 1035s assert (isequal (xor(t, t), f)) 1036s ***** test 1036s % array 1036s w = [t t f f]; 1036s z = [t f t f]; 1036s assert (isequal (xor(w, z), [f t t f])) 1036s ***** xtest 1036s % output is sym even for scalar t/f 1036s % ₣IXME: should match other bool fcns 1036s assert (isa (xor(t, f), 'sym')) 1036s ***** test 1036s % eqns 1036s syms x 1036s e = xor(x == 4, x == 5); 1036s assert (isequal (subs(e, x, [3 4 5 6]), [f t t f])) 1036s ***** test 1036s % eqns, exclusive 1036s syms x 1036s e = xor(x == 3, x^2 == 9); 1036s assert (isequal (subs(e, x, [-3 0 3]), [t f f])) 1036s ***** error xor (sym('x'), 1, 2) 1036s 6 tests, 6 passed, 0 known failure, 0 skipped 1036s [inst/@sym/colon.m] 1036s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/colon.m 1036s ***** test 1036s a = sym(1):5; 1036s b = sym(1:5); 1036s assert(isequal(a,b)); 1036s a = 1:sym(5); 1036s b = sym(1:5); 1036s assert(isequal(a,b)); 1036s ***** test 1036s a = 2:sym(2):8; 1036s b = sym(2:2:8); 1036s assert(isequal(a,b)); 1036s ***** test 1036s a = sym(10):-2:-4; 1036s b = sym(10:-2:-4); 1036s assert(isequal(a,b)); 1036s ***** test 1036s % symbolic intervals 1036s p = sym(pi); 1036s L = 0:p/4:p; 1036s assert(isa(L,'sym')); 1036s assert(isequal(L, [0 p/4 p/2 3*p/4 p])); 1036s ***** test 1036s % mixed symbolic and double intervals 1036s p = sym(pi); 1036s s = warning ('off', 'OctSymPy:sym:rationalapprox'); 1036s L = 0.1:(sym(pi)/3):2.3; 1036s warning(s) 1036s assert(isa(L,'sym')); 1036s t = sym(1)/10; 1036s assert(isequal(L, [t p/3+t 2*p/3+t])); 1037s ***** error syms x; a = 0:x; 1037s ***** error syms x; a = 1:x; 1037s 7 tests, 7 passed, 0 known failure, 0 skipped 1037s [inst/@sym/symvar.m] 1037s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/symvar.m 1037s ***** error symvar (sym(1), 2, 3) 1037s ***** test 1037s %% some empty cases 1037s assert (isempty (symvar (sym(1)))); 1037s assert (isempty (symvar (sym(1),1))); 1037s assert (isempty (symvar (sym(1),0))); 1037s assert (isempty (symvar (sym('x'),0))); 1037s ***** shared x,y,f 1037s x=sym('x'); y=sym('y'); f=x^2+3*x*y-y^2; 1037s ***** assert (isequal (symvar (f), [x y])); 1037s ***** assert (isequal (symvar (f, 1), x)); 1037s ***** test 1037s %% closest to x 1037s syms x y a b c xx 1037s alpha = sym('alpha'); 1037s % https://www.mathworks.com/matlabcentral/newsreader/view_thread/237730 1037s assert( isequal (symvar (b*xx*exp(alpha) + c*sin(a*y), 2), [xx y])) 1037s %% tests to match Matlab R2013b 1037s ***** shared x,y,z,a,b,c,X,Y,Z 1037s syms x y z a b c X Y Z 1037s ***** test 1037s %% X,Y,Z first if no 2nd argument 1037s s = prod([x y z a b c X Y Z]); 1037s assert (isequal( symvar (s), [X Y Z a b c x y z] )) 1037s ***** test 1037s %% uppercase have *low* priority with argument? 1037s s = prod([x y z a b c X Y Z]); 1037s assert (isequal (symvar (s,4), [x, y, z, c] )) 1038s ***** test 1038s %% closest to x 1038s s = prod([y z a b c Y Z]); 1038s assert (isequal( symvar (s,6), [ y, z, c, b, a, Y] )) 1038s s = prod([a b c Y Z]); 1038s assert (isequal( symvar (s,4), [ c, b, a, Y] )) 1038s ***** test 1038s %% upper case letters in correct order 1038s s = X*Y*Z; 1038s assert (isequal( symvar (s,3), [X Y Z] )) 1038s ***** test 1038s % diff. assumptions make diff. symbols 1038s x1 = sym('x'); 1038s x2 = sym('x', 'positive'); 1038s f = x1*x2; 1038s assert (length (symvar (f)) == 2) 1038s z = symvar (f, 1); 1038s assert (xor (isequal (z, x1), isequal (z, x2))) 1038s 10 tests, 10 passed, 0 known failure, 0 skipped 1038s [inst/@sym/floor.m] 1038s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/floor.m 1038s ***** error floor (sym(1), 2) 1038s ***** assert (isequaln (floor (sym(nan)), sym(nan))) 1038s ***** shared x, d 1038s d = 1; 1038s x = sym('1'); 1038s ***** test 1038s f1 = floor(x); 1038s f2 = floor(d); 1038s assert( abs(double(f1) - f2) < 1e-15 ) 1038s ***** test 1038s D = [d d; d d]; 1038s A = [x x; x x]; 1038s f1 = floor(A); 1038s f2 = floor(D); 1038s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1038s ***** test 1038s % round trip 1038s y = sym('y'); 1038s A = floor (d); 1038s f = floor (y); 1038s h = function_handle (f); 1038s B = h (d); 1038s assert (A, B, -eps) 1038s 5 tests, 5 passed, 0 known failure, 0 skipped 1038s [inst/@sym/or.m] 1038s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/or.m 1038s ***** shared t, f 1038s t = sym(true); 1038s f = sym(false); 1038s ***** test 1038s % simple 1038s assert (isequal (t | f, t)) 1038s assert (isequal (t | t, t)) 1038s assert (isequal (f | f, f)) 1038s ***** test 1038s % array 1038s w = [t t f f]; 1038s z = [t f t f]; 1038s assert (isequal (w | z, [t t t f])) 1038s ***** test 1038s % output is sym even for scalar t/f 1038s assert (isa (t | f, 'sym')) 1039s ***** test 1039s % eqns 1039s syms x 1039s e = or(x == 4, x == 5); 1039s assert (isequal (subs(e, x, [3 4 5 6]), [f t t f])) 1039s ***** error or (sym(1), 2, 3) 1039s 5 tests, 5 passed, 0 known failure, 0 skipped 1039s [inst/@sym/isprime.m] 1039s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/isprime.m 1039s ***** assert (isprime (sym(5))) 1039s ***** assert (~isprime (sym(4))) 1039s ***** assert (~isprime (sym(0))) 1039s ***** assert (~isprime (sym(1))) 1039s ***** test 1039s a = [5 7 6; 1 2 337]; 1039s assert (isequal (isprime (a), [true true false; false true true])) 1039s ***** assert (~isprime(sym(-4))) 1039s ***** assert (~isprime(sym(4i))) 1039s ***** assert (~isprime(sym(3)/5)) 1039s ***** error 1039s isprime(sym('x')); 1039s 9 tests, 9 passed, 0 known failure, 0 skipped 1039s [inst/@sym/columns.m] 1039s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/columns.m 1039s ***** test 1039s a = sym([1 2 3]); 1039s assert (columns(a) == 3) 1039s ***** test 1039s a = sym([1; 2]); 1039s assert (columns(a) == 1) 1039s 2 tests, 2 passed, 0 known failure, 0 skipped 1039s [inst/@sym/dilog.m] 1039s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/dilog.m 1039s ***** assert (isequal (dilog (sym(1)), sym(0))) 1039s ***** assert (isequal (dilog (sym(0)), sym(pi)^2/6)) 1039s ***** assert (isequal (dilog (sym(2)), -sym(pi)^2/12)) 1039s ***** assert (double(dilog(sym(-1))), pi^2/4 - pi*1i*log(2), eps) 1039s ***** test 1039s % round-trip 1039s syms x 1039s f = dilog (x); 1039s h = function_handle (f); 1039s A = h (1.1); 1039s B = dilog (1.1); 1039s assert (A, B, -eps) 1039s 5 tests, 5 passed, 0 known failure, 0 skipped 1039s [inst/@sym/asec.m] 1039s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/asec.m 1039s ***** error asec (sym(1), 2) 1039s ***** assert (isequaln (asec (sym(nan)), sym(nan))) 1039s ***** shared x, d 1039s d = 2; 1039s x = sym('2'); 1039s ***** test 1039s f1 = asec(x); 1039s f2 = asec(d); 1039s assert( abs(double(f1) - f2) < 1e-15 ) 1039s ***** test 1039s D = [d d; d d]; 1039s A = [x x; x x]; 1039s f1 = asec(A); 1039s f2 = asec(D); 1039s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1039s ***** test 1039s % round trip 1039s y = sym('y'); 1039s A = asec (d); 1039s f = asec (y); 1039s h = function_handle (f); 1039s B = h (d); 1039s assert (A, B, -eps) 1039s 5 tests, 5 passed, 0 known failure, 0 skipped 1039s [inst/@sym/rows.m] 1039s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/rows.m 1039s ***** test 1039s a = sym([1 2 3]); 1039s assert (rows(a) == 1) 1040s ***** test 1040s a = sym([1 2 3; 4 5 6]); 1040s assert (rows(a) == 2) 1040s 2 tests, 2 passed, 0 known failure, 0 skipped 1040s [inst/@sym/acosd.m] 1040s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/acosd.m 1040s ***** error acosd (sym(1), 2) 1040s ***** assert (isequaln (acosd (sym(nan)), sym(nan))) 1040s ***** test 1040s f1 = acosd (sym(1)/2); 1040s f2 = acosd (1/2); 1040s assert (double (f1), f2, -eps) 1040s ***** test 1040s D = [1 2; 3 4]/4; 1040s A = sym([1 2; 3 4])/4; 1040s f1 = acosd (A); 1040s f2 = acosd (D); 1040s assert (double (f1), f2, -eps) 1040s 4 tests, 4 passed, 0 known failure, 0 skipped 1040s [inst/@sym/hypergeom.m] 1040s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/hypergeom.m 1040s ***** assert (isequal (double (hypergeom ([1, 2], [2, 3], sym(0))), 1)) 1040s ***** test 1040s % matrix input 1040s syms z 1040s a = sym([1 2]); 1040s b = sym([3 4]); 1040s A = hypergeom (a, b, [0 sym(1); 2 z]); 1040s B = [hypergeom(a,b,0) hypergeom(a,b,1); hypergeom(a,b,2) hypergeom(a,b,z)]; 1040s assert (isequal (A, B)) 1040s ***** test 1040s % scalars for a and/or b 1040s syms z 1040s assert (isequal (hypergeom(1, 2, z), hypergeom({sym(1)}, {sym(2)}, z))) 1040s assert (isequal (hypergeom([1 2], 3, z), hypergeom([1 2], {sym(3)}, z))) 1040s assert (isequal (hypergeom(1, [2 3], z), hypergeom({sym(1)}, [2 3], z))) 1041s 3 tests, 3 passed, 0 known failure, 0 skipped 1041s [inst/@sym/sech.m] 1041s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/sech.m 1041s ***** error sech (sym(1), 2) 1041s ***** assert (isequaln (sech (sym(nan)), sym(nan))) 1041s ***** shared x, d 1041s d = 1; 1041s x = sym('1'); 1041s ***** test 1041s f1 = sech(x); 1041s f2 = sech(d); 1041s assert( abs(double(f1) - f2) < 1e-15 ) 1041s ***** test 1041s D = [d d; d d]; 1041s A = [x x; x x]; 1041s f1 = sech(A); 1041s f2 = sech(D); 1041s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1041s ***** test 1041s % round trip 1041s y = sym('y'); 1041s A = sech (d); 1041s f = sech (y); 1041s h = function_handle (f); 1041s B = h (d); 1041s assert (A, B, -eps) 1041s 5 tests, 5 passed, 0 known failure, 0 skipped 1041s [inst/@sym/isconstant.m] 1041s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/isconstant.m 1041s ***** test 1041s syms x 1041s A = [x 2 3]; 1041s B = [false true true]; 1041s assert (isequal (isconstant (A), B)) 1041s ***** test 1041s syms x 1041s A = [x 2; 3 x]; 1041s B = [false true; true false]; 1041s assert (isequal (isconstant (A), B)) 1041s 2 tests, 2 passed, 0 known failure, 0 skipped 1041s [inst/@sym/subsref.m] 1041s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/subsref.m 1041s ***** shared a,b 1041s b = [1:4]; 1041s a = sym(b); 1041s ***** assert(isequal( a(1), b(1) )) 1041s ***** assert(isequal( a(2), b(2) )) 1041s ***** assert(isequal( a(4), b(4) )) 1041s ***** assert(isempty( a([]) )) 1041s ***** shared a,b 1041s b = [1:4]; b = [b; 3*b; 5*b]; 1041s a = sym(b); 1041s ***** assert(isequal( a(1), b(1) )) 1041s ***** assert(isequal( a(2), b(2) )) 1041s ***** assert(isequal( a(4), b(4) )) 1041s ***** assert(isequal( a(:,:), a )) 1041s ***** assert(isequal( a(1:2,1:3), a(1:2,1:3) )) 1041s ***** assert(isequal( a(1:2:3,[1 2 4]), b(1:2:3,[1 2 4]) )) 1041s ***** assert(isequal( a(1:2:3,[4 2 3 1]), b(1:2:3,[4 2 3 1]) )) 1042s ***** assert(isequal( a(1:2:3,[4 1 1 1]), b(1:2:3,[4 1 1 1]) )) 1042s ***** assert(isequal( a([],:), b([],:) )) 1042s ***** assert(isequal( size(a([],:)), [0 4] )) 1042s ***** assert(isequal( a(1:2,[]), b(1:2,[]) )) 1042s ***** assert(isequal( size(a(1:2,[])), [2 0] )) 1042s ***** assert(isempty( a(1:2,[]) )) 1042s ***** assert(isempty( a([],[]) )) 1042s ***** assert(isequal( a([],[]), sym([]) )) 1042s ***** assert(~isequal( a(1:2,[]), sym([]) )) 1042s ***** shared e 1042s e = sym([1 3 5; 2 4 6]); 1042s ***** assert(isequal( e(:), sym((1:6)') )) 1042s ***** assert(isequal( e([1 2 3]), sym([1 2 3]) )) 1042s ***** assert(isequal( e([1; 3; 4]), sym([1; 3; 4]) )) 1042s ***** assert(isempty( e([]) )) 1042s ***** assert(isempty( e('') )) 1042s ***** assert(isequal( e([]), sym([]) )) 1042s ***** shared a,b 1042s b = 1:5; a = sym(b); 1042s ***** assert(isequal( a([1 2 5]), b([1 2 5]) )) 1042s ***** assert(isequal( a([1; 2; 5]), b([1; 2; 5]) )) 1042s ***** shared x 1042s syms x 1042s ***** test 1042s % logical with empty result 1042s assert(isempty( x(false) )) 1042s a = [x x]; 1042s assert(isempty( a([false false]) )) 1042s ***** test 1042s % issue 18, scalar access 1042s assert(isequal( x(1), x )) 1042s assert(isequal( x(true), x )) 1043s ***** shared 1043s ***** test 1043s % older access tests 1043s syms x 1043s f = [x 2; 3 4*x]; 1043s % element access 1043s assert (logical( f(1,1) == x )) 1043s assert (logical( f(1,2) == 2 )) 1043s % linear access of 2d array 1043s assert (logical( f(1) == x )) 1043s assert (logical( f(2) == 3 )) % column based 1043s assert (logical( f(3) == 2 )) 1043s ***** shared a,b 1043s % effectively a random matrix 1043s a = reshape( round(50*(sin(1:20)+1)), 5,4); 1043s b = sym(a); 1043s ***** test 1043s % older array refs test 1043s assert (logical(b(1,1) == a(1,1))) 1043s assert (logical(b(3,1) == a(3,1))) 1043s assert (logical(b(1,3) == a(1,3))) 1043s assert (logical(b(4,4) == a(4,4))) 1043s ***** test 1043s % older array refs test: linear indices 1043s assert (logical(b(1) == a(1))) 1043s assert (logical(b(3) == a(3))) 1043s assert (logical(b(13) == a(13))) 1043s ***** test 1043s % older array refs test: end 1043s assert (all(all(logical( b(end,1) == a(end,1) )))) 1043s assert (all(all(logical( b(2,end) == a(2,end) )))) 1043s assert (all(all(logical( b(end,end) == a(end,end) )))) 1043s assert (all(all(logical( b(end-1,1) == a(end-1,1) )))) 1043s assert (all(all(logical( b(2,end-1) == a(2,end-1) )))) 1043s assert (all(all(logical( b(end-1,end-1) == a(end-1,end-1) )))) 1043s ***** shared 1043s ***** test 1043s % older slicing tests 1043s syms x 1043s a = [1 2 3 4 5 6]; a = [a; 3*a; 5*a; 2*a; 4*a]; 1043s b = sym(a); 1043s assert (isequal( b(:,1), a(:,1) )) 1043s assert (isequal( b(:,2), a(:,2) )) 1043s assert (isequal( b(1,:), a(1,:) )) 1043s assert (isequal( b(2,:), a(2,:) )) 1043s assert (isequal( b(:,:), a(:,:) )) 1043s assert (isequal( b(1:3,2), a(1:3,2) )) 1043s assert (isequal( b(1:4,:), a(1:4,:) )) 1043s assert (isequal( b(1:2:5,:), a(1:2:5,:) )) 1043s assert (isequal( b(1:2:4,:), a(1:2:4,:) )) 1043s assert (isequal( b(2:2:4,3), a(2:2:4,3) )) 1043s assert (isequal( b(2:2:4,3), a(2:2:4,3) )) 1045s ***** test 1045s % 2D arrays 1045s b = [1:4]; b = [b; 3*b; 5*b]; 1045s a = sym(b); 1045s I = rand(size(b)) > 0.5; 1045s assert (isequal (a(I), b(I))) 1045s I = I(:); 1045s assert (isequal (a(I), b(I))) 1045s I = I'; 1045s assert (isequal (a(I), b(I))) 1045s I = logical(zeros(size(b))); 1045s assert (isequal (a(I), b(I))) 1045s ***** test 1045s % 1D arrays, does right with despite warning 1045s r = [1:6]; 1045s ar = sym(r); 1045s c = r'; 1045s ac = sym(c); 1045s Ir = rand(size(r)) > 0.5; 1045s Ic = rand(size(c)) > 0.5; 1045s assert (isequal (ar(Ir), r(Ir))) 1045s assert (isequal (ac(Ic), c(Ic))) 1045s assert (isequal (ar(Ic), r(Ic))) 1045s assert (isequal (ac(Ir), c(Ir))) 1045s ***** test 1045s % rccross tests 1045s B = [1 2 3 4; 5 6 7 9; 10 11 12 13]; 1045s A = sym(B); 1045s assert (isequal (A([1 3],[2 3]), B([1 3], [2 3]) )) 1045s assert (isequal (A(1,[2 3]), B(1,[2 3]) )) 1045s assert (isequal (A([1 2],4), B([1 2],4) )) 1045s assert (isequal (A([2 1],[4 2]), B([2 1],[4 2]) )) 1045s assert (isequal (A([],[]), B([],[]) )) 1046s ***** error 1046s % issue #445 1046s A = sym([10 11]); 1046s A(1.1) 1046s ***** error 1046s % issue #445 1046s A = sym([10 11]); 1046s A(sym(4)/3) 1046s ***** error 1046s % issue #445 1046s A = sym([1 2; 3 4]); 1046s A(1.1, 1) 1046s ***** error 1046s % issue #445 1046s A = sym([1 2; 3 4]); 1046s A(1, sym(4)/3) 1046s ***** error 1046s A = sym([1 2; 3 4]); 1046s A(5) 1046s ***** shared a, b 1046s a = [1 2 3 5; 4 5 6 9; 7 5 3 2]; 1046s b = sym (a); 1046s ***** test 1046s c = true; 1046s assert (isequal (a(c), b(c))) 1046s c = false; 1046s assert (isequal (a(c), b(c))) 1046s ***** test 1046s c = [false true]; 1046s assert (isequal (a(c), b(c))) 1046s d = c | true; 1046s assert (isequal (a(d), b(d))) 1046s d = c & false; 1046s assert (isequal (a(d), b(d))) 1046s ***** test 1046s c = [false true false true; true false true false; false true false true]; 1046s assert (isequal (a(c), b(c))) 1046s d = c | true; 1046s assert (isequal (a(d), b(d))) 1046s d = c & false; 1046s assert (isequal (a(d), b(d))) 1047s ***** test 1047s c = [false true false true false]; 1047s assert (isequal (a(c), b(c))) 1047s d = c | true; 1047s assert (isequal (a(d), b(d))) 1047s d = c & false; 1047s assert (isequal (a(d), b(d))) 1047s ***** test 1047s c = [false; true; false; true; false]; 1047s assert (isequal (a(c), b(c))) 1047s d = c | true; 1047s assert (isequal (a(d), b(d))) 1047s d = c & false; 1047s assert (isequal (a(d), b(d))) 1047s ***** test 1047s c = [false true; false true; true false]; 1047s assert (isequal (a(c), b(c))) 1047s d = c | true; 1047s assert (isequal (a(d), b(d))) 1047s d = c & false; 1047s assert (isequal (a(d), b(d))) 1047s ***** shared 1047s ***** test 1047s % Orientation of empty results of logical indexing on row or column vectors 1047s r = [1:6]; 1047s c = r'; 1047s ar = sym(r); 1047s ac = sym(c); 1047s assert (isequal (ar(false), r(false))) 1047s assert (isequal (ac(false), c(false))) 1047s assert (isequal (ar(false (1, 6)), r(false (1, 6)))) 1047s assert (isequal (ac(false (1, 6)), c(false (1, 6)))) 1047s assert (isequal (ar(false (6, 1)), r(false (6, 1)))) 1047s assert (isequal (ac(false (6, 1)), c(false (6, 1)))) 1047s 50 tests, 50 passed, 0 known failure, 0 skipped 1047s [inst/@sym/isscalar.m] 1047s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/isscalar.m 1047s ***** assert(isscalar(sym('x'))) 1047s ***** test 1047s a = sym([1 2 3]); 1047s assert(~isscalar(a)) 1047s ***** assert(~isscalar(sym([]))) 1047s 3 tests, 3 passed, 0 known failure, 0 skipped 1047s [inst/@sym/toeplitz.m] 1047s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/toeplitz.m 1047s ***** test 1047s % rect 1047s R = [10 20 40]; C = [10 30]; 1047s A = sym(toeplitz(R,C)); 1047s B = toeplitz(sym(R),sym(C)); 1047s assert (isequal (A, B)) 1047s R = [10 20]; C = [10 30 50]; 1047s A = sym(toeplitz(R,C)); 1047s B = toeplitz(sym(R),sym(C)); 1047s assert (isequal (A, B)) 1048s ***** test 1048s % symbols 1048s syms x y 1048s R = [10 20 40]; C = [10 30]; 1048s Rs = [10 x 40]; Cs = [10 y]; 1048s A = toeplitz(R,C); 1048s B = toeplitz(Rs,Cs); 1048s assert (isequal (A, subs(B,[x,y],[20 30]))) 1048s ***** test 1048s % hermitian 1048s syms a b c 1048s A = [a b c; conj(b) a b; conj(c) conj(b) a]; 1048s B = toeplitz([a,b,c]); 1048s assert (isequal( A, B)) 1048s ***** warning 1048s % mismatch 1048s syms x 1048s B = toeplitz([10 x], [1 3 x]); 1048s ***** warning 1048s % scalar 1048s B = toeplitz(sym(2), 3); 1048s assert (isequal (B, sym(2))) 1048s ***** test 1048s % mismatch 1048s syms x y 1048s fprintf('\n one warning expected\n') % how to quiet this one? 1048s A = toeplitz([10 2], [1 3 5]); 1048s s = warning ('off', 'OctSymPy:toeplitz:diagconflict'); 1048s B = toeplitz([10 x], [1 3 y]); 1048s warning(s) 1048s assert (isequal (A, subs(B, [x,y], [2 5]))) 1048s 1048s one warning expected 1048s warning: toeplitz: column wins diagonal conflict 1048s warning: called from 1048s toeplitz at line 84 column 7 1048s __test__ at line 6 column 4 1048s test at line 682 column 11 1048s /tmp/tmp.5OZVlxcFI9 at line 1230 column 31 1048s 1048s 6 tests, 6 passed, 0 known failure, 0 skipped 1048s [inst/@sym/equationsToMatrix.m] 1048s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/equationsToMatrix.m 1048s ***** test 1048s syms x y z 1048s [A, B] = equationsToMatrix ([x + y - z == 1, 3*x - 2*y + z == 3, 4*x - 2*y + z + 9 == 0], [x, y, z]); 1048s a = sym ([1 1 -1; 3 -2 1; 4 -2 1]); 1048s b = sym ([1; 3; -9]); 1048s assert (isequal (A, a)) 1048s assert (isequal (B, b)) 1049s ***** test 1049s syms x y z 1049s A = equationsToMatrix ([3*x + -3*y - 5*z == 9, 4*x - 7*y + -3*z == -1, 4*x - 9*y - 3*z + 2 == 0], [x, y, z]); 1049s a = sym ([3 -3 -5; 4 -7 -3; 4 -9 -3]); 1049s assert (isequal (A, a)) 1049s ***** test 1049s syms x y 1049s [A, B] = equationsToMatrix ([3*x + 9*y - 5 == 0, -8*x - 3*y == -2]); 1049s a = sym ([3 9; -8 -3]); 1049s b = sym ([5; -2]); 1049s assert (isequal (A, a)) 1049s assert (isequal (B, b)) 1049s ***** test 1049s % override symvar order 1049s syms x y 1049s [A, B] = equationsToMatrix ([3*x + 9*y - 5 == 0, -8*x - 3*y == -2], [y x]); 1049s a = sym ([9 3; -3 -8]); 1049s b = sym ([5; -2]); 1049s assert (isequal (A, a)) 1049s assert (isequal (B, b)) 1050s ***** test 1050s syms x y z 1050s [A, B] = equationsToMatrix ([x - 9*y + z == -5, -9*y*z == -5], [y, x]); 1050s a = sym ([[-9 1]; -9*z 0]); 1050s b = sym ([-5 - z; -5]); 1050s assert (isequal (A, a)) 1050s assert (isequal (B, b)) 1050s ***** test 1050s syms x y 1050s [A, B] = equationsToMatrix (-6*x + 4*y == 5, 4*x - 4*y - 5, x, y); 1050s a = sym ([-6 4; 4 -4]); 1050s b = sym ([5; 5]); 1050s assert (isequal (A, a)) 1050s assert (isequal (B, b)) 1050s ***** test 1050s % vertical list of equations 1050s syms x y 1050s [A, B] = equationsToMatrix ([-6*x + 4*y == 5; 4*x - 4*y - 5], [x y]); 1050s a = sym ([-6 4; 4 -4]); 1050s b = sym ([5; 5]); 1050s assert (isequal (A, a)) 1050s assert (isequal (B, b)) 1051s ***** test 1051s syms x y 1051s [A, B] = equationsToMatrix (5*x == 1, y, x - 6*y - 7, y); 1051s a = sym ([0; 1; -6]); 1051s b = sym ([1 - 5*x; 0; -x + 7]); 1051s assert (isequal (A, a)) 1051s assert (isequal (B, b)) 1051s ***** error 1051s syms x y 1051s [A, B] = equationsToMatrix (x^2 + y^2 == 1, x - y + 1, x, y); 1051s ***** test 1051s % single equation 1051s syms x 1051s [A, B] = equationsToMatrix (3*x == 2, x); 1051s a = sym (3); 1051s b = sym (2); 1051s assert (isequal (A, a)) 1051s assert (isequal (B, b)) 1051s ***** test 1051s % single equation w/ symvar 1051s syms x 1051s [A, B] = equationsToMatrix (3*x == 2); 1051s a = sym (3); 1051s b = sym (2); 1051s assert (isequal (A, a)) 1051s assert (isequal (B, b)) 1051s ***** error 1051s syms x 1051s equationsToMatrix (3*x == 2, [x x]) 1051s 12 tests, 12 passed, 0 known failure, 0 skipped 1051s [inst/@sym/setxor.m] 1051s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/setxor.m 1051s ***** test 1051s A = sym([1 2 3]); 1051s B = sym([1 2 4]); 1051s C = setxor(A, B); 1051s D1 = sym([3 4]); 1051s D2 = sym([4 3]); 1051s assert (isequal (C, D1) || isequal (C, D2)) 1051s ***** test 1051s % one nonsym 1051s A = sym([1 2 3]); 1051s B = [1 2 4]; 1051s C = setxor(A, B); 1051s D1 = sym([3 4]); 1051s D2 = sym([4 3]); 1051s assert (isequal (C, D1) || isequal (C, D2)) 1052s ***** test 1052s % empty 1052s A = sym([1 2 3]); 1052s C = setxor(A, A); 1052s assert (isempty (C)) 1052s ***** test 1052s % empty input 1052s A = sym([1 2]); 1052s C = setxor(A, []); 1052s assert (isequal (C, A) || isequal (C, sym([2 1]))) 1052s ***** test 1052s % scalar 1052s syms x 1052s assert (isequal (setxor([x 1], x), sym(1))) 1052s assert (isempty (setxor(x, x))) 1052s ***** test 1052s A = interval(sym(1), 3); 1052s B = interval(sym(2), 5); 1052s C = setxor(A, B); 1052s D = union (interval (sym(1), 2, false, true), interval (sym(3), 5, true, false)); 1052s assert( isequal( C, D)) 1052s 6 tests, 6 passed, 0 known failure, 0 skipped 1052s [inst/@sym/cosd.m] 1052s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/cosd.m 1052s ***** error cosd (sym(1), 2) 1052s ***** assert (isequaln (cosd (sym(nan)), sym(nan))) 1052s ***** test 1052s f1 = cosd (sym(1)); 1052s f2 = cosd (1); 1052s assert (double (f1), f2, -eps) 1052s ***** test 1052s D = [10 30; 110 -45]; 1052s A = sym(D); 1052s f1 = cosd (A); 1052s f2 = cosd (D); 1052s assert (double (f1), f2, -4*eps) 1052s 4 tests, 4 passed, 0 known failure, 0 skipped 1052s [inst/@sym/numel.m] 1052s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/numel.m 1052s ***** test 1052s a = sym([1 2 3]); 1052s assert(numel(a) == 3); 1052s ***** test 1052s % 2D array 1052s a = sym([1 2 3; 4 5 6]); 1052s assert(numel(a) == 6); 1052s ***** test 1052s % empty 1052s a = sym([]); 1052s assert(numel(a) == 0); 1052s 3 tests, 3 passed, 0 known failure, 0 skipped 1052s [inst/@sym/tril.m] 1052s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/tril.m 1052s ***** test 1052s syms x 1052s assert (isequal (tril(x), x)) 1052s ***** test 1052s % with symbols 1052s syms x 1052s A = [x 2*x; 3*x 4*x]; 1052s assert (isequal (tril(A), [x 0; 3*x 4*x])) 1053s ***** test 1053s % diagonal shifts 1053s B = round(10*rand(3,4)); 1053s A = sym(B); 1053s assert (isequal (tril(A), tril(B))) 1053s assert (isequal (tril(A,0), tril(B,0))) 1053s assert (isequal (tril(A,1), tril(B,1))) 1053s assert (isequal (tril(A,-1), tril(B,-1))) 1053s ***** test 1053s % double array pass through 1053s B = round(10*rand(3,4)); 1053s assert (isequal (tril(B,sym(1)), tril(B,1))) 1053s assert (isa (tril(B,sym(1)), 'double')) 1053s 4 tests, 4 passed, 0 known failure, 0 skipped 1053s [inst/@sym/dot.m] 1053s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/dot.m 1053s ***** error dot (sym(1), 2, 3) 1053s ***** test 1053s a = sym([1; 1; 0]); 1053s b = sym([1; 2; 4]); 1053s c = dot(a, b); 1053s assert (isequal (c, sym(3))) 1053s ***** test 1053s syms x 1053s a = sym([x; 0; 0]); 1053s b = sym([0; 1; 0]); 1053s c = dot(a, b); 1053s assert (isequal (c, sym(0))) 1054s ***** test 1054s assert (isequal (dot (sym([1 i]), sym([i 2])), sym(-i))) 1054s 4 tests, 4 passed, 0 known failure, 0 skipped 1054s [inst/@sym/isequal.m] 1054s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/isequal.m 1054s ***** test 1054s a = sym([1 2]); 1054s b = a; 1054s assert (isequal (a, b)) 1054s b(1) = 42; 1054s assert (~isequal (a, b)) 1054s ***** test 1054s a = sym([1 2; 3 4]); 1054s b = a; 1054s assert (isequal (a, b)) 1054s b(1) = 42; 1054s assert (~isequal (a, b)) 1054s ***** test 1054s a = sym([nan; 2]); 1054s b = a; 1054s assert (~isequal (a, b)) 1054s ***** test 1054s % proper nan treatment 1054s a = sym([nan 2; 3 4]); 1054s b = a; 1054s assert (~isequal (a, b)) 1054s ***** test 1054s % more than two arrays 1054s a = sym([1 2 3]); 1054s b = a; 1054s c = a; 1054s assert (isequal (a, b, c)) 1054s c(1) = 42; 1054s assert (~isequal (a, b, c)) 1054s 5 tests, 5 passed, 0 known failure, 0 skipped 1054s [inst/@sym/acot.m] 1054s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/acot.m 1054s ***** error acot (sym(1), 2) 1054s ***** assert (isequaln (acot (sym(nan)), sym(nan))) 1054s ***** shared x, d 1054s d = 1; 1054s x = sym('1'); 1054s ***** test 1054s f1 = acot(x); 1054s f2 = acot(d); 1054s assert( abs(double(f1) - f2) < 1e-15 ) 1054s ***** test 1054s D = [d d; d d]; 1054s A = [x x; x x]; 1054s f1 = acot(A); 1054s f2 = acot(D); 1054s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1054s ***** test 1054s % round trip 1054s y = sym('y'); 1054s A = acot (d); 1054s f = acot (y); 1054s h = function_handle (f); 1054s B = h (d); 1054s assert (A, B, -eps) 1054s 5 tests, 5 passed, 0 known failure, 0 skipped 1054s [inst/@sym/asech.m] 1054s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/asech.m 1054s ***** error asech (sym(1), 2) 1054s ***** assert (isequaln (asech (sym(nan)), sym(nan))) 1054s ***** shared x, d 1054s d = 1/2; 1054s x = sym('1/2'); 1054s ***** test 1054s f1 = asech(x); 1054s f2 = asech(d); 1054s assert( abs(double(f1) - f2) < 1e-15 ) 1054s ***** test 1054s D = [d d; d d]; 1054s A = [x x; x x]; 1054s f1 = asech(A); 1054s f2 = asech(D); 1054s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1054s ***** test 1054s % round trip 1054s y = sym('y'); 1054s A = asech (d); 1054s f = asech (y); 1054s h = function_handle (f); 1054s B = h (d); 1054s assert (A, B, -eps) 1054s 5 tests, 5 passed, 0 known failure, 0 skipped 1054s [inst/@sym/eval.m] 1054s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/eval.m 1054s ***** error eval (sym(1), 2) 1054s ***** assert (isnumeric (eval (sym(3)))) 1054s ***** assert (isnumeric (eval (sin (sym(3))))) 1055s ***** test 1055s syms x y 1055s f = 2*x*y; 1055s x = 3; 1055s y = 4; 1055s g = eval (f); 1055s assert (isequal (g, 24)) 1055s ***** test 1055s syms x y 1055s f = 2*x*y; 1055s clear y 1055s x = 3; 1055s g = eval (f); 1055s assert (isequal (g, 6*sym('y'))) 1055s ***** test 1055s % do not convert inputs to sym, for SMT compat 1055s nearpi = pi + 1e-14; % sym could make this pi 1055s x = sym('x'); 1055s f = 2*x; 1055s x = nearpi; 1055s d = eval (f); 1055s assert (abs (d - 2*pi) > 1e-15) 1055s 6 tests, 6 passed, 0 known failure, 0 skipped 1055s [inst/@sym/ifourier.m] 1055s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/ifourier.m 1055s ***** error ifourier (sym(1), 2, 3, 4) 1055s ***** test 1055s % matlab SMT compat 1055s syms t r u x w 1055s Pi=sym('pi'); 1055s assert(logical( ifourier(exp(-abs(w))) == 1/(Pi*(x^2 + 1)) )) 1055s assert(logical( ifourier(exp(-abs(x))) == 1/(Pi*(t^2 + 1)) )) 1055s assert(logical( ifourier(exp(-abs(r)),u) == 1/(Pi*(u^2 + 1)) )) 1055s assert(logical( ifourier(exp(-abs(r)),r,u) == 1/(Pi*(u^2 + 1)) )) 1057s ***** test 1057s % basic 1057s syms x w 1057s Pi=sym('pi'); 1057s assert(logical( ifourier(exp(-w^2/4)) == 1/(sqrt(Pi)*exp(x^2)) )) 1057s assert(logical( ifourier(sqrt(Pi)/exp(w^2/4)) == exp(-x^2) )) 1058s ***** test 1058s % Dirac delta tests 1058s syms x w 1058s Pi=sym('pi'); 1058s assert(logical( ifourier(dirac(w-2)) == exp(2*1i*x)/(2*Pi) )) 1058s assert (logical( ifourier(sym(2), w, x) == 2*dirac(x) )) 1058s ***** test 1058s % advanced test 1058s syms x w c d 1058s Pi=sym('pi'); 1058s f=(Pi*(dirac(x-c)+dirac(x+c))+2*Pi*1i*(-dirac(x+3*d)+dirac(x-3*d))+2/(x^2+1))/(2*Pi); 1058s assert(logical( simplify(ifourier(cos(c*w)+2*sin(3*d*w)+exp(-abs(w)))-f) == 0 )) 1059s ***** xtest 1059s % Inverse Fourier transform cannot recover non-smooth functions 1059s % SymPy cannot evaluate correctly?? 1059s syms x w 1059s assert(logical( ifourier(2/(w^2 + 1)) == exp(-abs(x)) )) 1059s assert(logical( ifourier(2/(w^2 + 1)) == heaviside(x)/exp(x) + heaviside(-x)*exp(x) )) 1059s assert(logical( ifourier(-(w*4)/(w^4 + 2*w^2 + 1) )== -x*exp(-abs(x))*1i )) 1059s assert(logical( ifourier(-(w*4)/(w^4 + 2*w^2 + 1) )== -x*(heaviside(x)/exp(x) + heaviside(-x)*exp(x))*1i )) 1060s !!!!! known failure 1060s assert (logical (ifourier (2 / (w ^ 2 + 1)) == exp (-abs (x)))) failed 1060s ***** error ifourier (sym('k', 'positive')*sym('k')) 1060s ***** test 1060s % SMT compact, prefers k over symvar 1060s syms k x y 1060s assert (isequal (ifourier(y*exp(-k^2/4)), y/sqrt(sym(pi))*exp(-x^2))) 1061s 8 tests, 7 passed, 1 known failure, 0 skipped 1061s [inst/@sym/besselj.m] 1061s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/besselj.m 1061s ***** test 1061s X = [1 2 3; 4 5 6]; 1061s ns = [sym(0) 1 -2; sym(1)/2 -sym(3)/2 pi]; 1061s n = double(ns); 1061s A = double(besselj(ns, X)); 1061s B = besselj(n, X); 1061s assert (all (all (abs (A - B) < 50*eps*abs(A)))) 1061s ***** test 1061s % roundtrip 1061s syms x 1061s A = besselj(2, 10); 1061s q = besselj(2, x); 1061s h = function_handle(q); 1061s B = h(10); 1061s assert (abs (A - B) <= eps*abs(A)) 1061s ***** error besselj(sym('x')) 1061s 3 tests, 3 passed, 0 known failure, 0 skipped 1061s [inst/@sym/isNone.m] 1061s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/isNone.m 1061s ***** test 1061s None = pycall_sympy__ ('return None'); 1061s ***** shared None 1061s None = pycall_sympy__ ('return None'); 1061s ***** assert (isNone(None)) 1061s ***** assert (~isNone(sym('x'))) 1061s ***** assert (islogical(isNone(None))) 1061s ***** test 1061s a = [1 None]; 1061s a = [None None]; 1061s a = [None; 1]; 1061s a = [None; None]; 1061s a = [None 2; 3 None]; 1061s ***** test 1061s a = sym([1 2]); 1061s a(1,2) = None; 1061s assert (isequal (a, [sym(1) None])); 1062s ***** assert (isequal (None(1), None)); 1062s ***** error None(None); 1062s ***** error x=sym('x'); x(None); 1062s ***** error x=1; x(None); 1062s ***** error None(None); 1062s ***** error 1 + None; 1062s ***** error None - 1; 1062s ***** error 6*None; 1062s ***** error 2^None; 1062s ***** error [1 2].*None; 1062s ***** error isconstant(None); 1062s ***** error nnz(None); 1062s ***** error logical(None); 1062s ***** error isAlways(None); 1062s ***** error logical([sym(true) None]); 1062s ***** error isAlways([sym(true) None]); 1062s ***** assert (isequal (children(None), None)) 1062s ***** assert (isequal (repmat(None, 1, 2), [None None])) 1062s ***** assert (isequal (fliplr(None), None)) 1062s ***** assert (isequal (flipud(None), None)) 1062s 26 tests, 26 passed, 0 known failure, 0 skipped 1062s [inst/@sym/double.m] 1062s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/double.m 1062s ***** test 1062s % numeric scalar 1062s a = double(sym(10)); 1062s assert (a == 10) 1062s assert (isa (a, 'double')) 1062s ***** test 1062s % numeric vectors 1062s a = double(sym([10 12])); 1062s assert (isequal (a, [10 12])) 1062s assert (isa (a, 'double')) 1062s ***** test 1062s % complex 1062s a = 3 + 4i; 1062s b = sym(a); 1062s assert (isequal (double (b), a)) 1062s ***** xtest 1062s % unexpected, precisely same floating point 1062s a = 3 + 4i; 1062s b = sym(a); 1062s assert (isequal (double (b/pi), a/pi)) 1062s ***** test 1062s % floating point 1062s x = sqrt(sym(2)); 1062s assert( abs(double(x) - sqrt(2)) < 2*eps) 1062s x = sym(pi); 1062s assert( abs(double(x) - pi) < 2*eps) 1062s ***** test 1062s oo = sym(inf); 1062s assert( double(oo) == inf ) 1062s assert( double(-oo) == -inf ) 1062s assert( isnan(double(0*oo)) ) 1062s ***** test 1062s zoo = sym('zoo'); 1062s assert (double(zoo) == complex(inf, inf)) 1062s ***** test 1062s zoo = sym('zoo'); 1062s assert (double(-zoo) == double(zoo) ) 1062s assert( isnan(double(0*zoo)) ) 1062s ***** test 1062s % nan 1062s snan = sym(nan); 1062s assert( isnan(double(snan))) 1062s ***** test 1062s % don't want NaN+NaNi 1062s snan = sym(nan); 1062s assert (isreal (double (snan))) 1062s ***** test 1062s % arrays 1062s a = [1 2; 3 4]; 1062s assert( isequal( double(sym(a)), a )) 1062s assert( isequal( double(sym(a)), a )) 1062s % should fail with error for non-double 1063s ***** error syms x; double(x) 1063s ***** error syms x; double([1 2 x]) 1063s 13 tests, 13 passed, 0 known failure, 0 skipped 1063s [inst/@sym/imag.m] 1063s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/imag.m 1063s ***** assert (isequal (imag (sym (4) + 3i),3)) 1063s ***** test 1063s syms x y real 1063s z = x + 1i*y; 1063s assert (isequal (imag (z),y)) 1063s ***** test 1063s syms x y real 1063s Z = [4 x + 1i*y; 1i*y 4 + 3i]; 1063s assert (isequal (imag (Z),[0 y; y 3])) 1063s ***** test 1063s syms x real 1063s d = exp (x*i); 1063s assert (isequal (imag (d), sin (x))) 1063s ***** test 1063s % round trip 1063s syms x 1063s d = 3 - 5i; 1063s f = imag (x); 1063s A = imag (d); 1063s h = function_handle (f); 1063s B = h (d); 1063s assert (A, B) 1063s 5 tests, 5 passed, 0 known failure, 0 skipped 1063s [inst/@sym/rank.m] 1063s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/rank.m 1063s ***** test 1063s A = sym([1 2; 3 4]); 1063s assert (rank(A) == 2); 1063s ***** test 1063s A = sym([1 2 3; 3 4 5]); 1063s assert (rank(A) == 2); 1063s ***** test 1063s A = sym([1 2; 1 2]); 1063s assert (rank(A) == 1); 1063s ***** test 1063s A = sym([1 2; 3 4]); 1063s assert (rank(A) == 2); 1063s ***** assert (rank(sym(1)) == 1); 1063s ***** assert (rank(sym(0)) == 0); 1063s ***** assert (rank(sym('x', 'positive')) == 1); 1063s 7 tests, 7 passed, 0 known failure, 0 skipped 1063s [inst/@sym/eig.m] 1063s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/eig.m 1063s ***** test 1063s % basic 1063s A = [1 2; 3 4]; 1063s B = sym(A); 1063s sd = eig(A); 1063s s = eig(B); 1063s s2 = double(s); 1063s assert (norm(sort(s2) - sort(sd)) <= 10*eps) 1064s ***** test 1064s % scalars 1064s syms x 1064s a = sym(-10); 1064s assert (isequal (eig(a), a)) 1064s assert (isequal (eig(x), x)) 1064s ***** test 1064s % diag, multiplicity 1064s A = diag([6 6 7]); 1064s B = sym(A); 1064s e = eig(B); 1064s assert (isequal (size (e), [3 1])) 1064s assert (sum(logical(e == 6)) == 2) 1064s assert (sum(logical(e == 7)) == 1) 1064s ***** test 1064s % matrix with symbols 1064s syms x y positive 1064s A = [x+9 y; sym(0) 6]; 1064s s = eig(A); 1064s s = simplify(s); 1064s assert (isequal (s, [x+9; 6]) || isequal (s, [6; x+9])) 1064s ***** test 1064s % eigenvects 1064s e = sym([5 5 5 6 7]); 1064s A = diag(e); 1064s [V, D] = eig(A); 1064s assert (isequal (diag(D), e.')) 1064s assert (isequal (V, diag(sym([1 1 1 1 1])))) 1064s ***** test 1064s % alg/geom mult, eigenvects 1064s e = sym([5 5 5 6]); 1064s A = diag(e); 1064s A(1,2) = 1; 1064s [V, D] = eig(A); 1064s assert (isequal (diag(D), e.')) 1064s assert (sum(logical(V(1,:) ~= 0)) == 2) 1064s assert (sum(logical(V(2,:) ~= 0)) == 0) 1064s assert (sum(logical(V(3,:) ~= 0)) == 1) 1064s assert (sum(logical(V(4,:) ~= 0)) == 1) 1064s 6 tests, 6 passed, 0 known failure, 0 skipped 1064s [inst/@sym/sqrt.m] 1064s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/sqrt.m 1064s ***** error sqrt (sym(1), 2) 1064s ***** assert (isequaln (sqrt (sym(nan)), sym(nan))) 1064s ***** shared x, d 1064s d = 1; 1064s x = sym('1'); 1064s ***** test 1064s f1 = sqrt(x); 1064s f2 = sqrt(d); 1064s assert( abs(double(f1) - f2) < 1e-15 ) 1064s ***** test 1064s D = [d d; d d]; 1064s A = [x x; x x]; 1064s f1 = sqrt(A); 1064s f2 = sqrt(D); 1064s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1065s ***** test 1065s % round trip 1065s y = sym('y'); 1065s A = sqrt (d); 1065s f = sqrt (y); 1065s h = function_handle (f); 1065s B = h (d); 1065s assert (A, B, -eps) 1065s 5 tests, 5 passed, 0 known failure, 0 skipped 1065s [inst/@sym/horzcat.m] 1065s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/horzcat.m 1065s ***** test 1065s % basic 1065s syms x 1065s A = [x x]; 1065s B = horzcat(x, x); 1065s C = horzcat(x, x, x); 1065s assert (isa (A, 'sym')) 1065s assert (isa (B, 'sym')) 1065s assert (isa (C, 'sym')) 1065s assert (isequal (size(A), [1 2])) 1065s assert (isequal (size(B), [1 2])) 1065s assert (isequal (size(C), [1 3])) 1065s ***** test 1065s % basic, part 2 1065s syms x 1065s A = [x 1]; 1065s B = [1 x]; 1065s C = [1 2 x]; 1065s assert (isa (A, 'sym')) 1065s assert (isa (B, 'sym')) 1065s assert (isa (C, 'sym')) 1065s assert (isequal (size(A), [1 2])) 1065s assert (isequal (size(B), [1 2])) 1065s assert (isequal (size(C), [1 3])) 1065s ***** test 1065s % row vectors 1065s a = [sym(1) 2]; 1065s b = [sym(3) 4]; 1065s assert (isequal ( [a b] , [1 2 3 4] )) 1065s assert (isequal ( [a 3 4] , [1 2 3 4] )) 1065s assert (isequal ( [3 4 a] , [3 4 1 2] )) 1065s assert (isequal ( [a [3 4]] , [1 2 3 4] )) 1065s assert (isequal ( [a sym(3) 4] , [1 2 3 4] )) 1065s assert (isequal ( [a [sym(3) 4]] , [1 2 3 4] )) 1065s ***** test 1065s % col vectors 1065s a = [sym(1); 2]; 1065s b = [sym(3); 4]; 1065s assert (isequal ( [a b] , [1 3; 2 4] )) 1065s assert (isequal ( [a b a] , [1 3 1; 2 4 2] )) 1065s ***** test 1065s % empty vectors 1065s v = sym(1); 1065s a = [v []]; 1065s assert (isequal (a, v)) 1065s a = [[] v []]; 1065s assert (isequal (a, v)) 1065s a = [v [] []]; 1065s assert (isequal (a, v)) 1065s ***** test 1065s % more empty vectors 1065s v = [sym(1) sym(2)]; 1065s q = sym(ones(1, 0)); 1065s assert (isequal ([v q], v)) 1065s ***** error 1065s v = [sym(1) sym(2)]; 1065s q = sym(ones(3, 0)); 1065s w = horzcat(v, q); 1066s ***** test 1066s % issue #700 1066s A = sym ([1 2]); 1066s B = simplify (A); 1066s assert (isequal ([B A], [A B])) 1066s 8 tests, 8 passed, 0 known failure, 0 skipped 1066s [inst/@sym/round.m] 1066s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/round.m 1066s ***** test 1066s d = 3/2; 1066s x = sym('3/2'); 1066s f1 = round(x); 1066s f2 = round(d); 1066s assert (isequal (f1, f2)) 1066s ***** xtest 1066s % ideally rounding direction would match Octave 1066s d = 5/2; 1066s x = sym('5/2'); 1066s f1 = round(x); 1066s f2 = round(d); 1066s assert (isequal (f1, f2)) 1066s !!!!! known failure 1066s assert (isequal (f1, f2)) failed 1066s ***** test 1066s D = [1.1 4.6; -3.4 -8.9]; 1066s A = [sym(11)/10 sym(46)/10; sym(-34)/10 sym(-89)/10]; 1066s f1 = round(A); 1066s f2 = round(D); 1066s assert( isequal (f1, f2)) 1066s ***** test 1066s d = sym(-11)/10; 1066s c = -1; 1066s assert (isequal (round (d), c)) 1066s ***** test 1066s d = sym(-19)/10; 1066s c = -2; 1066s assert (isequal (round (d), c)) 1066s ***** test 1066s d = 7j/2; 1066s x = sym(7j)/2; 1066s f1 = round (x); 1066s f2 = round (d); 1066s assert (isequal (f1, f2)) 1066s ***** test 1066s d = 5/3 - 4j/7; 1066s x = sym(5)/3 - sym(4j)/7; 1066s f1 = round (x); 1066s f2 = round (d); 1066s assert (isequal (f1, f2)) 1066s 7 tests, 6 passed, 1 known failure, 0 skipped 1066s [inst/@sym/ellipticCK.m] 1066s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/ellipticCK.m 1066s ***** error ellipticCK (sym (1), 2) 1066s ***** assert (double (ellipticCK (sym (1)/2)), 1.8541, 10e-5) 1066s ***** assert (double (ellipticCK (sym (101)/10)), 0.812691836806976, -3*eps) 1067s ***** assert (isequal (ellipticCK (sym (1)), sym(pi)/2)) 1067s 4 tests, 4 passed, 0 known failure, 0 skipped 1067s [inst/@sym/matlabFunction.m] 1067s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/matlabFunction.m 1067s ***** test 1067s % autodetect inputs 1067s syms x y 1067s s = warning('off', 'OctSymPy:function_handle:nocodegen'); 1067s h = matlabFunction(2*x*y, x+y); 1067s warning(s) 1067s [t1, t2] = h(3,5); 1067s assert(t1 == 30 && t2 == 8) 1067s 1 test, 1 passed, 0 known failure, 0 skipped 1067s [inst/@sym/taylor.m] 1067s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/taylor.m 1067s ***** test 1067s syms x 1067s f = exp(x); 1067s expected = 1 + x + x^2/2 + x^3/6 + x^4/24 + x^5/120; 1067s assert (isequal (taylor(f), expected)) 1067s assert (isequal (taylor(f,x), expected)) 1067s assert (isequal (taylor(f,x,0), expected)) 1067s ***** test 1067s syms x 1067s f = exp(x); 1067s expected = 1 + x + x^2/2 + x^3/6 + x^4/24; 1067s assert (isequal (taylor(f,'order',5), expected)) 1067s assert (isequal (taylor(f,x,'order',5), expected)) 1067s assert (isequal (taylor(f,x,0,'order',5), expected)) 1068s ***** test 1068s % key/value ordering doesn't matter 1068s syms x 1068s f = exp(x); 1068s g1 = taylor(f, 'expansionPoint', 1, 'order', 3); 1068s g2 = taylor(f, 'order', 3, 'expansionPoint', 1); 1068s assert (isequal (g1, g2)) 1068s ***** test 1068s syms x 1068s f = x^2; 1068s assert (isequal (taylor(f,x,0,'order',0), 0)) 1068s assert (isequal (taylor(f,x,0,'order',1), 0)) 1068s assert (isequal (taylor(f,x,0,'order',2), 0)) 1068s assert (isequal (taylor(f,x,0,'order',3), x^2)) 1068s assert (isequal (taylor(f,x,0,'order',4), x^2)) 1068s ***** test 1068s syms x y 1068s f = exp(x)+exp(y); 1068s expected = 2 + x + x^2/2 + x^3/6 + x^4/24 + y + y^2/2 + y^3/6 + y^4/24; 1068s assert (isAlways(taylor(f,[x,y],'order',5)== expected)) 1068s assert (isAlways(taylor(f,[x,y],[0,0],'order',5) == expected)) 1069s ***** test 1069s % key/value ordering doesn't matter 1069s syms x 1069s f = exp(x); 1069s g1 = taylor(f, 'expansionPoint', 1, 'order', 3); 1069s g2 = taylor(f, 'order', 3, 'expansionPoint', 1); 1069s assert (isequal (g1, g2)) 1069s ***** test 1069s syms x 1069s f = x^2; 1069s assert (isequal (taylor(f,x,0,'order',0), 0)) 1069s assert (isequal (taylor(f,x,0,'order',1), 0)) 1069s assert (isequal (taylor(f,x,0,'order',2), 0)) 1069s assert (isequal (taylor(f,x,0,'order',3), x^2)) 1069s assert (isequal (taylor(f,x,0,'order',4), x^2)) 1069s ***** test 1069s % syms for a and order 1069s syms x 1069s f = x^2; 1069s assert (isequal (taylor(f,x,sym(0),'order',sym(2)), 0)) 1069s assert (isequal (taylor(f,x,sym(0),'order',sym(4)), x^2)) 1069s ***** test 1069s syms x y 1069s f = exp (x^2 + y^2); 1069s expected = 1+ x^2 +y^2 + x^4/2 + x^2*y^2 + y^4/2; 1069s assert (isAlways(taylor(f,[x,y],'order',5)== expected)) 1069s assert (isAlways(taylor(f,[x,y],'expansionPoint', [0,0],'order',5) == expected)) 1070s ***** test 1070s syms x y 1070s f = sqrt(1+x^2+y^2); 1070s expected = 1+ x^2/2 +y^2/2 - x^4/8 - x^2*y^2/4 - y^4/8; 1070s assert (isAlways(taylor(f,[x,y],'order',6)== expected)) 1070s assert (isAlways(taylor(f,[x,y],'expansionPoint', [0,0],'order',5) == expected)) 1071s ***** test 1071s syms x y 1071s f = sin (x^2 + y^2); 1071s expected = sin(sym(1))+2*cos(sym(1))*(x-1)+(cos(sym(1))-2*sin(sym(1)))*(x-1)^2 + cos(sym(1))*y^2; 1071s assert (isAlways(taylor(f,[x,y],'expansionPoint', [1,0],'order',3) == expected)) 1072s ***** test 1072s % key/value ordering doesn't matter 1072s syms x y 1072s f = exp(x+y); 1072s g1 = taylor(f, 'expansionPoint',1, 'order', 3); 1072s g2 = taylor(f, 'order', 3, 'expansionPoint',1); 1072s assert (isAlways(g1== g2)) 1072s ***** test 1072s syms x y 1072s f = x^2 + y^2; 1072s assert (isAlways(taylor(f,[x,y],[0,0],'order',0)== sym(0) )) 1072s assert (isAlways(taylor(f,[x,y],[0,0],'order',1)== sym(0) )) 1072s assert (isAlways(taylor(f,[x,y],[0,0],'order',2)== sym(0) )) 1072s assert (isAlways(taylor(f,[x,y],[0,0],'order',3)== sym(x^2 + y^2))) 1072s assert (isAlways(taylor(f,[x,y],[0,0],'order',4)== sym(x^2 + y^2))) 1073s ***** test 1073s % expansion point 1073s syms x a 1073s f = x^2; 1073s g = taylor(f,x,2); 1073s assert (isequal (simplify(g), f)) 1073s assert (isequal (g, 4*x+(x-2)^2-4)) 1073s g = taylor(f,x,a); 1073s assert (isequal (simplify(g), f)) 1073s ***** test 1073s % wrong order-1 series with nonzero expansion pt: 1073s % upstream bug https://github.com/sympy/sympy/issues/9351 1073s syms x 1073s g = x^2 + 2*x + 3; 1073s h = taylor (g, x, 4, 'order', 1); 1073s assert (isequal (h, 27)) 1073s ***** test 1073s syms x y z 1073s g = x^2 + 2*y + 3*z; 1073s h = taylor (g, [x,y,z], 'order', 4); 1073s assert (isAlways(h == g)) ; 1073s ***** test 1073s syms x y z 1073s g = sin(x*y*z); 1073s h = taylor (g, [x,y,z], 'order', 4); 1073s assert (isAlways(h == x*y*z)) ; 1074s ***** error 1074s syms x y 1074s taylor(0, [x, y], [1, 2, 3]); 1074s 18 tests, 18 passed, 0 known failure, 0 skipped 1074s [inst/@sym/atan2.m] 1074s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/atan2.m 1074s ***** error atan2 (1) 1074s ***** error atan2 (1, 2, 3) 1074s ***** test 1074s % some angles 1074s e = sym(1); 1074s a = atan2(0, e); 1074s assert (isequal (a, sym(0))) 1074s a = atan2(e, 0); 1074s assert (isequal (a, sym(pi)/2)) 1074s ***** test 1074s % symbols can give numerical answer 1074s syms x positive 1074s a = atan2(0, x); 1074s assert (isequal (a, sym(0))) 1074s a = atan2(x, 0); 1074s assert (isequal (a, sym(pi)/2)) 1074s a = atan2(-x, 0); 1074s assert (isequal (a, -sym(pi)/2)) 1074s ***** test 1074s % matrices 1074s x = sym([1 -2; 0 0]); 1074s y = sym([0 0; 8 -3]); 1074s a = atan2(y, x); 1074s sp = sym(pi); 1074s aex = [0 sp; sp/2 -sp/2]; 1074s assert (isequal (a, aex)) 1074s ***** test 1074s % round trip 1074s syms x y 1074s xd = -2; yd = -3; 1074s f = atan2 (x, y); 1074s A = atan2 (xd, yd); 1074s h = function_handle (f); 1074s B = h (xd, yd); 1074s assert (A, B, -eps) 1074s 6 tests, 6 passed, 0 known failure, 0 skipped 1074s [inst/@sym/gammainc.m] 1074s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/gammainc.m 1074s ***** assert (isequal (gammainc (sym(0), 1), sym(0))) 1075s ***** assert (isequal (gammainc (sym(0), 2), sym(0))) 1075s ***** assert (isequal (gammainc (sym('oo'), 1), sym(1))) 1075s ***** assert (isequal (gammainc (sym(0), 1, 'upper'), sym(1))) 1075s ***** assert (isequal (gammainc (sym(0), 2, 'upper'), sym(1))) 1075s ***** assert (isequal (gammainc (sym('oo'), 1, 'upper'), sym(0))) 1075s ***** test 1075s % default is lower 1075s syms x a 1075s assert (isequal (gammainc (x, a), gammainc(x, a, 'lower'))) 1075s ***** test 1075s % compare to double 1075s x = 5; a = 1; 1075s A = gammainc (x, a); 1075s B = double (gammainc (sym(x), a)); 1075s assert(A, B, -eps) 1075s ***** test 1075s % compare to double where gamma(a) != 1 1075s x = 5; a = 3; 1075s A = gammainc (x, a); 1075s B = double (gammainc (sym(x), a)); 1075s assert(A, B, -eps) 1075s ***** test 1075s % compare to double 1075s x = 100; a = 1; 1075s A = gammainc (x, a); 1075s B = double (gammainc (sym(x), a)); 1075s assert(A, B, -eps) 1075s ***** test 1075s % compare to double 1075s xs = sym(1)/1000; x = 1/1000; a = 1; 1075s A = gammainc (x, a); 1075s B = double (gammainc (xs, a)); 1075s assert(A, B, -eps) 1075s ***** test 1075s % compare to double 1075s x = 5; a = 1; 1075s A = gammainc (x, a, 'upper'); 1075s B = double (gammainc (sym(x), a, 'upper')); 1075s assert(A, B, -10*eps) 1075s ***** test 1075s % compare to double 1075s x = 10; a = 1; 1075s A = gammainc (x, a, 'upper'); 1075s B = double (gammainc (sym(x), a, 'upper')); 1075s assert(A, B, -10*eps) 1075s ***** test 1075s % compare to double 1075s x = 40; a = 1; 1075s A = gammainc (x, a, 'upper'); 1075s B = double (gammainc (sym(x), a, 'upper')); 1075s assert(A, B, -10*eps) 1075s ***** test 1075s % compare to double 1075s xs = sym(1)/1000; x = 1/1000; a = 1; 1075s A = gammainc (x, a, 'upper'); 1075s B = double (gammainc (xs, a, 'upper')); 1075s assert(A, B, -eps) 1075s ***** test 1075s % vectorized 1075s P = gammainc([sym(pi) 2], [1 3]); 1075s expected = [gammainc(pi, sym(1)) gammainc(2, sym(3))]; 1075s assert (isequal (P, expected)) 1075s ***** test 1075s % vectorized 1075s P = gammainc(sym(pi), [1 3]); 1075s expected = [gammainc(sym(pi), 1) gammainc(sym(pi), 3)]; 1075s assert (isequal (P, expected)) 1076s ***** test 1076s % vectorized 1076s P = gammainc([sym(pi) 2], 1); 1076s expected = [gammainc(pi, sym(1)) gammainc(2, sym(1))]; 1076s assert (isequal (P, expected)) 1076s ***** test 1076s % round trip 1076s syms x a 1076s f = gammainc (x, a, 'upper'); 1076s h = function_handle (f, 'vars', [x a]); 1076s A = h (1.1, 2); 1076s B = gammainc (1.1, 2, 'upper'); 1076s assert (A, B) 1076s ***** test 1076s % round trip 1076s syms x a 1076s f = gammainc (x, a, 'lower'); 1076s h = function_handle (f, 'vars', [x a]); 1076s A = h (1.1, 2); 1076s B = gammainc (1.1, 2, 'lower'); 1076s assert (A, B) 1076s ***** test 1076s % round trip 1076s syms x a 1076s f = gammainc (x, a, 'upper'); 1076s h = function_handle (f, 'vars', [x a]); 1076s A = h (1.1, 2.2); 1076s B = gammainc (1.1, 2.2, 'upper'); 1076s assert (A, B) 1076s ***** test 1076s % round trip 1076s syms x a 1076s f = gammainc (x, a, 'lower'); 1076s h = function_handle (f, 'vars', [x a]); 1076s A = h (1.1, 2.2); 1076s B = gammainc (1.1, 2.2, 'lower'); 1076s assert (A, B) 1076s 22 tests, 22 passed, 0 known failure, 0 skipped 1076s [inst/@sym/int.m] 1076s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/int.m 1076s ***** shared x,y,a 1076s syms x y a 1076s ***** assert(logical(int(cos(x)) - sin(x) == 0)) 1076s ***** assert(logical(int(cos(x),x) - sin(x) == 0)) 1076s ***** assert(logical(int(cos(x),x,0,1) - sin(sym(1)) == 0)) 1076s ***** test 1076s %% limits might be syms 1076s assert( isequal (int(cos(x),x,sym(0),sym(1)), sin(sym(1)))) 1076s assert( isequal (int(cos(x),x,0,a), sin(a))) 1077s ***** test 1077s %% other variables present 1077s assert( isequal (int(y*cos(x),x), y*sin(x))) 1077s ***** test 1077s %% limits as array 1077s assert( isequal (int(cos(x),x,[0 1]), sin(sym(1)))) 1077s assert( isequal (int(cos(x),x,sym([0 1])), sin(sym(1)))) 1077s assert( isequal (int(cos(x),x,[0 a]), sin(a))) 1077s ***** test 1077s %% no x given 1077s assert( isequal (int(cos(x),[0 1]), sin(sym(1)))) 1077s assert( isequal (int(cos(x),sym([0 1])), sin(sym(1)))) 1077s assert( isequal (int(cos(x),[0 a]), sin(a))) 1077s assert( isequal (int(cos(x),0,a), sin(a))) 1077s ***** test 1077s %% integration of const 1077s assert( isequal (int(sym(2),y), 2*y)) 1077s assert( isequal (int(sym(2)), 2*x)) 1077s assert( isequal (int(sym(2),[0 a]), 2*a)) 1077s assert( isequal (int(sym(2),0,a), 2*a)) 1078s ***** test 1078s % componentwise int of array 1078s A = [x x*x]; 1078s assert (isequal (int(A, x), [x^2/2 x^3/3])) 1078s ***** test 1078s % NonElementaryIntegral bug 1078s % https://savannah.gnu.org/bugs/index.php?46831 1078s f = int(exp(exp(x))); 1078s f = f + 2; 1078s g = diff(f); 1078s assert (isequal (g, exp(exp(x)))) 1078s 10 tests, 10 passed, 0 known failure, 0 skipped 1078s [inst/@sym/bernoulli.m] 1078s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/bernoulli.m 1078s ***** error bernoulli (sym(1), 2, 3) 1078s ***** assert (isequal (bernoulli (sym(8)), -sym(1)/30)) 1078s ***** assert (isequal (bernoulli (sym(9)), sym(0))) 1078s ***** test syms x 1078s assert (isequal (bernoulli(3,x), x^3 - 3*x^2/2 + x/2)) 1078s ***** test 1078s % two different definitions in literature 1078s assert (isequal (abs (bernoulli (sym(1))), sym(1)/2)) 1078s ***** test 1078s % we use B_1 = 1/2 1078s if (pycall_sympy__ ('return Version(spver) >= Version("1.12.dev")')) 1078s assert (isequal (bernoulli (sym(1)), sym(1)/2)) 1078s end 1078s ***** test 1078s m = sym([0 2; 8 888889]); 1078s A = bernoulli (m); 1078s B = [1 sym(1)/6; -sym(1)/30 0]; 1078s assert (isequal (A, B)) 1079s ***** test 1079s syms x 1079s A = bernoulli ([0; 1], x); 1079s B = [sym(1); x - sym(1)/2]; 1079s assert (isequal (A, B)) 1079s ***** test 1079s % round trip 1079s syms n x 1079s f = bernoulli (n, x); 1079s h = function_handle (f, 'vars', [n x]); 1079s A = h (2, 2.2); 1079s B = bernoulli (2, 2.2); 1079s assert (A, B) 1079s 9 tests, 9 passed, 0 known failure, 0 skipped 1079s [inst/@sym/ezsurf.m] 1079s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/ezsurf.m 1079s ***** error 1079s syms u v t 1079s ezsurf(u*v, 2*u*v, 3*v*t) 1079s ***** error 1079s syms u v t 1079s ezsurf(u*v, 2*u*v, u*v*t) 1079s 2 tests, 2 passed, 0 known failure, 0 skipped 1079s [inst/@sym/sym.m] 1079s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/sym.m 1079s ***** test 1079s % integers 1079s x = sym ('2'); 1079s y = sym (2); 1079s assert (isa (x, 'sym')) 1079s assert (isa (y, 'sym')) 1079s assert (isequal (x, y)) 1079s ***** test 1079s % infinity 1079s for x = {'inf', '-inf', inf, -inf, 'Inf'} 1079s y = sym (x{1}); 1079s assert (isa (y, 'sym')) 1079s assert (isinf (double (y))) 1079s assert (isinf (y)) 1079s end 1079s ***** test 1079s % pi 1079s x = sym ('pi'); 1079s assert (isa (x, 'sym')) 1079s assert (isequal (sin (x), sym (0))) 1079s assert (abs (double (x) - pi) < 2*eps ) 1079s x = sym (pi); 1079s assert (isa (x, 'sym')) 1079s assert (isequal (sin (x), sym (0))) 1079s assert (abs (double (x) - pi) < 2*eps ) 1079s ***** test 1079s % rationals 1079s x = sym(1) / 3; 1079s assert (isa (x, 'sym')) 1079s assert (isequal (3*x - 1, sym (0))) 1079s x = 1 / sym (3); 1079s assert (isa (x, 'sym')) 1079s assert (isequal (3*x - 1, sym (0))) 1079s x = sym ('1/3'); 1079s assert (isa (x, 'sym')) 1079s assert (isequal (3*x - 1, sym (0))) 1080s ***** test 1080s % passing small rationals 1080s x = sym ('1/2'); 1080s assert (double (x) == 1/2 ) 1080s assert (isequal (2*x, sym (1))) 1080s ***** warning x = sym (1/2); 1080s ***** test 1080s % passing small rationals w/o quotes: despite the warning, 1080s % it should work 1080s s = warning ('off', 'OctSymPy:sym:rationalapprox'); 1080s x = sym (1/2); 1080s warning (s) 1080s assert (double (x) == 1/2 ) 1080s assert (isequal (2*x, sym (1))) 1080s ***** test 1080s assert (isa (sym (pi), 'sym')) 1080s assert (isa (sym ('beta'), 'sym')) 1080s ***** test 1080s % sym from array 1080s D = [0 1; 2 3]; 1080s A = [sym(0) 1; sym(2) 3]; 1080s assert (isa (sym (D), 'sym')) 1080s assert (isequal (size (sym (D)), size (D))) 1080s assert (isequal (sym (D), A)) 1080s ***** test 1080s % more sym from array 1080s syms x 1080s A = [x x]; 1080s assert (isequal (sym (A), A)) 1080s A = [1 x]; 1080s assert (isequal (sym (A), A)) 1080s ***** test 1080s %% assumptions and clearing them 1080s clear variables % for matlab test script 1080s x = sym('x', 'real'); 1080s f = {x {2*x}}; 1080s asm = assumptions(); 1080s assert ( ~isempty(asm)) 1080s s = warning ('off', 'OctSymPy:deprecated'); 1080s x = sym('x', 'clear'); 1080s warning (s) 1080s asm = assumptions(); 1080s assert ( isempty(asm)) 1080s ***** test 1080s %% matlab compat, syms x clear should add x to workspace 1080s x = sym('x', 'real'); 1080s f = 2*x; 1080s clear x 1080s assert (~logical(exist('x', 'var'))) 1080s s = warning ('off', 'OctSymPy:deprecated'); 1080s x = sym('x', 'clear'); 1080s warning (s) 1080s assert (logical(exist('x', 'var'))) 1080s ***** test 1080s %% assumptions should work if x is already a sym 1080s x = sym('x'); 1080s x = sym(x, 'real'); 1080s assert (~isempty(assumptions(x))) 1080s ***** test 1080s %% likewise for clear 1080s x = sym('x', 'real'); 1080s f = 2*x; 1080s s = warning ('off', 'OctSymPy:deprecated'); 1080s x = sym(x, 'clear'); 1080s warning (s) 1080s assert (isempty(assumptions(x))) 1080s assert (isempty(assumptions(f))) 1080s ***** test 1080s % bool 1080s t = sym (false); 1080s t = sym (true); 1080s assert (logical (t)) 1080s ***** test 1080s % bool vec/mat 1080s a = sym (1); 1080s t = sym ([true false]); 1080s assert (isequal (t, [a == 1 a == 0])) 1080s t = sym ([true false; false true]); 1080s assert (isequal (t, [a == 1 a == 0; a == 0 a == 1])) 1081s ***** test 1081s % symbolic matrix 1081s A = sym ('A', [2 3]); 1081s assert (isa (A, 'sym')) 1081s assert (isequal (size (A), [2 3])) 1081s A(1, 1) = 7; 1081s assert (isa (A, 'sym')) 1081s A = A + 1; 1081s assert (isa (A, 'sym')) 1081s ***** test 1081s % symbolic matrix, symbolic but Integer size 1081s A = sym ('A', sym([2 3])); 1081s assert (isa (A, 'sym')) 1081s assert (isequal (size (A), [2 3])) 1081s ***** test 1081s % symbolic matrix, subs in for size 1081s syms n m integer 1081s A = sym ('A', [n m]); 1081s B = subs (A, [n m], [5 6]); 1081s assert (isa (B, 'sym')) 1081s assert (isequal (size (B), [5 6])) 1081s ***** error sym('2*a', [2 3]) 1081s ***** error sym(2*sym('a'), [2 3]) 1081s ***** error sym('1', [2 3]) 1081s ***** error sym(1, [2 3]) 1081s ***** error 1081s % TODO: symbolic tensor, maybe supported someday 1081s sym('a', [2 3 4]) 1081s ***** test 1081s % 50 shapes of empty 1081s a = sym (ones (0, 3)); 1081s assert (isa (a, 'sym')) 1081s assert (isequal (size (a), [0 3])) 1081s a = sym (ones (2, 0)); 1081s assert (isequal (size (a), [2 0])) 1081s a = sym ([]); 1081s assert (isequal (size (a), [0 0])) 1081s ***** test 1081s % moar empty 1081s a = sym ('a', [0 3]); 1081s assert (isa (a, 'sym')) 1081s assert (isequal (size (a), [0 3])) 1081s a = sym ('a', [2 0]); 1081s assert (isa (a, 'sym')) 1081s assert (isequal (size (a), [2 0])) 1081s ***** test 1081s % embedded sympy commands, various quotes, issue #143 1081s a = sym ('a'); 1081s a1 = sym ('Symbol("a")'); 1081s a2 = sym ('Symbol(''a'')'); 1081s assert (isequal (a, a1)) 1081s assert (isequal (a, a2)) 1081s % Octave only, and eval to hide from Matlab parser 1081s if exist ('OCTAVE_VERSION', 'builtin') 1081s eval( 'a3 = sym("Symbol(''a'')");' ); 1081s eval( 'a4 = sym("Symbol(\"a\")");' ); 1081s assert (isequal (a, a3)) 1081s assert (isequal (a, a4)) 1081s end 1081s :18: SyntaxWarning: invalid escape sequence '\(' 1081s :18: SyntaxWarning: invalid escape sequence '\(' 1081s :18: SyntaxWarning: invalid escape sequence '\(' 1081s :18: SyntaxWarning: invalid escape sequence '\(' 1081s ***** test 1081s % complex 1081s x = sym(1 + 2i); 1081s assert (isequal (x, sym(1)+sym(2)*1i)) 1081s ***** test 1081s % doubles bigger than int32 INTMAX should not fail 1081s d = 4294967295; 1081s a = sym (d); 1081s assert (isequal (double (a), d)) 1081s d = d + 123456; 1081s a = sym (d); 1081s assert (isequal (double (a), d)) 1081s ***** test 1081s % int32 integer types 1081s a = sym (100); 1081s b = sym (int32 (100)); 1081s assert (isequal (a, b)) 1081s ***** test 1081s % int32 MAXINT integers 1081s a = sym ('2147483647'); 1081s b = sym (int32 (2147483647)); 1081s assert (isequal (a, b)) 1081s a = sym ('-2147483647'); 1081s b = sym (int32 (-2147483647)); 1081s assert (isequal (a, b)) 1081s a = sym ('4294967295'); 1081s b = sym (uint32 (4294967295)); 1081s assert (isequal (a, b)) 1081s ***** test 1081s % int64 integer types 1081s a = sym ('123456789012345'); 1081s b = sym (int64(123456789012345)); 1081s c = sym (uint64(123456789012345)); 1081s assert (isequal (a, b)) 1081s assert (isequal (a, c)) 1081s ***** test 1081s % integer arrays 1081s a = int64 ([1 2 100]); 1081s s = sym (a); 1081s assert (isequal (double (a), [1 2 100])) 1081s ***** test 1081s % bigger int64 integer types 1081s q = int64 (123456789012345); 1081s w = 10000*q + 123; 1081s a = sym ('1234567890123450123'); 1081s b = sym (w); 1081s assert (isequal (a, b)) 1081s ***** test 1081s % sym(double) heuristic 1081s s = warning ('off', 'OctSymPy:sym:rationalapprox'); 1081s x = sym(2*pi/3); 1081s assert (isequal (x/sym(pi), sym(2)/3)) 1081s x = sym(22*pi); 1081s assert (isequal (x/sym(pi), sym(22))) 1081s x = sym(pi/123); 1081s assert (isequal (x/sym(pi), sym(1)/123)) 1081s warning (s) 1081s ***** test 1081s % sym(double) with 'r': no warning 1081s a = 0.1; 1081s x = sym(a, 'r'); 1081s assert (isequal (x, sym(1)/10)) 1081s ***** test 1081s % sym(double, 'f') 1081s a = 0.1; 1081s x = sym(a, 'f'); 1081s assert (~isequal (x, sym(1)/10)) 1081s assert (isequal (x, sym('3602879701896397')/sym('36028797018963968'))) 1082s ***** test 1082s x = sym(pi, 'f'); 1082s assert (~isequal (x, sym('pi'))) 1082s assert (isequal (x, sym('884279719003555')/sym('281474976710656'))) 1082s ***** test 1082s q = sym('3602879701896397')/sym('36028797018963968'); 1082s x = sym(1 + 0.1i, 'f'); 1082s assert (isequal (x, 1 + 1i*q)) 1082s x = sym(0.1 + 0.1i, 'f'); 1082s assert (isequal (x, q + 1i*q)) 1082s ***** test 1082s assert (isequal (sym(inf, 'f'), sym(inf))) 1082s assert (isequal (sym(-inf, 'f'), sym(-inf))) 1082s assert (isequaln (sym(nan, 'f'), sym(nan))) 1082s assert (isequal (sym(complex(inf, -inf), 'f'), sym(complex(inf, -inf)))) 1082s assert (isequaln (sym(complex(nan, inf), 'f'), sym(complex(nan, inf)))) 1082s assert (isequaln (sym(complex(-inf, nan), 'f'), sym(complex(-inf, nan)))) 1082s ***** test 1082s assert (isequal (sym (sqrt(2), 'r'), sqrt (sym (2)))) 1082s assert (isequal (sym (sqrt(12345), 'r'), sqrt (sym (12345)))) 1082s ***** test 1082s % symbols with special sympy names 1082s syms Ei Eq 1082s assert (~isempty (regexp (sympy (Eq), '^Symbol'))) 1082s assert (~isempty (regexp (sympy (Ei), '^Symbol'))) 1082s ***** test 1082s % more symbols with special sympy names 1082s x = sym('FF'); 1082s assert (~isempty (regexp (x.pickle, '^Symbol'))) 1082s x = sym('ff'); 1082s assert (~isempty (regexp (x.pickle, '^Symbol'))) 1082s ***** test 1082s % E can be a sym not just exp(sym(1)) 1082s syms E 1082s assert (~logical (E == exp(sym(1)))) 1082s ***** test 1082s % e can be a symbol, not exp(sym(1)) 1082s syms e 1082s assert (~ logical (e == exp(sym(1)))) 1082s ***** test 1082s % double e 1082s x = sym (exp (1)); 1082s y = exp (sym (1)); 1082s assert (isequal (x, y)) 1082s if (exist ('OCTAVE_VERSION', 'builtin')) 1082s x = sym (e); 1082s assert (isequal (x, y)) 1082s end 1082s ***** test 1082s x = sym (-exp (1)); 1082s y = -exp (sym (1)); 1082s assert (isequal (x, y)) 1083s ***** assert (~ isequal (sym (exp(1)), sym (exp(1), 'f'))) 1083s ***** warning sym (1e16); 1083s ***** warning sym (-1e16); 1083s ***** warning sym (10.33); 1083s ***** warning sym (-5.23); 1083s ***** warning sym (sqrt (1.4142135623731)); 1083s ***** error 1083s x = sym ('x', 'positive2'); 1083s ***** error 1083s x = sym ('x', 'integer', 'positive2'); 1083s ***** error 1083s x = sym ('x', 'integer2', 'positive'); 1083s ***** error 1083s x = sym ('-pi', 'positive') 1083s ***** error 1083s x = sym ('pi', 'integer') 1083s ***** test 1083s % multiple assumptions 1083s n = sym ('n', 'negative', 'even'); 1083s a = assumptions (n); 1083s assert (strcmp (a, 'n: negative, even') || strcmp (a, 'n: even, negative')) 1083s ***** error 1083s % multiple assumptions as a list 1083s % TODO: should this be allowed? 1083s n = sym ('n', {'negative', 'even'}); 1083s a = assumptions (n); 1083s assert (strcmp (a, 'n: negative, even') || strcmp (a, 'n: even, negative')) 1083s ***** error 1083s n = sym ('n', {{'negative', 'even'}}); 1083s ***** test 1083s % save/load sym objects 1083s syms x 1083s y = 2*x; 1083s a = 42; 1083s myfile = tempname (); 1083s save (myfile, 'x', 'y', 'a') 1083s clear x y a 1083s load (myfile) 1083s assert (isequal (y, 2*x)) 1083s assert (a == 42) 1083s if (exist ('OCTAVE_VERSION', 'builtin')) 1083s assert (unlink (myfile) == 0) 1083s else 1083s delete ([myfile '.mat']) 1083s end 1083s ***** test 1083s a = sym ('2.1'); 1083s b = sym (21) / 10; 1083s %% https://github.com/sympy/sympy/issues/11703 1083s assert (pycall_sympy__ ('return _ins[0] == _ins[1] and hash(_ins[0]) == hash(_ins[1])', a, b)) 1083s ***** test 1083s % issue #706 1083s a = sym('Float("1.23")'); 1083s assert (~ isempty (strfind (char (a), '.'))) 1083s :18: SyntaxWarning: invalid escape sequence '\(' 1083s ***** assert (isequal (sym({1 2 'a'}), [sym(1) sym(2) sym('a')])); 1083s ***** error sym({1 2 'a'}, 'positive'); 1083s ***** error sym({'a' 'b'}, 'positive'); 1083s ***** test 1083s a = sym ('--1'); 1083s b = sym ('---1'); 1083s assert (isequal (a, sym (1))) 1083s assert (isequal (b, sym (-1))) 1083s ***** test 1083s % num2cell works on sym arrays 1083s syms x 1083s C1 = num2cell ([x 2 3; 4 5 6*x]); 1083s assert (iscell (C1)) 1083s assert (isequal (size (C1), [2 3])) 1083s assert (isequal (C1{1,1}, x)) 1083s assert (isequal (C1{2,3}, 6*x)) 1083s assert (isequal (C1{1,3}, sym(3))) 1083s assert (isa (C1{1,3}, 'sym')) 1083s ***** test 1083s % function_handle 1083s f = @(x, y) y*sin(x); 1083s syms x y 1083s assert (isequal (sym (f), y*sin(x))); 1083s f = @(x) 42; 1083s assert (isequal (sym (f), sym (42))); 1083s f = @() 42; 1083s assert (isequal (sym (f), sym (42))); 1083s :18: SyntaxWarning: invalid escape sequence '\(' 1083s :18: SyntaxWarning: invalid escape sequence '\(' 1083s :18: SyntaxWarning: invalid escape sequence '\(' 1083s ***** error 1083s % function_handle 1083s f = @(x) A*sin(x); 1083s sym (f) 1083s :18: SyntaxWarning: invalid escape sequence '\(' 1083s ***** test 1083s % Issue #885 1083s clear f x % if test not isolated (e.g., on matlab) 1083s syms x 1083s f(x) = sym('S(x)'); 1083s f(x) = sym('I(x)'); 1083s f(x) = sym('O(x)'); 1083s :18: SyntaxWarning: invalid escape sequence '\(' 1083s :18: SyntaxWarning: invalid escape sequence '\(' 1083s :18: SyntaxWarning: invalid escape sequence '\(' 1083s ***** test 1083s % sym(sympy(x) == x identity, Issue #890 1083s syms x 1083s f = exp (1i*x); 1083s s = sympy (f); 1083s g = sym (s); 1083s assert (isequal (f, g)) 1084s :18: SyntaxWarning: invalid escape sequence '\(' 1084s ***** test 1084s % sym(sympy(x) == x identity 1084s % Don't mistake "pi" (which is "srepr(S.Pi)") for a symfun variable 1084s f = sym ('ff(pi, pi)'); 1084s s1 = sympy (f); 1084s s2 = 'FallingFactorial(pi, pi)'; 1084s assert (strcmp (s1, s2)) 1084s :18: SyntaxWarning: invalid escape sequence '\(' 1084s ***** test 1084s % sym(sympy(x) == x identity 1084s % Don't mistake "I" (which is "srepr(S.ImaginaryUnit)") for a symfun variable 1084s f = sym ('sin(I)'); 1084s g = 1i*sinh (sym (1)); 1084s assert (isequal (f, g)) 1084s s = sympy (f); 1084s assert (isempty (strfind (s, 'Function'))) 1084s :18: SyntaxWarning: invalid escape sequence '\(' 1084s ***** error 1084s % sym(sympy(x) == x identity 1084s % Don't mistake "true/false" (which is "srepr(S.true)") for a symfun variable 1084s % (Used to print as `S.true` but just `true` in sympy 1.2) 1084s sym ('E(true,false)') 1084s :18: SyntaxWarning: invalid escape sequence '\(' 1084s ***** test 1084s % some variable names that are special to sympy but should not be for us 1084s f = sym ('f(S, Q, C, O, N)'); 1084s s1 = sympy (f); 1084s s2 = 'Function(''f'')(Symbol(''S''), Symbol(''Q''), Symbol(''C''), Symbol(''O''), Symbol(''N''))'; 1084s assert (strcmp (s1, s2)) 1084s :18: SyntaxWarning: invalid escape sequence '\(' 1084s ***** test 1084s % For SMT 2014 compatibilty, I and E would become ImaginaryUnit and Exp(1) 1084s % but I'm not sure this is by design. This test would need to change if 1084s % we want stricter SMT compatibilty. 1084s f = sym ('f(x, I, E)'); 1084s s1 = sympy (f); 1084s s2 = 'Function(''f'')(Symbol(''x''), Symbol(''I''), Symbol(''E''))'; 1084s assert (strcmp (s1, s2)) 1084s :18: SyntaxWarning: invalid escape sequence '\(' 1084s ***** test 1084s % not the identity, force symfun 1084s f = sym ('FF(w)'); 1084s s1 = sympy (f); 1084s s2 = 'Function(''FF'')(Symbol(''w''))'; 1084s assert (strcmp (s1, s2)) 1084s :18: SyntaxWarning: invalid escape sequence '\(' 1084s ***** test 1084s % not the identity, force symfun 1084s f = sym ('FF(w, pi)'); 1084s s1 = sympy (f); 1084s s2 = 'Function(''FF'')(Symbol(''w''), pi)'; 1084s assert (strcmp (s1, s2)) 1084s :18: SyntaxWarning: invalid escape sequence '\(' 1084s ***** test 1084s % not the identity, force symfun 1084s f = sym ('ff(x, y)'); 1084s s1 = sympy (f); 1084s s2 = 'Function(''ff'')(Symbol(''x''), Symbol(''y''))'; 1084s assert (strcmp (s1, s2)) 1084s :18: SyntaxWarning: invalid escape sequence '\(' 1084s ***** test 1084s % But this one should satisfy "sym(sympy(x) == x" identity 1084s % (OOTB, SymPy has ff -> FallingFactorial) 1084s f = sym ('FallingFactorial(x, y)'); 1084s s1 = sympy (f); 1084s s2 = 'FallingFactorial(Symbol(''x''), Symbol(''y''))'; 1084s assert (strcmp (s1, s2)) 1084s :18: SyntaxWarning: invalid escape sequence '\(' 1084s 82 tests, 82 passed, 0 known failure, 0 skipped 1084s [inst/@sym/nnz.m] 1084s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/nnz.m 1084s ***** assert (nnz (sym ([1])) == 1) 1084s ***** assert (nnz (sym ([0])) == 0) 1084s ***** assert (nnz (sym ([])) == 0) 1084s ***** assert (nnz (sym ([1 0; 0 3])) == 2) 1084s ***** test 1084s syms x 1084s assert (nnz ([x 0]) == 1) 1084s ***** assert (nnz (sym (true)) == 1) 1084s ***** assert (nnz (sym (false)) == 0) 1084s ***** assert (nnz (sym (inf)) == 1) 1084s ***** assert (nnz (sym (nan)) == 1) 1084s 9 tests, 9 passed, 0 known failure, 0 skipped 1084s [inst/@sym/private_disp_name.m] 1084s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/private_disp_name.m 1084s ***** test 1084s syms x 1084s s = private_disp_name(x, 'x'); 1084s assert (strcmp (s, 'x')) 1084s 1 test, 1 passed, 0 known failure, 0 skipped 1084s [inst/@sym/lu.m] 1084s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/lu.m 1084s ***** test 1084s % scalar 1084s [l, u, p] = lu(sym(6)); 1084s assert (isequal (l, sym(1))) 1084s assert (isequal (u, sym(6))) 1084s assert (isequal (p, sym(1))) 1084s syms x 1084s [l, u, p] = lu(x); 1084s assert (isequal (l*u, p*x)) 1084s [l, u] = lu(x); 1084s assert (isequal (l*u, x)) 1084s ***** test 1084s % perm 1084s A = sym(fliplr(2*eye(3))); 1084s [L, U, P] = lu(A); 1084s assert (isequal (L*U, P*A)) 1084s [L, U, P] = lu(A, 'matrix'); 1084s assert (isequal (L*U, P*A)) 1084s [L, U, p] = lu(A, 'vector'); 1084s assert (isequal (L*U, A(p,:))) 1084s [L, U] = lu(A); 1084s assert (isequal (L*U, A)) 1085s ***** test 1085s % p is col vectpr 1085s A = sym([0 2; 3 4]); 1085s [L, U, p] = lu(A, 'vector'); 1085s assert(iscolumn(p)) 1085s ***** test 1085s % simple matrix 1085s A = [1 2; 3 4]; 1085s B = sym(A); 1085s [L, U, P] = lu(B); 1085s assert (isequal (L*U, P*B)) 1085s assert (isequal (U(2,1), sym(0))) 1085s % needs pivot 1085s A = [0 2; 3 4]; 1085s B = sym(A); 1085s [L, U, P] = lu(B); 1085s [Ld, Ud, Pd] = lu(A); 1085s assert (isequal (L*U, P*A)) 1085s assert (isequal (U(2,1), sym(0))) 1085s % matches regular LU 1085s assert ( max(max(double(L)-Ld)) <= 10*eps) 1085s assert ( max(max(double(U)-Ud)) <= 10*eps) 1085s assert ( isequal (P, Pd)) 1085s ***** test 1085s % rectangular 1085s A = sym([1 2; 3 4; 5 6]); 1085s [L, U] = lu (A); 1085s assert (isequal (L*U, A)) 1085s ***** test 1085s % rectangular 1085s A = sym([1 2 3; 4 5 6]); 1085s [L, U] = lu (A); 1085s assert (isequal (L*U, A)) 1085s ***** test 1085s % rectangular, repeated row 1085s A = sym([1 2 3; 2 4 6]); 1085s [L, U] = lu (A); 1085s assert (isequal (L*U, A)) 1086s ***** test 1086s % rectangular, needs permutation 1086s A = sym([0 0 0; 1 2 3]); 1086s [L, U] = lu (A); 1086s assert (isequal (L*U, A)) 1086s assert (~isequal (tril (L), L)) 1086s [L, U, P] = lu (A); 1086s assert (isequal (L*U, P*A)) 1086s assert (isequal (tril (L), L)) 1086s 8 tests, 8 passed, 0 known failure, 0 skipped 1086s [inst/@sym/cross.m] 1086s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/cross.m 1086s ***** error cross (sym(1), 2, 3) 1086s ***** test 1086s a = sym([1; 0; 0]); 1086s b = sym([0; 1; 0]); 1086s c = cross(a, b); 1086s assert (isequal (c, sym([0; 0; 1]))) 1086s ***** test 1086s syms x 1086s a = sym([x; 0; 0]); 1086s b = sym([0; 1; 0]); 1086s c = cross(a, b); 1086s assert (isequal (c, sym([0; 0; x]))) 1086s 3 tests, 3 passed, 0 known failure, 0 skipped 1086s [inst/@sym/coth.m] 1086s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/coth.m 1086s ***** error coth (sym(1), 2) 1086s ***** assert (isequaln (coth (sym(nan)), sym(nan))) 1086s ***** shared x, d 1086s d = 1; 1086s x = sym('1'); 1086s ***** test 1086s f1 = coth(x); 1086s f2 = coth(d); 1086s assert( abs(double(f1) - f2) < 1e-15 ) 1086s ***** test 1086s D = [d d; d d]; 1086s A = [x x; x x]; 1086s f1 = coth(A); 1086s f2 = coth(D); 1086s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1086s ***** test 1086s % round trip 1086s y = sym('y'); 1086s A = coth (d); 1086s f = coth (y); 1086s h = function_handle (f); 1086s B = h (d); 1086s assert (A, B, -eps) 1087s 5 tests, 5 passed, 0 known failure, 0 skipped 1087s [inst/@sym/atan.m] 1087s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/atan.m 1087s ***** error atan (sym(1), 2) 1087s ***** assert (isequaln (atan (sym(nan)), sym(nan))) 1087s ***** shared x, d 1087s d = 1; 1087s x = sym('1'); 1087s ***** test 1087s f1 = atan(x); 1087s f2 = atan(d); 1087s assert( abs(double(f1) - f2) < 1e-15 ) 1087s ***** test 1087s D = [d d; d d]; 1087s A = [x x; x x]; 1087s f1 = atan(A); 1087s f2 = atan(D); 1087s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1087s ***** test 1087s % round trip 1087s y = sym('y'); 1087s A = atan (d); 1087s f = atan (y); 1087s h = function_handle (f); 1087s B = h (d); 1087s assert (A, B, -eps) 1087s 5 tests, 5 passed, 0 known failure, 0 skipped 1087s [inst/@sym/rhs.m] 1087s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/rhs.m 1087s ***** test 1087s syms x 1087s f = x + 1 == 2*x; 1087s assert (isequal (rhs(f), 2*x)) 1087s ***** error 1087s syms x 1087s rhs(x) 1087s 2 tests, 2 passed, 0 known failure, 0 skipped 1087s [inst/@sym/csch.m] 1087s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/csch.m 1087s ***** error csch (sym(1), 2) 1087s ***** assert (isequaln (csch (sym(nan)), sym(nan))) 1087s ***** shared x, d 1087s d = 1; 1087s x = sym('1'); 1087s ***** test 1087s f1 = csch(x); 1087s f2 = csch(d); 1087s assert( abs(double(f1) - f2) < 1e-15 ) 1087s ***** test 1087s D = [d d; d d]; 1087s A = [x x; x x]; 1087s f1 = csch(A); 1087s f2 = csch(D); 1087s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1087s ***** test 1087s % round trip 1087s y = sym('y'); 1087s A = csch (d); 1087s f = csch (y); 1087s h = function_handle (f); 1087s B = h (d); 1087s assert (A, B, -eps) 1087s 5 tests, 5 passed, 0 known failure, 0 skipped 1087s [inst/@sym/cbrt.m] 1087s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/cbrt.m 1087s ***** error cbrt (sym(1), 2) 1087s ***** assert (isequaln (cbrt (sym(nan)), sym(nan))) 1087s ***** shared x, d 1087s d = 2; 1087s x = sym('2'); 1087s ***** test 1087s f1 = cbrt(x); 1087s f2 = 1.2599210498948731647; 1087s assert( abs(double(f1) - f2) < 1e-15 ) 1087s ***** test 1087s D = [d d; d d]; 1087s A = [x x; x x]; 1087s f1 = cbrt(A); 1087s f2 = 1.2599210498948731647; 1087s f2 = [f2 f2; f2 f2]; 1087s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1087s ***** test 1087s % round trip 1087s y = sym('y'); 1087s if (exist ('OCTAVE_VERSION', 'builtin')) 1087s A = cbrt (d); 1087s else 1087s % Issue #742 1087s A = d^(1/3); 1087s end 1087s f = cbrt (y); 1087s h = function_handle (f); 1087s B = h (d); 1087s assert (A, B, -eps) 1087s 5 tests, 5 passed, 0 known failure, 0 skipped 1087s [inst/@sym/atanh.m] 1087s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/atanh.m 1087s ***** error atanh (sym(1), 2) 1087s ***** assert (isequaln (atanh (sym(nan)), sym(nan))) 1087s ***** shared x, d 1087s d = 1/2; 1087s x = sym('1/2'); 1087s ***** test 1087s f1 = atanh(x); 1087s f2 = atanh(d); 1087s assert( abs(double(f1) - f2) < 1e-15 ) 1087s ***** test 1087s D = [d d; d d]; 1087s A = [x x; x x]; 1087s f1 = atanh(A); 1087s f2 = atanh(D); 1087s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1087s ***** test 1087s % round trip 1087s y = sym('y'); 1087s A = atanh (d); 1087s f = atanh (y); 1087s h = function_handle (f); 1087s B = h (d); 1087s assert (A, B, -eps) 1088s 5 tests, 5 passed, 0 known failure, 0 skipped 1088s [inst/@sym/besselyn.m] 1088s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/besselyn.m 1088s ***** test 1088s % roundtrip 1088s syms x 1088s A = double(besselyn(sym(2), sym(10))); 1088s q = besselyn(sym(2), x); 1088s h = function_handle(q); 1088s B = h(10); 1088s assert (abs (A - B) <= eps) 1088s ***** error yn(sym('x')) 1088s 2 tests, 2 passed, 0 known failure, 0 skipped 1088s [inst/@sym/erf.m] 1088s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/erf.m 1088s ***** error erf (sym(1), 2) 1088s ***** assert (isequaln (erf (sym(nan)), sym(nan))) 1088s ***** shared x, d 1088s d = 1; 1088s x = sym('1'); 1088s ***** test 1088s f1 = erf(x); 1088s f2 = erf(d); 1088s assert( abs(double(f1) - f2) < 1e-15 ) 1088s ***** test 1088s D = [d d; d d]; 1088s A = [x x; x x]; 1088s f1 = erf(A); 1088s f2 = erf(D); 1088s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1088s ***** test 1088s % round trip 1088s y = sym('y'); 1088s A = erf (d); 1088s f = erf (y); 1088s h = function_handle (f); 1088s B = h (d); 1088s assert (A, B, -eps) 1088s 5 tests, 5 passed, 0 known failure, 0 skipped 1088s [inst/@sym/ne.m] 1088s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/ne.m 1088s ***** test 1088s % simple 1088s x = sym(1); y = sym(1); e = x ~= y; 1088s assert (~logical (e)) 1088s x = sym(1); y = sym(2); e = x ~= y; 1088s assert (logical(e)) 1088s ***** test 1088s % array -- array 1088s syms x 1088s a = sym([1 3 3 2*x]); 1088s b = sym([2 x 3 10]); 1088s e = a ~= b; 1088s assert (isa (e, 'sym')) 1088s assert (logical (e(1))) 1088s assert (isa (e(2), 'sym')) 1088s assert (isequal (e(2), 3 ~= x)) 1088s assert (~logical (e(3))) 1088s assert (isa (e(4), 'sym')) 1088s assert (isequal (e(4), 2*x ~= 10)) 1088s ***** test 1088s % oo 1088s syms oo x 1088s e = oo ~= x; 1088s assert (isa (e, 'sym')) 1088s s = strtrim (disp (e, 'flat')); 1088s % SymPy <= 0.7.6.x will be '!=', newer gives 'Ne', test both 1088s assert (strcmp (s, 'oo != x') || strcmp (s, 'Ne(oo, x)')) 1088s ***** test 1088s % nan 1088s syms oo x 1088s snan = sym(nan); 1088s e = snan ~= sym(0); 1088s assert (logical (e)) 1088s e = snan ~= snan; 1088s assert (logical (e)) 1088s 4 tests, 4 passed, 0 known failure, 0 skipped 1088s [inst/@sym/sort.m] 1088s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/sort.m 1088s ***** error sort (sym(1), 2) 1088s ***** test 1088s f = [sym(1), sym(0)]; 1088s expected = sym([0, 1]); 1088s assert (isequal (sort(f), expected)) 1088s ***** test 1088s f = [sym(1)]; 1088s expected = sym(1); 1088s assert (isequal (sort(f), expected)) 1088s ***** test 1088s f = [sym(3), sym(2), sym(6)]; 1088s s = sort(f); 1088s expected_s = sym([2, 3, 6]); 1088s assert (isequal (s, expected_s)) 1088s ***** test 1088s f = [sym(pi), sin(sym(2)), sqrt(sym(6))]; 1088s s = sort(f); 1088s expected_s = sym([sin(sym(2)), sqrt(sym(6)), sym(pi)]); 1088s assert (isequal (s, expected_s)) 1089s ***** test 1089s f = [sym(1), sym(2); sym(2), sym(pi); sym(pi), sym(1)]; 1089s s = sort(f); 1089s expected_s = ([sym(1), sym(1); sym(2), sym(2); sym(pi), sym(pi)]); 1089s assert (isequal (s, expected_s)) 1089s ***** assert (isequal (sort(sym([])), sym([]))) 1089s ***** error sort([sym('x') 1]) 1089s ***** test 1089s % but with assumptions, symbols can be sorted 1089s p = sym('p', 'positive'); 1089s n = sym('n', 'negative'); 1089s expected_s = [n p]; 1089s s = sort ([p n]); 1089s assert (isequal (s, expected_s)) 1089s 9 tests, 9 passed, 0 known failure, 0 skipped 1089s [inst/@sym/acsch.m] 1089s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/acsch.m 1089s ***** error acsch (sym(1), 2) 1089s ***** assert (isequaln (acsch (sym(nan)), sym(nan))) 1089s ***** shared x, d 1089s d = 1; 1089s x = sym('1'); 1089s ***** test 1089s f1 = acsch(x); 1089s f2 = acsch(d); 1089s assert( abs(double(f1) - f2) < 1e-15 ) 1089s ***** test 1089s D = [d d; d d]; 1089s A = [x x; x x]; 1089s f1 = acsch(A); 1089s f2 = acsch(D); 1089s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1089s ***** test 1089s % round trip 1089s y = sym('y'); 1089s A = acsch (d); 1089s f = acsch (y); 1089s h = function_handle (f); 1089s B = h (d); 1089s assert (A, B, -eps) 1089s 5 tests, 5 passed, 0 known failure, 0 skipped 1089s [inst/@sym/mod.m] 1089s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/mod.m 1089s ***** error mod (sym(1), 2, 3 ,4) 1089s ***** assert (isequal (mod (sym(5), 4), sym(1))) 1089s ***** assert (isequal (mod ([sym(5) 8], 4), [1 0] )) 1089s ***** assert (isequal (mod (sym(5), [2 3]), [1 2] )) 1089s ***** assert (isequal (mod ([sym(5) sym(6)], [2 3]), [1 0] )) 1089s ***** test 1089s syms x 1089s assert (isequal ( mod (5*x, 3), 2*x )) 1090s ***** test 1090s syms x 1090s a = [7*x^2 + 3*x + 3 3*x; 13*x^4 6*x]; 1090s assert (isequal ( mod (a,3), [x^2 0; x^4 0] )) 1090s ***** test 1090s % vector of polys with mix of vars: symvar on each 1090s syms x y 1090s a = [6*x 7*y]; 1090s b = mod(a, 4); 1090s c = [2*x 3*y]; 1090s assert (isequal (b, c)) 1090s ***** test 1090s % coeff has variable 1090s syms x 1090s n = sym('n', 'integer'); 1090s p = (3*n + 2)*x; 1090s q = mod(p, 3); 1090s assert (isequal (q, 2*x)) 1091s ***** test 1091s % coeff has variable 1091s syms x a 1091s p = a*x; 1091s q = mod(p, 3); 1091s q = children(q); 1091s q = q(2); % order might be fragile! 1091s w = subs(q, a, 5); 1091s assert (isequal (w, 2)) 1091s ***** test 1091s % different modulo 1091s syms x y 1091s q = mod([5*x + 10 5*y + 10], [2 3]); 1091s assert (isequal (q, [x 2*y + 1])) 1091s 11 tests, 11 passed, 0 known failure, 0 skipped 1091s [inst/@sym/ellipticF.m] 1091s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/ellipticF.m 1091s ***** error ellipticF (sym(1)) 1091s ***** error ellipticF (sym(1), 2, 3) 1091s ***** assert (double (ellipticF (sym (pi)/3, sym (-105)/10)), 0.6184459461, 10e-11) 1092s ***** assert (double (ellipticF (sym (pi)/4, sym (-pi))), 0.6485970495, 10e-11) 1092s ***** assert (double (ellipticF (sym (1), sym (-1))), 0.8963937895, 10e-11) 1092s ***** assert (double (ellipticF (sym (pi)/6, sym (0))), 0.5235987756, 10e-11) 1092s ***** test 1092s % compare to Maple 1092s us = vpa (ellipticF (sym(11)/10, sym(9)/4), 40); 1092s % > evalf(EllipticF(sin(11/10), sqrt(9/4)), 40); 1092s maple = vpa ('1.206444996991058996424988192917728014427', 40) - ... 1092s vpa ('0.8157358125823472313001683083685348517476j', 40); 1092s assert (abs (double (maple - us)), 0, 1e-39) 1092s 7 tests, 7 passed, 0 known failure, 0 skipped 1092s [inst/@sym/sum.m] 1092s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/sum.m 1092s ***** error sum (sym(1), 2, 3) 1092s ***** error sum (sym(1), 42) 1092s ***** shared x,y,z 1092s syms x y z 1092s ***** assert (isequal (sum (x), x)) 1092s ***** assert (isequal (sum ([x y z]), x+y+z)) 1092s ***** assert (isequal (sum ([x; y; z]), x+y+z)) 1092s ***** assert (isequal (sum ([x y z], 1), [x y z])) 1092s ***** assert (isequal (sum ([x y z], 2), x+y+z)) 1092s ***** shared a,b 1092s b = [1 2; 3 4]; a = sym(b); 1092s ***** assert (isequal (sum(a), sum(b))) 1092s ***** assert (isequal (sum(a,1), sum(b,1))) 1092s ***** assert (isequal (sum(a,2), sum(b,2))) 1092s ***** test 1092s % weird inputs 1092s a = sum('xx', sym(1)); 1092s assert (isequal (a, sym('xx'))) 1093s 11 tests, 11 passed, 0 known failure, 0 skipped 1093s [inst/@sym/symreplace.m] 1093s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/symreplace.m 1093s ***** test 1093s % start with assumptions on x then remove them 1093s syms x positive 1093s f = x*10; 1093s symreplace(x, sym('x')) 1093s assert(isempty(assumptions(x))) 1093s ***** test 1093s % replace x with y 1093s syms x 1093s f = x*10; 1093s symreplace(x, sym('y')) 1093s assert( isequal (f, 10*sym('y'))) 1093s ***** test 1093s % gets inside cells 1093s syms x 1093s f = {x 1 2 {3 4*x}}; 1093s symreplace(x, sym('y')) 1093s syms y 1093s assert( isequal (f{1}, y)) 1093s assert( isequal (f{4}{2}, 4*y)) 1093s ***** test 1093s % gets inside structs/cells 1093s syms x 1093s my.foo = {x 1 2 {3 4*x}}; 1093s my.bar = x; 1093s g = {'ride' my 'motor' 'sicle'}; 1093s symreplace(x, sym('y')) 1093s syms y 1093s f = g{2}; 1093s assert( isequal (f.foo{1}, y)) 1093s assert( isequal (f.foo{4}{2}, 4*y)) 1093s assert( isequal (f.bar, y)) 1093s 4 tests, 4 passed, 0 known failure, 0 skipped 1093s [inst/@sym/besseljn.m] 1093s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/besseljn.m 1093s ***** test 1093s % roundtrip 1093s syms x 1093s A = double(besseljn(sym(2), sym(9))); 1093s q = besseljn(sym(2), x); 1093s h = function_handle(q); 1093s B = h(9); 1093s assert (abs (A - B) <= eps) 1093s ***** error jn(sym('x')) 1093s 2 tests, 2 passed, 0 known failure, 0 skipped 1093s [inst/@sym/log.m] 1093s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/log.m 1093s ***** error log (sym(1), 2) 1093s ***** assert (isequaln (log (sym(nan)), sym(nan))) 1093s ***** shared x, d 1093s d = 1; 1093s x = sym('1'); 1093s ***** test 1093s f1 = log(x); 1093s f2 = log(d); 1093s assert( abs(double(f1) - f2) < 1e-15 ) 1093s ***** test 1093s D = [d d; d d]; 1093s A = [x x; x x]; 1093s f1 = log(A); 1093s f2 = log(D); 1093s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1093s ***** test 1093s % round trip 1093s y = sym('y'); 1093s A = log (d); 1093s f = log (y); 1093s h = function_handle (f); 1093s B = h (d); 1093s assert (A, B, -eps) 1093s 5 tests, 5 passed, 0 known failure, 0 skipped 1093s [inst/@sym/ilaplace.m] 1093s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/ilaplace.m 1093s ***** error ilaplace (sym(1), 2, 3, 4) 1094s ***** test 1094s % basic SMT compact: no heaviside 1094s syms s 1094s syms t positive 1094s assert (isequal (ilaplace(1/s^2), t)) 1094s assert (isequal (ilaplace(s/(s^2+9)), cos(3*t))) 1094s assert (isequal (ilaplace(6/s^4), t^3)) 1094s ***** test 1094s % more SMT compact 1094s syms r 1094s syms u positive 1094s assert (isequal (ilaplace(1/r^2, u), u)) 1094s assert (isequal (ilaplace(1/r^2, r, u), u)) 1094s ***** test 1094s % if t specified and not positive, we expect heaviside 1094s clear s t 1094s syms s t 1094s assert (isequal (ilaplace(1/s^2, s, t), t*heaviside(t))) 1094s assert (isequal (ilaplace(s/(s^2+9), t), cos(3*t)*heaviside(t))) 1094s assert (isequal (ilaplace(6/s^4, t), t^3*heaviside(t))) 1095s ***** test 1095s % Heaviside test 1095s syms s 1095s t=sym('t', 'positive'); 1095s assert(logical( ilaplace(exp(-5*s)/s^2,t) == (t-5)*heaviside(t-5) )) 1095s ***** test 1095s % Delta dirac test 1095s syms s 1095s t = sym('t'); 1095s assert (isequal (ilaplace (sym('2'), t), 2*dirac(t))) 1095s ***** test 1095s % Delta dirac test 2 1095s syms s t 1095s calc = ilaplace (5*exp (-3*s) - 2*exp (-2*s)/s, s, t); 1095s want = 5*dirac (t-3) - 2*heaviside (t-2); 1095s assert (isequal (calc, want)) 1095s ***** test 1095s % Delta dirac test 3, coefficient 1095s syms s t 1095s syms c positive 1095s calc = ilaplace (2*exp (-c*s), s, t); 1095s want = 2*dirac (t - c); 1095s assert (isAlways (calc == want)) 1095s ***** error ilaplace (sym('s', 'positive')*sym('s')) 1095s ***** test 1095s % SMT compact, prefers s over symvar 1095s syms s x 1095s syms t positive 1095s assert (isequal (ilaplace(x/s^4), x*t^3/6)) 1095s t = sym('t'); 1095s assert (isequal (ilaplace(x/s^4, t), x*t^3/6*heaviside(t))) 1096s ***** test 1096s % pick s even it has assumptions 1096s syms s real 1096s syms x t 1096s assert (isequal (ilaplace (x/s^2, t), x*t*heaviside(t))) 1096s 11 tests, 11 passed, 0 known failure, 0 skipped 1096s [inst/@sym/repmat.m] 1096s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/repmat.m 1096s ***** test 1096s % simple 1096s syms x 1096s A = [x x x; x x x]; 1096s assert (isequal (repmat(x, 2, 3), A)) 1096s ***** test 1096s % block cf double 1096s A = [1 2 3; 4 5 6]; 1096s B = sym(A); 1096s C = repmat(A, 2, 3); 1096s D = repmat(B, 2, 3); 1096s assert (isequal (C, D)) 1096s ***** test 1096s % empty 1096s A = repmat(sym([]), 2, 3); 1096s assert (isempty(A)); 1096s assert (isequal (size(A), [0 0])) 1096s ***** test 1096s % more empties 1096s A = repmat(sym(pi), [0 0]); 1096s assert (isequal (size(A), [0 0])) 1096s A = repmat(sym(pi), [0 3]); 1096s assert (isequal (size(A), [0 3])) 1096s A = repmat(sym(pi), [2 0]); 1096s assert (isequal (size(A), [2 0])) 1096s 4 tests, 4 passed, 0 known failure, 0 skipped 1096s [inst/@sym/uminus.m] 1096s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/uminus.m 1096s ***** test 1096s % scalar 1096s syms x 1096s assert (isa (-x, 'sym')) 1096s assert (isequal (-(-x), x)) 1096s ***** test 1096s % matrix 1096s D = [0 1; 2 3]; 1096s A = sym(D); 1096s assert( isequal( -A, -D )) 1097s 2 tests, 2 passed, 0 known failure, 0 skipped 1097s [inst/@sym/times.m] 1097s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/times.m 1097s ***** test 1097s % scalar 1097s syms x 1097s assert (isa (x.*2, 'sym')) 1097s assert (isequal (x.*2, x*2)) 1097s assert (isequal (2.*sym(3), sym(6))) 1097s assert (isequal (sym(2).*3, sym(6))) 1097s ***** test 1097s % matrix-matrix and matrix-scalar 1097s D = [0 1; 2 3]; 1097s A = sym(D); 1097s assert (isequal ( 2.*A , 2*D )) 1097s assert (isequal ( A.*2 , 2*D )) 1097s assert (isequal ( A.*A , D.*D )) 1097s assert (isequal ( A.*D , D.*D )) 1097s assert (isequal ( D.*A , D.*D )) 1097s ***** test 1097s syms x 1097s A = [1 x]; 1097s B = [2 3]; 1097s assert (isequal (A.*B, [2 3*x])) 1097s ***** test 1097s % immutable test 1097s A = sym([1 2]); 1097s B = sym('ImmutableDenseMatrix([[Integer(1), Integer(2)]])'); 1097s assert (isequal (A.*A, B.*B)) 1097s :18: SyntaxWarning: invalid escape sequence '\(' 1097s ***** test 1097s % MatrixSymbol test 1097s A = sym([1 2; 3 4]); 1097s B = sym('ImmutableDenseMatrix([[Integer(1), Integer(2)], [Integer(3), Integer(4)]])'); 1097s C = sym('MatrixSymbol("C", 2, 2)'); 1097s assert (~ isempty (strfind (sympy (C.*C), 'Hadamard'))) 1097s assert (~ isempty (strfind (sympy (A.*C), 'Hadamard'))) 1097s assert (~ isempty (strfind (sympy (C.*A), 'Hadamard'))) 1097s assert (~ isempty (strfind (sympy (B.*C), 'Hadamard'))) 1097s assert (~ isempty (strfind (sympy (C.*B), 'Hadamard'))) 1097s :18: SyntaxWarning: invalid escape sequence '\(' 1097s :18: SyntaxWarning: invalid escape sequence '\(' 1097s 5 tests, 5 passed, 0 known failure, 0 skipped 1097s [inst/@sym/besseli.m] 1097s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/besseli.m 1097s ***** test 1097s X = [1 2 3; 4 5 6]; 1097s ns = [sym(0) 1 -2; sym(1)/2 -sym(3)/2 pi]; 1097s n = double(ns); 1097s A = double(besseli(ns, X)); 1097s B = besseli(n, X); 1097s assert (all (all (abs (A - B) < 100*eps*abs(A)))) 1098s ***** test 1098s % roundtrip 1098s syms x 1098s A = besseli(2, 10); 1098s q = besseli(2, x); 1098s h = function_handle(q); 1098s B = h(10); 1098s assert (abs (A - B) <= eps*abs(A)) 1098s ***** error besseli(sym('x')) 1098s 3 tests, 3 passed, 0 known failure, 0 skipped 1098s [inst/@sym/logint.m] 1098s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/logint.m 1098s ***** error logint (sym(1), 2) 1098s ***** xtest 1098s assert (isequaln (logint (sym(nan)), sym(nan))) 1098s !!!!! known failure 1098s assert (isequaln (logint (sym (nan)), sym (nan))) failed 1098s ***** shared x, d 1098s d = 2; 1098s x = sym('2'); 1098s ***** test 1098s f1 = logint(x); 1098s f2 = 1.045163780117492784845; 1098s assert( abs(double(f1) - f2) < 1e-15 ) 1098s ***** test 1098s D = [d d; d d]; 1098s A = [x x; x x]; 1098s f1 = logint(A); 1098s f2 = 1.045163780117492784845; 1098s f2 = [f2 f2; f2 f2]; 1098s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1098s ***** test 1098s % round trip 1098s y = sym('y'); 1098s A = logint (d); 1098s f = logint (y); 1098s h = function_handle (f); 1098s B = h (d); 1098s assert (A, B, -eps) 1098s 5 tests, 4 passed, 1 known failure, 0 skipped 1098s [inst/@sym/horner.m] 1098s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/horner.m 1098s ***** error horner (sym(1), 2, 3) 1098s ***** assert (isAlways (horner(sym(1)) == 1)) 1098s ***** test 1098s syms x 1098s assert (isAlways (horner(x) == x)) 1099s ***** test 1099s syms x a 1099s p = a^2 + a*x + 2*a + 2*x; 1099s assert (isequal (horner (p, a), a*(a+x+2) + 2*x)) 1099s q = a^2 + 2*a + x*(a + 2); 1099s assert (isequal (horner (p, x), q)) 1099s assert (isequal (horner (p), q)) 1099s ***** test 1099s syms x 1099s p = poly2sym ([2 4 6 8], x); 1099s q = horner (p); 1099s assert (isAlways (p == q)) 1099s assert (isAlways (horner(2*x^3 + 4*x^2 + 6*x + 8) == q)) 1099s ***** test 1099s % non-sym input 1099s syms x 1099s assert (isequal (horner(6, x), sym(6))) 1099s 6 tests, 6 passed, 0 known failure, 0 skipped 1099s [inst/@sym/ellipticE.m] 1099s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/ellipticE.m 1099s ***** error ellipticE (sym(1), 2, 3) 1099s ***** assert (double (ellipticE (sym (-105)/10)), 3.70961391, 10e-9) 1099s ***** assert (double (ellipticE (sym (-pi)/4)), 1.844349247, 10e-10) 1100s ***** assert (double (ellipticE (sym (0))), 1.570796327, 10e-10) 1100s ***** assert (double (ellipticE (sym (1))), 1, 10e-1) 1100s ***** test 1100s % compare to Maple 1100s us = vpa (ellipticE (sym(7)/6, sym(13)/7), 40); 1100s % > evalf(EllipticE(sin(7/6), sqrt(13/7)), 40); 1100s maple = vpa ('0.6263078268598504591831743625971763209496', 40) + ... 1100s vpa ('0.1775496232203171126975790989055865596501j', 40); 1100s assert (abs (double (maple - us)), 0, 2e-39) 1100s ***** test 1100s % compare to Maple 1100s us = vpa (ellipticE (sym(8)/7), 40); 1100s % > evalf(EllipticE(sqrt(8/7)), 40); 1100s maple = vpa ('0.8717182992576322508542205614105802333270', 40) + ... 1100s vpa ('0.1066754320328976949531350910798010526685j', 40); 1100s assert (abs (double (maple - us)), 0, 2e-39) 1100s 7 tests, 7 passed, 0 known failure, 0 skipped 1100s [inst/@sym/acosh.m] 1100s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/acosh.m 1100s ***** error acosh (sym(1), 2) 1100s ***** assert (isequaln (acosh (sym(nan)), sym(nan))) 1100s ***** shared x, d 1100s d = 1; 1100s x = sym('1'); 1100s ***** test 1100s f1 = acosh(x); 1100s f2 = acosh(d); 1100s assert( abs(double(f1) - f2) < 1e-15 ) 1100s ***** test 1100s D = [d d; d d]; 1100s A = [x x; x x]; 1100s f1 = acosh(A); 1100s f2 = acosh(D); 1100s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1100s ***** test 1100s % round trip 1100s y = sym('y'); 1100s A = acosh (d); 1100s f = acosh (y); 1100s h = function_handle (f); 1100s B = h (d); 1100s assert (A, B, -eps) 1100s 5 tests, 5 passed, 0 known failure, 0 skipped 1100s [inst/@sym/ldivide.m] 1100s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/ldivide.m 1100s ***** test 1100s % scalar 1100s syms x 1100s assert (isa (x .\ 1, 'sym')) 1100s assert (isa (x .\ x, 'sym')) 1100s assert (isequal (x .\ 1, 1/x)) 1100s assert (isequal (x .\ x, sym(1))) 1100s ***** test 1100s % matrix-scalar 1100s D = [1 1; 2 3]; 1100s A = sym(D); 1100s assert (isequal ( A .\ 6 , D .\ 6 )) 1100s assert (isequal ( A .\ sym(6) , D .\ 6 )) 1100s assert (isequal ( D .\ sym(6) , D .\ 6 )) 1101s ***** test 1101s % matrix-matrix 1101s D = [1 2; 3 4]; 1101s A = sym(D); 1101s assert (isequal ( A .\ A , D .\ D )) 1101s assert (isequal ( A .\ D , D .\ D )) 1101s assert (isequal ( D .\ A , D .\ D )) 1101s ***** test 1101s % matrix .\ matrix with symbols 1101s syms x y 1101s A = [x y; x^2 2*y]; 1101s B = [y x; x y]; 1101s assert (isequal ( A .\ A , sym(ones(2, 2)) )) 1101s assert (isequal ( B .\ A , [x/y y/x; x 2] )) 1101s ***** test 1101s % scalar .\ matrix 1101s D = 3*[1 2; 3 4]; 1101s A = sym(D); 1101s assert (isequal ( 3 .\ A , 3 .\ D )) 1101s 5 tests, 5 passed, 0 known failure, 0 skipped 1101s [inst/@sym/isvector.m] 1101s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/isvector.m 1101s ***** assert(isvector(sym('x'))) 1101s ***** assert(isvector(sym([1 2 3]))) 1101s ***** assert(isvector(sym([1; 2]))) 1101s ***** assert(~isvector(sym([1 2; 3 4]))) 1101s ***** assert(~isvector(sym([]))) 1101s ***** assert(isvector(sym(ones(1,0)))) 1101s ***** assert(~isvector(sym(ones(0,3)))) 1101s 7 tests, 7 passed, 0 known failure, 0 skipped 1101s [inst/@sym/lambertw.m] 1101s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/lambertw.m 1101s ***** test 1101s % W(x)*exp(W(x)) == x 1101s syms x 1101s T = lambertw(x)*exp(lambertw(x)); 1101s T = double (subs (T, x, 10)); 1101s assert (isequal (T, 10)); 1102s ***** test 1102s % k, x not x, k to match SMT 1102s syms x 1102s T = lambertw(2, x)*exp(lambertw(2, x)); 1102s T = double (subs (T, x, 10)); 1102s assert (abs(T - 10) < 1e-15) 1102s ***** assert (isequal (lambertw(sym(0)), sym(0))) 1102s ***** assert ( isequal (lambertw (-1/exp(sym(1))), -sym(1))) 1102s ***** assert ( isequal (lambertw (0, -1/exp(sym(1))), -sym(1))) 1102s ***** assert ( isequal (lambertw (-1, -1/exp(sym(1))), -sym(1))) 1102s ***** xtest 1102s % W(x)*exp(W(x)) == x; FIXME: a failure in SymPy? 1102s syms x 1102s T = simplify(lambertw(x)*exp(lambertw(x))); 1102s assert (isequal (T, x)) 1102s !!!!! known failure 1102s assert (isequal (T, x)) failed 1102s ***** assert (abs (lambertw(pi) - double(lambertw(sym(pi)))) < 5*eps) 1102s ***** assert (abs (lambertw(-1, 5) - double(lambertw(-1, sym(5)))) < 5*eps) 1102s ***** assert (abs (lambertw(2, 2) - double(lambertw(2, sym(2)))) < 5*eps) 1102s ***** test 1102s % round trip 1102s syms x k 1102s A = lambertw (5); 1102s f = lambertw (x); 1102s h = function_handle (f); 1102s B = h (5); 1102s assert (A, B) 1102s 1102s A = lambertw (3, 5); 1102s f = lambertw (k, x); 1102s h = function_handle (f); 1102s B = h (3, 5); 1102s assert (A, B) 1102s 11 tests, 10 passed, 1 known failure, 0 skipped 1102s [inst/@sym/eye.m] 1102s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/eye.m 1102s ***** test 1102s y = eye(sym(2)); 1102s x = [1 0; 0 1]; 1102s assert( isequal( y, sym(x))) 1102s ***** test 1102s y = eye(sym(2), 1); 1102s x = [1; 0]; 1102s assert( isequal( y, sym(x))) 1102s ***** test 1102s y = eye(sym(1), 2); 1102s x = [1 0]; 1102s assert( isequal( y, sym(x))) 1102s ***** test 1102s y = eye (sym([2 3])); 1102s x = sym (eye ([2 3])); 1102s assert (isequal (y, x)) 1102s ***** assert( isa( eye(sym(2), 'double'), 'double')) 1103s ***** assert( isa( eye(3, sym(3), 'single') , 'single')) 1103s ***** assert( isa( eye(3, sym(3)), 'sym')) 1103s ***** assert( isa( eye(3, sym(3), 'sym'), 'sym')) 1103s ***** xtest 1103s % Issue #13 1103s assert( isa( eye(3, 3, 'sym'), 'sym')) 1103s !!!!! known failure 1103s invalid data type specified 1103s 9 tests, 8 passed, 1 known failure, 0 skipped 1103s [inst/@sym/transpose.m] 1103s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/transpose.m 1103s ***** test 1103s x = sym(1); 1103s assert (isequal (x.', x)) 1103s ***** assert (isempty (sym([]).')) 1103s ***** test 1103s syms x; 1103s assert (isequal (x.', x)) 1103s ***** test 1103s A = [1 2; 3 4]; 1103s assert(isequal( sym(A).' , sym(A.') )) 1103s ***** test 1103s A = [1 2] + 1i; 1103s assert(isequal( sym(A).' , sym(A.') )) 1103s 5 tests, 5 passed, 0 known failure, 0 skipped 1103s [inst/@sym/setdiff.m] 1103s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/setdiff.m 1103s ***** test 1103s A = sym([1 2 3]); 1103s B = sym([1 2 4]); 1103s C = setdiff(A, B); 1103s D = sym([3]); 1103s assert (isequal (C, D)) 1103s ***** test 1103s % one nonsym 1103s A = sym([1 2 3]); 1103s B = [1 2 4]; 1103s C = setdiff(A, B); 1103s D = sym([3]); 1103s assert (isequal (C, D)) 1103s ***** test 1103s % empty 1103s A = sym([1 2 3]); 1103s C = setdiff(A, A); 1103s assert (isempty (C)) 1103s ***** test 1103s % empty input 1103s A = sym([1 2]); 1103s C = setdiff(A, []); 1103s assert (isequal (C, A) || isequal (C, sym([2 1]))) 1103s ***** test 1103s % scalar 1103s syms x 1103s assert (isequal (setdiff([x 1], x), sym(1))) 1103s assert (isempty (setdiff(x, x))) 1103s ***** test 1103s A = interval(sym(1), 3); 1103s B = interval(sym(2), 5); 1103s C = setdiff(A, B); 1103s assert( isequal( C, interval(sym(1), 2, false, true))) 1103s 6 tests, 6 passed, 0 known failure, 0 skipped 1103s [inst/@sym/ezcontour.m] 1103s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/ezcontour.m 1103s ***** error 1103s syms x y z 1103s ezcontour (x*y*z) 1104s 1 test, 1 passed, 0 known failure, 0 skipped 1104s [inst/@sym/erfc.m] 1104s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/erfc.m 1104s ***** error erfc (sym(1), 2) 1104s ***** assert (isequaln (erfc (sym(nan)), sym(nan))) 1104s ***** shared x, d 1104s d = 1; 1104s x = sym('1'); 1104s ***** test 1104s f1 = erfc(x); 1104s f2 = erfc(d); 1104s assert( abs(double(f1) - f2) < 1e-15 ) 1104s ***** test 1104s D = [d d; d d]; 1104s A = [x x; x x]; 1104s f1 = erfc(A); 1104s f2 = erfc(D); 1104s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1104s ***** test 1104s % round trip 1104s y = sym('y'); 1104s A = erfc (d); 1104s f = erfc (y); 1104s h = function_handle (f); 1104s B = h (d); 1104s assert (A, B, -eps) 1104s 5 tests, 5 passed, 0 known failure, 0 skipped 1104s [inst/@sym/zeros.m] 1104s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/zeros.m 1104s ***** test 1104s y = zeros(sym(2)); 1104s x = [0 0; 0 0]; 1104s assert( isequal( y, sym(x))) 1104s ***** test 1104s y = zeros(sym(2), 1); 1104s x = [0; 0]; 1104s assert( isequal( y, sym(x))) 1104s ***** test 1104s y = zeros(sym(1), 2); 1104s x = [0 0]; 1104s assert( isequal( y, sym(x))) 1104s ***** test 1104s y = zeros (sym([2 3])); 1104s x = sym (zeros ([2 3])); 1104s assert (isequal (y, x)) 1104s ***** assert( isa( zeros(sym(2), 'double'), 'double')) 1104s ***** assert( isa( zeros(3, sym(3), 'single') , 'single')) 1104s ***** assert( isa( zeros(3, sym(3)), 'sym')) 1104s ***** assert( isa( zeros(3, sym(3), 'sym'), 'sym')) 1104s ***** xtest 1104s % Issue #13 1104s assert( isa( zeros(3, 3, 'sym'), 'sym')) 1104s !!!!! known failure 1104s invalid data type specified 1104s 9 tests, 8 passed, 1 known failure, 0 skipped 1104s [inst/@sym/cart2pol.m] 1104s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/cart2pol.m 1104s ***** test 1104s % multiple non-scalar inputs 1104s x = sym ('x', [2 2]); 1104s assume (x, 'real'); 1104s y = sym ('y', [2 2]); 1104s assume (y, 'real'); 1104s [theta, r] = cart2pol (x, y); 1104s assert (isequal (r, sqrt (x.^2 + y.^2))); 1104s assert (isequal (tan (theta), y ./ x)); 1104s % mixing scalar inputs with non-scalar inputs 1104s syms z real 1104s [theta_2, r_2, z_2] = cart2pol (x, y, z); 1104s assert (isequal (r_2, sqrt (x.^2 + y.^2))); 1104s assert (isequal (tan (theta_2), y ./ x)); 1104s assert (isequal (z_2, z * ones (2, 2))); 1105s ***** test 1105s % column vector with 2 entries 1105s syms x y real 1105s [theta, r] = cart2pol ([x; y]); 1105s assert (isequal (r, sqrt (x.^2 + y.^2))); 1105s assert (isequal (tan (theta), y ./ x)); 1105s % column vector with 3 entries 1105s syms z real 1105s [theta_2, r_2, z_2] = cart2pol ([x; y; z]); 1105s assert (isequal (r_2, sqrt (x.^2 + y.^2))); 1105s assert (isequal (tan (theta_2), y ./ x)); 1105s assert (isequal (z_2, z)); 1106s ***** test 1106s % matrix with 2 columns 1106s syms x y u v real 1106s C = [x y; u v]; 1106s [theta, r] = cart2pol (C); 1106s assert (isequal (r, [sqrt(x.^2+y.^2); sqrt(u.^2+v.^2)])); 1106s assert (isequal (tan (theta), [y/x; v/u])); 1106s % matrix with 3 columns 1106s syms z w real 1106s C_2 = [x y z; u v w]; 1106s [theta_2, r_2, z_2] = cart2pol (C_2); 1106s assert (isequal (r, [sqrt(x.^2+y.^2); sqrt(u.^2+v.^2)])); 1106s assert (isequal (tan (theta), [y/x; v/u])); 1106s assert (isequal (z_2, [z; w])); 1106s 3 tests, 3 passed, 0 known failure, 0 skipped 1106s [inst/@sym/piecewise.m] 1106s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/piecewise.m 1106s ***** test 1106s % basic 1106s syms x real 1106s f = piecewise (abs (x) < 1, 1); 1106s assert (isnan (subs (f, -1))); 1106s assert (isequal (subs (f, 0), 1)); 1106s assert (isnan (subs (f, 1))); 1107s ***** test 1107s % heaviside 1107s syms x real 1107s f = rewrite (heaviside (x, 1 / sym (2)), 'Piecewise'); 1107s g = piecewise (x < 0, 0, x == 0, 1 / sym (2), x > 0, 1); 1107s assert (logical (simplify (f == g))); 1107s 2 tests, 2 passed, 0 known failure, 0 skipped 1107s [inst/@sym/orth.m] 1107s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/orth.m 1107s ***** test 1107s A = [1 2; 3 6]; 1107s K = orth(A); 1107s L = orth(sym(A)); 1107s assert (isequal (size(L), [2 1])) 1107s dif1 = abs (double(L) - K); 1107s dif2 = abs (double(L) + K); 1107s assert (all (dif1 < 1e-15) || all (dif2 < 1e-15)) 1107s ***** test 1107s A = [1; 3]; 1107s K = orth(A); 1107s L = orth(sym(A)); 1107s assert (isequal (size(L), [2 1])) 1107s dif1 = abs (double(L) - K); 1107s dif2 = abs (double(L) + K); 1107s assert (all (dif1 < 1e-16) || all (dif2 < 1e-16)) 1107s ***** test 1107s A = sym([1 2; 3 4]); 1107s L = orth(sym(A)); 1107s assert (isequal (size(L), [2 2])) 1107s v = L(:, 1); 1107s w = L(:, 2); 1107s assert (isAlways (v' * v == 1)) 1107s assert (isAlways (w' * w == 1)) 1107s assert (isAlways (v' * w == 0)) 1107s ***** test 1107s A = sym([1 1; 1 0; 1 0]); 1107s L = orth(sym(A)); 1107s assert (isequal (size(L), [3 2])) 1107s v = L(:, 1); 1107s w = L(:, 2); 1107s assert (isAlways (v' * v == 1)) 1107s assert (isAlways (w' * w == 1)) 1107s assert (isAlways (v' * w == 0)) 1107s % y and z components must be equal 1107s assert (isAlways (v(2) == v(3))) 1107s assert (isAlways (w(2) == w(3))) 1108s 4 tests, 4 passed, 0 known failure, 0 skipped 1108s [inst/@sym/asinh.m] 1108s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/asinh.m 1108s ***** error asinh (sym(1), 2) 1108s ***** assert (isequaln (asinh (sym(nan)), sym(nan))) 1108s ***** shared x, d 1108s d = 1; 1108s x = sym('1'); 1108s ***** test 1108s f1 = asinh(x); 1108s f2 = asinh(d); 1108s assert( abs(double(f1) - f2) < 1e-15 ) 1108s ***** test 1108s D = [d d; d d]; 1108s A = [x x; x x]; 1108s f1 = asinh(A); 1108s f2 = asinh(D); 1108s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1108s ***** test 1108s % round trip 1108s y = sym('y'); 1108s A = asinh (d); 1108s f = asinh (y); 1108s h = function_handle (f); 1108s B = h (d); 1108s assert (A, B, -eps) 1108s 5 tests, 5 passed, 0 known failure, 0 skipped 1108s [inst/@sym/ceil.m] 1108s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/ceil.m 1108s ***** error ceil (sym(1), 2) 1108s ***** assert (isequaln (ceil (sym(nan)), sym(nan))) 1108s ***** shared x, d 1108s d = 3/2; 1108s x = sym('3/2'); 1108s ***** test 1108s f1 = ceil(x); 1108s f2 = ceil(d); 1108s assert( abs(double(f1) - f2) < 1e-15 ) 1108s ***** test 1108s D = [d d; d d]; 1108s A = [x x; x x]; 1108s f1 = ceil(A); 1108s f2 = ceil(D); 1108s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1108s ***** test 1108s % round trip 1108s y = sym('y'); 1108s A = ceil (d); 1108s f = ceil (y); 1108s h = function_handle (f); 1108s B = h (d); 1108s assert (A, B, -eps) 1108s 5 tests, 5 passed, 0 known failure, 0 skipped 1108s [inst/@sym/fortran.m] 1108s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/fortran.m 1108s ***** shared x,y,z 1108s syms x y z 1108s ***** test 1108s % basic test 1108s f = x*sin(y) + abs(z); 1108s source = fortran(f); 1108s expected = ' x*sin(y) + abs(z)'; 1108s s1 = strrep (expected, 'abs', 'Abs'); 1108s assert (strcmp (source, expected) || strcmp (source, s1)) 1108s ***** test 1108s % output test 1108s f = x*sin(y) + abs(z); 1108s [F,H] = fortran(f, 'file', '', 'show_header', false); 1108s expected_h_code = sprintf('\ninterface\nREAL*8 function myfun(x, y, z)\nimplicit none\nREAL*8, intent(in) :: x\nREAL*8, intent(in) :: y\nREAL*8, intent(in) :: z\nend function\nend interface\n\n'); 1108s expected_f_code = sprintf('\nREAL*8 function myfun(x, y, z)\nimplicit none\nREAL*8, intent(in) :: x\nREAL*8, intent(in) :: y\nREAL*8, intent(in) :: z\n\nmyfun = x*sin(y) + abs(z)\n\nend function\n'); 1108s assert(strcmp(F.name, 'file.f90')) 1108s assert(strcmp(H.name, 'file.h')) 1108s %disp(expected_f_code); disp(F.code) 1108s s1 = strrep (expected_f_code, 'abs', 'Abs'); 1108s s2 = strrep (expected_f_code, sprintf ('\n'), sprintf ('\r\n')); 1108s s3 = strrep (s2, 'abs', 'Abs'); 1108s s4 = strrep (expected_h_code, sprintf ('\n'), sprintf ('\r\n')); 1108s assert (strcmp (F.code, expected_f_code) || strcmp (F.code, s1) || strcmp (F.code, s2) || strcmp (F.code, s3)) 1108s assert (strcmp (H.code, expected_h_code) || strcmp (H.code, s4)) 1108s 2 tests, 2 passed, 0 known failure, 0 skipped 1108s [inst/@sym/zeta.m] 1108s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/zeta.m 1108s ***** error zeta (sym(1), 2, 3) 1108s ***** assert (isequaln (zeta (sym(nan)), sym(nan))) 1108s ***** test 1108s f1 = zeta (sym(2)); 1108s f2 = pi^2/6; 1108s assert (double (f1), f2, -1e-15) 1108s ***** test 1108s A = sym([0 2; 4 6]); 1108s f1 = zeta (A); 1108s f2 = [-1/2 pi^2/6; pi^4/90 pi^6/945]; 1108s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1108s ***** test 1108s % round trip 1108s y = sym('y'); 1108s f = zeta (y); 1108s h = function_handle (f); 1108s A = zeta (2); 1108s B = h (2); 1108s assert (A, B, -eps) 1108s ***** test 1108s syms x 1108s assert (isequal (zeta (0, x), zeta(x))) 1108s ***** test 1108s % ensure its the nth deriv wrt x, not the n deriv 1108s syms x n 1108s F = zeta (n, x); 1108s F = subs(F, n, 3); 1108s assert (isequal (F, diff (zeta (x), x, x, x))) 1109s 7 tests, 7 passed, 0 known failure, 0 skipped 1109s [inst/@sym/power.m] 1109s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/power.m 1109s ***** test 1109s % scalar .^ scalar 1109s syms x 1109s assert (isa (x.^2, 'sym')) 1109s assert (isa (2.^x, 'sym')) 1109s assert (isa (x.^x, 'sym')) 1109s assert (isequal (x.^2, x^2)) 1109s assert (isequal (2.^x, 2^x)) 1109s assert (isequal (x.^x, x^x)) 1109s ***** test 1109s % scalar .^ matrix 1109s D = [0 1; 2 3]; 1109s A = sym(D); 1109s assert (isequal ( sym(2).^D , 2.^D )) 1109s assert (isequal ( sym(2).^A , 2.^A )) 1109s assert (isequal ( 2.^D , 2.^A )) 1109s assert (isequal ( 2.^A , 2.^A )) 1109s ***** test 1109s % matrix .^ matrix 1109s syms x 1109s A = [x 2*x; 3*x 4*x]; 1109s D = [0 1; 2 3]; 1109s B = sym(D); 1109s assert (isequal ( A.^D, [1 2*x; 9*x^2 64*x^3] )) 1109s assert (isequal ( A.^B, [1 2*x; 9*x^2 64*x^3] )) 1109s ***** test 1109s % matrix .^ scalar 1109s syms x 1109s A = [x 2*x]; 1109s assert (isequal ( A.^2, [x^2 4*x^2] )) 1109s assert (isequal ( A.^sym(2), [x^2 4*x^2] )) 1110s ***** test 1110s % 1^oo 1110s % (sympy >= 0.7.5 gives NaN, SMT R2013b: gives 1) 1110s oo = sym(inf); 1110s assert (isnan (1^oo)) 1110s ***** test 1110s % 1^zoo 1110s % (1 on sympy 0.7.4--0.7.6, but nan in git (2014-12-12, a210908d4)) 1110s zoo = sym('zoo'); 1110s assert (isnan (1^zoo)) 1110s ***** test 1110s % immutable test 1110s A = sym([1 2]); 1110s B = sym('ImmutableDenseMatrix([[Integer(1), Integer(2)]])'); 1110s assert (isequal (A.^A, B.^B)) 1110s :18: SyntaxWarning: invalid escape sequence '\(' 1110s 7 tests, 7 passed, 0 known failure, 0 skipped 1110s [inst/@sym/inv.m] 1110s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/inv.m 1110s ***** test 1110s % scalar 1110s syms x 1110s assert (isequal (inv(x), 1/x)) 1110s ***** test 1110s % diagonal 1110s syms x 1110s A = [sym(1) 0; 0 x]; 1110s B = [sym(1) 0; 0 1/x]; 1110s assert (isequal (inv(A), B)) 1110s ***** test 1110s % 2x2 inverse 1110s A = [1 2; 3 4]; 1110s assert (max (max (abs (double (inv (sym (A))) - inv(A)))) <= 3*eps) 1110s ***** error 1110s syms a; 1110s A = [a a; a a]; 1110s inv(A) 1110s ***** error 1110s syms a; 1110s A = [a a]; 1110s inv(A) 1110s 5 tests, 5 passed, 0 known failure, 0 skipped 1110s [inst/@sym/pinv.m] 1110s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/pinv.m 1110s ***** test 1110s % scalar 1110s syms x 1110s assert (isequal (pinv(x), 1/x)) 1110s ***** test 1110s % 2x3 1110s A = [1 2 3; 4 5 6]; 1110s assert (max (max (abs (double (pinv (sym (A))) - pinv(A)))) <= 10*eps) 1110s 2 tests, 2 passed, 0 known failure, 0 skipped 1110s [inst/@sym/acsc.m] 1110s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/acsc.m 1110s ***** error acsc (sym(1), 2) 1110s ***** assert (isequaln (acsc (sym(nan)), sym(nan))) 1111s ***** shared x, d 1111s d = 1; 1111s x = sym('1'); 1111s ***** test 1111s f1 = acsc(x); 1111s f2 = acsc(d); 1111s assert( abs(double(f1) - f2) < 1e-15 ) 1111s ***** test 1111s D = [d d; d d]; 1111s A = [x x; x x]; 1111s f1 = acsc(A); 1111s f2 = acsc(D); 1111s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1111s ***** test 1111s % round trip 1111s y = sym('y'); 1111s A = acsc (d); 1111s f = acsc (y); 1111s h = function_handle (f); 1111s B = h (d); 1111s assert (A, B, -eps) 1111s 5 tests, 5 passed, 0 known failure, 0 skipped 1111s [inst/@sym/abs.m] 1111s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/abs.m 1111s ***** error abs (sym(1), 2) 1111s ***** assert (isequaln (abs (sym(nan)), sym(nan))) 1111s ***** shared x, d 1111s d = -1; 1111s x = sym('-1'); 1111s ***** test 1111s f1 = abs(x); 1111s f2 = abs(d); 1111s assert( abs(double(f1) - f2) < 1e-15 ) 1111s ***** test 1111s D = [d d; d d]; 1111s A = [x x; x x]; 1111s f1 = abs(A); 1111s f2 = abs(D); 1111s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1111s ***** test 1111s % round trip 1111s y = sym('y'); 1111s A = abs (d); 1111s f = abs (y); 1111s h = function_handle (f); 1111s B = h (d); 1111s assert (A, B, -eps) 1111s 5 tests, 5 passed, 0 known failure, 0 skipped 1111s [inst/@sym/trace.m] 1111s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/trace.m 1111s ***** test 1111s % scalar 1111s syms x 1111s assert (isequal (trace(x), x)) 1111s ***** test 1111s syms x 1111s A = [x 3; 2*x 5]; 1111s assert (isequal (trace(A), x + 5)) 1111s 2 tests, 2 passed, 0 known failure, 0 skipped 1111s [inst/@sym/display.m] 1111s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/display.m 1111s ***** test 1111s assert(true) 1111s 1 test, 1 passed, 0 known failure, 0 skipped 1111s [inst/@sym/vertcat.m] 1111s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/vertcat.m 1111s ***** test 1111s % basic 1111s syms x 1111s A = [x; x]; 1111s B = vertcat(x, x); 1111s C = vertcat(x, x, x); 1111s assert (isa (A, 'sym')) 1111s assert (isa (B, 'sym')) 1111s assert (isa (C, 'sym')) 1111s assert (isequal (size(A), [2 1])) 1111s assert (isequal (size(B), [2 1])) 1111s assert (isequal (size(C), [3 1])) 1111s ***** test 1111s % basic, part 2 1111s syms x 1111s A = [x; 1]; 1111s B = [1; x]; 1111s C = [1; 2; x]; 1111s assert (isa (A, 'sym')) 1111s assert (isa (B, 'sym')) 1111s assert (isa (C, 'sym')) 1111s assert (isequal (size(A), [2 1])) 1111s assert (isequal (size(B), [2 1])) 1111s assert (isequal (size(C), [3 1])) 1111s ***** test 1111s % column vectors 1111s a = [sym(1); 2]; 1111s b = [sym(3); 4]; 1111s assert (isequal ( [a;b] , [1; 2; 3; 4] )) 1111s assert (isequal ( [a;b;a] , [1; 2; 3; 4; 1; 2] )) 1111s ***** test 1111s % row vectors 1111s a = [sym(1) 2]; 1111s b = [sym(3) 4]; 1111s assert (isequal ( [a;b] , [1 2; 3 4] )) 1111s assert (isequal ( [a;b;a] , [1 2; 3 4; 1 2] )) 1112s ***** test 1112s % row vector, other row 1112s a = [sym(1) 2]; 1112s assert (isequal ( [a; [sym(3) 4]] , [1 2; 3 4] )) 1112s ***** test 1112s % empty vectors 1112s v = [sym(1) sym(2)]; 1112s a = [v; []]; 1112s assert (isequal (a, v)) 1112s a = [[]; v; []]; 1112s assert (isequal (a, v)) 1112s a = [v; []; []]; 1112s assert (isequal (a, v)) 1112s ***** xtest 1112s % FIXME: is this Octave bug? worth worrying about 1112s syms x 1112s a = [x; [] []]; 1112s assert (isequal (a, x)) 1112s !!!!! known failure 1112s octave_base_value::map_value(): wrong type argument 'null_matrix' 1112s ***** test 1112s % more empty vectors 1112s v = [sym(1) sym(2)]; 1112s q = sym(ones(0, 2)); 1112s assert (isequal ([v; q], v)) 1112s ***** error 1112s v = [sym(1) sym(2)]; 1112s q = sym(ones(0, 3)); 1112s w = vertcat(v, q); 1112s ***** test 1112s % Octave 3.6 bug: should pass on 3.8.1 and matlab 1112s a = [sym(1) 2]; 1112s assert (isequal ( [a; [3 4]] , [1 2; 3 4] )) 1112s assert (isequal ( [a; sym(3) 4] , [1 2; 3 4] )) 1112s % more examples 1112s syms x 1112s [x [x x]; x x x]; 1112s [[x x] x; x x x]; 1112s [[x x] x; [x x] x]; 1112s [x x x; [x x] x]; 1112s ***** test 1112s % issue #700 1112s A = sym ([1 2]); 1112s B = simplify (A); 1112s assert (isequal ([B; A], [A; B])) 1112s 11 tests, 10 passed, 1 known failure, 0 skipped 1112s [inst/@sym/end.m] 1112s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/end.m 1112s ***** test 1112s % scalar 1112s syms x 1112s y = x(1:end); 1112s assert (isequal (x, y)) 1112s ***** test 1112s % vector 1112s syms x 1112s A = [1 2 x 4]; 1112s y = A(end-1:end); 1112s assert (isequal (y, [x 4])) 1113s ***** test 1113s % subset of matrix 1113s syms x 1113s A = [1 2 x; x 3 9; 4 x*x 6]; 1113s y = A(end,1:end-1); 1113s assert (isequal (y, [4 x*x])) 1113s ***** test 1113s % linear index of matrix 1113s syms x 1113s A = [1 2 x; x 3 9]; 1113s y = A(end); 1113s assert (isequal (y, sym(9))) 1113s 4 tests, 4 passed, 0 known failure, 0 skipped 1113s [inst/@sym/latex.m] 1113s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/latex.m 1113s ***** test 1113s syms x 1113s y = sin(x); 1113s assert (strcmp (latex (y), '\sin{\left(x \right)}')) 1113s ***** assert (strcmp (latex (exp (sym('x'))), 'e^{x}')) 1113s 2 tests, 2 passed, 0 known failure, 0 skipped 1113s [inst/@sym/beta.m] 1113s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/beta.m 1113s ***** error beta (sym(1), 2, 3) 1113s ***** assert (isequal (double (beta (sym(1), 2)), 1/2)) 1113s ***** assert (isinf (double (beta (sym(1), 0)))) 1113s ***** test 1113s % round trip 1113s syms x y 1113s f = beta (x, y); 1113s h = function_handle (f); 1113s A = h (1.1, 2.2); 1113s B = beta (1.1, 2.2); 1113s assert (A, B) 1113s 4 tests, 4 passed, 0 known failure, 0 skipped 1113s [inst/@sym/sin.m] 1113s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/sin.m 1113s ***** error sin (sym(1), 2) 1113s ***** assert (isequaln (sin (sym(nan)), sym(nan))) 1113s ***** shared x, d 1113s d = 1; 1113s x = sym('1'); 1113s ***** test 1113s f1 = sin(x); 1113s f2 = sin(d); 1113s assert( abs(double(f1) - f2) < 1e-15 ) 1113s ***** test 1113s D = [d d; d d]; 1113s A = [x x; x x]; 1113s f1 = sin(A); 1113s f2 = sin(D); 1113s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1113s ***** test 1113s % round trip 1113s y = sym('y'); 1113s A = sin (d); 1113s f = sin (y); 1113s h = function_handle (f); 1113s B = h (d); 1113s assert (A, B, -eps) 1113s 5 tests, 5 passed, 0 known failure, 0 skipped 1113s [inst/@sym/symsum.m] 1113s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/symsum.m 1113s ***** error symsum (sym(1), 2, 3, 4, 5) 1113s ***** test 1113s % finite sums 1113s syms n 1113s assert (isequal (symsum(n,n,1,10), 55)) 1113s assert(isa(symsum(n,n,1,10), 'sym')) 1113s assert (isequal (symsum(n,n,sym(1),sym(10)), 55)) 1113s assert (isequal (symsum(n,n,sym(1),sym(10)), 55)) 1113s assert (isequal (symsum(1/n,n,1,10), sym(7381)/2520)) 1114s ***** test 1114s % negative limits 1114s syms n 1114s assert (isequal (symsum(n,n,-3,3), sym(0))) 1114s assert (isequal (symsum(n,n,-3,0), sym(-6))) 1114s assert (isequal (symsum(n,n,-3,-1), sym(-6))) 1114s ***** test 1114s % one input 1114s syms n 1114s f = symsum (n); 1114s g = n^2/2 - n/2; 1114s assert (isequal (f, g)) 1114s f = symsum (2*n); 1114s g = n^2 - n; 1114s assert (isequal (f, g)) 1114s ***** test 1114s % constant input 1114s f = symsum (sym(2)); 1114s syms x 1114s g = 2*x; 1114s assert (isequal (f, g)) 1114s ***** test 1114s % two inputs 1114s syms n 1114s f = symsum (2*n, n); 1114s g = n^2 - n; 1114s assert (isequal (f, g)) 1114s ***** test 1114s % two inputs, second is range 1114s syms n 1114s f = symsum (n, [1 6]); 1114s g = 21; 1114s assert (isequal (f, g)) 1114s f = symsum (n, [sym(1) 6]); 1114s g = 21; 1114s assert (isequal (f, g)) 1114s f = symsum (2*n, [1 6]); 1114s g = 2*21; 1114s assert (isequal (f, g)) 1114s ***** test 1114s % three inputs, last is range 1114s syms n 1114s f = symsum (2*n, n, [1 4]); 1114s g = sym(20); 1114s assert (isequal (f, g)) 1114s f = symsum (2*n, n, [sym(1) 4]); 1114s g = sym(20); 1114s assert (isequal (f, g)) 1114s f = symsum (2, n, [sym(1) 4]); 1114s g = sym(8); 1114s assert (isequal (f, g)) 1115s ***** test 1115s % three inputs, no range 1115s syms n 1115s f = symsum (2*n, 1, 4); 1115s g = sym(20); 1115s assert (isequal (f, g)) 1115s f = symsum (5, sym(1), 3); 1115s g = sym(15); 1115s assert (isequal (f, g)) 1115s ***** test 1115s % ok to use double's for arguments in infinite series 1115s syms n oo 1115s assert(isequal(symsum(1/n^2,n,1,oo), sym(pi)^2/6)) 1115s assert(isequal(symsum(1/n^2,n,1,inf), sym(pi)^2/6)) 1115s ***** test 1115s % should be oo because 1 is real but seems to be 1115s % zoo/oo depending on sympy version 1115s syms n oo 1115s zoo = sym('zoo'); 1115s assert (isequal (symsum(1/n,n,1,oo), oo) || ... 1115s isequal (symsum(1/n,n,1,oo), zoo)) 1115s 11 tests, 11 passed, 0 known failure, 0 skipped 1115s [inst/@sym/sign.m] 1115s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/sign.m 1115s ***** error sign (sym(1), 2) 1115s ***** assert (isequaln (sign (sym(nan)), sym(nan))) 1115s ***** shared x, d 1115s d = 1; 1115s x = sym('1'); 1115s ***** test 1115s f1 = sign(x); 1115s f2 = sign(d); 1115s assert( abs(double(f1) - f2) < 1e-15 ) 1115s ***** test 1115s D = [d d; d d]; 1115s A = [x x; x x]; 1115s f1 = sign(A); 1115s f2 = sign(D); 1115s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1115s ***** test 1115s % round trip 1115s y = sym('y'); 1115s A = sign (d); 1115s f = sign (y); 1115s h = function_handle (f); 1115s B = h (d); 1115s assert (A, B, -eps) 1115s 5 tests, 5 passed, 0 known failure, 0 skipped 1115s [inst/@sym/coshint.m] 1115s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/coshint.m 1115s ***** error coshint (sym(1), 2) 1115s ***** xtest 1115s assert (isequaln (coshint (sym(nan)), sym(nan))) 1115s !!!!! known failure 1115s assert (isequaln (coshint (sym (nan)), sym (nan))) failed 1115s ***** shared x, d 1115s d = 1; 1115s x = sym('1'); 1115s ***** test 1115s f1 = coshint(x); 1115s f2 = 0.8378669409802082408947; 1115s assert( abs(double(f1) - f2) < 1e-15 ) 1115s ***** test 1115s D = [d d; d d]; 1115s A = [x x; x x]; 1115s f1 = coshint(A); 1115s f2 = 0.8378669409802082408947; 1115s f2 = [f2 f2; f2 f2]; 1115s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1116s ***** test 1116s % round trip 1116s y = sym('y'); 1116s A = coshint (d); 1116s f = coshint (y); 1116s h = function_handle (f); 1116s B = h (d); 1116s assert (A, B, -eps) 1116s 5 tests, 4 passed, 1 known failure, 0 skipped 1116s [inst/@sym/ctranspose.m] 1116s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/ctranspose.m 1116s ***** test 1116s x = sym(1); 1116s assert (isequal (x', x)) 1116s ***** assert (isempty (sym([])')) 1116s ***** test 1116s % conjugate does nothing to real x 1116s syms x real 1116s assert (isequal (x', x)) 1116s ***** test 1116s % complex 1116s syms x 1116s assert (isequal (x', conj(x))) 1116s ***** test 1116s % complex array 1116s syms x 1116s A = [x 2*x]; 1116s B = [conj(x); 2*conj(x)]; 1116s assert(isequal(A', B)) 1116s ***** test 1116s A = [1 2; 3 4]; 1116s assert(isequal( sym(A)' , sym(A') )) 1116s ***** test 1116s A = [1 2] + 1i; 1116s assert(isequal( sym(A)' , sym(A') )) 1116s ***** test 1116s % true/false 1116s t = sym(true); 1116s f = sym(false); 1116s assert (isequal ( t', t)) 1116s assert (isequal ( f', f)) 1116s ***** test 1116s % more true/false 1116s syms x 1116s A = [x true 1i]; 1116s B = [conj(x); true; -sym(1i)]; 1116s assert (isequal ( A', B)) 1116s 9 tests, 9 passed, 0 known failure, 0 skipped 1116s [inst/@sym/length.m] 1116s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/length.m 1116s ***** test 1116s a = sym([1 2 3]); 1116s assert(length(a) == 3); 1116s ***** test 1116s % 2D array 1116s a = sym([1 2 3; 4 5 6]); 1116s assert(length(a) == 3); 1116s ***** test 1116s % empty 1116s a = sym([]); 1116s assert(length(a) == 0); 1116s 3 tests, 3 passed, 0 known failure, 0 skipped 1116s [inst/@sym/isempty.m] 1116s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/isempty.m 1116s ***** shared se, a 1116s se = sym ([]); 1116s a = sym ([1 2]); 1116s ***** assert (~isempty (sym (1))) 1116s ***** assert (isempty (sym (se))) 1116s ***** assert (isempty (se == [])) 1116s ***** test 1116s ***** test se(1) = 10; 1116s ***** test assert ( isa (se, 'sym')) 1116s ***** test assert ( isequal (se, 10)) 1116s ***** shared 1117s ***** test 1117s % empty matrices 1117s A = sym('A', [3 0]); 1117s assert (isempty (A)) 1117s A = sym(ones(3,0)); 1117s assert (isempty (A)) 1117s ***** test 1117s % non-empty symbolic-size matrices 1117s syms n integer 1117s A = sym('A', [3 n]); 1117s assert (~isempty (A)) 1117s ***** xtest 1117s % empty symbolic-size matrices 1117s % FIXME: will fail until size stop lying by saying 1x1 1117s syms n integer 1117s A = sym('A', [0 n]); 1117s assert (isempty (A)) 1117s A = sym('A', [n 0]); 1117s assert (isempty (A)) 1117s !!!!! known failure 1117s assert (isempty (A)) failed 1117s 10 tests, 9 passed, 1 known failure, 0 skipped 1117s [inst/@sym/hessian.m] 1117s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/hessian.m 1117s ***** error hessian (sym(1), 2, 3) 1117s ***** error hessian ([sym(1) sym(2)]) 1117s ***** shared x,y,z 1117s syms x y z 1117s ***** test 1117s % 1D 1117s f = x^2; 1117s assert (isequal (hessian(f), diff(f,x,x))) 1117s assert (isequal (hessian(f,{x}), diff(f,x,x))) 1117s assert (isequal (hessian(f,x), diff(f,x,x))) 1117s ***** test 1117s % const 1117s f = sym(1); 1117s g = sym(0); 1117s assert (isequal (hessian(f), g)) 1117s assert (isequal (hessian(f,x), g)) 1117s ***** test 1117s % double const 1117s f = 1; 1117s g = sym(0); 1117s assert (isequal (hessian(f,x), g)) 1117s ***** test 1117s % linear 1117s f = 42*x; 1117s g = sym(0); 1117s assert (isequal (hessian(f), g)) 1117s assert (isequal (hessian(f,x), g)) 1117s ***** test 1117s % linear 1117s f = 42*x - sym('a')*y; 1117s g = [0 0; 0 0]; 1117s assert (isequal (hessian(f, {x y}), g)) 1117s ***** test 1117s % 2d 1117s f = x*cos(y); 1117s g = [0 -sin(y); -sin(y) -f]; 1117s assert (isequal (hessian(f), g)) 1117s assert (isequal (hessian(f, {x y}), g)) 1117s ***** test 1117s % 3d 1117s f = x*cos(z); 1117s Hexp = [0 0 -sin(z); sym(0) 0 0; -sin(z) 0 -f]; 1117s H = hessian(f, {x y z}); 1117s assert (isequal (H, Hexp)) 1117s 9 tests, 9 passed, 0 known failure, 0 skipped 1117s [inst/@sym/curl.m] 1117s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/curl.m 1117s ***** error curl([sym(1) 2 3], 42, 42) 1117s ***** shared x,y,z 1117s syms x y z 1117s ***** test 1117s % double const 1117s f = [1 2 3]; 1117s g = [sym(0); 0; 0]; 1117s assert (isequal (curl(f, [x y z]), g)) 1117s % should fail, calls @double: curl(f, {x y z}), g)) 1118s ***** test 1118s % div curl always 0 1118s v = [exp(x); x*y; sin(z)]; 1118s g = curl(v); 1118s a = divergence(g, [x y z]); 1118s assert (isAlways (a == sym(0))) 1118s assert (isa (a, 'sym')) 1118s g = curl(v, [x y z]); 1118s a = divergence(g, [x y z]); 1118s assert (isAlways (a == sym(0))) 1118s assert (isa (a, 'sym')) 1118s ***** test 1118s % div curl always 0 1118s v = [exp(x); erfc(x*y); sin(exp(x)*y+sinh(z))]; 1118s g = curl(v, [x y z]); 1118s a = divergence(g, [x y z]); 1118s assert (isAlways (a == sym(0))) 1118s assert (isa (a, 'sym')) 1119s ***** test 1119s % curl grad is vec zero 1119s f = sin(exp(x)*y+sinh(z)); 1119s g = curl(gradient(f, [x,y,z])); 1119s assert (isequal (g, sym([0;0;0]))) 1121s ***** test 1121s % 2d fcn in 2d/3d 1121s u = sin(exp(x)*y); 1121s v = x^2*y^3; 1121s vorticity2d = diff(v,x) - diff(u,y); 1121s omega = curl([u; v; 0], [x y z]); 1121s assert (isequal (omega, [0; 0; vorticity2d])) 1121s ***** error <3D vector> curl([sym(1) 2 3 4]) 1121s ***** error curl([sym(1) 2 3], {sym('x') sym('y') sym('z') sym('t')}) 1121s 8 tests, 8 passed, 0 known failure, 0 skipped 1121s [inst/@sym/isna.m] 1121s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/isna.m 1121s ***** test 1121s % no sym should be NA 1121s syms x oo 1121s assert (~isna(sym(1))) 1121s assert (~isna(x)) 1121s assert (~isna(oo)) 1121s assert (~isna(sym(nan))) 1121s assert (isequal (isna (sym ([1 nan])), [false false])) 1121s 1 test, 1 passed, 0 known failure, 0 skipped 1121s [inst/@sym/cumsum.m] 1121s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/cumsum.m 1121s ***** shared x, y 1121s x = sym ('x'); 1121s y = sym ('y'); 1121s ***** error cumsum (x, 1, 2) 1121s ***** assert (isequal (cumsum ([-x; -2*x; -3*x]), [-x; -3*x; -6*x])) 1121s ***** assert (isequal (cumsum ([x + 2i*y, 2*x + i*y]), [x + 2i*y, 3*x + 3i*y])) 1122s ***** assert (isequal (cumsum ([x, 2*x; 3*x, 4*x], 1), [1*x, 2*x; 4*x, 6*x] )) 1122s ***** assert (isequal (cumsum ([x, 2*x; 3*x, 4*x], 2), [1*x, 3*x; 3*x, 7*x] )) 1122s ***** test cumsum ([x, x], [2, 1]); # ensure behaves like builtin cumsum 1122s ***** test cumsum ([x, x], [1, -2]); # ensure behaves like builtin cumsum 1123s ***** error cumsum (x, []) 1123s ***** error cumsum (x, {1}) 1123s ***** error cumsum (x, struct('a', 1)) 1123s ***** error cumsum (x, x) 1123s ***** error cumsum (x, 0) 1123s ***** error cumsum (x, -1) 1123s 13 tests, 13 passed, 0 known failure, 0 skipped 1123s [inst/@sym/erfi.m] 1123s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/erfi.m 1123s ***** error erfi (sym(1), 2) 1123s ***** assert (isequaln (erfi (sym(nan)), sym(nan))) 1123s ***** shared x, d 1123s d = 0; 1123s x = sym('0'); 1123s ***** test 1123s f1 = erfi(x); 1123s f2 = 0; 1123s assert( abs(double(f1) - f2) < 1e-15 ) 1123s ***** test 1123s D = [d d; d d]; 1123s A = [x x; x x]; 1123s f1 = erfi(A); 1123s f2 = 0; 1123s f2 = [f2 f2; f2 f2]; 1123s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1123s ***** test 1123s % round trip 1123s y = sym('y'); 1123s A = erfi (d); 1123s f = erfi (y); 1123s h = function_handle (f); 1123s B = h (d); 1123s assert (A, B, -eps) 1123s 5 tests, 5 passed, 0 known failure, 0 skipped 1123s [inst/@sym/besselh.m] 1123s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/besselh.m 1123s ***** test 1123s % default to k=1 1123s syms z a 1123s A = besselh(a, z); 1123s B = besselh(a, 1, z); 1123s assert (isequal (A, B)) 1123s ***** error besselh(sym('z')) 1123s ***** error besselh(2, 0, sym('z')) 1123s ***** error besselh(2, 3, sym('z')) 1123s ***** test 1123s % doubles, relative error 1123s X = [1 2 pi; 4i 5 6+6i]; 1123s Xs = sym(X); 1123s Alpha = [pi 3 1; 3 2 0]; 1123s Alphas = sym(Alpha); 1123s for k = 1:2 1123s A = double(besselh(Alphas, k, Xs)); 1123s B = besselh(Alpha, k, X); 1123s assert (all (all (abs(A - B) < 10*eps*abs(A)))) 1123s end 1124s ***** test 1124s % round-trip 1124s syms x 1124s for k = 1:2 1124s A = besselh(4, k, 10); 1124s q = besselh(4, k, x); 1124s h = function_handle(q); 1124s B = h(10); 1124s assert (abs(A - B) <= eps*abs(A)) 1124s end 1124s 6 tests, 6 passed, 0 known failure, 0 skipped 1124s [inst/@sym/simplify.m] 1124s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/simplify.m 1124s ***** shared x,p,q 1124s syms x 1124s p = x^2 + x + 1; 1124s q = horner (p); 1124s ***** assert(~isequal( p - q, 0)) 1124s ***** assert(isequal( simplify(p - q), 0)) 1124s 2 tests, 2 passed, 0 known failure, 0 skipped 1124s [inst/@sym/ezmesh.m] 1124s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/ezmesh.m 1124s ***** error 1124s syms u v t 1124s ezmesh(u*v, 2*u*v, 3*v*t) 1124s ***** error 1124s syms u v t 1124s ezmesh(u*v, 2*u*v, u*v*t) 1124s 2 tests, 2 passed, 0 known failure, 0 skipped 1124s [inst/@sym/subs.m] 1124s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/subs.m 1124s ***** error subs (sym(1), 2, 3, 4) 1124s ***** shared x,y,t,f 1124s syms x y t 1124s f = x*y; 1124s ***** test 1124s assert( isequal( subs(f, x, y), y^2 )) 1124s assert( isequal( subs(f, y, sin(x)), x*sin(x) )) 1124s assert( isequal( subs(f, x, 16), 16*y )) 1125s ***** test 1125s % multiple subs w/ cells 1125s assert( isequal( subs(f, {x}, {t}), y*t )) 1125s assert( isequal( subs(f, {x y}, {t t}), t*t )) 1125s assert( isequal( subs(f, {x y}, {t 16}), 16*t )) 1125s assert( isequal( subs(f, {x y}, {16 t}), 16*t )) 1125s assert( isequal( subs(f, {x y}, {2 16}), 32 )) 1125s ***** test 1125s % multiple subs w/ vectors 1125s assert( isequal( subs(f, [x y], [t t]), t*t )) 1125s assert( isequal( subs(f, [x y], [t 16]), 16*t )) 1125s assert( isequal( subs(f, [x y], [2 16]), 32 )) 1125s ***** test 1125s % anything you can think of 1125s assert( isequal( subs(f, [x y], {t t}), t*t )) 1125s assert( isequal( subs(f, {x y}, [t t]), t*t )) 1125s assert( isequal( subs(f, {x; y}, [t; t]), t*t )) 1125s ***** test 1125s % sub in doubles gives sym (matches SMT 2013b) 1125s % FIXME: but see 1125s % http://www.mathworks.co.uk/help/symbolic/gradient.html 1125s assert( isequal( subs(f, {x y}, {2 pi}), 2*sym(pi) )) 1125s assert( ~isa(subs(f, {x y}, {2 pi}), 'double')) 1125s assert( isa(subs(f, {x y}, {2 pi}), 'sym')) 1125s assert( isa(subs(f, {x y}, {2 sym(pi)}), 'sym')) 1125s assert( isa(subs(f, {x y}, {sym(2) sym(pi)}), 'sym')) 1125s ***** shared x,y,t,f,F 1125s syms x y t 1125s f = sin(x)*y; 1125s F = [f; 2*f]; 1125s ***** test 1125s % need the simultaneous=True flag in SymPy (matches SMT 2013b) 1125s assert( isequal( subs(f, [x t], [t 6]), y*sin(t) )) 1125s assert( isequal( subs(F, [x t], [t 6]), [y*sin(t); 2*y*sin(t)] )) 1125s ***** test 1125s % swap x and y (also needs simultaneous=True 1125s assert( isequal( subs(f, [x y], [y x]), x*sin(y) )) 1126s ***** test 1126s % but of course both x and y to t still works 1126s assert( isequal( subs(f, [x y], [t t]), t*sin(t) )) 1126s ***** shared 1126s ***** test 1126s % Issue #10, subbing matrices in for scalars 1126s syms y 1126s a = sym([1 2; 3 4]); 1126s f = sin(y); 1126s g = subs(f, y, a); 1126s assert (isequal (g, sin(a))) 1126s ***** test 1126s % Issue #10, subbing matrices in for scalars 1126s syms y 1126s a = sym([1 2]); 1126s g = subs(sin(y), {y}, {a}); 1126s assert (isequal (g, sin(a))) 1126s ***** test 1126s % Issue #10, subbing matrices in for scalars 1126s syms y 1126s a = sym([1; 2]); 1126s g = subs(sin(y), {y}, a); 1126s assert (isequal (g, sin(a))) 1126s ***** test 1126s % Issue #10, subbing matrices in for scalars 1126s syms y 1126s a = [10 20 30]; 1126s f = 2*y; 1126s g = subs(f, y, a); 1126s assert (isequal (g, 2*a)) 1126s assert (isa (g, 'sym')) 1126s ***** test 1126s % Issue #10, sub matrices in for two scalars 1126s syms x y 1126s a = [10 20 30]; 1126s f = x^2*y; 1126s g = subs(f, {x y}, {a a+1}); 1126s h = a.^2.*(a+1); 1126s assert (isequal (g, h)) 1126s ***** test 1126s % Issue #10, sub matrices in for two scalars 1126s syms x y z 1126s a = [10 20 30]; 1126s f = x^2*y; 1126s g = subs(f, {x y}, {a z}); 1126s h = a.^2*z; 1126s assert (isequal (g, h)) 1126s g = subs(f, {x y}, {a 6}); 1126s h = a.^2*6; 1126s assert (isequal (g, h)) 1126s ***** error 1126s syms x y 1126s a = [10 20 30]; 1126s f = x^2*y; 1126s g = subs(f, {x y}, {[10 20 30] [10 20]}); 1126s ***** test 1126s % two inputs 1126s syms x y 1126s assert (isequal (subs (2*x, 6), sym(12))) 1126s assert (isequal (subs (2*x*y^2, 6), 12*y^2)) 1126s assert (isequal (subs (2*y, 6), sym(12))) 1126s assert (isequal (subs (sym(2), 6), sym(2))) 1127s ***** test 1127s % only two inputs, vector 1127s syms x 1127s assert (isequal (subs (2*x, [3 5]), sym([6 10]))) 1127s ***** test 1127s % SMT compat, subbing in vec/mat for nonexist x 1127s syms x y z 1127s % you might think this would be y: 1127s assert (~ isequal (subs (y, x, [1 2]), y)) 1127s % but it gives two y's: 1127s assert (isequal (subs (y, x, [1 2]), [y y])) 1127s assert (isequal (subs (sym(42), [3 5]), sym([42 42]))) 1127s assert (isequal (subs (sym(42), x, []), sym([]))) 1127s assert (isequal (subs (y, {x y}, {[1 2; 3 4], 6}), sym([6 6; 6 6]))) 1127s assert (isequal (subs (y, {x z}, {[1 2; 3 4], 6}), [y y; y y])) 1127s ***** test 1127s syms x y 1127s assert (isequal (subs (sym(42), x, y), sym(42))) 1127s assert (isequal (subs (sym(42), y), sym(42))) 1127s assert (isequal (subs (sym(42)), sym(42))) 1128s ***** test 1128s % empty lists 1128s assert (isequal (subs (sym(42), {}, {}), sym(42))) 1128s assert (isequal (subs (42, sym([]), sym([])), sym(42))) 1128s ***** test 1128s syms x y 1128s f = x*y; 1128s x = 6; y = 7; 1128s g = subs (f); 1128s assert (isequal (g, sym (42))) 1128s assert (isa (g, 'sym')) 1128s ***** test 1128s syms x y 1128s f = x*y; 1128s x = 6; 1128s g = subs (f); 1128s assert (isequal (g, 6*y)) 1128s ***** test 1128s syms x y 1128s f = x*y; 1128s xsave = x; 1128s x = 6; 1128s g = subs (f); 1128s assert (isequal (g, 6*y)) 1128s assert (isequal (f, xsave*y)) 1128s ***** test 1128s syms a x y 1128s f = a*x*y; 1128s a = 6; 1128s clear x 1128s g = subs (f); 1128s syms x 1128s assert (isequal (g, 6*x*y)) 1128s 25 tests, 25 passed, 0 known failure, 0 skipped 1128s [inst/@sym/asind.m] 1128s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/asind.m 1128s ***** error asind (sym(1), 2) 1128s ***** assert (isequaln (asind (sym(nan)), sym(nan))) 1128s ***** test 1128s f1 = asind (sym(1)/2); 1128s f2 = asind (1/2); 1128s assert (double (f1), f2, -eps) 1128s ***** test 1128s D = [1 2; 3 4]/4; 1128s A = sym([1 2; 3 4])/4; 1128s f1 = asind (A); 1128s f2 = asind (D); 1128s assert (double (f1), f2, -eps) 1128s 4 tests, 4 passed, 0 known failure, 0 skipped 1128s [inst/@sym/ssinint.m] 1128s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/ssinint.m 1128s ***** assert (isequal (ssinint(sym(0)), -sym(pi)/2)) 1129s ***** test 1129s A = ssinint (sym ([0 1])); 1129s B = [-pi/2 -0.62471325642771360426]; 1129s assert( all(all( abs(double(A)-B) < 1e-15 ))) 1129s 2 tests, 2 passed, 0 known failure, 0 skipped 1129s [inst/@sym/potential.m] 1129s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/potential.m 1129s ***** error potential (sym(1), 2, 3, 4) 1129s ***** shared x,y,z 1129s syms x y z 1129s ***** test 1129s % 1D 1129s f = 3*x^2; 1129s F = x^3; 1129s assert (isequal (potential(f), F)) 1129s assert (isequal (potential(f, x), F)) 1129s assert (isequal (potential(f, x, 0), F)) 1129s assert (isequal (potential(f, x, 2), F - 8)) 1129s ***** test 1129s F = x*exp(y) + (z-1)^2; 1129s f = gradient(F); 1129s G = potential(f, [x;y;z], [0;1;1]); 1129s assert (isAlways (G == F)) 1129s ***** test 1129s F = x*exp(y); 1129s f = gradient(F); 1129s G = potential(f); 1129s assert (isAlways (G == F)) 1130s ***** test 1130s % no potential exists 1130s syms x y 1130s a = [x; x*y^2]; 1130s assert (isnan (potential (a))) 1130s ***** shared 1130s ***** xtest 1130s % fails b/c of sympy #8458 (piecewise expr that should simplify) 1130s syms x 1130s f = cos(x); 1130s assert (isequal (potential(f, x), sin(x))) 1130s !!!!! known failure 1130s assert (isequal (potential (f, x), sin (x))) failed 1130s 6 tests, 5 passed, 1 known failure, 0 skipped 1130s [inst/@sym/cosh.m] 1130s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/cosh.m 1130s ***** error cosh (sym(1), 2) 1130s ***** assert (isequaln (cosh (sym(nan)), sym(nan))) 1130s ***** shared x, d 1130s d = 1; 1130s x = sym('1'); 1130s ***** test 1130s f1 = cosh(x); 1130s f2 = cosh(d); 1130s assert( abs(double(f1) - f2) < 1e-15 ) 1130s ***** test 1130s D = [d d; d d]; 1130s A = [x x; x x]; 1130s f1 = cosh(A); 1130s f2 = cosh(D); 1130s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1130s ***** test 1130s % round trip 1130s y = sym('y'); 1130s A = cosh (d); 1130s f = cosh (y); 1130s h = function_handle (f); 1130s B = h (d); 1130s assert (A, B, -eps) 1130s 5 tests, 5 passed, 0 known failure, 0 skipped 1130s [inst/@sym/ellipticCPi.m] 1130s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/ellipticCPi.m 1130s ***** error ellipticCPi (sym (1)) 1130s ***** error ellipticCPi (sym (1), 2, 3) 1130s ***** assert (double (ellipticCPi (0, sym (1)/2)), 1.854074677, 10e-10) 1131s ***** assert (double (ellipticCPi (sym (6)/10, sym(71)/10)), 1.29469534336658, -20*eps) 1131s 4 tests, 4 passed, 0 known failure, 0 skipped 1131s [inst/@sym/det.m] 1131s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/det.m 1131s ***** assert (isequal (det(sym([])), 1)) 1131s ***** test 1131s syms x y real 1131s assert (isequal (det([x 5; 7 y]), x*y-35)) 1131s ***** test 1131s syms x 1131s assert (isequal (det(x), x)) 1131s assert (isequal (det(sym(-6)), sym(-6))) 1131s 3 tests, 3 passed, 0 known failure, 0 skipped 1131s [inst/@sym/pochhammer.m] 1131s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/pochhammer.m 1131s ***** error pochhammer (sym(1)) 1131s ***** error pochhammer (sym(1), 2, 3) 1131s ***** assert (isequal (pochhammer (sym(3), 4), sym(360))) 1131s ***** assert (isequal (pochhammer (sym([2 3]), 3), sym([24 60]))) 1131s ***** test 1131s % round trip 1131s syms n z 1131s f = pochhammer (z, n); 1131s h = function_handle (f, 'vars', [z n]); 1131s A = h (1.1, 2.2); 1131s B = pochhammer (1.1, 2.2); 1131s assert (A, B) 1131s 5 tests, 5 passed, 0 known failure, 0 skipped 1131s [inst/@sym/isallconstant.m] 1131s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/isallconstant.m 1131s ***** assert (isallconstant([sym(1) 2 3])) 1131s ***** test 1131s syms x 1131s assert (~isallconstant([sym(1) x 3])) 1131s ***** test 1131s syms x 1131s assert (~isallconstant([sym(1) x; sym(2) 3])) 1131s 3 tests, 3 passed, 0 known failure, 0 skipped 1131s [inst/@sym/ztrans.m] 1131s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/ztrans.m 1131s ***** test 1131s % basic Z-transform table checks 1131s % X1, ..., X4 must have inner radius of convergence 1 1131s syms n z 1131s % trick to extract the closed form formula using the fact that inner roc = 1 1131s closed_form = @(X) subs (X, abs (1 / z), 1 / sym (2)); 1131s % check if ztrans(f) == X 1131s check_ztrans = @(f, X) logical (simplify (closed_form (ztrans (f)) == X)); 1131s f1 = sym (1); 1131s X1 = 1 / (1 - 1 / z); 1131s assert (check_ztrans (f1, X1)); 1131s f2 = n; 1131s X2 = (1 / z) / (1 - 1 / z)^2; 1131s assert (check_ztrans (f2, X2)); 1131s f3 = n^2; 1131s X3 = (1 / z) * (1 + 1 / z) / (1 - 1 / z)^3; 1131s assert (check_ztrans (f3, X3)); 1131s f4 = n^3; 1131s X4 = (1 / z) * (1 + 4 / z + 1 / z^2) / (1 - 1 / z)^4; 1131s assert (check_ztrans (f4, X4)); 1131s % basic matrix checks 1131s A1 = ztrans ([f1 f2; f3 f4]); 1131s B1 = [ztrans(f1) ztrans(f2); ztrans(f3) ztrans(f4)]; 1131s assert (isequal (A1, B1)); 1131s A2 = ztrans ([f1 f2; f3 f4], z); 1131s B2 = [ztrans(f1, z) ztrans(f2, z); ztrans(f3, z) ztrans(f4, z)]; 1131s assert (isequal (A2, B2)); 1131s A3 = ztrans ([f1 f2; f3 f4], n, z); 1131s B3 = [ztrans(f1, n, z) ztrans(f2, n, z); ztrans(f3, n, z) ztrans(f4, n, z)]; 1131s assert (isequal (A3, B3)); 1139s ***** test 1139s % additional Z-transform table checks 1139s % X1, ..., X4 must have inner radius of convergence a 1139s syms n nonnegative integer 1139s syms m positive integer 1139s syms a 1139s syms z 1139s % trick to extract the closed form formula using the fact that inner roc = a 1139s closed_form = @(X) subs (X, abs (a / z), 1 / sym (2)); 1139s % check if ztrans(f) == X 1139s check_ztrans = @(f, X) logical (simplify (closed_form (ztrans (f)) == X)); 1139s f1 = a^n; 1139s X1 = 1 / (1 - a / z); 1139s assert (check_ztrans (f1, X1)); 1139s f2 = n * a^n; 1139s X2 = (a / z) / (1 - a / z)^2; 1139s assert (check_ztrans (f2, X2)); 1139s f3 = n^2 * a^n; 1139s X3 = (a / z) * (1 + a / z) / (1 - a / z)^3; 1139s assert (check_ztrans (f3, X3)); 1139s f4 = nchoosek(n + m - 1, m - 1) * a^n; 1139s X4 = 1 / (1 - a / z)^m; 1139s assert (check_ztrans (f4, X4)); 1139s % additional matrix checks 1139s A1 = ztrans (f1, [n m; m n], [z a; a z]); 1139s B1 = [ztrans(f1, n, z) ztrans(f1, m, a); ztrans(f1, m, a) ztrans(f1, n, z)]; 1139s assert (isequal (A1, B1)); 1139s A2 = ztrans (f1, m, [z a; a z]); 1139s B2 = [ztrans(f1, m, z) ztrans(f1, m, a); ztrans(f1, m, a) ztrans(f1, m, z)]; 1139s assert (isequal (A2, B2)); 1139s A3 = ztrans (f1, [n m; m n], a); 1139s B3 = [ztrans(f1, n, a) ztrans(f1, m, a); ztrans(f1, m, a) ztrans(f1, n, a)]; 1139s assert (isequal (A3, B3)); 1144s ***** test 1144s % Kronecker delta checks 1144s syms n n0 nonnegative integer 1144s syms z 1144s assert (isequal (ztrans (kroneckerDelta (n)), 1)); 1144s assert (isequal (ztrans (kroneckerDelta (n - n0)), 1 / z^n0)); 1144s ***** test 1144s % basic var selection checks 1144s syms n m z w 1144s assert (isequal (ztrans (1 / factorial (n)), exp (1 / z))); 1144s assert (isequal (ztrans (1 / factorial (z)), exp (1 / w))); 1144s assert (isequal (ztrans (1 / factorial (m), w), exp (1 / w))); 1144s assert (isequal (ztrans (1 / factorial (m), m, w), exp (1 / w))); 1145s ***** test 1145s % additional var selection checks 1145s syms n m z 1145s f = kroneckerDelta(m) / factorial (n); 1145s assert (isequal (ztrans (f, z), exp (1 / z) * kroneckerDelta (m))); 1145s assert (isequal (ztrans (f, n, z), exp (1 / z) * kroneckerDelta (m))); 1145s assert (isequal (ztrans (f, m, z), 1 / factorial (n))); 1146s ***** test 1146s % if no t, use symvar: take x before a 1146s syms a x z 1146s assert (isequal (ztrans (a / factorial (x)), a * exp (1 / z))); 1146s ***** error ztrans (sym ('n')^sym ('n', 'nonnegative', 'integer')) 1146s 7 tests, 7 passed, 0 known failure, 0 skipped 1146s [inst/@sym/ccode.m] 1146s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/ccode.m 1146s ***** shared x,y,z 1146s syms x y z 1146s ***** test 1146s % basic test 1146s f = x*sin(y) + abs(z); 1146s source = ccode(f); 1146s expected = 'x*sin(y) + fabs(z)'; 1146s assert(strcmp(source, expected)) 1146s ***** test 1146s % output test 1146s f = x*sin(y) + abs(z); 1146s [C, H] = ccode(f, 'file', '', 'show_header', false); 1146s expected_c_code = sprintf('#include \"file.h\"\n#include \n\ndouble myfun(double x, double y, double z) {\n\n double myfun_result;\n myfun_result = x*sin(y) + fabs(z);\n return myfun_result;\n\n}\n'); 1146s expected_h_code = sprintf('\n#ifndef PROJECT__FILE__H\n#define PROJECT__FILE__H\n\ndouble myfun(double x, double y, double z);\n\n#endif\n\n'); 1146s assert(strcmp(C.name, 'file.c')) 1146s assert(strcmp(H.name, 'file.h')) 1146s hwin = strrep(expected_h_code, sprintf('\n'), sprintf('\r\n')); 1146s assert (strcmp (H.code, expected_h_code) || strcmp (H.code, hwin)) 1146s s1 = expected_c_code; 1146s s2 = strrep(expected_c_code, sprintf('\n'), sprintf('\r\n')); 1146s assert (strcmp (C.code, s1) || strcmp (C.code, s2)) 1147s 2 tests, 2 passed, 0 known failure, 0 skipped 1147s [inst/@sym/lt.m] 1147s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/lt.m 1147s ***** test 1147s % simple 1147s x = sym(1); y = sym(1); e = x < y; 1147s assert (~logical (e)) 1147s x = sym(1); y = sym(2); e = x < y; 1147s assert (logical (e)) 1147s ***** test 1147s % mix sym and double 1147s x = sym(1); y = 1; e = x < y; 1147s assert (~logical (e)) 1147s x = sym(1); y = 2; e = x < y; 1147s assert (logical (e)) 1147s x = 1; y = sym(1); e = x < y; 1147s assert (~logical (e)) 1147s x = 1; y = sym(2); e = x < y; 1147s assert (logical (e)) 1147s ***** test 1147s % Type of the output is sym or logical? 1147s % FIXME: in current version, they are sym 1147s x = sym(1); y = sym(1); e1 = x < y; 1147s x = sym(1); y = sym(2); e2 = x < y; 1147s %assert (islogical (e1)) 1147s %assert (islogical (e2)) 1147s assert (isa (e1, 'sym')) 1147s assert (isa (e2, 'sym')) 1147s ***** test 1147s % ineq w/ symbols 1147s syms x y 1147s e = x < y; 1147s assert (~islogical (e)) 1147s assert (isa (e, 'sym')) 1147s ***** test 1147s % array -- array 1147s syms x 1147s a = sym([1 3 3 2*x]); 1147s b = sym([2 x 3 10]); 1147s e = a < b; 1147s assert (isa (e, 'sym')) 1147s assert (logical (e(1))) 1147s assert (isa (e(2), 'sym')) 1147s assert (isequal (e(2), 3 < x)) 1147s assert (~logical (e(3))) 1147s assert (isa (e(4), 'sym')) 1147s assert (isequal (e(4), 2*x < 10)) 1147s ***** test 1147s % array -- scalar 1147s syms x oo 1147s a = sym([1 x oo]); 1147s b = sym(3); 1147s e = a < b; 1147s assert (isa (e, 'sym')) 1147s assert (logical (e(1))) 1147s assert (isa (e(2), 'sym')) 1147s assert (isequal (e(2), x < 3)) 1147s assert (~logical (e(3))) 1147s ***** test 1147s % scalar -- array 1147s syms x oo 1147s a = sym(1); 1147s b = sym([2 x -oo]); 1147s e = a < b; 1147s assert (isa (e, 'sym')) 1147s assert (logical (e(1))) 1147s assert (isa (e(2), 'sym')) 1147s assert (isequal (e(2), 1 < x)) 1147s assert (~logical (e(3))) 1147s ***** test 1147s % ineq w/ nan 1147s syms x 1147s snan = sym(nan); 1147s e = x < snan; 1147s assert (~logical (e)) 1147s e = snan < x; 1147s assert (~logical (e)) 1147s b = [sym(0) x]; 1147s e = b < snan; 1147s assert (isequal (e, [false false])) 1147s ***** test 1147s % oo 1147s syms oo x 1147s e = oo < x; 1147s assert (isa (e, 'sym')) 1147s assert (strcmp (strtrim (disp (e, 'flat')), 'oo < x')) 1147s ***** test 1147s % sympy true matrix 1147s a = sym([1 3 3]); 1147s b = sym([2 4 1]); 1147s e = a < b; 1147s %assert (~isa (e, 'sym')) 1147s %assert (islogical (e)) 1147s assert (isequal (e, [true true false])) 1148s ***** test 1148s % oo, finite real variables 1148s syms oo 1148s syms z real 1148s assumeAlso(z, 'finite') 1148s e = -oo < z; 1148s assert (isequal (e, sym(true))) 1148s e = z < oo; 1148s assert (isequal (e, sym(true))) 1148s ***** test 1148s % -oo, positive var (known failure w/ sympy 0.7.6.x) 1148s syms oo 1148s syms z positive 1148s e = -oo < z; 1148s assert (logical (e)) 1148s assert (isequal (e, sym(true))) 1148s ***** test 1148s % positive 1148s syms z positive 1148s e = -1 < z; 1148s assert (isequal (e, sym(true))) 1148s ***** test 1148s syms oo 1148s z = sym('z', 'negative'); 1148s e = z < oo; 1148s assert (isequal (e, sym(true))) 1148s 14 tests, 14 passed, 0 known failure, 0 skipped 1148s [inst/@sym/fresnels.m] 1148s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/fresnels.m 1148s ***** error fresnels (sym(1), 2) 1148s ***** test 1148s a = fresnels(sym(0)); 1148s assert (isequal (a, sym(0))) 1148s ***** test 1148s b = fresnels(sym('oo')); 1148s assert (isequal (b, sym(1)/2)) 1148s ***** test 1148s % values in a matrix 1148s syms x 1148s a = fresnels([sym(0) sym('oo') x 1]); 1148s b = [sym(0) sym(1)/2 fresnels(x) fresnels(sym(1))]; 1148s assert (isequal (a, b)) 1148s ***** test 1148s % round trip 1148s syms x 1148s f = fresnels (x); 1148s h = function_handle (f); 1148s A = h (1.1); 1148s B = fresnels (1.1); 1148s assert (A, B) 1148s 5 tests, 5 passed, 0 known failure, 0 skipped 1148s [inst/@sym/unique.m] 1148s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/unique.m 1148s ***** test 1148s A = sym([1 2 3 3 5 3 2 6 5]); 1148s B = sym([1 2 3 5 6]); 1148s assert (isequal (unique(A), B)) 1148s ***** test 1148s syms x y 1148s A = [1 2 3 3 4 5 5 6 7 7 x x y y]; 1148s B = [1 2 3 4 5 6 7 x y]; 1148s assert (isequal (unique(A), B)) 1148s ***** test 1148s syms x 1148s assert (isequal (unique(x), x)) 1148s 3 tests, 3 passed, 0 known failure, 0 skipped 1148s [inst/@sym/ellipke.m] 1148s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/ellipke.m 1148s ***** error ellipke (sym(1), 2) 1148s ***** test 1148s for i = 2:10 1148s [K E] = ellipke (sym (1)/i); 1148s [k e] = ellipke (1/i); 1148s assert (double ([K E]), [k e], 2*eps) 1148s end 1150s 2 tests, 2 passed, 0 known failure, 0 skipped 1150s [inst/@sym/intersect.m] 1150s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/intersect.m 1150s ***** test 1150s A = sym([1 2 3]); 1150s B = sym([1 2 4]); 1150s C = intersect(A, B); 1150s D = sym([1 2]); 1150s assert (isequal (C, D)) 1150s ***** test 1150s % one nonsym 1150s A = sym([1 2 3]); 1150s B = [1 2 4]; 1150s C = intersect(A, B); 1150s D = sym([1 2]); 1150s assert (isequal (C, D)) 1150s ***** test 1150s % empty 1150s A = sym([1 2 3]); 1150s C = intersect(A, A); 1150s assert (isequal (C, A)) 1150s ***** test 1150s % empty input 1150s A = sym([1 2]); 1150s C = intersect(A, []); 1150s assert (isequal (C, sym([]))) 1150s ***** test 1150s % scalar 1150s syms x 1150s assert (isequal (intersect([x 1], x), x)) 1150s assert (isequal (intersect(x, x), x)) 1150s ***** test 1150s A = interval(sym(1), 3); 1150s B = interval(sym(2), 5); 1150s C = intersect(A, B); 1150s assert( isequal( C, interval(sym(2), 3))) 1150s 6 tests, 6 passed, 0 known failure, 0 skipped 1150s [inst/@sym/permute.m] 1150s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/permute.m 1150s ***** error permute (sym(1)) 1150s ***** error permute (sym(1), 2, 3) 1150s ***** test 1150s D = round(10*rand(5,3)); 1150s A = sym(D); 1150s B = permute(A, [1 2]); 1150s assert (isequal(B, A)) 1150s B = permute(A, [2 1]); 1150s assert (isequal(B, A.')) 1150s ***** test 1150s syms x 1150s A = [1 x]; 1150s B = permute(A, [2 1]); 1150s assert (isequal(B, [1; x])) 1150s 4 tests, 4 passed, 0 known failure, 0 skipped 1150s [inst/@sym/ones.m] 1150s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/ones.m 1150s ***** test 1150s y = ones(sym(2)); 1150s x = [1 1; 1 1]; 1150s assert( isequal( y, sym(x))) 1151s ***** test 1151s y = ones(sym(2), 1); 1151s x = [1; 1]; 1151s assert( isequal( y, sym(x))) 1151s ***** test 1151s y = ones(sym(1), 2); 1151s x = [1 1]; 1151s assert( isequal( y, sym(x))) 1151s ***** test 1151s y = ones (sym([2 3])); 1151s x = sym (ones ([2 3])); 1151s assert (isequal (y, x)) 1151s ***** assert( isa( ones(sym(2), 'double'), 'double')) 1151s ***** assert( isa( ones(3, sym(3), 'single') , 'single')) 1151s ***** assert( isa( ones(3, sym(3)), 'sym')) 1151s ***** assert( isa( ones(3, sym(3), 'sym'), 'sym')) 1151s ***** xtest 1151s % Issue #13 1151s assert( isa( ones(3, 3, 'sym'), 'sym')) 1151s !!!!! known failure 1151s invalid data type specified 1151s 9 tests, 8 passed, 1 known failure, 0 skipped 1151s [inst/@sym/euler.m] 1151s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/euler.m 1151s ***** error euler (sym(1), 2, 3) 1151s ***** assert (isequal (euler (sym(0)), sym(1))) 1151s ***** test 1151s m = sym([0 1 2; 8 10 888889]); 1151s A = euler (m); 1151s B = sym([1 0 -1; 1385 -50521 0]); 1151s assert (isequal (A, B)) 1151s ***** test 1151s syms x 1151s assert (isequal (euler(6, x), x^6 - 3*x^5 + 5*x^3 - 3*x)) 1151s ***** assert (isnan (euler (3, sym(nan)))) 1151s ***** test 1151s syms m x 1151s em = euler (m, x); 1151s A = subs(em, [m x], [2 sym(pi)]); 1151s assert (isequal (A, sym(pi)^2 - sym(pi))) 1152s ***** test 1152s % vectorized 1152s syms x y 1152s A = euler([1; 2], [x; y]); 1152s B = [x - sym(1)/2; y^2 - y]; 1152s assert (isequal (A, B)) 1152s ***** test 1152s % round trip 1152s syms m z 1152s f = euler (m, z); 1152s h = function_handle (f, 'vars', [m z]); 1152s A = h (2, 2.2); 1152s B = euler (2, 2.2); 1152s assert (A, B) 1152s ***** test 1152s % compare vpa to maple: Digits:=34; evalf(euler(13, exp(1)+Pi*I/13)); 1152s A = vpa('1623.14184180556920918624604530515') + ... 1152s vpa('4270.98066989140286451493108809574')*1i; 1152s z = vpa (exp(1), 32) + vpa(pi, 32)/13*1i; 1152s B = euler (13, z); 1152s relerr = abs(double(abs((B - A)/A))); 1152s assert (relerr < 20*eps); 1153s ***** xtest 1153s % as above, high-prec result broken in 1.12: https://github.com/sympy/sympy/issues/24156 1153s A = vpa('1623.14184180556920918624604530515') + ... 1153s vpa('4270.98066989140286451493108809574')*1i; 1153s z = vpa (exp(1), 32) + vpa(pi, 32)/13*1i; 1153s B = euler (13, z); 1153s relerr = abs(double(abs((B - A)/A))); 1153s assert (relerr < 2e-31); 1155s !!!!! known failure 1155s assert (relerr < 2e-31) failed 1155s 10 tests, 9 passed, 1 known failure, 0 skipped 1155s [inst/@sym/lgamma.m] 1155s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/lgamma.m 1155s ***** test 1155s % tested by gammaln 1155s assert (isequal (lgamma (sym ('x')), gammaln (sym ('x')))) 1155s 1 test, 1 passed, 0 known failure, 0 skipped 1155s [inst/@sym/sec.m] 1155s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/sec.m 1155s ***** error sec (sym(1), 2) 1155s ***** assert (isequaln (sec (sym(nan)), sym(nan))) 1155s ***** shared x, d 1155s d = 1; 1155s x = sym('1'); 1155s ***** test 1155s f1 = sec(x); 1155s f2 = sec(d); 1155s assert( abs(double(f1) - f2) < 1e-15 ) 1155s ***** test 1155s D = [d d; d d]; 1155s A = [x x; x x]; 1155s f1 = sec(A); 1155s f2 = sec(D); 1155s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1155s ***** test 1155s % round trip 1155s y = sym('y'); 1155s A = sec (d); 1155s f = sec (y); 1155s h = function_handle (f); 1155s B = h (d); 1155s assert (A, B, -eps) 1155s 5 tests, 5 passed, 0 known failure, 0 skipped 1155s [inst/@sym/numden.m] 1155s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/numden.m 1155s ***** error numden (sym(1), 2) 1155s ***** test 1155s syms x 1155s [n, d] = numden (1/x); 1155s assert (isequal (n, sym(1)) && isequal (d, x)) 1155s ***** test 1155s syms x y 1155s n1 = [sym(1); x]; 1155s d1 = [x; y]; 1155s [n, d] = numden (n1 ./ d1); 1155s assert (isequal (n, n1) && isequal (d, d1)) 1155s ***** test 1155s [n, d] = numden (sym(2)); 1155s assert (isequal (n, 2)); 1155s assert (isequal (d, 1)); 1155s ***** test 1155s syms x y 1155s [n, d] = numden ((x + pi)/(y + 6)); 1155s assert (isequal (n, x + pi)); 1155s assert (isequal (d, y + 6)); 1155s ***** test 1155s syms x y 1155s [n, d] = numden ((x^2 + y^2)/(x*y)); 1155s assert (isequal (n, x^2 + y^2)); 1155s assert (isequal (d, x*y)); 1156s 6 tests, 6 passed, 0 known failure, 0 skipped 1156s [inst/@sym/sinh.m] 1156s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/sinh.m 1156s ***** error sinh (sym(1), 2) 1156s ***** assert (isequaln (sinh (sym(nan)), sym(nan))) 1156s ***** shared x, d 1156s d = 1; 1156s x = sym('1'); 1156s ***** test 1156s f1 = sinh(x); 1156s f2 = sinh(d); 1156s assert( abs(double(f1) - f2) < 1e-15 ) 1156s ***** test 1156s D = [d d; d d]; 1156s A = [x x; x x]; 1156s f1 = sinh(A); 1156s f2 = sinh(D); 1156s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1156s ***** test 1156s % round trip 1156s y = sym('y'); 1156s A = sinh (d); 1156s f = sinh (y); 1156s h = function_handle (f); 1156s B = h (d); 1156s assert (A, B, -eps) 1156s 5 tests, 5 passed, 0 known failure, 0 skipped 1156s [inst/@sym/triu.m] 1156s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/triu.m 1156s ***** test 1156s % scalar 1156s syms x 1156s assert (isequal (triu(x), x)) 1156s assert (isequal (triu(x,0), x)) 1156s assert (isequal (triu(x,1), 0)) 1156s assert (isequal (triu(x,-1), 0)) 1156s ***** test 1156s % with symbols 1156s syms x 1156s A = [x 2*x; 3*x 4*x]; 1156s assert (isequal (triu(A), [x 2*x; 0 4*x])) 1156s ***** test 1156s % diagonal shifts 1156s B = round(10*rand(3,4)); 1156s A = sym(B); 1156s assert (isequal (triu(A), triu(B))) 1156s assert (isequal (triu(A,0), triu(B,0))) 1156s assert (isequal (triu(A,1), triu(B,1))) 1156s assert (isequal (triu(A,-1), triu(B,-1))) 1157s ***** test 1157s % double array pass through 1157s B = round(10*rand(3,4)); 1157s assert (isequal (triu(B,sym(1)), triu(B,1))) 1157s assert (isa (triu(B,sym(1)), 'double')) 1157s ***** test 1157s % immutable test 1157s A = sym('ImmutableDenseMatrix([[Integer(1), Integer(2)], [Integer(3), Integer(4)]])'); 1157s assert (isequal (triu (A), sym ([1 2; 0 4]))) 1157s assert (isequal (tril (A), sym ([1 0; 3 4]))) 1157s :18: SyntaxWarning: invalid escape sequence '\(' 1157s 5 tests, 5 passed, 0 known failure, 0 skipped 1157s [inst/@sym/isrow.m] 1157s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/isrow.m 1157s ***** assert (isrow (sym ([1]))) 1157s ***** assert (isrow (sym ([1 2 3]))) 1157s ***** assert (~isrow (sym ([]))) 1157s ***** assert (~isrow (sym ([1 2 3]'))) 1157s ***** assert (~isrow (sym ([1 2; 3 4]))) 1157s 5 tests, 5 passed, 0 known failure, 0 skipped 1157s [inst/@sym/angle.m] 1157s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/angle.m 1157s ***** test 1157s Z = [sqrt(sym(3)) + 3*sym(i), 3 + sqrt(sym(3))*sym(i); 1 + sym(i), sym(i)]; 1157s Q = [sym(pi)/3 sym(pi)/6; sym(pi)/4 sym(pi)/2]; 1157s assert( isequal( angle(Z), Q)); 1157s ***** test 1157s % roundtrip 1157s syms x 1157s A = angle (2+2i); 1157s f = angle (x); 1157s h = function_handle (f); 1157s B = h (2+2i); 1157s assert (A, B, -eps) 1157s 2 tests, 2 passed, 0 known failure, 0 skipped 1157s [inst/@sym/argnames.m] 1157s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/argnames.m 1157s ***** test 1157s % basic tests 1157s syms x 1157s f = 2*x; 1157s assert (isempty (argnames(x))) 1157s assert (isempty (argnames(f))) 1157s 1 test, 1 passed, 0 known failure, 0 skipped 1157s [inst/@sym/reshape.m] 1157s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/reshape.m 1157s ***** test 1157s d = [2 4 6; 8 10 12]; 1157s a = sym(d); 1157s assert (isequal (reshape(a, [1 6]), reshape(d, [1 6]))) 1157s assert (isequal (reshape(a, 1, 6), reshape(d, 1, 6))) 1157s assert (isequal (reshape(a, 2, 3), reshape(d, 2, 3))) 1157s assert (isequal (reshape(a, 3, 2), reshape(d, 3, 2))) 1157s assert (isequal (reshape(a, 6, 1), reshape(d, 6, 1))) 1158s ***** shared x, a, d 1158s syms x 1158s a = [1 x^2 x^4; x x^3 x^5]; 1158s d = [0 2 4; 1 3 5]; 1158s 1158s ***** test 1158s b = reshape(a, [1 6]); 1158s assert (isequal (size(b), [1 6])) 1158s assert (isequal (b, x.^reshape(d,1,6))) 1158s 1158s ***** test 1158s b = reshape(a, [6 1]); 1158s assert (isequal (size(b), [6 1])) 1158s assert (isequal (b, x.^reshape(d,6,1))) 1158s b = reshape(b, size(a)); 1158s assert (isequal (size(b), [2 3])) 1158s assert (isequal (b, a)) 1158s 1158s ***** test 1158s b = a(:); 1158s assert( isequal (size(b), [6 1])) 1158s assert( isequal (b, x.^(d(:)))) 1158s 1158s ***** test 1158s % reshape scalar 1158s assert (logical( reshape(x, 1, 1) == x )) 1158s assert (logical( reshape(x, [1 1]) == x )) 1158s ***** shared a 1158s syms a 1158s ***** error reshape(a, 2, 1) 1158s ***** error reshape(a, 1, 2) 1158s ***** error reshape(a, 1, 1, 1) 1158s ***** error reshape(a, [1, 1, 1]) 1158s 9 tests, 9 passed, 0 known failure, 0 skipped 1158s [inst/@sym/gammaln.m] 1158s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/gammaln.m 1158s ***** assert (isequal (gammaln (sym (3)), log (sym (2)))) 1158s ***** assert (isequal (gammaln (sym (10)), log (gamma (sym (10))))) 1158s ***** test 1158s % compare to Maple: evalf(lnGAMMA(Pi)); 1158s maple = vpa ('0.827694592323437101529578558452359951153502', 40); 1158s us = vpa (gammaln (sym(pi)), 40); 1158s assert (abs(double(maple-us)) < 1e-39) 1158s ***** test 1158s % compare to Maple: evalf(lnGAMMA(3+2*I)); 1158s maple = vpa ('-0.0316390593739611898037677296008797172022603', 40) + ... 1158s vpa ('2.02219319750132712401643376238334982100512j', 40); 1158s us = vpa (gammaln (sym(3) + 2i), 40); 1158s assert (abs(double(maple-us)) < 1e-39) 1159s ***** test 1159s % compare to Maple: evalf(lnGAMMA(-1.5)); 1159s % notably, @double/gammaln has zero imag part 1159s maple = vpa ('0.8600470153764810145109326816703567873271571', 40) - ... 1159s vpa ('6.2831853071795864769252867665590057683943388j', 40); 1159s us = vpa (gammaln (-sym(3)/2), 40); 1159s assert (abs(double(maple-us)) < 1e-39) 1159s ***** assert (gammaln (pi), double (gammaln (sym (pi))), -3*eps) 1159s ***** assert (gammaln (100), double (gammaln (sym (100))), -3*eps) 1159s ***** assert (gammaln (1e-3), double (gammaln (1/sym (1e3))), -100*eps) 1159s ***** test 1159s % round trip 1159s syms x 1159s f = gammaln (x); 1159s h = function_handle (f); 1159s A = h (1.1); 1159s B = gammaln (1.1); 1159s assert (A, B) 1159s 9 tests, 9 passed, 0 known failure, 0 skipped 1159s [inst/@sym/find.m] 1159s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/find.m 1159s ***** error find (sym (1), 2, 3, 4) 1159s ***** error [x, y, z, w] = find (sym (1)) 1159s ***** test 1159s syms x y positive 1159s assert (isequal (find ([0 x 0 y]), [2 4])) 1159s assert (isequal (find ([0 x 0 y], 1), 2)) 1159s assert (isequal (find ([0 x 0 y], 1, 'first'), 2)) 1159s assert (isequal (find ([0 x 0 y], 1, 'last'), 4)) 1159s assert (isequal (find ([0 x 0 y], 2, 'last'), [2 4])) 1159s ***** test 1159s % its enough that it could be non-zero, does not have to be 1159s syms x y 1159s assert (isequal (find ([0 x+y]), 2)) 1159s ***** test 1159s % false should not be found 1159s syms x y 1159s assert (isequal (find ([x==x x==y]), 1)) 1159s assert (isequal (find ([x==y]), [])) 1159s ***** test 1159s % and/or should be treated as boolean 1159s syms x y 1159s assert (isequal (find ([or(x==y, x==2*y) x==y x==x]), 3)) 1159s ***** test 1159s % None 1159s none = pycall_sympy__ ('return None'); 1159s assert (isequal (find ([sym(0) none sym(1)]), 3)) 1159s syms x y 1159s assert (isequal (find ([x==y none x==x]), 3)) 1159s ***** test 1159s % two output 1159s syms x y 1159s A = [x 0 0; x+y 5 0]; 1159s [i, j] = find (A); 1159s assert (isequal (i, [1; 2; 2])) 1159s assert (isequal (j, [1; 1; 2])) 1160s ***** test 1160s % three output 1160s syms x y 1160s A = [x 0 0; x+y 5 0]; 1160s [i, j, v] = find (A); 1160s assert (isequal (i, [1; 2; 2])) 1160s assert (isequal (j, [1; 1; 2])) 1160s assert (isequal (v, [x; x+y; sym(5)])) 1160s 9 tests, 9 passed, 0 known failure, 0 skipped 1160s [inst/@sym/invhilb.m] 1160s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/invhilb.m 1160s ***** test 1160s A = invhilb(sym(3)); 1160s B = sym([9 -36 30;-36 192 -180;30 -180 180]); 1160s assert( isequal( A, B)) 1160s 1 test, 1 passed, 0 known failure, 0 skipped 1160s [inst/@sym/minus.m] 1160s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/minus.m 1160s ***** test 1160s % scalar 1160s syms x 1160s assert (isa (x-1, 'sym')) 1160s assert (isa (x-x, 'sym')) 1160s assert (isequal (x-x, sym(0))) 1160s ***** test 1160s % matrices 1160s D = [0 1; 2 3]; 1160s A = sym(D); 1160s DZ = D - D; 1160s assert (isequal ( A - D , DZ )) 1160s assert (isequal ( A - A , DZ )) 1160s assert (isequal ( D - A , DZ )) 1160s assert (isequal ( A - 2 , D - 2 )) 1160s assert (isequal ( 4 - A , 4 - D )) 1160s 2 tests, 2 passed, 0 known failure, 0 skipped 1160s [inst/@sym/acoth.m] 1160s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/acoth.m 1160s ***** error acoth (sym(1), 2) 1160s ***** assert (isequaln (acoth (sym(nan)), sym(nan))) 1160s ***** shared x, d 1160s d = 2; 1160s x = sym('2'); 1160s ***** test 1160s f1 = acoth(x); 1160s f2 = acoth(d); 1160s assert( abs(double(f1) - f2) < 1e-15 ) 1160s ***** test 1160s D = [d d; d d]; 1160s A = [x x; x x]; 1160s f1 = acoth(A); 1160s f2 = acoth(D); 1160s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1161s ***** test 1161s % round trip 1161s y = sym('y'); 1161s A = acoth (d); 1161s f = acoth (y); 1161s h = function_handle (f); 1161s B = h (d); 1161s assert (A, B, -eps) 1161s 5 tests, 5 passed, 0 known failure, 0 skipped 1161s [inst/@sym/jacobian.m] 1161s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/jacobian.m 1161s ***** error jacobian (sym(1), 2, 3) 1161s ***** error jacobian ([sym(1) 2; sym(3) 4]) 1161s ***** shared x,y,z 1161s syms x y z 1161s ***** test 1161s % 1D 1161s f = x^2; 1161s assert (isequal (jacobian(f), diff(f,x))) 1161s assert (isequal (jacobian(f,{x}), diff(f,x))) 1161s assert (isequal (jacobian(f,x), diff(f,x))) 1161s ***** test 1161s % const 1161s f = sym(1); 1161s g = sym(0); 1161s assert (isequal (jacobian(f), g)) 1161s assert (isequal (jacobian(f,x), g)) 1161s ***** test 1161s % double const 1161s f = 1; 1161s g = sym(0); 1161s assert (isequal (jacobian(f,x), g)) 1161s ***** test 1161s % diag 1161s f = [x y^2]; 1161s g = [sym(1) 0; 0 2*y]; 1161s assert (isequal (jacobian(f), g)) 1161s assert (isequal (jacobian(f, [x y]), g)) 1161s assert (isequal (jacobian(f, {x y}), g)) 1161s ***** test 1161s % anti-diag 1161s f = [y^2 x]; 1161s g = [0 2*y; sym(1) 0]; 1161s assert (isequal (jacobian(f), g)) 1161s assert (isequal (jacobian(f, {x y}), g)) 1161s ***** test 1161s % shape 1161s f = [x y^2]; 1161s assert (isequal (size(jacobian(f, {x y z})), [2 3])) 1161s assert (isequal (size(jacobian(f, [x y z])), [2 3])) 1161s assert (isequal (size(jacobian(f, [x; y; z])), [2 3])) 1161s assert (isequal (size(jacobian(f.', {x y z})), [2 3])) 1161s ***** test 1161s % scalar f 1161s f = x*y; 1161s assert (isequal (size(jacobian(f, {x y})), [1 2])) 1161s g = gradient(f, {x y}); 1161s assert (isequal (jacobian(f, {x y}), g.')) 1161s ***** test 1161s % vect f wrt 1 var 1161s f = [x x^2]; 1161s assert (isequal (size(jacobian(f, x)), [2 1])) 1161s f = f.'; % same shape output 1161s assert (isequal (size(jacobian(f, x)), [2 1])) 1161s 10 tests, 10 passed, 0 known failure, 0 skipped 1161s [inst/@sym/diff.m] 1161s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/diff.m 1161s ***** shared x,y,z 1161s syms x y z 1161s ***** test 1161s % basic 1161s assert(logical( diff(sin(x)) - cos(x) == 0 )) 1161s assert(logical( diff(sin(x),x) - cos(x) == 0 )) 1161s assert(logical( diff(sin(x),x,x) + sin(x) == 0 )) 1162s ***** test 1162s % these fail when doubles are not converted to sym 1162s assert(logical( diff(sin(x),x,2) + sin(x) == 0 )) 1162s assert(logical( diff(sym(1),x) == 0 )) 1162s assert(logical( diff(1,x) == 0 )) 1162s assert(logical( diff(pi,x) == 0 )) 1162s ***** test 1162s % symbolic diff of const (w/o variable) fails in sympy, but we work around 1162s assert (isequal (diff(sym(1)), sym(0))) 1162s ***** test 1162s % nth symbolic diff of const 1162s assert (isequal (diff(sym(1), 2), sym(0))) 1162s assert (isequal (diff(sym(1), sym(1)), sym(0))) 1162s ***** test 1162s % octave's vector difference still works 1162s assert(isempty(diff(1))) 1162s assert((diff([2 6]) == 4)) 1162s ***** test 1162s % other forms 1162s f = sin(x); 1162s g = diff(f,x,2); 1162s assert (isequal (diff(f,2), g)) 1162s assert (isequal (diff(f,sym(2)), g)) 1162s g = diff(f,x); 1162s assert (isequal (diff(f), g)) 1162s assert (isequal (diff(f,1), g)) 1162s ***** test 1162s % old SMT supported (still does?) the 'n' before the 'x' 1162s % we might remove this someday, no longer seems documented in SMT 1162s f = sin(x); 1162s g = diff(f,x,2); 1162s assert (isequal (diff(f,2,x), g)) 1162s assert (isequal (diff(f,sym(2),x), g)) 1162s g = diff(f,x); 1162s assert (isequal (diff(f,1,x), g)) 1162s ***** test 1162s % matrix 1162s A = [x sin(x); x*y 10]; 1162s B = [1 cos(x); y 0]; 1162s assert(isequal(diff(A,x),B)) 1162s ***** test 1162s % bug: use symvar 1162s a = x*y; 1162s b = diff(a); 1162s assert (isequal (b, y)) 1162s ***** test 1162s % bug: symvar should be used on the matrix, not comp-by-comp 1162s a = [x y x*x]; 1162s b = diff(a); 1162s assert (~isequal (b(2), 1)) 1162s assert (isequal (b, [1 0 2*x])) 1162s b = diff(a,1); 1162s assert (~isequal (b(2), 1)) 1162s assert (isequal (b, [1 0 2*x])) 1163s 10 tests, 10 passed, 0 known failure, 0 skipped 1163s [inst/@sym/isinf.m] 1163s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/isinf.m 1163s ***** shared x,zoo,oo,snan 1163s oo = sym(inf); 1163s zoo = sym('zoo'); 1163s x = sym('x'); 1163s snan = sym(nan); 1163s ***** test 1163s % various ops that give inf and nan 1163s assert (isinf(oo)) 1163s assert (isinf(zoo)) 1163s assert (isinf(oo+oo)) 1163s assert (~isinf(oo+zoo)) 1163s assert (~isinf(0*oo)) 1163s assert (~isinf(0*zoo)) 1163s assert (~isinf(snan)) 1163s assert (~isinf(oo-oo)) 1163s assert (~isinf(oo-zoo)) 1163s ***** test 1163s % arrays 1163s assert (isequal( isinf([oo zoo]), [1 1] )) 1163s assert (isequal( isinf([oo 1]), [1 0] )) 1163s assert (isequal( isinf([10 zoo]), [0 1] )) 1163s assert (isequal( isinf([x oo x]), [0 1 0] )) 1163s ***** test 1163s % Must not contain string 'symbol'; these all should make an 1163s % actual infinity. Actually a ctor test, not isinf. 1163s % IIRC, SMT in Matlab 2013b fails. 1163s oo = sym(inf); 1163s assert (isempty (strfind (sympy (oo), 'Symbol'))) 1163s oo = sym(-inf); 1163s assert (isempty (strfind (sympy (oo), 'Symbol'))) 1163s oo = sym('inf'); 1163s assert (isempty (strfind (sympy (oo), 'Symbol'))) 1163s oo = sym('-inf'); 1163s assert (isempty (strfind (sympy (oo), 'Symbol'))) 1163s oo = sym('Inf'); 1163s assert (isempty (strfind (sympy (oo), 'Symbol'))) 1163s ***** test 1163s % ops with infinity shouldn't collapse 1163s syms x oo zoo 1163s y = x + oo; 1163s assert (~isempty (strfind (lower (sympy (y)), 'add') )) 1163s y = x - oo; 1163s assert (~isempty (strfind (lower (sympy (y)), 'add') )) 1163s y = x - zoo; 1163s assert (~isempty (strfind (lower (sympy (y)), 'add') )) 1163s y = x*oo; 1163s assert (~isempty (strfind (lower (sympy (y)), 'mul') )) 1163s ***** test 1163s % ops with infinity are not necessarily infinite 1163s syms x oo zoo 1163s y = x + oo; 1163s assert(~isinf(y)) % SMT 2014a says "true", I disagree 1163s y = x - zoo; 1163s assert(~isinf(y)) 1163s y = x*oo; 1163s assert(~isinf(y)) 1163s 5 tests, 5 passed, 0 known failure, 0 skipped 1163s [inst/@sym/sympy.m] 1163s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/sympy.m 1163s ***** assert (strcmp (sympy (sym(pi)), 'pi')) 1163s ***** assert (strcmp (sympy (sym(1)), 'Integer(1)')) 1163s ***** assert (strcmp (sympy (sym(2)/3), 'Rational(2, 3)')) 1163s ***** assert (strcmp (sympy (sym('x')), 'Symbol(''x'')')) 1163s ***** test 1163s x = sym('x'); 1163s assert (isequal (sym(sympy(x)), x)) 1163s :18: SyntaxWarning: invalid escape sequence '\(' 1163s 5 tests, 5 passed, 0 known failure, 0 skipped 1163s [inst/@sym/ismember.m] 1163s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/ismember.m 1163s ***** assert (ismember (2, interval(sym(0),2))) 1163s ***** assert (~ismember (3, interval(sym(0),2))) 1163s ***** test 1163s % something in a matrix 1163s syms x 1163s A = [1 x; sym(pi) 4]; 1163s assert (ismember (sym(pi), A)) 1163s assert (ismember (x, A)) 1163s assert (~ismember (2, A)) 1163s ***** test 1163s % set 1163s syms x 1163s S = finiteset(2, sym(pi), x); 1163s assert (ismember (x, S)) 1163s ***** test 1163s % set with positive symbol 1163s syms p positive 1163s S = finiteset(2, sym(pi), p); 1163s assert (~ismember (-1, S)) 1163s 5 tests, 5 passed, 0 known failure, 0 skipped 1163s [inst/@sym/cos.m] 1163s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/cos.m 1163s ***** error cos (sym(1), 2) 1163s ***** assert (isequaln (cos (sym(nan)), sym(nan))) 1163s ***** shared x, d 1163s d = 1; 1163s x = sym('1'); 1163s ***** test 1163s f1 = cos(x); 1163s f2 = cos(d); 1163s assert( abs(double(f1) - f2) < 1e-15 ) 1163s ***** test 1163s D = [d d; d d]; 1163s A = [x x; x x]; 1163s f1 = cos(A); 1163s f2 = cos(D); 1163s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1164s ***** test 1164s % round trip 1164s y = sym('y'); 1164s A = cos (d); 1164s f = cos (y); 1164s h = function_handle (f); 1164s B = h (d); 1164s assert (A, B, -eps) 1164s 5 tests, 5 passed, 0 known failure, 0 skipped 1164s [inst/@sym/assume.m] 1164s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/assume.m 1164s ***** test 1164s syms x 1164s x = assume(x, 'positive'); 1164s a = assumptions(x); 1164s assert(strcmp(a, 'x: positive')) 1164s x = assume(x, 'even'); 1164s a = assumptions(x); 1164s assert(strcmp(a, 'x: even')) 1164s x = assume(x, 'odd'); 1164s a = assumptions(x); 1164s assert(strcmp(a, 'x: odd')) 1164s ***** error 1164s syms x 1164s x = assume (x, x); 1164s ***** error 1164s syms x 1164s x = assume (x/pi, 'integer') 1164s ***** test 1164s % multiple assumptions 1164s syms x 1164s x = assume(x, 'positive', 'integer'); 1164s [tilde, a] = assumptions(x, 'dict'); 1164s assert(a{1}.integer) 1164s assert(a{1}.positive) 1164s ***** test 1164s % multiple assumptions 1164s syms x 1164s x = assume(x, 'even', 'positive'); 1164s [tilde, a] = assumptions(x, 'dict'); 1164s assert(a{1}.even) 1164s assert(a{1}.positive) 1164s ***** test 1164s % has output so avoids workspace 1164s syms x positive 1164s x2 = x; 1164s f = sin(x); 1164s x = assume(x, 'negative'); 1164s a = assumptions(x); 1164s assert(strcmp(a, 'x: negative')) 1164s a = assumptions(x2); 1164s assert(strcmp(a, 'x: positive')) 1164s a = assumptions(f); 1164s assert(strcmp(a, 'x: positive')) 1164s ***** test 1164s % clear: has output so avoids workspace 1164s syms x positive 1164s f = 2*x; 1164s x2 = assume(x, 'clear'); 1164s assert (~ isempty (assumptions (f))); 1164s ***** test 1164s % has no output so does workspace 1164s syms x positive 1164s x2 = x; 1164s f = sin(x); 1164s assume(x, 'negative'); 1164s a = assumptions(x); 1164s assert(strcmp(a, 'x: negative')) 1164s a = assumptions(x2); 1164s assert(strcmp(a, 'x: negative')) 1164s a = assumptions(f); 1164s assert(strcmp(a, 'x: negative')) 1164s ***** test 1164s % clear: has not output so does workspace 1164s syms x positive 1164s f = 2*x; 1164s assume(x, 'clear'); 1164s assert (isempty (assumptions (f))); 1164s assert (isempty (assumptions ())); 1164s ***** test 1164s syms x positive 1164s assume (x, 'clear') 1164s assert (isempty (assumptions ())) 1164s ***** error 1164s syms x 1164s x2 = assume (x, 'clear', 'real'); 1164s ***** error 1164s syms a 1164s assume (a > 0) 1164s ***** test 1164s syms x y 1164s assume ([x y], 'real') 1164s assert (strcmp (assumptions (x), 'x: real')) 1164s assert (strcmp (assumptions (y), 'y: real')) 1165s ***** test 1165s syms x y 1165s assume ([x y], 'positive', 'even') 1165s assert (strcmp (assumptions (x), 'x: positive, even') || strcmp (assumptions (x), 'x: even, positive')) 1165s assert (strcmp (assumptions (y), 'y: positive, even') || strcmp (assumptions (y), 'y: even, positive')) 1165s ***** test 1165s % with output, original x and y are unchanged 1165s syms x y 1165s [p, q] = assume ([x y], 'real'); 1165s assert (isempty (assumptions (x))) 1165s assert (isempty (assumptions (y))) 1165s assert (strcmp (assumptions (p), 'x: real')) 1165s assert (strcmp (assumptions (q), 'y: real')) 1165s ***** test 1165s % matrix input 1165s syms a b c d 1165s assume ([a b; c d], 'real') 1165s assert (strcmp (assumptions (a), 'a: real')) 1165s assert (strcmp (assumptions (b), 'b: real')) 1165s assert (strcmp (assumptions (c), 'c: real')) 1165s assert (strcmp (assumptions (d), 'd: real')) 1165s 16 tests, 16 passed, 0 known failure, 0 skipped 1165s [inst/@sym/isnan.m] 1165s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/isnan.m 1165s ***** shared x,zoo,oo,snan 1165s oo = sym(inf); 1165s zoo = sym('zoo'); 1165s x = sym('x'); 1165s snan = sym(nan); 1165s ***** test 1165s % various ops that give nan 1165s assert (isnan(0*oo)) 1165s assert (isnan(0*zoo)) 1165s assert (isnan(snan)) 1165s assert (isnan(snan-snan)) 1165s assert (isnan(oo+snan)) 1165s assert (isnan(oo-oo)) 1165s assert (isnan(oo-zoo)) 1165s assert (isnan(oo+zoo)) 1165s assert (~isnan(oo)) 1165s assert (~isnan(zoo)) 1165s assert (~isnan(oo+oo)) 1165s ***** test 1165s % more ops give nan 1165s assert(isnan(x+snan)) 1165s assert(isnan(x*snan)) 1165s assert(isnan(0*snan)) 1165s assert(isnan(x+nan)) 1165s assert(isnan(x*nan)) 1165s assert(isnan(sym(0)*nan)) 1165s ***** test 1165s % array 1165s assert (isequal( isnan([oo zoo]), [0 0] )) 1165s assert (isequal( isnan([10 snan]), [0 1] )) 1165s assert (isequal( isnan([snan snan]), [1 1] )) 1165s assert (isequal( isnan([snan x]), [1 0] )) 1166s ***** test 1166s % sub in to algebraic expression gives nan 1166s y = x - oo; 1166s y = subs(y, x, oo); 1166s assert(isnan(y)) 1166s ***** test 1166s % Must not contain string 'symbol'; these all should make an 1166s % actual nan. Actually a ctor test, not isnan. 1166s y = sym(nan); 1166s assert (isempty (strfind (sympy (y), 'Symbol'))) 1166s y = sym('nan'); 1166s assert (isempty (strfind (sympy (y), 'Symbol'))) 1166s y = sym('NaN'); 1166s assert (isempty( strfind (sympy (y), 'Symbol'))) 1166s 5 tests, 5 passed, 0 known failure, 0 skipped 1166s [inst/@sym/pretty.m] 1166s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/pretty.m 1166s ***** test 1166s % simple 1166s syms x 1166s s1 = pretty(sin(x)); 1166s s2 = sprintf(' sin(x)\n'); 1166s assert (strcmp (s1, s2)) 1166s ***** test 1166s % force ascii 1166s syms x 1166s s1 = pretty(sin(x/2), 'ascii'); 1166s s2 = sprintf(' /x\\\n sin|-|\n \\2/\n'); 1166s swin = strrep(s1, sprintf('\r\n'), sprintf('\n')); 1166s assert (strcmp (s1, s2) || strcmp (swin, s2)) 1166s ***** test 1166s % force unicode 1166s syms x 1166s s1 = pretty(sin(x/2), 'unicode'); 1166s s2 = sprintf(' ⎛x⎞\n sin⎜─⎟\n ⎝2⎠\n'); 1166s swin = strrep(s1, sprintf('\r\n'), sprintf('\n')); 1166s assert (strcmp (s1, s2) || strcmp (swin, s2)) 1166s 3 tests, 3 passed, 0 known failure, 0 skipped 1166s [inst/@sym/coeffs.m] 1166s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/coeffs.m 1166s ***** error coeffs (sym(1), 2, 3, 4) 1166s ***** error coeffs (sym(1), 2, 'al') 1166s ***** error coeffs (sym(1), 'al') 1166s ***** test 1166s % simple 1166s syms x 1166s [c, t] = coeffs(6*x*x + 27); 1166s assert (isequal (c, [6 27])) 1166s assert (isequal (t, [x*x 1])) 1166s ***** test 1166s % specify a variable 1166s syms x 1166s [c, t] = coeffs(6*x*x + 27, x); 1166s assert (isequal (c, [6 27])) 1166s assert (isequal (t, [x*x 1])) 1166s ***** test 1166s % specify another variable 1166s syms x y 1166s [c, t] = coeffs(6*x + 27, y); 1166s assert (isequal (c, 6*x + 27)) 1166s assert (isequal (t, 1)) 1166s ***** test 1166s % weird SMT order 1166s syms x 1166s a1 = [27 6]; 1166s a2 = [6 27]; 1166s c = coeffs(6*x*x + 27); 1166s assert (isequal (c, a1)) 1166s coeffs(6*x*x + 27); 1166s assert (isequal (ans, a1)) 1166s [c, t] = coeffs(6*x*x + 27); 1166s assert (isequal (c, a2)) 1166s ***** test 1166s % no weird order with "all" 1166s syms x 1166s c = coeffs(6*x*x + 27, 'all'); 1166s assert (isequal (c, [6 0 27])) 1167s ***** test 1167s % "all" 1167s syms x 1167s [c, t] = coeffs(6*x*x + 27, 'all'); 1167s assert (isequal (c, [6 0 27])) 1167s assert (isequal (t, [x^2 x 1])) 1167s ***** test 1167s % "All" 1167s syms x 1167s [c, t] = coeffs(6*x, 'All'); 1167s assert (isequal (c, [6 0])) 1167s assert (isequal (t, [x 1])) 1167s ***** test 1167s % multivariable array 1167s syms x y 1167s [c, t] = coeffs(6*x*x + 27*y*x + 36, [x y]); 1167s a = [6 27 36]; 1167s s = [x^2 x*y 1]; 1167s assert (isequal (c, a)) 1167s assert (isequal (t, s)) 1167s % with list 1167s [c, t] = coeffs(6*x*x + 27*y*x + 36, {x y}); 1167s assert (isequal (c, a)) 1167s assert (isequal (t, s)) 1167s ***** test 1167s % other symbols treated as part of coeffs 1167s syms x y 1167s [c, t] = coeffs(6*x*x + 27*y*x + 36, x); 1167s a = [6 27*y 36]; 1167s s = [x^2 x 1]; 1167s assert (isequal (c, a)) 1167s assert (isequal (t, s)) 1167s ***** error 1167s % TODO: multivariate all not working (https://github.com/cbm755/octsympy/issues/720) 1167s syms x y 1167s [c, t] = coeffs(6*x^2 + 7*y + 19, [x y], 'all'); 1167s ***** test 1167s % empty same as not specifying; maybe not SMT compatible: 1167s % https://github.com/cbm755/octsympy/pull/708#discussion_r94292831 1167s syms x y 1167s [c, t] = coeffs(6*x*x + 27*y*x + 36, {}); 1167s a = [6 27 36]; 1167s assert (isequal (c, a)) 1167s [c, t] = coeffs(6*x*x + 27*y*x + 36); 1167s assert (isequal (c, a)) 1168s ***** test 1168s % no input defaults to all symbols (not symvar to get x) 1168s syms x y 1168s [c, t] = coeffs(6*x*x + 27*y*x + 36); 1168s assert (isequal (c, [6 27 36])) 1168s ***** test 1168s % non sym input 1168s syms x 1168s assert (isequal (coeffs(6, x), sym(6))) 1168s ***** test 1168s % constant input without x 1168s assert (isequal (coeffs(sym(6)), sym(6))) 1168s ***** test 1168s % constant input without x 1168s assert (isequal (coeffs (sym(6), {}), sym(6))) 1168s % irrational coefficients 1168s syms x 1168s f = x^2 + sqrt(sym(2))*x; 1168s [c1, t1] = coeffs (f); 1168s [c2, t2] = coeffs (f, x); 1168s assert (isequal (c1, c2)) 1168s assert (isequal (t1, t2)) 1168s 18 tests, 18 passed, 0 known failure, 0 skipped 1168s [inst/@sym/logspace.m] 1168s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/logspace.m 1168s ***** test 1168s % default argument for N 1168s A = logspace(0, 2); 1168s assert (length (A) == 50); 1168s ***** test 1168s % special case: pi as end pt 1168s A = logspace(-sym(3), sym(pi), 3); 1168s assert (isequal (A(end), sym(pi))) 1168s ***** test 1168s A = logspace(-sym(4), 0, 3); 1168s B = [sym(1)/10000 sym(1)/100 sym(1)]; 1168s assert (isequal (A, B)) 1169s ***** test 1169s % vpa support, might need recent sympy for sympy issue #10063 1169s n = 32; 1169s A = logspace(-vpa(1,n), 0, 3); 1169s B = [10^(-vpa(1,n)) 10^(-vpa(sym(1)/2,n)) vpa(1,n)]; 1169s assert (isequal (A, B)) 1169s assert (max(abs(double(A) - logspace(-1, 0, 3))) < 1e-15) 1169s 4 tests, 4 passed, 0 known failure, 0 skipped 1169s [inst/@sym/resize.m] 1169s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/resize.m 1169s ***** test 1169s B = sym([1 0 0; 0 0 0]); 1169s assert (isequal (resize (sym(1), 2, 3), B)) 1169s assert (isequal (resize (sym(1), [2 3]), B)) 1169s ***** test 1169s B = sym([1 0; 0 0]); 1169s assert (isequal (resize (sym(1), 2), B)) 1169s ***** test 1169s A = sym([pi 2; 3 4]); 1169s assert (isequal (resize (A, 1), sym(pi))) 1169s ***** assert (isequal (size (resize (sym(1), 0, 0)), [0 0])) 1169s ***** assert (isequal (size (resize (sym(1), 6, 0)), [6 0])) 1169s ***** assert (isequal (size (resize (sym(1), 0, 3)), [0 3])) 1169s ***** error resize (sym(1)) 1169s ***** error resize (sym(1), 2, 3, 4) 1169s ***** error resize (sym(1), [2 3 4]) 1170s 9 tests, 9 passed, 0 known failure, 0 skipped 1170s [inst/@sym/dirac.m] 1170s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/dirac.m 1170s ***** error dirac (sym(1), 2) 1170s ***** assert (isequaln (dirac (sym(nan)), sym(nan))) 1170s ***** shared x, d 1170s d = 1; 1170s x = sym('1'); 1170s ***** test 1170s f1 = dirac(x); 1170s f2 = dirac(d); 1170s assert( abs(double(f1) - f2) < 1e-15 ) 1170s ***** test 1170s D = [d d; d d]; 1170s A = [x x; x x]; 1170s f1 = dirac(A); 1170s f2 = dirac(D); 1170s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1170s ***** test 1170s % round trip 1170s y = sym('y'); 1170s A = dirac (d); 1170s f = dirac (y); 1170s h = function_handle (f); 1170s B = h (d); 1170s assert (A, B, -eps) 1170s 5 tests, 5 passed, 0 known failure, 0 skipped 1170s [inst/@sym/dsolve.m] 1170s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/dsolve.m 1170s ***** error dsolve (1, sym('x')) 1170s ***** test 1170s syms y(x) 1170s de = diff(y, 2) - 4*y == 0; 1170s f = dsolve(de); 1170s syms C1 C2 1170s g1 = C1*exp(-2*x) + C2*exp(2*x); 1170s g2 = C2*exp(-2*x) + C1*exp(2*x); 1170s assert (isequal (f, g1) || isequal (f, g2)) 1170s ***** test 1170s % Not enough initial conditions 1170s syms y(x) C1 1170s de = diff(y, 2) + 4*y == 0; 1170s g = 3*cos(2*x) + C1*sin(2*x); 1170s try 1170s f = dsolve(de, y(0) == 3); 1170s waserr = false; 1170s catch 1170s waserr = true; 1170s expectederr = regexp (lasterr (), 'Perhaps.*under-specified'); 1170s f = 42; 1170s end 1170s assert ((waserr && expectederr) || isequal (f, g)) 1171s ***** test 1171s % Solution in implicit form 1171s syms y(x) C1 1171s de = (2*x*y(x) - exp(-2*y(x)))*diff(y(x), x) + y(x) == 0; 1171s sol = dsolve (de); 1171s eqn = x*exp(2*y(x)) - log(y(x)) == C1; 1171s % could differ by signs 1171s sol = lhs (sol) - rhs (sol); 1171s eqn = lhs (eqn) - rhs (eqn); 1171s sol2 = subs (sol, C1, -C1); 1171s assert (isequal (sol, eqn) || isequal (sol2, eqn)) 1173s ***** test 1173s % Compute solution and classification 1173s syms y(x) C1 1173s de = (2*x*y(x) - exp(-2*y(x)))*diff(y(x), x) + y(x) == 0; 1173s [sol, classy] = dsolve (de); 1173s assert (any (strcmp (classy, '1st_exact'))) 1176s ***** test 1176s % initial conditions (first order ode) 1176s syms y(x) 1176s de = diff(y, x) + 4*y == 0; 1176s f = dsolve(de, y(0) == 3); 1176s g = 3*exp(-4*x); 1176s assert (isequal (f, g)) 1177s ***** test 1177s % initial conditions (second order ode) 1177s syms y(x) 1177s de = diff(y, 2) + 4*y == 0; 1177s f = dsolve(de, y(0) == 3, subs(diff(y,x),x,0)==0); 1177s g = 3*cos(2*x); 1177s assert (isequal (f, g)) 1177s ***** test 1177s % Dirichlet boundary conditions (second order ode) 1177s syms y(x) 1177s de = diff(y, 2) + 4*y == 0; 1177s f = dsolve(de, y(0) == 2, y(1) == 0); 1177s g = -2*sin(2*x)/tan(sym('2'))+2*cos(2*x); 1177s assert (isequal (simplify (f - g), 0)) 1177s ***** test 1177s % Neumann boundary conditions (second order ode) 1177s syms y(x) 1177s de = diff(y, 2) + 4*y == 0; 1177s f = dsolve(de, subs(diff(y,x),x,0)==1, subs(diff(y,x),x,1)==0); 1177s g = sin(2*x)/2+cos(2*x)/(2*tan(sym('2'))); 1177s assert (isequal (simplify (f - g), 0)) 1178s ***** test 1178s % Dirichlet-Neumann boundary conditions (second order ode) 1178s syms y(x) 1178s de = diff(y, 2) + 4*y == 0; 1178s f = dsolve(de, y(0) == 3, subs(diff(y,x),x,1)==0); 1178s g = 3*sin(2*x)*tan(sym('2'))+3*cos(2*x); 1178s assert (isequal (simplify (f - g), 0)) 1178s ***** test 1178s % System of ODEs gives struct, Issue #1003. 1178s syms x(t) y(t) 1178s ode1 = diff(x(t),t) == 2*y(t); 1178s ode2 = diff(y(t),t) == 2*x(t); 1178s soln = dsolve([ode1, ode2]); 1178s assert (isstruct (soln)) 1178s assert (numfields (soln) == 2) 1178s assert (isequal (sort (fieldnames (soln)), {'x'; 'y'})) 1179s ***** test 1179s % System of ODEs 1179s syms x(t) y(t) C1 C2 1179s ode1 = diff(x(t),t) == 2*y(t); 1179s ode2 = diff(y(t),t) == 2*x(t); 1179s soln = dsolve([ode1, ode2]); 1179s soln = [soln.x, soln.y]; 1179s g1 = [C1*exp(-2*t) + C2*exp(2*t), -C1*exp(-2*t) + C2*exp(2*t)]; 1179s g2 = [C1*exp(2*t) + C2*exp(-2*t), C1*exp(2*t) - C2*exp(-2*t)]; 1179s g3 = [-C1*exp(-2*t) + C2*exp(2*t), C1*exp(-2*t) + C2*exp(2*t)]; 1179s g4 = [C1*exp(2*t) - C2*exp(-2*t), C1*exp(2*t) + C2*exp(-2*t)]; 1179s % old SymPy <= 1.5.1 had some extra twos 1179s g5 = [2*C1*exp(-2*t) + 2*C2*exp(2*t), -2*C1*exp(-2*t) + 2*C2*exp(2*t)]; 1179s g6 = [2*C1*exp(2*t) + 2*C2*exp(-2*t), 2*C1*exp(2*t) - 2*C2*exp(-2*t)]; 1179s assert (isequal (soln, g1) || isequal (soln, g2) || ... 1179s isequal (soln, g3) || isequal (soln, g4) || ... 1179s isequal (soln, g5) || isequal (soln, g6)) 1180s ***** test 1180s % System of ODEs (initial-value problem) 1180s syms x(t) y(t) 1180s ode_1=diff(x(t),t) == 2*y(t); 1180s ode_2=diff(y(t),t) == 2*x(t); 1180s sol_ivp=dsolve([ode_1,ode_2],x(0)==1,y(0)==0); 1180s g_ivp=[exp(-2*t)/2+exp(2*t)/2,-exp(-2*t)/2+exp(2*t)/2]; 1180s assert (isequal ([sol_ivp.x, sol_ivp.y], g_ivp)) 1181s ***** test 1181s syms y(x) 1181s de = diff(y, 2) + 4*y == 0; 1181s f = dsolve(de, y(0) == 0, y(sym(pi)/4) == 1); 1181s g = sin(2*x); 1181s assert (isequal (f, g)) 1181s ***** test 1181s % Nonlinear example 1181s syms y(x) C1 1181s e = diff(y, x) == y^2; 1181s g = -1 / (C1 + x); 1181s soln = dsolve(e); 1181s assert (isequal (soln, g)) 1181s ***** test 1181s % Nonlinear example with initial condition 1181s syms y(x) 1181s e = diff(y, x) == y^2; 1181s g = -1 / (x - 1); 1181s soln = dsolve(e, y(0) == 1); 1181s assert (isequal (soln, g)) 1182s ***** test 1182s % forcing, Issue #183, broken in older sympy 1182s if (pycall_sympy__ ('return Version(spver) >= Version("1.7.1")')) 1182s syms x(t) y(t) 1182s ode1 = diff(x) == x + sin(t) + 2; 1182s ode2 = diff(y) == y - t - 3; 1182s soln = dsolve([ode1 ode2], x(0) == 1, y(0) == 2); 1182s X = soln.x; 1182s Y = soln.y; 1182s assert (isequal (diff(X) - (X + sin(t) + 2), 0)) 1182s assert (isequal (diff(Y) - (Y - t - 3), 0)) 1182s end 1183s ***** test 1183s syms f(x) a b 1183s de = diff(f, x) == 4*f; 1183s s = dsolve(de, f(a) == b); 1183s assert (isequal (subs(s, x, a), b)) 1183s ***** test 1183s % array of ICs 1183s syms x(t) y(t) 1183s ode_1 = diff (x(t), t) == 2*y(t); 1183s ode_2 = diff (y(t), t) == 2*x(t); 1183s sol = dsolve([ode_1, ode_2], [x(0)==1 y(0)==0]); 1183s g = [exp(-2*t)/2+exp(2*t)/2, -exp(-2*t)/2+exp(2*t)/2]; 1183s assert (isequal ([sol.x, sol.y], g)) 1184s ***** test 1184s % cell-array of ICs or ODEs, but not both 1184s % Note: to support both we'd need a wrapper outside of @sym 1184s syms x(t) y(t) 1184s ode_1 = diff (x(t), t) == 2*y(t); 1184s ode_2 = diff (y(t), t) == 2*x(t); 1184s sol = dsolve([ode_1, ode_2], {x(0)==1 y(0)==0}); 1184s g = [exp(-2*t)/2+exp(2*t)/2, -exp(-2*t)/2+exp(2*t)/2]; 1184s assert (isequal ([sol.x, sol.y], g)) 1184s sol = dsolve({ode_1, ode_2}, [x(0)==1 y(0)==0]); 1184s g = [exp(-2*t)/2+exp(2*t)/2, -exp(-2*t)/2+exp(2*t)/2]; 1184s assert (isequal ([sol.x, sol.y], g)) 1185s ***** test 1185s % array of ICs, Issue #1040. 1185s if (pycall_sympy__ ('return Version(spver) >= Version("1.7.1")')) 1185s syms x(t) y(t) z(t) 1185s syms x_0 y_0 z_0 1185s diffEqns = [diff(x, t) == -x + 1, diff(y, t) == -y, diff(z, t) == -z]; 1185s initCond = [x(0) == x_0, y(0) == y_0, z(0) == z_0]; 1185s soln = dsolve (diffEqns, initCond); 1185s soln = [soln.x, soln.y, soln.z]; 1185s exact_soln = [(x_0 - 1)*exp(-t) + 1 y_0*exp(-t) z_0*exp(-t)]; 1185s assert (isequal (soln, exact_soln)) 1185s end 1185s 21 tests, 21 passed, 0 known failure, 0 skipped 1185s [inst/@sym/disp.m] 1185s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/disp.m 1185s ***** test 1185s syms x 1185s s = disp(sin(x)); 1185s assert(strcmp(s, sprintf(' sin(x)\n'))) 1185s ***** test 1185s syms x 1185s s = disp(sin(x/2), 'flat'); 1185s assert(strcmp(s, sprintf(' sin(x/2)\n'))) 1185s ***** test 1185s % Examples of 2x0 and 0x2 empty matrices: 1185s a = sym([1 2; 3 4]); 1185s b2x0 = a([true true], [false false]); 1185s b0x2 = a([false false], [true true]); 1185s assert (isequal (size (b2x0), [2 0])) 1185s assert (isequal (size (b0x2), [0 2])) 1185s s = disp(b2x0); 1185s assert(strcmp(s, sprintf(' []\n'))) 1185s s = disp(b0x2); 1185s assert(strcmp(s, sprintf(' []\n'))) 1186s 3 tests, 3 passed, 0 known failure, 0 skipped 1186s [inst/@sym/symprod.m] 1186s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/symprod.m 1186s ***** error symprod (sym(1), 2, 3, 4, 5) 1186s ***** test 1186s % simple 1186s syms n 1186s assert (isequal (symprod(n, n, 1, 10), factorial(sym(10)))) 1186s assert (isequal (symprod(n, n, sym(1), sym(10)), factorial(10))) 1186s ***** test 1186s % one input 1186s syms n 1186s f = symprod (n); 1186s g = factorial (n); 1186s assert (isequal (f, g)) 1186s f = symprod (2*n); 1186s g = 2^n * factorial (n); 1186s assert (isequal (f, g)) 1186s ***** test 1186s % constant input 1186s f = symprod (sym(2)); 1186s syms x 1186s g = 2^x; 1186s assert (isequal (f, g)) 1186s ***** test 1186s % two inputs 1186s syms n 1186s f = symprod (2*n, n); 1186s g = 2^n * factorial (n); 1186s assert (isequal (f, g)) 1186s ***** test 1186s % two inputs, second is range 1186s syms n 1186s f = symprod (n, [1 6]); 1186s g = 720; 1186s assert (isequal (f, g)) 1186s f = symprod (n, [sym(1) 6]); 1186s g = 720; 1186s assert (isequal (f, g)) 1186s f = symprod (2*n, [1 6]); 1186s g = sym(2)^6*720; 1186s assert (isequal (f, g)) 1186s ***** test 1186s % three inputs, last is range 1186s syms n 1186s f = symprod (2*n, n, [1 4]); 1186s g = sym(384); 1186s assert (isequal (f, g)) 1186s f = symprod (2*n, n, [sym(1) 4]); 1186s g = sym(384); 1186s assert (isequal (f, g)) 1186s f = symprod (2, n, [sym(1) 4]); 1186s g = sym(16); 1186s assert (isequal (f, g)) 1186s ***** test 1186s % three inputs, no range 1186s syms n 1186s f = symprod (2*n, 1, 4); 1186s g = sym(384); 1186s assert (isequal (f, g)) 1186s f = symprod (5, sym(1), 3); 1186s g = sym(125); 1186s assert (isequal (f, g)) 1187s ***** test 1187s % infinite product 1187s syms a n oo 1187s zoo = sym('zoo'); 1187s assert (isequal (symprod(a, n, 1, oo), a^oo)) 1187s assert (isequal (symprod(a, n, 1, inf), a^oo)) 1187s 9 tests, 9 passed, 0 known failure, 0 skipped 1187s [inst/@sym/ellipticCE.m] 1187s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/ellipticCE.m 1187s ***** error ellipticCE (sym (1), 2) 1187s ***** assert (isequal (ellipticCE (sym (0)), sym (1))) 1187s ***** assert (isequal (ellipticCE (sym (1)), sym (pi)/2)) 1187s ***** assert (double (ellipticCE (sym (pi)/4)), 1.482786927, 10e-10) 1187s ***** assert (double (ellipticCE (sym (pi)/2)), 1.775344699, 10e-10) 1187s 5 tests, 5 passed, 0 known failure, 0 skipped 1187s [inst/@sym/ellipticPi.m] 1187s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/ellipticPi.m 1187s ***** error ellipticPi (sym (1)) 1187s ***** error ellipticPi (sym (1), 2, 3, 4) 1187s ***** assert (double (ellipticPi (sym (-23)/10, sym (pi)/4, 0)), 0.5876852228, 10e-11) 1187s ***** assert (double (ellipticPi (sym (1)/3, sym (pi)/3, sym (1)/2)), 1.285032276, 10e-11) 1188s ***** assert (double (ellipticPi (sym (2), sym (pi)/6, sym (2))), 0.7507322117, 10e-11) 1188s ***** xtest 1188s % FIXME: search/report upstream 1188s assert (double (ellipticPi (sym (-1), 0, sym (1))), 0) 1188s !!!!! known failure 1188s ASSERT errors for: assert (double (ellipticPi (sym (-1), 0, sym (1))),0) 1188s 1188s Location | Observed | Expected | Reason 1188s () NaN 0 'NaN' mismatch 1188s ***** xtest 1188s % FIXME: this is a regression somewhere: loss of precision: Issue #1064 1188s % compare to Maple, complete 1188s us = vpa (ellipticPi (sym(1)/6, sym(4)/3), 40); 1188s % > evalf(EllipticPi(sin(1/6), sqrt(4/3)), 40); 1188s maple = vpa ('2.019271696236161760696477679310987869058', 40) - ... 1188s vpa ('1.708165765120289929280805062355360570830j', 40); 1188s assert (abs (double (maple - us)), 0, 2e-39) 1188s !!!!! known failure 1188s ASSERT errors for: assert (abs (double (maple - us)),0,2e-39) 1188s 1188s Location | Observed | Expected | Reason 1188s () 1.7643e-30 0 Abs err 1.7643e-30 exceeds tol 2e-39 by 2e-30 1188s ***** test 1188s % compare to Maple, complete 1188s us = vpa (ellipticPi (sym(1)/6, sym(4)/3), 40); 1188s % > evalf(EllipticPi(sin(1/6), sqrt(4/3)), 40); 1188s maple = vpa ('2.019271696236161760696477679310987869058', 40) - ... 1188s vpa ('1.708165765120289929280805062355360570830j', 40); 1188s assert (abs (double (maple - us)), 0, 2e-30) 1189s ***** test 1189s % compare to Maple, incomplete 1189s us = vpa (ellipticPi (sym(8)/7, sym(4)/3, sym(2)/7), 40); 1189s % > evalf(EllipticPi(sin(4/3), 8/7, sqrt(2/7)), 40); 1189s maple = vpa ('2.089415796799294830305265090302275542033', 40) - ... 1189s vpa ('4.798862045930802761256228043192491271947j', 40); 1189s assert (abs (double (maple - us)), 0, 6e-39) 1189s 9 tests, 7 passed, 2 known failures, 0 skipped 1189s [inst/@sym/mldivide.m] 1189s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/mldivide.m 1189s ***** test 1189s % scalar 1189s syms x 1189s assert (isa( x\x, 'sym')) 1189s assert (isequal( x\x, sym(1))) 1189s assert (isa( 2\x, 'sym')) 1189s assert (isa( x\2, 'sym')) 1190s ***** test 1190s % scalar \ matrix: easy, no system 1190s D = 2*[0 1; 2 3]; 1190s A = sym(D); 1190s assert (isequal ( 2 \ A , D/2 )) 1190s assert (isequal ( sym(2) \ A , D/2 )) 1190s ***** test 1190s % singular matrix 1190s A = sym([1 2; 2 4]); 1190s b = sym([5; 10]); 1190s x = A \ b; 1190s syms c1 1190s y = [-2*c1 + 5; c1]; 1190s assert (isequal (x, y)) 1190s ***** test 1190s % singular matrix, mult RHS 1190s A = sym([1 2; 2 4]); 1190s B = sym([[5; 10] [0; 2] [0; 0]]); 1190s x = A \ B; 1190s syms c1 c5 1190s y = [-2*c1 + 5 nan -2*c5; c1 nan c5]; 1190s assert (isequaln (x, y)) 1190s ***** warning 1190s % vpa, nearly singular matrix 1190s A = sym([1 2; 2 4]); 1190s A(1,1) = vpa('1.001'); 1190s b = sym([1; 2]); 1190s x = A \ b; 1190s y = [sym(0); vpa('0.5')]; 1190s assert (isequal (x, y)) 1190s ***** warning 1190s % vpa, singular rhs 1190s A = sym([1 2; 2 4]); 1190s b = [vpa('1.01'); vpa('2')]; 1190s x = A \ b; 1190s assert (all(isnan(x))) 1190s 6 tests, 6 passed, 0 known failure, 0 skipped 1190s [inst/@sym/jordan.m] 1190s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/jordan.m 1190s ***** test 1190s % basic 1190s A = sym ([2 1 0 0; 0 2 1 0; 0 0 3 0; 0 1 -1 3]); 1190s [V, J] = jordan (A); 1190s assert (isequal (inv (V) * A * V, J)); 1190s assert (isequal (J, sym ([2 1 0 0; 0 2 0 0; 0 0 3 0; 0 0 0 3]))) 1190s % the first 2 generalized eigenvectors form a cycle 1190s assert (isequal ((A - J(1, 1) * eye (4)) * V(:, 1), zeros (4, 1))); 1190s assert (isequal ((A - J(2, 2) * eye (4)) * V(:, 2), V(:, 1))); 1190s % the last 2 generalized eigenvectors are eigenvectors 1190s assert (isequal ((A - J(3, 3) * eye (4)) * V(:, 3), zeros (4, 1))); 1190s assert (isequal ((A - J(4, 4) * eye (4)) * V(:, 4), zeros (4, 1))); 1192s ***** test 1192s % scalars 1192s assert (isequal (jordan (sym (-10)), sym (-10))); 1192s assert (isequal (jordan (sym ('x')), sym ('x'))); 1192s ***** test 1192s % diagonal matrices 1192s A = diag (sym ([6 6 7])); 1192s [V1, D] = eig (A); 1192s [V2, J] = jordan (A); 1192s assert (isequal (V1, V2)); 1192s assert (isequal (D, J)); 1192s ***** test 1192s % matrices of unknown entries 1192s A = [sym('a') sym('b'); sym('c') sym('d')]; 1192s [V, D] = eig (A); 1192s J = jordan (A); 1192s assert (isequal (simplify (D), simplify (J))); 1192s ***** test 1192s % matrices of mixed entries 1192s A = [sym('x')+9 sym('y'); sym(0) 6]; 1192s [V, D] = eig (A); 1192s J = jordan (A); 1192s assert (isequal (simplify (D), simplify (J))); 1192s 5 tests, 5 passed, 0 known failure, 0 skipped 1192s [inst/@sym/laplace.m] 1192s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/laplace.m 1192s ***** test 1192s % basic 1192s syms t s u w 1192s assert(logical( laplace(cos(3*t)) == s/(s^2+9) )) 1192s assert(logical( laplace(t^3) == 6/s^4 )) 1193s ***** test 1193s % matlab SMT compat 1193s syms t s u w z 1193s assert(logical( laplace(exp(2*t)) == 1/(s-2) )) 1193s assert(logical( laplace(exp(2*s)) == 1/(z-2) )) 1193s assert(logical( laplace(exp(2*u),w) == 1/(w-2) )) 1193s assert(logical( laplace(exp(2*u),u,w) == 1/(w-2) )) 1193s ***** test 1193s syms x s t z 1193s % matlab SMT prefers t over x 1193s assert (isequal (laplace (x*exp (t), z), x/(z - 1))) 1193s % as usual, you can just specify: 1193s assert (isequal (laplace(x*exp(t), t, z), x/(z - 1))) % SMT result 1193s assert (isequal (laplace(x*exp(t), x, z), exp(t)/z^2)) 1194s ***** test 1194s syms x a s 1194s % if no t, use symvar: take x before a 1194s assert (isequal (laplace (a*exp (x)), a/(s - 1))) 1194s ***** error laplace (sym('t')*sym('t', 'real')) 1194s ***** test 1194s % constant, issue #250 1194s syms s 1194s f = laplace(2, s); 1194s assert (isequal (f, 2/s)) 1194s ***** test 1194s % Dirac delta and Heaviside tests 1194s syms t s 1194s assert (isequal (laplace(dirac(t-3)), exp(-3*s))) 1194s assert (isequal (laplace((t-3)*heaviside(t-3)), exp(-3*s)/s^2)) 1194s ***** xtest 1194s % Differential operator to algebraic 1194s % SymPy cannot evaluate? (Issue #170) 1194s syms s f(t) 1194s assert(logical( laplace(diff(f(t),t),t,s) == s*laplace(f(t),t,s)-f(0) )) 1194s 8 tests, 8 passed, 0 known failure, 0 skipped 1194s [inst/@sym/cosint.m] 1194s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/cosint.m 1194s ***** error cosint (sym(1), 2) 1194s ***** xtest 1194s assert (isequaln (cosint (sym(nan)), sym(nan))) 1194s !!!!! known failure 1194s assert (isequaln (cosint (sym (nan)), sym (nan))) failed 1194s ***** shared x, d 1194s d = 1; 1194s x = sym('1'); 1194s ***** test 1194s f1 = cosint(x); 1194s f2 = 0.3374039229009681346626; 1194s assert( abs(double(f1) - f2) < 1e-15 ) 1194s ***** test 1194s D = [d d; d d]; 1194s A = [x x; x x]; 1194s f1 = cosint(A); 1194s f2 = 0.3374039229009681346626; 1194s f2 = [f2 f2; f2 f2]; 1194s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1195s ***** test 1195s % round trip 1195s y = sym('y'); 1195s A = cosint (d); 1195s f = cosint (y); 1195s h = function_handle (f); 1195s B = h (d); 1195s assert (A, B, -eps) 1195s 5 tests, 4 passed, 1 known failure, 0 skipped 1195s [inst/@sym/expm.m] 1195s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/expm.m 1195s ***** test 1195s % scalar 1195s syms x 1195s assert (isequal (expm(x), exp(x))) 1195s ***** test 1195s % diagonal 1195s A = [sym(1) 0; 0 sym(3)]; 1195s B = [exp(sym(1)) 0; 0 exp(sym(3))]; 1195s assert (isequal (expm(A), B)) 1195s ***** test 1195s % diagonal w/ x 1195s syms x positive 1195s A = [sym(1) 0; 0 x+2]; 1195s B = [exp(sym(1)) 0; 0 exp(x+2)]; 1195s assert (isequal (expm(A), B)) 1195s ***** test 1195s % non-diagonal 1195s syms x positive 1195s A = [sym(1) 2; 0 x+2]; 1195s B = expm(A); 1195s C = double(subs(B, x, 4)); 1195s D = expm(double(subs(A, x, 4))); 1195s assert (max (max (abs (C - D))) <= 1e-11) 1195s 4 tests, 4 passed, 0 known failure, 0 skipped 1195s [inst/@sym/isequaln.m] 1195s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/isequaln.m 1195s ***** test 1195s a = sym([1 2]); 1195s b = a; 1195s assert (isequaln (a, b)) 1195s b(1) = 42; 1195s assert (~isequaln (a, b)) 1195s ***** test 1195s a = sym([1 2; 3 4]); 1195s b = a; 1195s assert (isequaln (a, b)) 1195s b(1) = 42; 1195s assert (~isequaln (a, b)) 1195s ***** test 1195s a = sym([nan; 2]); 1195s b = a; 1195s assert (isequaln (a, b)) 1195s ***** test 1195s a = sym([nan 2; 3 4]); 1195s b = a; 1195s assert (isequaln (a, b)) 1195s ***** test 1195s % more than two arrays 1195s a = sym([nan 2 3]); 1195s b = a; 1195s c = a; 1195s assert (isequaln (a, b, c)) 1195s c(1) = 42; 1195s assert (~isequaln (a, b, c)) 1196s 5 tests, 5 passed, 0 known failure, 0 skipped 1196s [inst/@sym/qr.m] 1196s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/qr.m 1196s ***** error qr (sym(1), 2, 3) 1196s ***** error [Q, R, P] = qr (sym(1)) 1196s ***** error qr (sym(1), 1) 1196s ***** test 1196s % scalar 1196s [q, r] = qr(sym(6)); 1196s assert (isequal (q, sym(1))) 1196s assert (isequal (r, sym(6))) 1196s ***** test 1196s syms x positive 1196s [q, r] = qr(x); 1196s assert (isequal (q*r, x)) 1196s assert (isequal (q, sym(1))) 1196s assert (isequal (r, x)) 1196s ***** test 1196s % trickier if x could be zero, fails on 1.8 <= SymPy <= 1.10.1 1196s syms x 1196s [q, r] = qr(x); 1196s if (pycall_sympy__ ('return Version(spver) > Version("1.10.1")')) 1196s assert (isequal (q*r, x)) 1196s end 1196s ***** test 1196s A = [1 2; 3 4]; 1196s B = sym(A); 1196s [Q, R] = qr(B); 1196s assert (isequal (Q*R, B)) 1196s assert (isequal (R(2,1), sym(0))) 1196s assert (isequal (Q(:,1)'*Q(:,2), sym(0))) 1196s %[QA, RA] = qr(A) 1196s %assert ( max(max(double(Q)-QA)) <= 10*eps) 1196s %assert ( max(max(double(Q)-QA)) <= 10*eps) 1196s ***** test 1196s % non square: tall skinny 1196s A = sym([1 2; 3 4; 5 6]); 1196s [Q, R] = qr (A, 0); 1196s assert (size (Q), [3 2]) 1196s assert (size (R), [2 2]) 1196s assert (isequal (Q*R, A)) 1196s ***** test 1196s % non square: short fat 1196s A = sym([1 2 3; 4 5 6]); 1196s [Q, R] = qr (A); 1196s assert (isequal (Q*R, A)) 1196s ***** test 1196s % non square: short fat, rank deficient 1196s A = sym([1 2 3; 2 4 6]); 1196s [Q, R] = qr (A); 1196s assert (isequal (Q*R, A)) 1196s A = sym([1 2 3; 2 4 6; 0 0 0]); 1196s [Q, R] = qr (A); 1196s assert (isequal (Q*R, A)) 1196s ***** test 1196s % rank deficient 1196s A = sym([1 2 3; 2 4 6; 0 0 0]); 1196s [Q, R] = qr (A); 1196s assert (isequal (Q*R, A)) 1196s A = sym([1 2 3; 2 5 6; 0 0 0]); 1196s [Q, R] = qr (A); 1196s assert (isequal (Q*R, A)) 1197s ***** test 1197s % single return value R not Q 1197s assert (isequal (qr (sym(4)), sym(4))) 1197s 12 tests, 12 passed, 0 known failure, 0 skipped 1197s [inst/@sym/expand.m] 1197s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/expand.m 1197s ***** test 1197s syms x 1197s assert (logical (x^2 + 6*x + 5 == expand ((x+5)*(x+1)))) 1197s assert (isequal (x^2 + 6*x + 5, expand ((x+5)*(x+1)))) 1197s ***** test 1197s % array 1197s syms x 1197s assert (isequal (expand ([x (x+1)*x]), [x x^2+x])) 1197s 2 tests, 2 passed, 0 known failure, 0 skipped 1197s [inst/@sym/harmonic.m] 1197s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/harmonic.m 1197s ***** error harmonic (sym(1), 2) 1197s ***** xtest 1197s assert (isequaln (harmonic (sym(nan)), sym(nan))) 1197s !!!!! known failure 1197s assert (isequaln (harmonic (sym (nan)), sym (nan))) failed 1197s ***** assert (isequal (harmonic (sym(0)), sym(0))) 1197s ***** assert (isinf (harmonic (sym(inf)))) 1197s ***** assert (isequal (harmonic (sym([9 10])), [sym(7129)/2520 sym(7381)/2520])) 1197s ***** test 1197s % round trip 1197s y = sym('y'); 1197s A = harmonic (7); 1197s f = harmonic (y); 1197s h = function_handle (f); 1197s B = h (7); 1197s assert (A, B, -eps) 1197s 6 tests, 5 passed, 1 known failure, 0 skipped 1197s [inst/@sym/ei.m] 1197s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/ei.m 1197s ***** test 1197s syms x 1197s f = ei(sym(0)); 1197s assert (double(f) == -inf) 1197s ***** test 1197s D = [1.895117816355937 4.954234356001890]; 1197s A = ei(sym([1 2])); 1197s assert (all (abs(double(A) - D) < 1e-15)) 1197s 2 tests, 2 passed, 0 known failure, 0 skipped 1197s [inst/@sym/rewrite.m] 1197s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/rewrite.m 1197s ***** test 1197s syms x 1197s assert (isequal (rewrite(x, 'exp'), x)) 1197s ***** test 1197s % empty 1197s e = sym([]); 1197s assert (isequal (rewrite(e, 'sin'), e)) 1197s ***** test 1197s syms x 1197s A = [exp(x) exp(2*x)]; 1197s B = [sinh(x) + cosh(x) sinh(2*x) + cosh(2*x)]; 1197s assert (isequal (rewrite(A, 'sin'), B)) 1198s 3 tests, 3 passed, 0 known failure, 0 skipped 1198s [inst/@sym/charpoly.m] 1198s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@sym/charpoly.m 1198s ***** error charpoly (sym (1), 1, 2) 1198s ***** error charpoly (sym ([1 2])) 1198s ***** test 1198s syms x 1198s A = sym([1 2; 3 4]); 1198s assert (isequal (charpoly(A, x), x^2 - 5*x -2)) 1198s ***** test 1198s syms x 1198s A = sym([1 2; 3 4]); 1198s B = sym([1 -5 -2]); 1198s assert (isequal (charpoly(A), B)) 1198s ***** test 1198s syms x 1198s A = sym([x x; x x]); 1198s B = sym([1 -2*x 0]); 1198s assert (isequal (charpoly(A), B)) 1198s 5 tests, 5 passed, 0 known failure, 0 skipped 1198s [inst/lambertw.m] 1198s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/lambertw.m 1198s ***** assert (isequal (lambertw (0), 0)) 1198s ***** assert (isequal (lambertw (0, 0), 0)) 1198s ***** assert (lambertw (-1/exp(1)), -1, 2*eps) 1198s ***** assert (lambertw (0, -1/exp(1)), -1, 2*eps) 1198s ***** assert (lambertw (-1, -1/exp(1)), -1, 2*eps) 1198s ***** test 1198s x = [1 2 3 pi 10 100 1000 12345]; 1198s W = lambertw (x); 1198s assert (W.*exp (W), x, -3*eps) 1198s ***** test 1198s x = [1 2 3 pi 10 100 1000 12345]; 1198s k = [-3 -2 -1 0 1 2 3 4]; 1198s W = lambertw (k, x); 1198s assert (W.*exp (W), x, -10*eps) 1198s ***** test 1198s % input shape preserved 1198s x = [0 1; 2 3]; 1198s b = x; 1198s W = lambertw (b, x); 1198s assert (W.*exp (W), x, -10*eps) 1198s ***** test 1198s % input shape preserved 1198s x = [0 1; 2 3]; 1198s b = 0; 1198s W = lambertw (b, x); 1198s assert (W.*exp (W), x, -10*eps) 1198s ***** test 1198s % input shape preserved 1198s x = 10; 1198s b = [0 1; 2 3]; 1198s W = lambertw (b, x); 1198s assert (W.*exp (W), x*ones (size (b)), -10*eps) 1198s ***** assert (isnan (lambertw (nan))) 1198s ***** test 1198s % limiting behaviour as z large 1198s k = 3; 1198s A = lambertw (k, 1e100); 1198s assert (abs (imag (A) - 2*pi*k) < 0.1) 1198s ***** test 1198s % limiting behaviour as z large, up imag axis 1198s k = 1; 1198s A = lambertw (k, 1e100*1i); 1198s assert (abs (imag (A) - (2*k+0.5)*pi) < 0.1) 1198s ***** test 1198s % limiting behaviour as z large, down imag axis 1198s k = -2; 1198s A = lambertw (k, -1e100*1i); 1198s assert (abs (imag (A) - (2*k-0.5)*pi) < 0.1) 1198s ***** test 1198s % limiting behaviour as z large, near branch 1198s k = 3; 1198s A = lambertw (k, -1e100); 1198s B = lambertw (k, -1e100 + 1i); 1198s C = lambertw (k, -1e100 - 1i); 1198s assert (abs (imag (A) - (2*k+1)*pi) < 0.1) 1198s assert (abs (imag (B) - (2*k+1)*pi) < 0.1) 1198s assert (abs (imag (C) - (2*k-1)*pi) < 0.1) 1198s ***** test 1198s % infinities and nan 1198s A = lambertw ([inf exp(1) -inf nan]); 1198s B = [inf 1 inf + pi*1i nan]; 1198s assert (isequaln (A, B)) 1198s ***** test 1198s % infinities and nan 1198s A = lambertw (3, [inf 1 -inf nan]); 1198s B = [inf + 2*3*pi*1i lambertw(3,1) inf + (2*3+1)*pi*1i nan]; 1198s assert (isequaln (A, B)) 1198s ***** test 1198s % infinities and nan 1198s A = lambertw ([0 1 2 0], [inf -inf nan exp(1)]); 1198s B = [inf inf+3*pi*1i nan 1]; 1198s assert (isequaln (A, B)) 1198s ***** test 1198s % scalar infinity z, vector b 1198s A = lambertw ([1 2 -3], inf); 1198s B = [lambertw(1, inf) lambertw(2, inf) lambertw(-3, inf)]; 1198s assert (isequal (A, B)) 1198s ***** test 1198s % scalar -infinity z, vector b 1198s A = lambertw ([1 2 -3], -inf); 1198s B = [lambertw(1, -inf) lambertw(2, -inf) lambertw(-3, -inf)]; 1198s assert (isequal (A, B)) 1198s ***** test 1198s % scalar z nan, vector b 1198s A = lambertw ([1 2 -3], nan); 1198s B = [nan nan nan]; 1198s assert (isequaln (A, B)) 1198s 21 tests, 21 passed, 0 known failure, 0 skipped 1198s [inst/poly2sym.m] 1198s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/poly2sym.m 1198s ***** shared x,y,a,b,c,p 1198s syms x y a b c 1198s p = x^3 + 2*x^2 + 3*x + 4; 1198s ***** assert(isAlways( poly2sym([1 2 3 4]) == p )) 1199s ***** assert(isAlways( poly2sym([1 2 3 4],x) == p )) 1199s ***** assert(isAlways( poly2sym([1 2 3 4],y) == subs(p,x,y) )) 1199s ***** assert(isAlways( poly2sym([1 2 3 4],5) == subs(p,x,5) )) 1199s ***** assert(isequal( poly2sym ([1]), 1 )) 1199s ***** assert(isequal( poly2sym ([]), 0 )) 1199s ***** assert(isAlways( poly2sym(sym([1 2 3 4]),x) == p )) 1199s ***** assert(isAlways( poly2sym([a b c],x) == a*x^2 + b*x + c )) 1200s ***** assert(isAlways( poly2sym([a b c]) == a*x^2 + b*x + c )) 1200s ***** assert(isequal( poly2sym(sym([])), 0 )) 1200s ***** assert(isAlways( poly2sym({sym(1) sym(2)}, x) == x + 2 )) 1200s ***** assert(isequal( poly2sym ({1}), 1 )) 1200s ***** assert(isequal( poly2sym ({}), 0 )) 1200s ***** assert(isequal( poly2sym ({1}, x), 1 )) 1200s ***** assert(isequal( poly2sym ({}, x), 0 )) 1200s ***** assert(isAlways( poly2sym([x x], x) == x^2 + x )) 1200s ***** test 1200s % mixed cell array with doubles and syms 1200s assert (isequal (poly2sym ({2.0 sym(3) int64(4)}), 2*x^2 + 3*x + 4)) 1200s ***** test 1200s % string for x 1200s p = poly2sym ([1 2], 's'); 1200s syms s 1200s assert (isequal (p, s + 2)) 1201s 18 tests, 18 passed, 0 known failure, 0 skipped 1201s [inst/@symfun/size.m] 1201s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@symfun/size.m 1201s ***** test 1201s syms x 1201s f(x) = x; 1201s d = size(f); 1201s assert (isequal (d, [1 1])) 1201s [n, m] = size(f); 1201s assert (isequal ([n m], [1 1])) 1201s assert (size(f, 1) == 1) 1201s assert (size(f, 2) == 1) 1201s ***** test 1201s syms x 1201s f(x) = [1 x]; 1201s d = size(f); 1201s assert (isequal (d, [1 1])) 1201s [n, m] = size(f); 1201s assert (isequal ([n m], [1 1])) 1201s assert (size(f, 1) == 1) 1201s assert (size(f, 2) == 1) 1201s 2 tests, 2 passed, 0 known failure, 0 skipped 1201s [inst/@symfun/rdivide.m] 1201s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@symfun/rdivide.m 1201s ***** test 1201s syms x 1201s f(x) = x^2; 1201s assert( isa(f./f, 'symfun')) 1201s assert( isa(f./[x x^2], 'symfun')) 1201s ***** test 1201s syms x 1201s f(x) = [x 2*x]; 1201s h = f./[x 2]; 1201s assert( isa(h, 'symfun')) 1201s assert (isequal (formula (h), [1 x])) 1201s 2 tests, 2 passed, 0 known failure, 0 skipped 1201s [inst/@symfun/mrdivide.m] 1201s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@symfun/mrdivide.m 1201s ***** test 1201s syms x 1201s f(x) = x^2; 1201s assert( isa(f/f, 'symfun')) 1201s assert( isa(f/x, 'symfun')) 1201s 1 test, 1 passed, 0 known failure, 0 skipped 1201s [inst/@symfun/mpower.m] 1201s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@symfun/mpower.m 1201s ***** test 1201s syms x 1201s f(x) = 2*x; 1201s h = f^f; 1201s assert( isa(h, 'symfun')) 1201s assert (isequal (formula (h), (2*x)^(2*x))) 1201s h = f^sym(2); 1201s assert( isa(h, 'symfun')) 1201s assert (isequal (formula (h), 4*x^2)) 1201s 1 test, 1 passed, 0 known failure, 0 skipped 1201s [inst/@symfun/plus.m] 1201s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@symfun/plus.m 1201s ***** test 1201s syms x 1201s f(x) = x^2; 1201s assert( isa(f + f, 'symfun')) 1201s assert( isa(f + x, 'symfun')) 1201s 1 test, 1 passed, 0 known failure, 0 skipped 1201s [inst/@symfun/formula.m] 1201s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@symfun/formula.m 1201s ***** test 1201s % simple 1201s syms x 1201s f(x) = sin(x); 1201s g = formula(f); 1201s assert (isequal (g, sin(x))); 1201s ***** test 1201s % concrete: return is a sym, not a symfun 1201s syms x 1201s f(x) = sin(x); 1201s g = formula(f); 1201s assert (~isa(g, 'symfun')); 1201s ***** test 1201s % abstract: return is a sym, not a symfun 1201s syms f(x) 1201s g = formula(f); 1201s assert (~isa(g, 'symfun')); 1201s 3 tests, 3 passed, 0 known failure, 0 skipped 1201s [inst/@symfun/mtimes.m] 1201s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@symfun/mtimes.m 1201s ***** test 1201s syms x 1201s f(x) = x^2; 1201s assert( isa(f * f, 'symfun')) 1201s assert( isa(f * x, 'symfun')) 1201s 1 test, 1 passed, 0 known failure, 0 skipped 1201s [inst/@symfun/symvar.m] 1201s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@symfun/symvar.m 1201s ***** test 1201s % basic 1201s syms f(t, s) 1201s assert (isempty (symvar (f, 0))) 1201s assert (isequal (symvar (f, 1), t)) 1201s assert (isequal (symvar (f, 2), [t s])) 1201s assert (isequal (symvar (f, 3), [t s])) 1202s ***** test 1202s % note preference for vars of symfun, if n requested 1202s syms x f(y) 1202s assert (isequal (symvar(f*x, 1), y)) 1202s assert (isequal (symvar(f(y)*x, 1), x)) 1202s ***** test 1202s % symfun, checked smt 1202s syms x f(y) 1202s a = f*x; 1202s b = f(y)*x; 1202s assert (isequal (symvar(a), [x y])) 1202s assert (isequal (symvar(b), [x y])) 1202s ***** test 1202s % preference for the explicit variables 1202s syms a x f(t, s) 1202s h = f*a + x; 1202s assert (isequal (symvar (h, 1), t)) 1202s assert (isequal (symvar (h, 2), [t s])) 1202s assert (isequal (symvar (h, 3), [t s x])) 1202s assert (isequal (symvar (h, 4), [t s x a])) 1202s assert (isequal (symvar (h, 5), [t s x a])) 1202s assert (isequal (symvar (h), [a s t x])) 1203s ***** test 1203s % symfun dep on some vars only, matches smt w/ n 1203s syms x s t 1203s f(s) = x; 1203s g(s, t) = x*s; 1203s assert (isequal (symvar(f, 1), s)) 1203s assert (isequal (symvar(f, 2), [s x])) 1203s assert (isequal (symvar(g, 1), s)) 1203s assert (isequal (symvar(g, 2), [s t])) 1203s assert (isequal (symvar(g, 3), [s t x])) 1204s ***** test 1204s % A documented difference from SMT on symvar(symfun) w/o n 1204s syms x s t 1204s f(s) = x; 1204s g(s, t) = x*s; 1204s % SMT would have 1204s %assert (isequal (symvar(f), x)) % no s 1204s %assert (isequal (symvar(g), [s x])) % no t 1204s assert (isequal (symvar(f), [s x])) 1204s assert (isequal (symvar(g), [s t x])) 1204s 6 tests, 6 passed, 0 known failure, 0 skipped 1204s [inst/@symfun/subsref.m] 1204s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@symfun/subsref.m 1204s ***** test 1204s syms x 1204s f(x) = x^2; 1204s v = f.vars; 1204s assert(iscell(v)) 1204s assert(length(v)==1) 1204s assert(isequal(v{1},x)) 1204s ***** test 1204s %% pass through to sym properties 1204s syms x 1204s f(x) = x^2; 1204s y = x^2; % not a symfun 1204s assert(strcmp(f.flat, y.flat)) 1204s 2 tests, 2 passed, 0 known failure, 0 skipped 1204s [inst/@symfun/numel.m] 1204s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@symfun/numel.m 1204s ***** test 1204s syms x 1204s f(x) = x^2; 1204s assert(numel(f)==1) 1204s ***** test 1204s syms x 1204s f(x) = [1 x]; 1204s assert(numel(f)==1) 1204s 2 tests, 2 passed, 0 known failure, 0 skipped 1204s [inst/@symfun/isequal.m] 1204s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@symfun/isequal.m 1204s ***** error isequal (symfun('x + 1', x)) 1204s ***** test 1204s syms x y 1204s f(x) = 2*x; 1204s g(x) = 2*x; 1204s assert (isequal (f, g)) 1204s ***** test 1204s syms x 1204s f(x) = 2*x + 1; 1204s g(x) = 2*x + 1; 1204s h(x) = 2*x + 1; 1204s assert (isequal (f, g, h)) 1204s ***** test 1204s syms x 1204s f(x) = 2*x + 1; 1204s g(x) = 2*x + 1; 1204s h(x) = 2*x; 1204s assert (~ isequal (f, g, h)) 1205s ***** test 1205s syms x y 1205s f(x) = 2*x; 1205s g(x, y) = 2*x; 1205s assert (~ isequal (f, g)) 1205s ***** test 1205s syms x y 1205s f(x) = symfun(nan, x); 1205s g(x) = symfun(nan, x); 1205s assert (~ isequal (f, g)) 1205s 6 tests, 6 passed, 0 known failure, 0 skipped 1205s [inst/@symfun/symfun.m] 1205s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@symfun/symfun.m 1205s ***** error symfun (1, sym('x'), 3) 1205s ***** error symfun ('f', sym('x')) 1205s ***** test 1205s syms x y 1205s syms f(x) 1205s assert(isa(f,'symfun')) 1205s clear f 1205s f(x,y) = sym('f(x,y)'); 1205s assert(isa(f,'symfun')) 1205s :18: SyntaxWarning: invalid escape sequence '\(' 1205s ***** test 1205s % symfuns are syms as well 1205s syms x 1205s f(x) = 2*x; 1205s assert (isa (f, 'symfun')) 1205s assert (isa (f, 'sym')) 1205s assert (isequal (f(3), 6)) 1205s assert (isequal (f(sin(x)), 2*sin(x))) 1205s ***** test 1205s syms x y 1205s f = symfun(sym('f(x)'), {x}); 1205s assert(isa(f, 'symfun')) 1205s f = symfun(sym('f(x,y)'), [x y]); 1205s assert(isa(f, 'symfun')) 1205s f = symfun(sym('f(x,y)'), {x y}); 1205s assert(isa(f, 'symfun')) 1205s :18: SyntaxWarning: invalid escape sequence '\(' 1205s :18: SyntaxWarning: invalid escape sequence '\(' 1205s :18: SyntaxWarning: invalid escape sequence '\(' 1205s ***** test 1205s % rhs is not sym 1205s syms x 1205s f = symfun(8, x); 1205s assert (isa (f,'symfun')) 1205s assert (isequal (f(10), sym(8))) 1205s ***** test 1205s % vector symfun 1205s syms x y 1205s F(x,y) = [1; 2*x; y; y*sin(x)]; 1205s assert (isa (F, 'symfun')) 1205s assert (isa (F, 'sym')) 1205s assert (isequal (F(sym(pi)/2,4) , [sym(1); sym(pi); 4; 4] )) 1205s ***** test 1205s x = sym('x'); 1205s y = sym('y'); 1205s f(x) = sym('f(x)'); 1205s g(x,y) = sym('g(x,y)'); 1205s % make sure these don't fail 1205s f(1); 1205s g(1,2); 1205s g(x,y); 1205s diff(g, x); 1205s diff(g, y); 1205s :18: SyntaxWarning: invalid escape sequence '\(' 1205s :18: SyntaxWarning: invalid escape sequence '\(' 1205s ***** test 1205s % defining 1D symfun in terms of a 2D symfun 1205s syms x y t 1205s syms 'g(x,y)' 1205s f(t) = g(t,t); 1205s f(5); 1205s assert (length (argnames (f)) == 1) 1205s assert (isequal (argnames (f), t)) 1205s assert (isequal( formula(diff(f,x)), sym(0))) 1206s ***** test 1206s % replace g with shorter and specific fcn 1206s syms x g(x) 1206s g; 1206s g(x) = 2*x; 1206s assert( isequal (g(5), 10)) 1206s ***** test 1206s % octave <= 3.8 needs quotes on 2D symfuns, so make sure it works 1206s syms x y 1206s syms 'f(x)' 1206s syms 'g(x,y)' 1206s assert (isa (f, 'symfun')) 1206s assert (isa (g, 'symfun')) 1206s ***** test 1206s % Bug #41: Octave <= 3.8 parser fails without quotes around 2D fcn 1206s syms x y 1206s eval('syms g(x,y)') 1206s assert (isa (g, 'symfun')) 1206s ***** test 1206s % and these days it works without eval trick 1206s syms g(x,y) 1206s assert (isa (g, 'symfun')) 1206s ***** test 1206s % syms f(x) without defining x 1206s clear x 1206s syms f(x) 1206s assert(isa(f, 'symfun')) 1206s assert(isa(x, 'sym')) 1206s ***** test 1206s % SMT compat: symfun indep var overwrites existing var 1206s t = 6; 1206s syms f(t) 1206s assert (logical (t ~= 6)) 1206s ***** test 1206s % SMT compat: symfun indep var overwrites existing var, even if sym 1206s syms x 1206s t = x; 1206s syms f(t) 1206s assert (~ logical (t == x)) 1206s ***** test 1206s syms x y 1206s f(x) = x^2; 1206s g(x,y) = sym('g(x,y)'); 1206s f2 = 2*f; 1206s assert( isequal (f2(4), 32)) 1206s assert( isa(f2, 'symfun')) 1206s assert( isa(2*g, 'symfun')) 1206s assert( isa(0*g, 'symfun')) % in SMT, this is the zero symfun 1206s :18: SyntaxWarning: invalid escape sequence '\(' 1206s ***** test 1206s % syms has its own parsing code, check it works 1206s syms f(x,y) 1206s g = f; 1206s syms f(x, y) 1206s assert (isequal (f, g)) 1206s syms 'f( x, y )' 1206s assert (isequal (f, g)) 1206s ***** test 1206s % syms own parsing code should not reorder the vars 1206s syms f(y, x) 1206s v = argnames (f); 1206s assert (isequal (v(1), y) && isequal (v(2), x)) 1206s ***** test 1206s % assignment of symfun to symfun, issue #189 1206s syms t 1206s x(t) = 2*t; 1206s y(t) = x; 1206s assert (isa (y, 'symfun')) 1206s y = symfun(x, t); 1206s assert (isa (y, 'symfun')) 1206s % others 1206s y = x; 1206s assert (isa (y, 'symfun')) 1206s y(t) = x(t); 1206s assert (isa (y, 'symfun')) 1206s ***** test 1206s % assignment of generic symfun to symfun 1206s syms t x(t) 1206s y(t) = x; 1206s assert (isa (y, 'symfun')) 1206s y = symfun(x, t); 1206s assert (isa (y, 'symfun')) 1206s ***** error 1206s % Issue #444: invalid args 1206s syms x 1206s f(x, x) = 2*x; 1206s ***** error 1206s % Issue #444: invalid args 1206s syms x y 1206s f(x, y, x) = x + y; 1207s ***** error 1207s % Issue #444: invalid args 1207s syms x y 1207s f(x, y, x) = x + y; 1207s ***** error 1207s % Issue #444: expression as arg 1207s syms x 1207s f(2*x) = 4*x; 1207s 25 tests, 25 passed, 0 known failure, 0 skipped 1207s [inst/@symfun/int.m] 1207s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@symfun/int.m 1207s ***** test 1207s % indefinite integral of symfun gives symfun 1207s syms x 1207s f(x) = x^2; 1207s g = int(f); 1207s assert (isa(g, 'symfun')) 1207s g = int(f, x); 1207s assert (isa(g, 'symfun')) 1207s ***** test 1207s % indefinite integral of abstract symfun gives symfun 1207s syms f(x) 1207s g = int(f); 1207s assert (isa(g, 'symfun')) 1207s g = int(f, x); 1207s assert (isa(g, 'symfun')) 1207s ***** test 1207s % definite integral does not give symfun 1207s syms x 1207s f(x) = x^2; 1207s g = int(f, x, 0, 2); 1207s assert (isa(g, 'sym')) 1207s assert (~isa(g, 'symfun')) 1207s ***** test 1207s % ... even if it has a variable in it 1207s syms x t 1207s f(x) = x; 1207s g = int(f, x, 0, t); 1207s assert (isa(g, 'sym')) 1207s assert (~isa(g, 'symfun')) 1207s ***** test 1207s % ... even if the input is abstract funcion 1207s syms f(x) 1207s g = int(f, x, 0, 2); 1207s assert (isa(g, 'sym')) 1207s assert (~isa(g, 'symfun')) 1207s ***** test 1207s % symfun in x, integrated in y gives symfun still in x 1207s % (SMT does this too). 1207s syms f(x) y 1207s g = int(f, y); 1207s assert (isa (g, 'symfun')) 1207s assert (isequal (argnames (g), x)) 1207s ***** test 1207s % same as above, but concrete symfun 1207s syms x y 1207s f(x) = x^2; 1207s g = int(f, y); 1207s assert (isa (g, 'symfun')) 1207s assert (isequal (argnames (g), x)) 1207s assert (isequal (formula(g), x^2*y)) 1207s 7 tests, 7 passed, 0 known failure, 0 skipped 1207s [inst/@symfun/private_disp_name.m] 1207s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@symfun/private_disp_name.m 1207s ***** test 1207s syms f(x) 1207s s = private_disp_name(f, 'f'); 1207s assert (strcmp (s, 'f(x)')) 1207s ***** test 1207s syms x y 1207s g(y, x) = x + y; 1207s s = private_disp_name(g, 'g'); 1207s assert (strcmp (s, 'g(y, x)')) 1207s ***** test 1207s syms f(x) 1207s assert (isempty (private_disp_name(f, ''))) 1207s 3 tests, 3 passed, 0 known failure, 0 skipped 1207s [inst/@symfun/uminus.m] 1207s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@symfun/uminus.m 1207s ***** test 1207s % Issue #447 1207s syms x 1207s f(x) = x^2; 1207s assert (isa (-f, 'symfun')) 1207s ***** test 1207s syms f(x) 1207s h = -f; 1207s assert (isa (h, 'symfun')) 1207s 2 tests, 2 passed, 0 known failure, 0 skipped 1207s [inst/@symfun/times.m] 1207s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@symfun/times.m 1207s ***** test 1207s syms x 1207s f(x) = x^2; 1207s assert( isa(f .* f, 'symfun')) 1207s assert( isa(f .* x, 'symfun')) 1208s ***** test 1208s syms x 1208s f(x) = [x 2*x]; 1208s h = f.*[x 3]; 1208s assert( isa(h, 'symfun')) 1208s assert (isequal (formula (h), [x^2 6*x])) 1208s 2 tests, 2 passed, 0 known failure, 0 skipped 1208s [inst/@symfun/ldivide.m] 1208s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@symfun/ldivide.m 1208s ***** test 1208s syms x 1208s f(x) = x^2; 1208s assert( isa(f .\ f, 'symfun')) 1208s assert( isa(f .\ x, 'symfun')) 1208s 1 test, 1 passed, 0 known failure, 0 skipped 1208s [inst/@symfun/power.m] 1208s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@symfun/power.m 1208s ***** test 1208s syms x 1208s f(x) = 2*x; 1208s h = f.^f; 1208s assert( isa(h, 'symfun')) 1208s assert (isequal (formula (h), (2*x)^(2*x))) 1208s ***** test 1208s syms x 1208s f(x) = [x 2*x]; 1208s h = f.^[x 3]; 1208s assert( isa(h, 'symfun')) 1208s assert (isequal (formula (h), [x^x 8*x^3])) 1208s 2 tests, 2 passed, 0 known failure, 0 skipped 1208s [inst/@symfun/argnames.m] 1208s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@symfun/argnames.m 1208s ***** test 1208s % basic test 1208s syms f(x) 1208s assert (isequal (argnames (f), x)) 1208s ***** test 1208s % Multiple variables, abstract symfun 1208s syms f(t, x, y) 1208s assert (isequal (argnames (f), [t x y])) 1208s ***** test 1208s % Concrete symfun 1208s syms x y z t 1208s f(t, x, y) = x + y + z; 1208s assert (isequal (argnames (f), [t x y])) 1208s 3 tests, 3 passed, 0 known failure, 0 skipped 1208s [inst/@symfun/minus.m] 1208s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@symfun/minus.m 1208s ***** test 1208s syms x 1208s f(x) = x^2; 1208s assert( isa(f - f, 'symfun')) 1208s assert( isa(f - x, 'symfun')) 1208s ***** test 1208s % Octave bug #42735 fixed in 4.4.2 1208s syms x 1208s f(x) = x^2; 1208s g = x^2; 1208s h = x - f; assert (isa (h, 'symfun') && isequal (formula (h), x - g)) 1208s h = x + f; assert (isa (h, 'symfun') && isequal (formula (h), x + g)) 1208s h = x * f; assert (isa (h, 'symfun') && isequal (formula (h), x * g)) 1208s h = x / f; assert (isa (h, 'symfun') && isequal (formula (h), x / g)) 1208s h = x ^ f; assert (isa (h, 'symfun') && isequal (formula (h), x ^ g)) 1208s h = x .* f; assert (isa (h, 'symfun') && isequal (formula (h), x .* g)) 1208s h = x ./ f; assert (isa (h, 'symfun') && isequal (formula (h), x ./ g)) 1208s h = x .^ f; assert (isa (h, 'symfun') && isequal (formula (h), x .^ g)) 1209s ***** test 1209s % different variables 1209s syms x y 1209s f(x) = 2*x; 1209s g(y) = sin(y); 1209s h = f - g(x); 1209s assert( isa(h, 'symfun')) 1209s assert( isequal (argnames (h), argnames (f))) 1209s assert (isequal (formula (h), 2*x - sin(x))) 1209s % and even if rh-sym has a dummy variable: 1209s h = f - g(y); 1209s assert( isa(h, 'symfun')) 1209s assert( isequal (argnames (h), argnames(f))) 1209s assert (isequal (formula (h), 2*x - sin(y))) 1209s ***** test 1209s % different variables, f has more 1209s syms x y 1209s f(x,y) = 2*x*y; 1209s g(y) = sin(y); 1209s h = f - g(y) + g(x); 1209s assert( isa(h, 'symfun')) 1209s assert( isequal (argnames (h), argnames (f))) 1209s assert (isequal (formula (h), 2*x*y - sin(y) + sin(x))) 1209s 4 tests, 4 passed, 0 known failure, 0 skipped 1209s [inst/@symfun/diff.m] 1209s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@symfun/diff.m 1209s ***** test 1209s % concrete fcn 1209s syms x 1209s f(x) = x*x; 1209s g(x) = 2*x; 1209s assert (logical (diff(f) == g)) 1209s assert (isa (diff(f), 'symfun')) 1209s ***** test 1209s % abstract fcn 1209s syms y(x) 1209s assert (logical (diff(y) == diff(y(x)))) 1209s assert (isa (diff(y), 'symfun')) 1209s 2 tests, 2 passed, 0 known failure, 0 skipped 1209s [inst/@symfun/mldivide.m] 1209s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@symfun/mldivide.m 1209s ***** test 1209s syms x 1209s f(x) = x^2; 1209s assert( isa(f\f, 'symfun')) 1209s assert( isa(f\x, 'symfun')) 1209s 1 test, 1 passed, 0 known failure, 0 skipped 1209s [inst/@symfun/isequaln.m] 1209s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/@symfun/isequaln.m 1209s ***** error isequaln (symfun('x + 1', x)) 1209s ***** test 1209s syms x y 1209s f(x) = 2*x; 1209s g(x) = 2*x; 1209s assert (isequaln (f, g)) 1209s ***** test 1209s syms x 1209s f(x) = 2*x + 1; 1209s g(x) = 2*x + 1; 1209s h(x) = 2*x + 1; 1209s assert (isequaln (f, g, h)) 1210s ***** test 1210s syms x 1210s f(x) = 2*x + 1; 1210s g(x) = 2*x + 1; 1210s h(x) = 2*x; 1210s assert (~ isequaln (f, g, h)) 1210s ***** test 1210s syms x y 1210s f(x) = 2*x; 1210s g(x, y) = 2*x; 1210s assert (~ isequaln (f, g)) 1210s ***** test 1210s syms x y 1210s f(x) = symfun(nan, x); 1210s g(x) = symfun(nan, x); 1210s assert (isequaln (f, g)) 1210s ***** test 1210s syms x y 1210s f(x) = symfun(nan, x); 1210s g(x, y) = symfun(nan, x); 1210s assert (~ isequaln (f, g)) 1210s 7 tests, 7 passed, 0 known failure, 0 skipped 1210s [inst/findsymbols.m] 1210s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/findsymbols.m 1210s ***** test 1210s syms x b y n a arlo 1210s z = a*x + b*pi*sin (n) + exp (y) + exp (sym (1)) + arlo; 1210s s = findsymbols (z); 1210s assert (isequal ([s{:}], [a,arlo,b,n,x,y])) 1210s ***** test 1210s syms x 1210s s = findsymbols (x); 1210s assert (isequal (s{1}, x)) 1210s ***** test 1210s syms z x y a 1210s s = findsymbols ([x y; 1 a]); 1210s assert (isequal ([s{:}], [a x y])) 1210s ***** assert (isempty (findsymbols (sym (1)))) 1210s ***** assert (isempty (findsymbols (sym ([1 2])))) 1210s ***** assert (isempty (findsymbols (sym (nan)))) 1210s ***** assert (isempty (findsymbols (sym (inf)))) 1210s ***** assert (isempty (findsymbols (exp (sym (2))))) 1210s ***** test 1210s % empty sym for findsymbols, findsym, and symvar 1210s assert (isempty (findsymbols (sym([])))) 1210s assert (isempty (findsym (sym([])))) 1210s assert (isempty (symvar (sym([])))) 1210s ***** test 1210s % diff. assumptions make diff. symbols 1210s x1 = sym('x'); 1210s x2 = sym('x', 'positive'); 1210s f = x1*x2; 1210s assert (length (findsymbols (f)) == 2) 1210s ***** test 1210s % symfun or sym 1210s syms x f(y) 1210s a = f*x; 1210s b = f(y)*x; 1210s assert (isequal (findsymbols(a), {x y})) 1210s assert (isequal (findsymbols(b), {x y})) 1211s ***** test 1211s % findsymbols on symfun does not find the argnames (unless they 1211s % are on the RHS of course, this matches SMT 2014a). 1211s syms a x y 1211s f(x, y) = a; % const symfun 1211s assert (isequal (findsymbols(f), {a})) 1211s syms a x y 1211s f(x, y) = a*y; 1211s assert (isequal (findsymbols(f), {a y})) 1211s ***** test 1211s % sorts lexigraphically, same as symvar *with single input* 1211s % (note symvar does something different with 2 inputs). 1211s syms A B a b x y X Y 1211s f = A*a*B*b*y*X*Y*x; 1211s assert (isequal (findsymbols(f), {A B X Y a b x y})) 1211s assert (isequal (symvar(f), [A B X Y a b x y])) 1211s ***** test 1211s % symbols in matpow 1211s syms x y 1211s syms n 1211s A = [sin(x) 2; y 1]; 1211s B = A^n; 1211s L = findsymbols(B); 1211s assert (isequal (L, {n x y})) 1213s ***** test 1213s % array of eq 1213s syms x y 1213s assert (isequal (findsymbols (2 == [2 x y]), {x y})) 1213s ***** test 1213s % array of ineq 1213s syms x y 1213s A = [x < 1 2*x < y x >= 2 3 <= x x != y]; 1213s assert (isequal (findsymbols (A), {x y})) 1213s 16 tests, 16 passed, 0 known failure, 0 skipped 1213s [inst/fibonacci.m] 1213s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/fibonacci.m 1213s ***** assert (isequal ( fibonacci (sym(0)), 0)) 1213s ***** assert (isequal ( fibonacci (sym(14)), sym(377))) 1213s ***** assert (isequal ( fibonacci (14), 377)) 1213s ***** test syms x 1213s assert (isequal (fibonacci (5,x), x^4 + 3*x^2 + 1)) 1213s 4 tests, 4 passed, 0 known failure, 0 skipped 1213s [inst/assume.m] 1213s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/assume.m 1213s ***** error 1213s a = assume('a', 'real') 1213s ***** error 1213s assume positive integer 1213s ***** error 1213s assume x y 1213s ***** error 1213s assume x clear real 1213s ***** error 1213s assume a>0 1213s ***** error 1213s assume 'x/pi' integer 1213s ***** test 1213s syms x 1213s assume x positive 1213s a = assumptions(x); 1213s assert(strcmp(a, 'x: positive')) 1213s assume x even 1213s a = assumptions(x); 1213s assert(strcmp(a, 'x: even')) 1213s ***** test 1213s % multiple assumptions 1213s syms x 1213s assume x positive integer 1213s [tilde, a] = assumptions(x, 'dict'); 1213s assert(a{1}.integer) 1213s assert(a{1}.positive) 1213s ***** test 1213s % does workspace 1213s syms x positive 1213s x2 = x; 1213s f = sin(x); 1213s assume x negative 1213s a = assumptions(x); 1213s assert(strcmp(a, 'x: negative')) 1213s a = assumptions(x2); 1213s assert(strcmp(a, 'x: negative')) 1213s a = assumptions(f); 1213s assert(strcmp(a, 'x: negative')) 1213s ***** error 1213s % does not create new variable x 1213s clear x 1213s assume x real 1213s ***** error 1213s % no explicit variable named x 1213s clear x 1213s f = 2*sym('x'); 1213s assume x real 1213s ***** test 1213s % clear does workspace 1213s syms x positive 1213s f = 2*x; 1213s assume x clear 1213s assert (isempty (assumptions (f))); 1213s assert (isempty (assumptions ())); 1214s ***** test 1214s syms x y 1214s f = sin (2*x); 1214s assume x y real 1214s assert (strcmp (assumptions (x), 'x: real')) 1214s assert (strcmp (assumptions (y), 'y: real')) 1214s assert (strcmp (assumptions (f), 'x: real')) 1214s ***** test 1214s syms x y 1214s f = sin (2*x); 1214s assume x y positive even 1214s assert (strcmp (assumptions (x), 'x: positive, even') || strcmp (assumptions (x), 'x: even, positive')) 1214s assert (strcmp (assumptions (y), 'y: positive, even') || strcmp (assumptions (y), 'y: even, positive')) 1214s assert (strcmp (assumptions (f), 'x: positive, even') || strcmp (assumptions (f), 'x: even, positive')) 1214s ***** test 1214s % works from variable names not symbols 1214s syms x y 1214s a = [x y]; 1214s assume a real 1214s assert (strcmp (assumptions (x), 'x: real')) 1214s assert (strcmp (assumptions (y), 'y: real')) 1214s ***** test 1214s % works from variable names not symbols 1214s y = sym('x'); 1214s f = 2*y; 1214s assume y real 1214s assert (strcmp (assumptions (f), 'x: real')) 1214s ***** test 1214s % matrix of symbols 1214s syms a b c d 1214s A = [a b; c d]; 1214s assume A real 1214s assert (strcmp (assumptions (a), 'a: real')) 1214s assert (strcmp (assumptions (b), 'b: real')) 1214s assert (strcmp (assumptions (c), 'c: real')) 1214s assert (strcmp (assumptions (d), 'd: real')) 1215s ***** test 1215s % assume after symfun 1215s clear x 1215s syms f(x) 1215s assume x real 1215s assert (~ isempty (assumptions (formula (f)))) 1215s assert (~ isempty (assumptions (argnames (f)))) 1215s 18 tests, 18 passed, 0 known failure, 0 skipped 1215s [inst/dirac.m] 1215s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/dirac.m 1215s ***** assert (isinf (dirac (0))) 1215s ***** assert (dirac (1) == 0) 1215s ***** assert (isnan (dirac (nan))) 1215s ***** assert (isequaln (dirac ([-1 1 0 eps inf -inf nan]), [0 0 inf 0 0 0 nan])) 1215s ***** error dirac (1i) 1215s ***** assert (isa (dirac (single (0)), 'single')) 1215s 6 tests, 6 passed, 0 known failure, 0 skipped 1215s [inst/syms.m] 1215s >>>>> /tmp/autopkgtest.Wql6nV/build.25d/src/inst/syms.m 1215s ***** test 1215s %% assumptions 1215s syms x real 1215s x2 = sym('x', 'real'); 1215s assert (isequal (x, x2)) 1215s ***** test 1215s % assumptions and clearing them on a symbol 1215s syms x real 1215s assert (~isempty (assumptions (x))) 1215s syms x 1215s assert (isempty (assumptions (x))) 1215s ***** test 1215s % Note SMT would clear syms in existing expressions 1215s syms x real 1215s f = {x {2*x} cos(x/2)}; 1215s assert (~isempty (assumptions (f))) 1215s syms x 1215s % but we do not: this would have to toggle for pure SMT compat 1215s assert (~isempty (assumptions (f))) 1215s % assert (isempty (assumptions (f))) 1215s ***** error 1215s syms x clear 1215s ***** error 1215s syms x positive y 1215s ***** error 1215s % this sometimes catches typos or errors in assumption names 1215s % (if you need careful checking, use sym not syms) 1215s syms x positive evne 1215s ***** error 1215s syms positive integer 1215s ***** test 1215s % does not create a variable called positive 1215s syms x positive integer 1215s assert (logical(exist('x', 'var'))) 1215s assert (~logical(exist('positive', 'var'))) 1215s ***** test 1215s % Issue #885 1215s syms S(x) I(x) O(x) 1215s ***** test 1215s % Issue #290 1215s syms FF(x) 1215s syms ff(x) 1215s syms Eq(x) 1215s ***** test 1215s % Issue #290 1215s syms beta(x) 1215s ***** test 1215s syms x real 1215s syms f(x) 1215s assert (~ isempty (assumptions (x))) 1215s ***** test 1215s syms x real 1215s f(x) = symfun(sym('f(x)'), x); 1215s assert (~ isempty (assumptions (x))) 1215s assert (~ isempty (assumptions (argnames (f)))) 1215s :18: SyntaxWarning: invalid escape sequence '\(' 1215s 13 tests, 13 passed, 0 known failure, 0 skipped 1215s Checking C++ files ... 1215s 1216s Done running the unit tests. 1216s Summary: 2401 tests, 2371 passed, 30 known failures, 0 skipped 1216s autopkgtest [22:42:26]: test command1: -----------------------] 1217s autopkgtest [22:42:27]: test command1: - - - - - - - - - - results - - - - - - - - - - 1217s command1 PASS 1217s autopkgtest [22:42:27]: @@@@@@@@@@@@@@@@@@@@ summary 1217s command1 PASS 1226s Creating nova instance adt-noble-i386-octave-symbolic-20240321-222210-juju-7f2275-prod-proposed-migration-environment-2 from image adt/ubuntu-noble-amd64-server-20240321.img (UUID 6f9effbc-61d8-4d0a-a7e9-883547f42ac1)...