0s autopkgtest [10:21:35]: starting date and time: 2024-06-16 10:21:35+0000 0s autopkgtest [10:21:35]: git checkout: 433ed4cb Merge branch 'skia/nova_flock' into 'ubuntu/5.34+prod' 0s autopkgtest [10:21:35]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.51vanmm8/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:sympy --apt-upgrade octave-symbolic --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=sympy/1.12.1-1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@bos03-arm64-5.secgroup --name adt-oracular-arm64-octave-symbolic-20240616-102135-juju-7f2275-prod-proposed-migration-environment-2-4d5748bc-56d2-415e-ba16-ca539839c873 --image adt/ubuntu-oracular-arm64-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,keyserver.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/ 1285s autopkgtest [10:43:00]: testbed dpkg architecture: arm64 1285s autopkgtest [10:43:00]: testbed apt version: 2.9.3 1285s autopkgtest [10:43:00]: @@@@@@@@@@@@@@@@@@@@ test bed setup 1286s Get:1 http://ftpmaster.internal/ubuntu oracular-proposed InRelease [110 kB] 1286s Get:2 http://ftpmaster.internal/ubuntu oracular-proposed/universe Sources [389 kB] 1287s Get:3 http://ftpmaster.internal/ubuntu oracular-proposed/multiverse Sources [2576 B] 1287s Get:4 http://ftpmaster.internal/ubuntu oracular-proposed/restricted Sources [7052 B] 1287s Get:5 http://ftpmaster.internal/ubuntu oracular-proposed/main Sources [36.1 kB] 1287s Get:6 http://ftpmaster.internal/ubuntu oracular-proposed/main arm64 Packages [55.3 kB] 1287s Get:7 http://ftpmaster.internal/ubuntu oracular-proposed/restricted arm64 Packages [33.3 kB] 1287s Get:8 http://ftpmaster.internal/ubuntu oracular-proposed/universe arm64 Packages [312 kB] 1287s Get:9 http://ftpmaster.internal/ubuntu oracular-proposed/multiverse arm64 Packages [8312 B] 1287s Fetched 955 kB in 1s (803 kB/s) 1287s Reading package lists... 1293s Reading package lists... 1293s Building dependency tree... 1293s Reading state information... 1294s Calculating upgrade... 1295s The following packages will be upgraded: 1295s apt apt-utils dracut-install libapt-pkg6.0t64 libc-bin libc-dev-bin 1295s libc-devtools libc6 libc6-dev libldap-common libldap2 libnss3 locales 1295s python3-certifi ubuntu-pro-client ubuntu-pro-client-l10n 1296s 16 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1296s Need to get 13.8 MB of archives. 1296s After this operation, 9216 B of additional disk space will be used. 1296s Get:1 http://ftpmaster.internal/ubuntu oracular/main arm64 libc-devtools arm64 2.39-0ubuntu9 [27.8 kB] 1296s Get:2 http://ftpmaster.internal/ubuntu oracular/main arm64 libc6-dev arm64 2.39-0ubuntu9 [1595 kB] 1297s Get:3 http://ftpmaster.internal/ubuntu oracular/main arm64 libc-dev-bin arm64 2.39-0ubuntu9 [19.7 kB] 1297s Get:4 http://ftpmaster.internal/ubuntu oracular/main arm64 libc6 arm64 2.39-0ubuntu9 [2776 kB] 1297s Get:5 http://ftpmaster.internal/ubuntu oracular/main arm64 libc-bin arm64 2.39-0ubuntu9 [591 kB] 1297s Get:6 http://ftpmaster.internal/ubuntu oracular/main arm64 libapt-pkg6.0t64 arm64 2.9.5 [967 kB] 1297s Get:7 http://ftpmaster.internal/ubuntu oracular/main arm64 apt arm64 2.9.5 [1362 kB] 1297s Get:8 http://ftpmaster.internal/ubuntu oracular/main arm64 apt-utils arm64 2.9.5 [211 kB] 1297s Get:9 http://ftpmaster.internal/ubuntu oracular/main arm64 locales all 2.39-0ubuntu9 [4235 kB] 1297s Get:10 http://ftpmaster.internal/ubuntu oracular/main arm64 ubuntu-pro-client-l10n arm64 32.3.1 [19.4 kB] 1297s Get:11 http://ftpmaster.internal/ubuntu oracular/main arm64 ubuntu-pro-client arm64 32.3.1 [228 kB] 1297s Get:12 http://ftpmaster.internal/ubuntu oracular/main arm64 dracut-install arm64 102-3ubuntu2 [32.4 kB] 1297s Get:13 http://ftpmaster.internal/ubuntu oracular/main arm64 libldap-common all 2.6.7+dfsg-1~exp1ubuntu9 [31.5 kB] 1297s Get:14 http://ftpmaster.internal/ubuntu oracular/main arm64 libldap2 arm64 2.6.7+dfsg-1~exp1ubuntu9 [193 kB] 1297s Get:15 http://ftpmaster.internal/ubuntu oracular/main arm64 libnss3 arm64 2:3.101-1 [1361 kB] 1297s Get:16 http://ftpmaster.internal/ubuntu oracular/main arm64 python3-certifi all 2024.6.2-1 [160 kB] 1299s Preconfiguring packages ... 1299s Fetched 13.8 MB in 2s (6550 kB/s) 1300s (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 ... 78264 files and directories currently installed.) 1300s Preparing to unpack .../libc-devtools_2.39-0ubuntu9_arm64.deb ... 1300s Unpacking libc-devtools (2.39-0ubuntu9) over (2.39-0ubuntu8.1) ... 1303s Preparing to unpack .../libc6-dev_2.39-0ubuntu9_arm64.deb ... 1303s Unpacking libc6-dev:arm64 (2.39-0ubuntu9) over (2.39-0ubuntu8.1) ... 1306s Preparing to unpack .../libc-dev-bin_2.39-0ubuntu9_arm64.deb ... 1307s Unpacking libc-dev-bin (2.39-0ubuntu9) over (2.39-0ubuntu8.1) ... 1309s Preparing to unpack .../libc6_2.39-0ubuntu9_arm64.deb ... 1312s Unpacking libc6:arm64 (2.39-0ubuntu9) over (2.39-0ubuntu8.1) ... 1313s Setting up libc6:arm64 (2.39-0ubuntu9) ... 1319s (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 ... 78264 files and directories currently installed.) 1319s Preparing to unpack .../libc-bin_2.39-0ubuntu9_arm64.deb ... 1319s Unpacking libc-bin (2.39-0ubuntu9) over (2.39-0ubuntu8.1) ... 1321s Setting up libc-bin (2.39-0ubuntu9) ... 1322s (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 ... 78264 files and directories currently installed.) 1322s Preparing to unpack .../libapt-pkg6.0t64_2.9.5_arm64.deb ... 1322s Unpacking libapt-pkg6.0t64:arm64 (2.9.5) over (2.9.3) ... 1322s Setting up libapt-pkg6.0t64:arm64 (2.9.5) ... 1322s (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 ... 78264 files and directories currently installed.) 1322s Preparing to unpack .../archives/apt_2.9.5_arm64.deb ... 1322s Unpacking apt (2.9.5) over (2.9.3) ... 1323s Setting up apt (2.9.5) ... 1327s (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 ... 78264 files and directories currently installed.) 1327s Preparing to unpack .../0-apt-utils_2.9.5_arm64.deb ... 1327s Unpacking apt-utils (2.9.5) over (2.9.3) ... 1331s Preparing to unpack .../1-locales_2.39-0ubuntu9_all.deb ... 1331s Unpacking locales (2.39-0ubuntu9) over (2.39-0ubuntu8.1) ... 1336s Preparing to unpack .../2-ubuntu-pro-client-l10n_32.3.1_arm64.deb ... 1336s Unpacking ubuntu-pro-client-l10n (32.3.1) over (32.3) ... 1339s Preparing to unpack .../3-ubuntu-pro-client_32.3.1_arm64.deb ... 1340s Unpacking ubuntu-pro-client (32.3.1) over (32.3) ... 1341s Preparing to unpack .../4-dracut-install_102-3ubuntu2_arm64.deb ... 1341s Unpacking dracut-install (102-3ubuntu2) over (102-3ubuntu1) ... 1341s Preparing to unpack .../5-libldap-common_2.6.7+dfsg-1~exp1ubuntu9_all.deb ... 1341s Unpacking libldap-common (2.6.7+dfsg-1~exp1ubuntu9) over (2.6.7+dfsg-1~exp1ubuntu8) ... 1341s Preparing to unpack .../6-libldap2_2.6.7+dfsg-1~exp1ubuntu9_arm64.deb ... 1341s Unpacking libldap2:arm64 (2.6.7+dfsg-1~exp1ubuntu9) over (2.6.7+dfsg-1~exp1ubuntu8) ... 1343s Preparing to unpack .../7-libnss3_2%3a3.101-1_arm64.deb ... 1343s Unpacking libnss3:arm64 (2:3.101-1) over (2:3.100-1) ... 1345s Preparing to unpack .../8-python3-certifi_2024.6.2-1_all.deb ... 1345s Unpacking python3-certifi (2024.6.2-1) over (2023.11.17-1) ... 1347s Setting up apt-utils (2.9.5) ... 1347s Setting up libnss3:arm64 (2:3.101-1) ... 1347s Setting up locales (2.39-0ubuntu9) ... 1364s Generating locales (this might take a while)... 1374s en_US.UTF-8... done 1374s Generation complete. 1374s Setting up libldap-common (2.6.7+dfsg-1~exp1ubuntu9) ... 1374s Setting up python3-certifi (2024.6.2-1) ... 1375s Setting up dracut-install (102-3ubuntu2) ... 1375s Setting up libc-dev-bin (2.39-0ubuntu9) ... 1375s Setting up ubuntu-pro-client (32.3.1) ... 1375s Installing new version of config file /etc/apparmor.d/ubuntu_pro_esm_cache ... 1386s Setting up libldap2:arm64 (2.6.7+dfsg-1~exp1ubuntu9) ... 1386s Setting up libc-devtools (2.39-0ubuntu9) ... 1386s Setting up ubuntu-pro-client-l10n (32.3.1) ... 1386s Setting up libc6-dev:arm64 (2.39-0ubuntu9) ... 1386s Processing triggers for man-db (2.12.1-2) ... 1388s Processing triggers for libc-bin (2.39-0ubuntu9) ... 1391s Reading package lists... 1391s Building dependency tree... 1391s Reading state information... 1392s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1396s Hit:1 http://ftpmaster.internal/ubuntu oracular InRelease 1396s Hit:2 http://ftpmaster.internal/ubuntu oracular-updates InRelease 1396s Hit:3 http://ftpmaster.internal/ubuntu oracular-security InRelease 1396s Hit:4 http://ftpmaster.internal/ubuntu oracular-proposed InRelease 1401s Reading package lists... 1401s Reading package lists... 1401s Building dependency tree... 1401s Reading state information... 1402s Calculating upgrade... 1402s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1405s Reading package lists... 1405s Building dependency tree... 1405s Reading state information... 1407s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1408s autopkgtest [10:45:03]: rebooting testbed after setup commands that affected boot 1417s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 1450s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 1483s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 1516s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 1549s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 1582s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 1588s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 1592s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 1622s autopkgtest [10:48:37]: testbed running kernel: Linux 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 02:32:42 UTC 2024 1639s autopkgtest [10:48:54]: @@@@@@@@@@@@@@@@@@@@ apt-source octave-symbolic 1650s Get:1 http://ftpmaster.internal/ubuntu oracular/universe octave-symbolic 3.1.1-2 (dsc) [2289 B] 1650s Get:2 http://ftpmaster.internal/ubuntu oracular/universe octave-symbolic 3.1.1-2 (tar) [266 kB] 1650s Get:3 http://ftpmaster.internal/ubuntu oracular/universe octave-symbolic 3.1.1-2 (diff) [6096 B] 1651s gpgv: Signature made Tue Jun 13 21:02:30 2023 UTC 1651s gpgv: using RSA key 3F464391498FE874BDB5D98F2124AA1983785C90 1651s gpgv: issuer "rafael@debian.org" 1651s gpgv: Can't check signature: No public key 1651s dpkg-source: warning: cannot verify inline signature for ./octave-symbolic_3.1.1-2.dsc: no acceptable signature found 1653s autopkgtest [10:49:08]: testing package octave-symbolic version 3.1.1-2 1654s autopkgtest [10:49:09]: build not needed 1655s autopkgtest [10:49:10]: test command1: preparing testbed 1661s Reading package lists... 1663s Building dependency tree... 1663s Reading state information... 1663s Starting pkgProblemResolver with broken count: 0 1663s Starting 2 pkgProblemResolver with broken count: 0 1663s Done 1664s The following additional packages will be installed: 1664s aglfn autoconf automake autopoint autotools-dev cme cpp cpp-13 1664s cpp-13-aarch64-linux-gnu cpp-aarch64-linux-gnu debhelper debugedit 1664s dh-autoreconf dh-octave dh-octave-autopkgtest dh-strip-nondeterminism 1664s diffstat dwz fontconfig fonts-freefont-otf g++ g++-13 1664s g++-13-aarch64-linux-gnu g++-aarch64-linux-gnu gcc gcc-13 1664s gcc-13-aarch64-linux-gnu gcc-aarch64-linux-gnu gettext gfortran gfortran-13 1664s gfortran-13-aarch64-linux-gnu gfortran-aarch64-linux-gnu gnuplot-data 1664s gnuplot-nox hdf5-helpers intltool-debian libaec-dev libaec0 1664s libalgorithm-c3-perl libaliased-perl libamd3 libapp-cmd-perl libapt-pkg-perl 1664s libarchive-zip-perl libarpack2t64 libarray-intspan-perl libasan8 1664s libasound2-data libasound2t64 libatomic1 libavahi-client3 1664s libavahi-common-data libavahi-common3 libb-hooks-endofscope-perl 1664s libb-hooks-op-check-perl libberkeleydb-perl libblas-dev libblas3 1664s libboolean-perl libbtf2 libcairo2 libcamd3 libcapture-tiny-perl 1664s libcarp-assert-more-perl libcc1-0 libccolamd3 libcgi-pm-perl libcholmod5 1664s libclass-c3-perl libclass-data-inheritable-perl libclass-load-perl 1664s libclass-method-modifiers-perl libclass-xsaccessor-perl libclone-choose-perl 1664s libclone-perl libcolamd3 libcombblas2.0.0t64 1664s libconfig-model-backend-yaml-perl libconfig-model-dpkg-perl 1664s libconfig-model-perl libconfig-tiny-perl libconst-fast-perl 1664s libconvert-binhex-perl libcpanel-json-xs-perl libcups2t64 1664s libcurl4-openssl-dev libcxsparse4 libdata-dpath-perl 1664s libdata-messagepack-perl libdata-optlist-perl libdata-section-perl 1664s libdata-validate-domain-perl libdata-validate-ip-perl 1664s libdata-validate-uri-perl libdatrie1 libdebhelper-perl 1664s libdevel-callchecker-perl libdevel-size-perl libdevel-stacktrace-perl 1664s libdouble-conversion3 libdrm-amdgpu1 libdrm-nouveau2 libdrm-radeon1 1664s libdynaloader-functions-perl libegl-mesa0 libegl1 libemail-address-xs-perl 1664s libencode-locale-perl liberror-perl libevent-pthreads-2.1-7t64 1664s libexception-class-perl libexporter-lite-perl libexporter-tiny-perl 1664s libfabric1 libfftw3-bin libfftw3-dev libfftw3-double3 libfftw3-long3 1664s libfftw3-mpi3 libfftw3-single3 libfile-basedir-perl libfile-find-rule-perl 1664s libfile-homedir-perl libfile-listing-perl libfile-stripnondeterminism-perl 1664s libfile-which-perl libflac12t64 libfltk-gl1.3t64 libfltk1.3t64 1664s libfont-ttf-perl libfontenc1 libgbm1 libgcc-13-dev 1664s libgetopt-long-descriptive-perl libgfortran-13-dev libgfortran5 libgif7 1664s libgl-dev libgl1 libgl1-mesa-dri libgl2ps1.4 libglapi-mesa libglpk40 1664s libglu1-mesa libglvnd0 libglx-dev libglx-mesa0 libglx0 libgomp1 1664s libgraphicsmagick++-q16-12t64 libgraphicsmagick-q16-3t64 libgraphite2-3 1664s libharfbuzz0b libhash-merge-perl libhdf5-103-1t64 libhdf5-cpp-103-1t64 1664s libhdf5-dev libhdf5-fortran-102t64 libhdf5-hl-100t64 libhdf5-hl-cpp-100t64 1664s libhdf5-hl-fortran-100t64 libhdf5-openmpi-103-1t64 libhtml-form-perl 1664s libhtml-html5-entities-perl libhtml-parser-perl libhtml-tagset-perl 1664s libhtml-tokeparser-simple-perl libhtml-tree-perl libhttp-cookies-perl 1664s libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libhwasan0 1664s libhwloc-plugins libhwloc15 libhwy1t64 libhypre-2.28.0 libice6 1664s libimath-3-1-29t64 libimport-into-perl libindirect-perl libinput-bin 1664s libinput10 libio-html-perl libio-interactive-perl libio-socket-ssl-perl 1664s libio-string-perl libio-stringy-perl libio-tiecombine-perl libipc-run3-perl 1664s libipc-system-simple-perl libisl23 libiterator-perl libiterator-util-perl 1664s libitm1 libjack-jackd2-0 libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev 1664s libjson-maybexs-perl libjson-perl libjxl0.9 libklu2 liblapack-dev liblapack3 1664s liblcms2-2 liblist-compare-perl liblist-moreutils-perl 1664s liblist-moreutils-xs-perl liblist-someutils-perl liblist-utilsby-perl 1664s libllvm17t64 liblog-any-adapter-screen-perl liblog-any-perl 1664s liblog-log4perl-perl liblsan0 libltdl7 liblua5.4-0 liblwp-mediatypes-perl 1664s liblwp-protocol-https-perl libmailtools-perl libmarkdown2 libmd4c0 libmetis5 1664s libmime-tools-perl libmldbm-perl libmodule-implementation-perl 1664s libmodule-pluggable-perl libmodule-runtime-perl libmoo-perl 1664s libmoox-aliases-perl libmouse-perl libmousex-nativetraits-perl 1664s libmousex-strictconstructor-perl libmp3lame0 libmpc3 libmpg123-0t64 1664s libmro-compat-perl libmtdev1t64 libmumps-5.6t64 libmunge2 1664s libnamespace-clean-perl libncurses-dev libnet-domain-tld-perl 1664s libnet-http-perl libnet-ipv6addr-perl libnet-netmask-perl 1664s libnet-smtp-ssl-perl libnet-ssleay-perl libnetaddr-ip-perl 1664s libnumber-compare-perl libobject-pad-perl libogg0 libopenexr-3-1-30 1664s libopengl0 libopenmpi3t64 libopus0 libpackage-stash-perl libpango-1.0-0 1664s libpangocairo-1.0-0 libpangoft2-1.0-0 libparams-classify-perl 1664s libparams-util-perl libparams-validate-perl libparse-debcontrol-perl 1664s libparse-recdescent-perl libpath-iterator-rule-perl libpath-tiny-perl 1664s libpciaccess0 libpcre2-16-0 libperlio-gzip-perl libperlio-utf8-strict-perl 1664s libpetsc-real3.19t64 libpixman-1-0 libpmix2t64 libpod-constants-perl 1664s libpod-parser-perl libpod-pom-perl libportaudio2 libproc-processtable-perl 1664s libptscotch-7.0 libqhull-r8.0 libqrupdate1 libqscintilla2-qt5-15 1664s libqscintilla2-qt5-l10n libqt5core5t64 libqt5dbus5t64 libqt5gui5t64 1664s libqt5help5 libqt5network5t64 libqt5printsupport5t64 libqt5sql5t64 1664s libqt5widgets5t64 libqt5xml5t64 librdmacm1t64 libreadline-dev 1664s libregexp-common-perl libregexp-pattern-license-perl libregexp-pattern-perl 1664s libregexp-wildcards-perl librole-tiny-perl libsamplerate0 1664s libscalapack-openmpi2.2 libscotch-7.0 libsereal-decoder-perl 1664s libsereal-encoder-perl libset-intspan-perl libsm6 libsndfile1 1664s libsoftware-copyright-perl libsoftware-license-perl 1664s libsoftware-licensemoreutils-perl libsort-versions-perl libspqr4 libssl-dev 1664s libstdc++-13-dev libstrictures-perl libstring-copyright-perl 1664s libstring-escape-perl libstring-license-perl libstring-rewriteprefix-perl 1664s libsub-exporter-perl libsub-exporter-progressive-perl libsub-identify-perl 1664s libsub-install-perl libsub-name-perl libsub-quote-perl libsub-uplevel-perl 1664s libsuitesparseconfig7 libsundials-ida6 libsundials-nvecparallel-petsc6 1664s libsundials-sunlinsol3 libsundials-sunmatrix4 libsuperlu-dist8 libsuperlu6 1664s libsyntax-keyword-try-perl libsz2 libterm-readkey-perl 1664s libtest-exception-perl libtext-autoformat-perl libtext-glob-perl 1664s libtext-levenshtein-damerau-perl libtext-levenshteinxs-perl 1664s libtext-markdown-discount-perl libtext-reform-perl libtext-template-perl 1664s libtext-unidecode-perl libtext-xslate-perl libthai-data libthai0 1664s libtime-duration-perl libtime-moment-perl libtimedate-perl libtoml-tiny-perl 1664s libtool libtrilinos-amesos-13.2 libtrilinos-aztecoo-13.2 1664s libtrilinos-epetra-13.2 libtrilinos-epetraext-13.2 libtrilinos-galeri-13.2 1664s libtrilinos-ifpack-13.2 libtrilinos-kokkos-13.2 libtrilinos-ml-13.2 1664s libtrilinos-teuchos-13.2 libtrilinos-trilinosss-13.2 1664s libtrilinos-triutils-13.2 libtrilinos-zoltan-13.2 libtry-tiny-perl libtsan2 1664s libubsan1 libucx0 libumfpack6 libunicode-utf8-perl liburi-perl 1664s libvariable-magic-perl libvorbis0a libvorbisenc2 libvulkan1 libwacom-common 1664s libwacom9 libwayland-client0 libwayland-server0 libwebpmux3 libwmflite-0.2-7 1664s libwww-mechanize-perl libwww-perl libwww-robotrules-perl libx11-dev 1664s libx11-xcb1 libxau-dev libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 1664s libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-present0 libxcb-randr0 1664s libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 1664s libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xinput0 libxcb-xkb1 1664s libxcb1-dev libxcursor1 libxdmcp-dev libxfixes3 libxfont2 libxft2 1664s libxinerama1 libxkbcommon-x11-0 libxkbfile1 libxml-libxml-perl 1664s libxml-namespacesupport-perl libxml-sax-base-perl libxml-sax-perl libxmu6 1664s libxnvctrl0 libxrandr2 libxrender1 libxs-parse-keyword-perl 1664s libxs-parse-sublike-perl libxshmfence1 libxt6t64 libxxf86vm1 1664s libyaml-libyaml-perl libyaml-pp-perl libyaml-tiny-perl licensecheck lintian 1664s lzip lzop m4 mpi-default-bin ocl-icd-libopencl1 octave octave-common 1664s octave-dev octave-symbolic openmpi-bin openmpi-common patchutils 1664s perl-openssl-defaults po-debconf python3-mpmath python3-sympy t1utils 1664s tex-common texinfo texinfo-lib unzip x11-common x11-xkb-utils x11proto-dev 1664s xorg-sgml-doctools xserver-common xtrans-dev xvfb zlib1g-dev 1664s Suggested packages: 1664s autoconf-archive gnu-standards autoconf-doc libconfig-model-cursesui-perl 1664s libconfig-model-itself-perl cpp-doc gcc-13-locales cpp-13-doc dh-make 1664s gcc-13-doc gcc-multilib manpages-dev flex bison gdb gcc-doc 1664s gdb-aarch64-linux-gnu gettext-doc libasprintf-dev libgettextpo-dev 1664s gfortran-doc gfortran-13-doc libcoarrays-dev gnuplot-doc alsa-utils 1664s libasound2-plugins liblapack-doc libconfig-model-openssh-perl 1664s libterm-readline-perl-perl | libterm-readline-gnu-perl cups-common 1664s libcurl4-doc libidn-dev libkrb5-dev libldap2-dev librtmp-dev libssh2-1-dev 1664s pkgconf libfftw3-doc libfftw3-mpi-dev libxml-parser-perl libiodbc2-dev 1664s default-libmysqlclient-dev graphicsmagick-dbg libhdf5-doc libdata-dump-perl 1664s libio-compress-brotli-perl jackd2 liblcms2-utils libdbd-csv-perl 1664s liblog-dispatch-filerotate-perl librrds-perl libxml-dom-perl 1664s libcrypt-ssleay-perl ncurses-doc opus-tools libscalar-number-perl 1664s libqscintilla2-doc qgnomeplatform-qt5 qt5-image-formats-plugins readline-doc 1664s scalapack-doc libssl-doc libstdc++-13-doc libbareword-filehandles-perl 1664s libmultidimensional-perl libxstring-perl libdatetime-format-rfc3339-perl 1664s libtool-doc gcj-jdk libbusiness-isbn-perl libregexp-ipv6-perl libwacom-bin 1664s libauthen-ntlm-perl libx11-doc libxcb-doc binutils-multiarch m4-doc 1664s opencl-icd libmail-box-perl python-mpmath-doc python3-gmpy2 1664s python3-matplotlib texlive-fonts-extra dvipng python-sympy-doc texlive-base 1664s texlive-latex-base texlive-plain-generic texlive-fonts-recommended zip 1664s Recommended packages: 1664s libconfig-model-approx-perl libconfig-model-lcdproc-perl 1664s libconfig-model-openssh-perl libconfig-model-systemd-perl 1664s libconfig-model-tkui-perl fonts-liberation groff alsa-ucm-conf 1664s alsa-topology-conf libcgi-fast-perl libclass-c3-xs-perl libfuse-perl 1664s libarchive-cpio-perl libgl1-amber-dri ghostscript fonts-urw-base35 1664s libhtml-format-perl libjson-xs-perl liblist-someutils-xs-perl 1664s libipc-shareable-perl liblog-dispatch-perl libfreezethaw-perl 1664s libmath-base85-perl libauthen-sasl-perl libsocket6-perl 1664s libpackage-stash-xs-perl libtie-ixhash-perl qttranslations5-l10n libqt5svg5 1664s qt5-gtk-platformtheme qtwayland5 libqt5sql5-sqlite | libqt5sql5-mysql 1664s | libqt5sql5-odbc | libqt5sql5-psql | libqt5sql5-tds | libqt5sql5-ibase 1664s libre-engine-re2-perl libtypes-serialiser-perl libltdl-dev 1664s mesa-vulkan-drivers | vulkan-icd libdata-dump-perl libhttp-daemon-perl 1664s libxml-sax-expat-perl libopenblas0 | libblis4 pstoedit epstool 1664s default-jre-headless octave-doc libmail-sendmail-perl python3-pil 1664s python3-numpy isympy-common xfonts-base 1665s The following NEW packages will be installed: 1665s aglfn autoconf automake autopkgtest-satdep autopoint autotools-dev cme cpp 1665s cpp-13 cpp-13-aarch64-linux-gnu cpp-aarch64-linux-gnu debhelper debugedit 1665s dh-autoreconf dh-octave dh-octave-autopkgtest dh-strip-nondeterminism 1665s diffstat dwz fontconfig fonts-freefont-otf g++ g++-13 1665s g++-13-aarch64-linux-gnu g++-aarch64-linux-gnu gcc gcc-13 1665s gcc-13-aarch64-linux-gnu gcc-aarch64-linux-gnu gettext gfortran gfortran-13 1665s gfortran-13-aarch64-linux-gnu gfortran-aarch64-linux-gnu gnuplot-data 1665s gnuplot-nox hdf5-helpers intltool-debian libaec-dev libaec0 1665s libalgorithm-c3-perl libaliased-perl libamd3 libapp-cmd-perl libapt-pkg-perl 1665s libarchive-zip-perl libarpack2t64 libarray-intspan-perl libasan8 1665s libasound2-data libasound2t64 libatomic1 libavahi-client3 1665s libavahi-common-data libavahi-common3 libb-hooks-endofscope-perl 1665s libb-hooks-op-check-perl libberkeleydb-perl libblas-dev libblas3 1665s libboolean-perl libbtf2 libcairo2 libcamd3 libcapture-tiny-perl 1665s libcarp-assert-more-perl libcc1-0 libccolamd3 libcgi-pm-perl libcholmod5 1665s libclass-c3-perl libclass-data-inheritable-perl libclass-load-perl 1665s libclass-method-modifiers-perl libclass-xsaccessor-perl libclone-choose-perl 1665s libclone-perl libcolamd3 libcombblas2.0.0t64 1665s libconfig-model-backend-yaml-perl libconfig-model-dpkg-perl 1665s libconfig-model-perl libconfig-tiny-perl libconst-fast-perl 1665s libconvert-binhex-perl libcpanel-json-xs-perl libcups2t64 1665s libcurl4-openssl-dev libcxsparse4 libdata-dpath-perl 1665s libdata-messagepack-perl libdata-optlist-perl libdata-section-perl 1665s libdata-validate-domain-perl libdata-validate-ip-perl 1665s libdata-validate-uri-perl libdatrie1 libdebhelper-perl 1665s libdevel-callchecker-perl libdevel-size-perl libdevel-stacktrace-perl 1665s libdouble-conversion3 libdrm-amdgpu1 libdrm-nouveau2 libdrm-radeon1 1665s libdynaloader-functions-perl libegl-mesa0 libegl1 libemail-address-xs-perl 1665s libencode-locale-perl liberror-perl libevent-pthreads-2.1-7t64 1665s libexception-class-perl libexporter-lite-perl libexporter-tiny-perl 1665s libfabric1 libfftw3-bin libfftw3-dev libfftw3-double3 libfftw3-long3 1665s libfftw3-mpi3 libfftw3-single3 libfile-basedir-perl libfile-find-rule-perl 1665s libfile-homedir-perl libfile-listing-perl libfile-stripnondeterminism-perl 1665s libfile-which-perl libflac12t64 libfltk-gl1.3t64 libfltk1.3t64 1665s libfont-ttf-perl libfontenc1 libgbm1 libgcc-13-dev 1665s libgetopt-long-descriptive-perl libgfortran-13-dev libgfortran5 libgif7 1665s libgl-dev libgl1 libgl1-mesa-dri libgl2ps1.4 libglapi-mesa libglpk40 1665s libglu1-mesa libglvnd0 libglx-dev libglx-mesa0 libglx0 libgomp1 1665s libgraphicsmagick++-q16-12t64 libgraphicsmagick-q16-3t64 libgraphite2-3 1665s libharfbuzz0b libhash-merge-perl libhdf5-103-1t64 libhdf5-cpp-103-1t64 1665s libhdf5-dev libhdf5-fortran-102t64 libhdf5-hl-100t64 libhdf5-hl-cpp-100t64 1665s libhdf5-hl-fortran-100t64 libhdf5-openmpi-103-1t64 libhtml-form-perl 1665s libhtml-html5-entities-perl libhtml-parser-perl libhtml-tagset-perl 1665s libhtml-tokeparser-simple-perl libhtml-tree-perl libhttp-cookies-perl 1665s libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libhwasan0 1665s libhwloc-plugins libhwloc15 libhwy1t64 libhypre-2.28.0 libice6 1665s libimath-3-1-29t64 libimport-into-perl libindirect-perl libinput-bin 1665s libinput10 libio-html-perl libio-interactive-perl libio-socket-ssl-perl 1665s libio-string-perl libio-stringy-perl libio-tiecombine-perl libipc-run3-perl 1665s libipc-system-simple-perl libisl23 libiterator-perl libiterator-util-perl 1665s libitm1 libjack-jackd2-0 libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev 1665s libjson-maybexs-perl libjson-perl libjxl0.9 libklu2 liblapack-dev liblapack3 1665s liblcms2-2 liblist-compare-perl liblist-moreutils-perl 1665s liblist-moreutils-xs-perl liblist-someutils-perl liblist-utilsby-perl 1665s libllvm17t64 liblog-any-adapter-screen-perl liblog-any-perl 1665s liblog-log4perl-perl liblsan0 libltdl7 liblua5.4-0 liblwp-mediatypes-perl 1665s liblwp-protocol-https-perl libmailtools-perl libmarkdown2 libmd4c0 libmetis5 1665s libmime-tools-perl libmldbm-perl libmodule-implementation-perl 1665s libmodule-pluggable-perl libmodule-runtime-perl libmoo-perl 1665s libmoox-aliases-perl libmouse-perl libmousex-nativetraits-perl 1665s libmousex-strictconstructor-perl libmp3lame0 libmpc3 libmpg123-0t64 1665s libmro-compat-perl libmtdev1t64 libmumps-5.6t64 libmunge2 1665s libnamespace-clean-perl libncurses-dev libnet-domain-tld-perl 1665s libnet-http-perl libnet-ipv6addr-perl libnet-netmask-perl 1665s libnet-smtp-ssl-perl libnet-ssleay-perl libnetaddr-ip-perl 1665s libnumber-compare-perl libobject-pad-perl libogg0 libopenexr-3-1-30 1665s libopengl0 libopenmpi3t64 libopus0 libpackage-stash-perl libpango-1.0-0 1665s libpangocairo-1.0-0 libpangoft2-1.0-0 libparams-classify-perl 1665s libparams-util-perl libparams-validate-perl libparse-debcontrol-perl 1665s libparse-recdescent-perl libpath-iterator-rule-perl libpath-tiny-perl 1665s libpciaccess0 libpcre2-16-0 libperlio-gzip-perl libperlio-utf8-strict-perl 1665s libpetsc-real3.19t64 libpixman-1-0 libpmix2t64 libpod-constants-perl 1665s libpod-parser-perl libpod-pom-perl libportaudio2 libproc-processtable-perl 1665s libptscotch-7.0 libqhull-r8.0 libqrupdate1 libqscintilla2-qt5-15 1665s libqscintilla2-qt5-l10n libqt5core5t64 libqt5dbus5t64 libqt5gui5t64 1665s libqt5help5 libqt5network5t64 libqt5printsupport5t64 libqt5sql5t64 1665s libqt5widgets5t64 libqt5xml5t64 librdmacm1t64 libreadline-dev 1665s libregexp-common-perl libregexp-pattern-license-perl libregexp-pattern-perl 1665s libregexp-wildcards-perl librole-tiny-perl libsamplerate0 1665s libscalapack-openmpi2.2 libscotch-7.0 libsereal-decoder-perl 1665s libsereal-encoder-perl libset-intspan-perl libsm6 libsndfile1 1665s libsoftware-copyright-perl libsoftware-license-perl 1665s libsoftware-licensemoreutils-perl libsort-versions-perl libspqr4 libssl-dev 1665s libstdc++-13-dev libstrictures-perl libstring-copyright-perl 1665s libstring-escape-perl libstring-license-perl libstring-rewriteprefix-perl 1665s libsub-exporter-perl libsub-exporter-progressive-perl libsub-identify-perl 1665s libsub-install-perl libsub-name-perl libsub-quote-perl libsub-uplevel-perl 1665s libsuitesparseconfig7 libsundials-ida6 libsundials-nvecparallel-petsc6 1665s libsundials-sunlinsol3 libsundials-sunmatrix4 libsuperlu-dist8 libsuperlu6 1665s libsyntax-keyword-try-perl libsz2 libterm-readkey-perl 1665s libtest-exception-perl libtext-autoformat-perl libtext-glob-perl 1665s libtext-levenshtein-damerau-perl libtext-levenshteinxs-perl 1665s libtext-markdown-discount-perl libtext-reform-perl libtext-template-perl 1665s libtext-unidecode-perl libtext-xslate-perl libthai-data libthai0 1665s libtime-duration-perl libtime-moment-perl libtimedate-perl libtoml-tiny-perl 1665s libtool libtrilinos-amesos-13.2 libtrilinos-aztecoo-13.2 1665s libtrilinos-epetra-13.2 libtrilinos-epetraext-13.2 libtrilinos-galeri-13.2 1665s libtrilinos-ifpack-13.2 libtrilinos-kokkos-13.2 libtrilinos-ml-13.2 1665s libtrilinos-teuchos-13.2 libtrilinos-trilinosss-13.2 1665s libtrilinos-triutils-13.2 libtrilinos-zoltan-13.2 libtry-tiny-perl libtsan2 1665s libubsan1 libucx0 libumfpack6 libunicode-utf8-perl liburi-perl 1665s libvariable-magic-perl libvorbis0a libvorbisenc2 libvulkan1 libwacom-common 1665s libwacom9 libwayland-client0 libwayland-server0 libwebpmux3 libwmflite-0.2-7 1665s libwww-mechanize-perl libwww-perl libwww-robotrules-perl libx11-dev 1665s libx11-xcb1 libxau-dev libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 1665s libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-present0 libxcb-randr0 1665s libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 1665s libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xinput0 libxcb-xkb1 1665s libxcb1-dev libxcursor1 libxdmcp-dev libxfixes3 libxfont2 libxft2 1665s libxinerama1 libxkbcommon-x11-0 libxkbfile1 libxml-libxml-perl 1665s libxml-namespacesupport-perl libxml-sax-base-perl libxml-sax-perl libxmu6 1665s libxnvctrl0 libxrandr2 libxrender1 libxs-parse-keyword-perl 1665s libxs-parse-sublike-perl libxshmfence1 libxt6t64 libxxf86vm1 1665s libyaml-libyaml-perl libyaml-pp-perl libyaml-tiny-perl licensecheck lintian 1665s lzip lzop m4 mpi-default-bin ocl-icd-libopencl1 octave octave-common 1665s octave-dev octave-symbolic openmpi-bin openmpi-common patchutils 1665s perl-openssl-defaults po-debconf python3-mpmath python3-sympy t1utils 1665s tex-common texinfo texinfo-lib unzip x11-common x11-xkb-utils x11proto-dev 1665s xorg-sgml-doctools xserver-common xtrans-dev xvfb zlib1g-dev 1665s 0 upgraded, 467 newly installed, 0 to remove and 0 not upgraded. 1665s Need to get 217 MB/217 MB of archives. 1665s After this operation, 844 MB of additional disk space will be used. 1665s Get:1 /tmp/autopkgtest.mfs7j4/1-autopkgtest-satdep.deb autopkgtest-satdep arm64 0 [776 B] 1666s Get:2 http://ftpmaster.internal/ubuntu oracular/main arm64 m4 arm64 1.4.19-4build1 [240 kB] 1666s Get:3 http://ftpmaster.internal/ubuntu oracular/main arm64 autoconf all 2.71-3 [339 kB] 1666s Get:4 http://ftpmaster.internal/ubuntu oracular/main arm64 autotools-dev all 20220109.1 [44.9 kB] 1666s Get:5 http://ftpmaster.internal/ubuntu oracular/main arm64 automake all 1:1.16.5-1.3ubuntu1 [558 kB] 1666s Get:6 http://ftpmaster.internal/ubuntu oracular/main arm64 autopoint all 0.21-14ubuntu2 [422 kB] 1666s Get:7 http://ftpmaster.internal/ubuntu oracular/main arm64 libcapture-tiny-perl all 0.48-2 [20.2 kB] 1666s Get:8 http://ftpmaster.internal/ubuntu oracular/main arm64 libparams-util-perl arm64 1.102-3 [20.5 kB] 1666s Get:9 http://ftpmaster.internal/ubuntu oracular/main arm64 libsub-install-perl all 0.929-1 [9764 B] 1666s Get:10 http://ftpmaster.internal/ubuntu oracular/main arm64 libdata-optlist-perl all 0.114-1 [9708 B] 1666s Get:11 http://ftpmaster.internal/ubuntu oracular/main arm64 libb-hooks-op-check-perl arm64 0.22-3build1 [9284 B] 1666s Get:12 http://ftpmaster.internal/ubuntu oracular/main arm64 libdynaloader-functions-perl all 0.003-3 [12.1 kB] 1666s Get:13 http://ftpmaster.internal/ubuntu oracular/main arm64 libdevel-callchecker-perl arm64 0.009-1 [14.2 kB] 1666s Get:14 http://ftpmaster.internal/ubuntu oracular/main arm64 libparams-classify-perl arm64 0.015-2build5 [19.7 kB] 1666s Get:15 http://ftpmaster.internal/ubuntu oracular/main arm64 libmodule-runtime-perl all 0.016-2 [16.4 kB] 1666s Get:16 http://ftpmaster.internal/ubuntu oracular/main arm64 libtry-tiny-perl all 0.31-2 [20.8 kB] 1666s Get:17 http://ftpmaster.internal/ubuntu oracular/main arm64 libmodule-implementation-perl all 0.09-2 [12.0 kB] 1666s Get:18 http://ftpmaster.internal/ubuntu oracular/main arm64 libpackage-stash-perl all 0.40-1 [19.5 kB] 1666s Get:19 http://ftpmaster.internal/ubuntu oracular/universe arm64 libclass-load-perl all 0.25-2 [12.7 kB] 1666s Get:20 http://ftpmaster.internal/ubuntu oracular/main arm64 libio-stringy-perl all 2.111-3 [55.8 kB] 1666s Get:21 http://ftpmaster.internal/ubuntu oracular/universe arm64 libparams-validate-perl arm64 1.31-2build3 [52.1 kB] 1666s Get:22 http://ftpmaster.internal/ubuntu oracular/main arm64 libsub-exporter-perl all 0.990-1 [49.0 kB] 1666s Get:23 http://ftpmaster.internal/ubuntu oracular/universe arm64 libgetopt-long-descriptive-perl all 0.111-1 [25.5 kB] 1666s Get:24 http://ftpmaster.internal/ubuntu oracular/universe arm64 libio-tiecombine-perl all 1.005-3 [9464 B] 1666s Get:25 http://ftpmaster.internal/ubuntu oracular/universe arm64 libmodule-pluggable-perl all 5.2-5 [19.5 kB] 1666s Get:26 http://ftpmaster.internal/ubuntu oracular/universe arm64 libstring-rewriteprefix-perl all 0.009-1 [6310 B] 1666s Get:27 http://ftpmaster.internal/ubuntu oracular/universe arm64 libapp-cmd-perl all 0.336-1 [62.1 kB] 1666s Get:28 http://ftpmaster.internal/ubuntu oracular/universe arm64 libboolean-perl all 0.46-3 [8430 B] 1666s Get:29 http://ftpmaster.internal/ubuntu oracular/universe arm64 libsub-uplevel-perl all 0.2800-3 [11.6 kB] 1666s Get:30 http://ftpmaster.internal/ubuntu oracular/universe arm64 libtest-exception-perl all 0.43-3 [13.4 kB] 1666s Get:31 http://ftpmaster.internal/ubuntu oracular/universe arm64 libcarp-assert-more-perl all 2.4.0-1 [18.0 kB] 1666s Get:32 http://ftpmaster.internal/ubuntu oracular/main arm64 libfile-which-perl all 1.27-2 [12.5 kB] 1666s Get:33 http://ftpmaster.internal/ubuntu oracular/main arm64 libfile-homedir-perl all 1.006-2 [37.0 kB] 1666s Get:34 http://ftpmaster.internal/ubuntu oracular/universe arm64 libclone-choose-perl all 0.010-2 [7738 B] 1666s Get:35 http://ftpmaster.internal/ubuntu oracular/universe arm64 libhash-merge-perl all 0.302-1 [13.0 kB] 1666s Get:36 http://ftpmaster.internal/ubuntu oracular/main arm64 libjson-perl all 4.10000-1 [81.9 kB] 1666s Get:37 http://ftpmaster.internal/ubuntu oracular/main arm64 libexporter-tiny-perl all 1.006002-1 [36.8 kB] 1666s Get:38 http://ftpmaster.internal/ubuntu oracular/universe arm64 liblist-moreutils-xs-perl arm64 0.430-4 [40.9 kB] 1666s Get:39 http://ftpmaster.internal/ubuntu oracular/universe arm64 liblist-moreutils-perl all 0.430-2 [38.2 kB] 1666s Get:40 http://ftpmaster.internal/ubuntu oracular/universe arm64 liblog-log4perl-perl all 1.57-1 [345 kB] 1666s Get:41 http://ftpmaster.internal/ubuntu oracular/main arm64 libmouse-perl arm64 2.5.10-1build8 [132 kB] 1666s Get:42 http://ftpmaster.internal/ubuntu oracular/universe arm64 libmousex-nativetraits-perl all 1.09-3 [53.2 kB] 1666s Get:43 http://ftpmaster.internal/ubuntu oracular/universe arm64 libmousex-strictconstructor-perl all 0.02-3 [4582 B] 1666s Get:44 http://ftpmaster.internal/ubuntu oracular/universe arm64 libparse-recdescent-perl all 1.967015+dfsg-4 [139 kB] 1666s Get:45 http://ftpmaster.internal/ubuntu oracular/main arm64 libpath-tiny-perl all 0.144-1 [47.7 kB] 1666s Get:46 http://ftpmaster.internal/ubuntu oracular/universe arm64 libpod-pom-perl all 2.01-4 [61.3 kB] 1666s Get:47 http://ftpmaster.internal/ubuntu oracular/main arm64 libregexp-common-perl all 2017060201-3 [171 kB] 1666s Get:48 http://ftpmaster.internal/ubuntu oracular/main arm64 libyaml-tiny-perl all 1.74-1 [25.3 kB] 1666s Get:49 http://ftpmaster.internal/ubuntu oracular/universe arm64 libconfig-model-perl all 2.153-3 [408 kB] 1666s Get:50 http://ftpmaster.internal/ubuntu oracular/universe arm64 libyaml-pp-perl all 0.38.0-1 [105 kB] 1666s Get:51 http://ftpmaster.internal/ubuntu oracular/universe arm64 cme all 1.040-1 [64.8 kB] 1666s Get:52 http://ftpmaster.internal/ubuntu oracular/main arm64 libisl23 arm64 0.26-3build1 [669 kB] 1666s Get:53 http://ftpmaster.internal/ubuntu oracular/main arm64 libmpc3 arm64 1.3.1-1build1 [56.4 kB] 1666s Get:54 http://ftpmaster.internal/ubuntu oracular/main arm64 cpp-13-aarch64-linux-gnu arm64 13.2.0-23ubuntu4 [10.3 MB] 1667s Get:55 http://ftpmaster.internal/ubuntu oracular/main arm64 cpp-13 arm64 13.2.0-23ubuntu4 [1032 B] 1667s Get:56 http://ftpmaster.internal/ubuntu oracular/main arm64 cpp-aarch64-linux-gnu arm64 4:13.2.0-7ubuntu1 [5316 B] 1667s Get:57 http://ftpmaster.internal/ubuntu oracular/main arm64 cpp arm64 4:13.2.0-7ubuntu1 [22.4 kB] 1667s Get:58 http://ftpmaster.internal/ubuntu oracular/main arm64 libdebhelper-perl all 13.15.3ubuntu2 [92.3 kB] 1667s Get:59 http://ftpmaster.internal/ubuntu oracular/main arm64 libcc1-0 arm64 14.1.0-1ubuntu1 [49.4 kB] 1667s Get:60 http://ftpmaster.internal/ubuntu oracular/main arm64 libgomp1 arm64 14.1.0-1ubuntu1 [144 kB] 1667s Get:61 http://ftpmaster.internal/ubuntu oracular/main arm64 libitm1 arm64 14.1.0-1ubuntu1 [27.9 kB] 1667s Get:62 http://ftpmaster.internal/ubuntu oracular/main arm64 libatomic1 arm64 14.1.0-1ubuntu1 [11.4 kB] 1667s Get:63 http://ftpmaster.internal/ubuntu oracular/main arm64 libasan8 arm64 14.1.0-1ubuntu1 [2922 kB] 1667s Get:64 http://ftpmaster.internal/ubuntu oracular/main arm64 liblsan0 arm64 14.1.0-1ubuntu1 [1286 kB] 1667s Get:65 http://ftpmaster.internal/ubuntu oracular/main arm64 libtsan2 arm64 14.1.0-1ubuntu1 [2692 kB] 1667s Get:66 http://ftpmaster.internal/ubuntu oracular/main arm64 libubsan1 arm64 14.1.0-1ubuntu1 [1155 kB] 1667s Get:67 http://ftpmaster.internal/ubuntu oracular/main arm64 libhwasan0 arm64 14.1.0-1ubuntu1 [1604 kB] 1667s Get:68 http://ftpmaster.internal/ubuntu oracular/main arm64 libgcc-13-dev arm64 13.2.0-23ubuntu4 [2470 kB] 1667s Get:69 http://ftpmaster.internal/ubuntu oracular/main arm64 gcc-13-aarch64-linux-gnu arm64 13.2.0-23ubuntu4 [20.1 MB] 1667s Get:70 http://ftpmaster.internal/ubuntu oracular/main arm64 gcc-13 arm64 13.2.0-23ubuntu4 [472 kB] 1667s Get:71 http://ftpmaster.internal/ubuntu oracular/main arm64 gcc-aarch64-linux-gnu arm64 4:13.2.0-7ubuntu1 [1198 B] 1667s Get:72 http://ftpmaster.internal/ubuntu oracular/main arm64 gcc arm64 4:13.2.0-7ubuntu1 [5018 B] 1667s Get:73 http://ftpmaster.internal/ubuntu oracular/main arm64 libtool all 2.4.7-7build1 [166 kB] 1667s Get:74 http://ftpmaster.internal/ubuntu oracular/main arm64 dh-autoreconf all 20 [16.1 kB] 1667s Get:75 http://ftpmaster.internal/ubuntu oracular/main arm64 libarchive-zip-perl all 1.68-1 [90.2 kB] 1667s Get:76 http://ftpmaster.internal/ubuntu oracular/main arm64 libfile-stripnondeterminism-perl all 1.14.0-1 [20.1 kB] 1667s Get:77 http://ftpmaster.internal/ubuntu oracular/main arm64 dh-strip-nondeterminism all 1.14.0-1 [5058 B] 1667s Get:78 http://ftpmaster.internal/ubuntu oracular/main arm64 debugedit arm64 1:5.0-5build2 [45.3 kB] 1667s Get:79 http://ftpmaster.internal/ubuntu oracular/main arm64 dwz arm64 0.15-1build6 [113 kB] 1667s Get:80 http://ftpmaster.internal/ubuntu oracular/main arm64 gettext arm64 0.21-14ubuntu2 [845 kB] 1668s Get:81 http://ftpmaster.internal/ubuntu oracular/main arm64 intltool-debian all 0.35.0+20060710.6 [23.2 kB] 1668s Get:82 http://ftpmaster.internal/ubuntu oracular/main arm64 po-debconf all 1.0.21+nmu1 [233 kB] 1668s Get:83 http://ftpmaster.internal/ubuntu oracular/main arm64 debhelper all 13.15.3ubuntu2 [878 kB] 1668s Get:84 http://ftpmaster.internal/ubuntu oracular/universe arm64 aglfn all 1.7+git20191031.4036a9c-2 [30.6 kB] 1668s Get:85 http://ftpmaster.internal/ubuntu oracular/universe arm64 gnuplot-data all 6.0.0+dfsg1-1ubuntu3 [75.3 kB] 1668s Get:86 http://ftpmaster.internal/ubuntu oracular/main arm64 libpixman-1-0 arm64 0.42.2-1build1 [204 kB] 1668s Get:87 http://ftpmaster.internal/ubuntu oracular/main arm64 libxcb-render0 arm64 1.17.0-2 [16.6 kB] 1668s Get:88 http://ftpmaster.internal/ubuntu oracular/main arm64 libxcb-shm0 arm64 1.17.0-2 [5884 B] 1668s Get:89 http://ftpmaster.internal/ubuntu oracular/main arm64 libxrender1 arm64 1:0.9.10-1.1build1 [18.8 kB] 1668s Get:90 http://ftpmaster.internal/ubuntu oracular/main arm64 libcairo2 arm64 1.18.0-3build1 [555 kB] 1668s Get:91 http://ftpmaster.internal/ubuntu oracular/main arm64 liblua5.4-0 arm64 5.4.6-3build2 [158 kB] 1668s Get:92 http://ftpmaster.internal/ubuntu oracular/main arm64 fontconfig arm64 2.15.0-1.1ubuntu2 [190 kB] 1668s Get:93 http://ftpmaster.internal/ubuntu oracular/main arm64 libgraphite2-3 arm64 1.3.14-2build1 [70.8 kB] 1668s Get:94 http://ftpmaster.internal/ubuntu oracular/main arm64 libharfbuzz0b arm64 8.3.0-2build2 [463 kB] 1668s Get:95 http://ftpmaster.internal/ubuntu oracular/main arm64 libthai-data all 0.1.29-2build1 [158 kB] 1668s Get:96 http://ftpmaster.internal/ubuntu oracular/main arm64 libdatrie1 arm64 0.2.13-3build1 [19.2 kB] 1668s Get:97 http://ftpmaster.internal/ubuntu oracular/main arm64 libthai0 arm64 0.1.29-2build1 [18.2 kB] 1668s Get:98 http://ftpmaster.internal/ubuntu oracular/main arm64 libpango-1.0-0 arm64 1.54.0+ds-1 [230 kB] 1668s Get:99 http://ftpmaster.internal/ubuntu oracular/main arm64 libpangoft2-1.0-0 arm64 1.54.0+ds-1 [41.7 kB] 1668s Get:100 http://ftpmaster.internal/ubuntu oracular/main arm64 libpangocairo-1.0-0 arm64 1.54.0+ds-1 [27.2 kB] 1668s Get:101 http://ftpmaster.internal/ubuntu oracular/main arm64 libwebpmux3 arm64 1.4.0-0.1 [25.1 kB] 1668s Get:102 http://ftpmaster.internal/ubuntu oracular/universe arm64 gnuplot-nox arm64 6.0.0+dfsg1-1ubuntu3 [956 kB] 1668s Get:103 http://ftpmaster.internal/ubuntu oracular/universe arm64 fonts-freefont-otf all 20211204+svn4273-2 [4596 kB] 1669s Get:104 http://ftpmaster.internal/ubuntu oracular/universe arm64 dh-octave-autopkgtest all 1.8.0 [10.1 kB] 1669s Get:105 http://ftpmaster.internal/ubuntu oracular/main arm64 libapt-pkg-perl arm64 0.1.40build7 [67.0 kB] 1669s Get:106 http://ftpmaster.internal/ubuntu oracular/main arm64 libarray-intspan-perl all 2.004-2 [25.0 kB] 1669s Get:107 http://ftpmaster.internal/ubuntu oracular/main arm64 libyaml-libyaml-perl arm64 0.89+ds-1build2 [29.8 kB] 1669s Get:108 http://ftpmaster.internal/ubuntu oracular/universe arm64 libconfig-model-backend-yaml-perl all 2.134-2 [10.5 kB] 1669s Get:109 http://ftpmaster.internal/ubuntu oracular/universe arm64 libexporter-lite-perl all 0.09-2 [9748 B] 1669s Get:110 http://ftpmaster.internal/ubuntu oracular/main arm64 libencode-locale-perl all 1.05-3 [11.6 kB] 1669s Get:111 http://ftpmaster.internal/ubuntu oracular/main arm64 libtimedate-perl all 2.3300-2 [34.0 kB] 1669s Get:112 http://ftpmaster.internal/ubuntu oracular/main arm64 libhttp-date-perl all 6.06-1 [10.2 kB] 1669s Get:113 http://ftpmaster.internal/ubuntu oracular/main arm64 libfile-listing-perl all 6.16-1 [11.3 kB] 1669s Get:114 http://ftpmaster.internal/ubuntu oracular/main arm64 libhtml-tagset-perl all 3.24-1 [14.1 kB] 1669s Get:115 http://ftpmaster.internal/ubuntu oracular/main arm64 liburi-perl all 5.28-1 [88.1 kB] 1669s Get:116 http://ftpmaster.internal/ubuntu oracular/main arm64 libhtml-parser-perl arm64 3.82-1 [84.8 kB] 1669s Get:117 http://ftpmaster.internal/ubuntu oracular/main arm64 libhtml-tree-perl all 5.07-3 [200 kB] 1669s Get:118 http://ftpmaster.internal/ubuntu oracular/main arm64 libclone-perl arm64 0.46-1build3 [10.5 kB] 1669s Get:119 http://ftpmaster.internal/ubuntu oracular/main arm64 libio-html-perl all 1.004-3 [15.9 kB] 1669s Get:120 http://ftpmaster.internal/ubuntu oracular/main arm64 liblwp-mediatypes-perl all 6.04-2 [20.1 kB] 1669s Get:121 http://ftpmaster.internal/ubuntu oracular/main arm64 libhttp-message-perl all 6.45-1ubuntu1 [78.2 kB] 1669s Get:122 http://ftpmaster.internal/ubuntu oracular/main arm64 libhttp-cookies-perl all 6.11-1 [18.2 kB] 1669s Get:123 http://ftpmaster.internal/ubuntu oracular/main arm64 libhttp-negotiate-perl all 6.01-2 [12.4 kB] 1669s Get:124 http://ftpmaster.internal/ubuntu oracular/main arm64 perl-openssl-defaults arm64 7build3 [6628 B] 1669s Get:125 http://ftpmaster.internal/ubuntu oracular/main arm64 libnet-ssleay-perl arm64 1.94-1build4 [311 kB] 1669s Get:126 http://ftpmaster.internal/ubuntu oracular/main arm64 libio-socket-ssl-perl all 2.085-1 [195 kB] 1669s Get:127 http://ftpmaster.internal/ubuntu oracular/main arm64 libnet-http-perl all 6.23-1 [22.3 kB] 1669s Get:128 http://ftpmaster.internal/ubuntu oracular/main arm64 liblwp-protocol-https-perl all 6.14-1 [9040 B] 1669s Get:129 http://ftpmaster.internal/ubuntu oracular/main arm64 libwww-robotrules-perl all 6.02-1 [12.6 kB] 1669s Get:130 http://ftpmaster.internal/ubuntu oracular/main arm64 libwww-perl all 6.77-1 [138 kB] 1669s Get:131 http://ftpmaster.internal/ubuntu oracular/main arm64 liberror-perl all 0.17029-2 [25.6 kB] 1669s Get:132 http://ftpmaster.internal/ubuntu oracular/universe arm64 libparse-debcontrol-perl all 2.005-6 [20.4 kB] 1669s Get:133 http://ftpmaster.internal/ubuntu oracular/universe arm64 libsoftware-copyright-perl all 0.012-2 [17.4 kB] 1669s Get:134 http://ftpmaster.internal/ubuntu oracular/universe arm64 libalgorithm-c3-perl all 0.11-2 [10.2 kB] 1669s Get:135 http://ftpmaster.internal/ubuntu oracular/universe arm64 libclass-c3-perl all 0.35-2 [18.4 kB] 1669s Get:136 http://ftpmaster.internal/ubuntu oracular/universe arm64 libmro-compat-perl all 0.15-2 [10.1 kB] 1669s Get:137 http://ftpmaster.internal/ubuntu oracular/universe arm64 libdata-section-perl all 0.200008-1 [11.6 kB] 1669s Get:138 http://ftpmaster.internal/ubuntu oracular/universe arm64 libtext-template-perl all 1.61-1 [48.5 kB] 1669s Get:139 http://ftpmaster.internal/ubuntu oracular/universe arm64 libsoftware-license-perl all 0.104006-1 [117 kB] 1669s Get:140 http://ftpmaster.internal/ubuntu oracular/universe arm64 libsoftware-licensemoreutils-perl all 1.009-1 [21.5 kB] 1669s Get:141 http://ftpmaster.internal/ubuntu oracular/main arm64 libsort-versions-perl all 1.62-3 [7378 B] 1669s Get:142 http://ftpmaster.internal/ubuntu oracular/universe arm64 libtext-reform-perl all 1.20-5 [35.4 kB] 1669s Get:143 http://ftpmaster.internal/ubuntu oracular/universe arm64 libtext-autoformat-perl all 1.750000-2 [29.8 kB] 1669s Get:144 http://ftpmaster.internal/ubuntu oracular/universe arm64 libtext-levenshtein-damerau-perl all 0.41-3 [10.8 kB] 1669s Get:145 http://ftpmaster.internal/ubuntu oracular/universe arm64 libtoml-tiny-perl all 0.17-1 [21.5 kB] 1669s Get:146 http://ftpmaster.internal/ubuntu oracular/main arm64 libindirect-perl arm64 0.39-2build4 [21.6 kB] 1669s Get:147 http://ftpmaster.internal/ubuntu oracular/main arm64 libxs-parse-keyword-perl arm64 0.42-1 [56.1 kB] 1669s Get:148 http://ftpmaster.internal/ubuntu oracular/main arm64 libxs-parse-sublike-perl arm64 0.21-2build3 [39.0 kB] 1669s Get:149 http://ftpmaster.internal/ubuntu oracular/main arm64 libobject-pad-perl arm64 0.808-1build3 [108 kB] 1669s Get:150 http://ftpmaster.internal/ubuntu oracular/main arm64 libsyntax-keyword-try-perl arm64 0.29-2 [23.9 kB] 1669s Get:151 http://ftpmaster.internal/ubuntu oracular/main arm64 libio-interactive-perl all 1.025-1 [10.4 kB] 1669s Get:152 http://ftpmaster.internal/ubuntu oracular/main arm64 liblog-any-perl all 1.717-1 [73.2 kB] 1669s Get:153 http://ftpmaster.internal/ubuntu oracular/main arm64 liblog-any-adapter-screen-perl all 0.140-2 [12.4 kB] 1669s Get:154 http://ftpmaster.internal/ubuntu oracular/main arm64 libsub-exporter-progressive-perl all 0.001013-3 [6718 B] 1669s Get:155 http://ftpmaster.internal/ubuntu oracular/main arm64 libvariable-magic-perl arm64 0.64-1 [35.1 kB] 1669s Get:156 http://ftpmaster.internal/ubuntu oracular/main arm64 libb-hooks-endofscope-perl all 0.28-1 [15.8 kB] 1669s Get:157 http://ftpmaster.internal/ubuntu oracular/main arm64 libsub-identify-perl arm64 0.14-3build3 [9674 B] 1669s Get:158 http://ftpmaster.internal/ubuntu oracular/main arm64 libsub-name-perl arm64 0.27-1build3 [10.5 kB] 1669s Get:159 http://ftpmaster.internal/ubuntu oracular/main arm64 libnamespace-clean-perl all 0.27-2 [14.0 kB] 1669s Get:160 http://ftpmaster.internal/ubuntu oracular/main arm64 libnumber-compare-perl all 0.03-3 [5974 B] 1669s Get:161 http://ftpmaster.internal/ubuntu oracular/main arm64 libtext-glob-perl all 0.11-3 [6780 B] 1669s Get:162 http://ftpmaster.internal/ubuntu oracular/main arm64 libpath-iterator-rule-perl all 1.015-2 [39.9 kB] 1669s Get:163 http://ftpmaster.internal/ubuntu oracular/main arm64 libpod-parser-perl all 1.67-1 [80.6 kB] 1669s Get:164 http://ftpmaster.internal/ubuntu oracular/main arm64 libpod-constants-perl all 0.19-2 [16.3 kB] 1669s Get:165 http://ftpmaster.internal/ubuntu oracular/main arm64 libset-intspan-perl all 1.19-3 [24.8 kB] 1669s Get:166 http://ftpmaster.internal/ubuntu oracular/main arm64 libstring-copyright-perl all 0.003014-1 [20.5 kB] 1669s Get:167 http://ftpmaster.internal/ubuntu oracular/main arm64 libstring-escape-perl all 2010.002-3 [16.1 kB] 1669s Get:168 http://ftpmaster.internal/ubuntu oracular/main arm64 libregexp-pattern-license-perl all 3.11.0-1 [85.8 kB] 1669s Get:169 http://ftpmaster.internal/ubuntu oracular/main arm64 libregexp-pattern-perl all 0.2.14-2 [17.6 kB] 1669s Get:170 http://ftpmaster.internal/ubuntu oracular/main arm64 libstring-license-perl all 0.0.9-2ubuntu1 [35.0 kB] 1669s Get:171 http://ftpmaster.internal/ubuntu oracular/main arm64 licensecheck all 3.3.9-1ubuntu1 [37.7 kB] 1669s Get:172 http://ftpmaster.internal/ubuntu oracular/main arm64 diffstat arm64 1.66-1build1 [28.1 kB] 1669s Get:173 http://ftpmaster.internal/ubuntu oracular/main arm64 libberkeleydb-perl arm64 0.64-2build4 [122 kB] 1669s Get:174 http://ftpmaster.internal/ubuntu oracular/main arm64 libclass-xsaccessor-perl arm64 1.19-4build4 [33.0 kB] 1669s Get:175 http://ftpmaster.internal/ubuntu oracular/main arm64 libconfig-tiny-perl all 2.30-1 [14.7 kB] 1669s Get:176 http://ftpmaster.internal/ubuntu oracular/main arm64 libconst-fast-perl all 0.014-2 [8034 B] 1669s Get:177 http://ftpmaster.internal/ubuntu oracular/main arm64 libcpanel-json-xs-perl arm64 4.38-1 [114 kB] 1669s Get:178 http://ftpmaster.internal/ubuntu oracular/main arm64 libaliased-perl all 0.34-3 [12.8 kB] 1669s Get:179 http://ftpmaster.internal/ubuntu oracular/main arm64 libclass-data-inheritable-perl all 0.08-3 [8084 B] 1669s Get:180 http://ftpmaster.internal/ubuntu oracular/main arm64 libdevel-stacktrace-perl all 2.0500-1 [22.1 kB] 1669s Get:181 http://ftpmaster.internal/ubuntu oracular/main arm64 libexception-class-perl all 1.45-1 [28.6 kB] 1669s Get:182 http://ftpmaster.internal/ubuntu oracular/main arm64 libiterator-perl all 0.03+ds1-2 [18.8 kB] 1669s Get:183 http://ftpmaster.internal/ubuntu oracular/main arm64 libiterator-util-perl all 0.02+ds1-2 [14.1 kB] 1669s Get:184 http://ftpmaster.internal/ubuntu oracular/main arm64 libdata-dpath-perl all 0.59-1 [39.2 kB] 1669s Get:185 http://ftpmaster.internal/ubuntu oracular/main arm64 libnet-domain-tld-perl all 1.75-3 [29.4 kB] 1669s Get:186 http://ftpmaster.internal/ubuntu oracular/main arm64 libdata-validate-domain-perl all 0.10-1.1 [9992 B] 1669s Get:187 http://ftpmaster.internal/ubuntu oracular/main arm64 libnet-ipv6addr-perl all 1.02-1 [21.0 kB] 1669s Get:188 http://ftpmaster.internal/ubuntu oracular/main arm64 libnet-netmask-perl all 2.0002-2 [24.8 kB] 1669s Get:189 http://ftpmaster.internal/ubuntu oracular/main arm64 libnetaddr-ip-perl arm64 4.079+dfsg-2build4 [79.8 kB] 1669s Get:190 http://ftpmaster.internal/ubuntu oracular/main arm64 libdata-validate-ip-perl all 0.31-1 [17.2 kB] 1669s Get:191 http://ftpmaster.internal/ubuntu oracular/main arm64 libdata-validate-uri-perl all 0.07-3 [10.8 kB] 1669s Get:192 http://ftpmaster.internal/ubuntu oracular/main arm64 libdevel-size-perl arm64 0.84-1 [19.0 kB] 1669s Get:193 http://ftpmaster.internal/ubuntu oracular/main arm64 libemail-address-xs-perl arm64 1.05-1build4 [28.9 kB] 1669s Get:194 http://ftpmaster.internal/ubuntu oracular/main arm64 libipc-system-simple-perl all 1.30-2 [22.3 kB] 1669s Get:195 http://ftpmaster.internal/ubuntu oracular/main arm64 libfile-basedir-perl all 0.09-2 [14.4 kB] 1669s Get:196 http://ftpmaster.internal/ubuntu oracular/main arm64 libfile-find-rule-perl all 0.34-3 [24.4 kB] 1669s Get:197 http://ftpmaster.internal/ubuntu oracular/main arm64 libio-string-perl all 1.08-4 [11.1 kB] 1669s Get:198 http://ftpmaster.internal/ubuntu oracular/main arm64 libfont-ttf-perl all 1.06-2 [323 kB] 1669s Get:199 http://ftpmaster.internal/ubuntu oracular/main arm64 libhtml-html5-entities-perl all 0.004-3 [21.6 kB] 1669s Get:200 http://ftpmaster.internal/ubuntu oracular/main arm64 libhtml-tokeparser-simple-perl all 3.16-4 [38.0 kB] 1670s Get:201 http://ftpmaster.internal/ubuntu oracular/main arm64 libipc-run3-perl all 0.049-1 [28.8 kB] 1670s Get:202 http://ftpmaster.internal/ubuntu oracular/main arm64 libjson-maybexs-perl all 1.004005-1 [11.3 kB] 1670s Get:203 http://ftpmaster.internal/ubuntu oracular/main arm64 liblist-compare-perl all 0.55-2 [62.9 kB] 1670s Get:204 http://ftpmaster.internal/ubuntu oracular/main arm64 liblist-someutils-perl all 0.59-1 [30.4 kB] 1670s Get:205 http://ftpmaster.internal/ubuntu oracular/main arm64 liblist-utilsby-perl all 0.12-2 [14.9 kB] 1670s Get:206 http://ftpmaster.internal/ubuntu oracular/main arm64 libmldbm-perl all 2.05-4 [16.0 kB] 1670s Get:207 http://ftpmaster.internal/ubuntu oracular/main arm64 libclass-method-modifiers-perl all 2.15-1 [16.1 kB] 1670s Get:208 http://ftpmaster.internal/ubuntu oracular/main arm64 libimport-into-perl all 1.002005-2 [10.7 kB] 1670s Get:209 http://ftpmaster.internal/ubuntu oracular/main arm64 librole-tiny-perl all 2.002004-1 [16.3 kB] 1670s Get:210 http://ftpmaster.internal/ubuntu oracular/main arm64 libsub-quote-perl all 2.006008-1ubuntu1 [20.7 kB] 1670s Get:211 http://ftpmaster.internal/ubuntu oracular/main arm64 libmoo-perl all 2.005005-1 [47.4 kB] 1670s Get:212 http://ftpmaster.internal/ubuntu oracular/main arm64 libstrictures-perl all 2.000006-1 [16.3 kB] 1670s Get:213 http://ftpmaster.internal/ubuntu oracular/main arm64 libmoox-aliases-perl all 0.001006-2 [6796 B] 1670s Get:214 http://ftpmaster.internal/ubuntu oracular/main arm64 libperlio-gzip-perl arm64 0.20-1build4 [14.5 kB] 1670s Get:215 http://ftpmaster.internal/ubuntu oracular/main arm64 libperlio-utf8-strict-perl arm64 0.010-1build3 [11.0 kB] 1670s Get:216 http://ftpmaster.internal/ubuntu oracular/main arm64 libproc-processtable-perl arm64 0.636-1build3 [35.6 kB] 1670s Get:217 http://ftpmaster.internal/ubuntu oracular/main arm64 libregexp-wildcards-perl all 1.05-3 [12.9 kB] 1670s Get:218 http://ftpmaster.internal/ubuntu oracular/main arm64 libsereal-decoder-perl arm64 5.004+ds-1build3 [99.6 kB] 1670s Get:219 http://ftpmaster.internal/ubuntu oracular/main arm64 libsereal-encoder-perl arm64 5.004+ds-1build3 [102 kB] 1670s Get:220 http://ftpmaster.internal/ubuntu oracular/main arm64 libterm-readkey-perl arm64 2.38-2build4 [23.1 kB] 1670s Get:221 http://ftpmaster.internal/ubuntu oracular/main arm64 libtext-levenshteinxs-perl arm64 0.03-5build4 [7876 B] 1670s Get:222 http://ftpmaster.internal/ubuntu oracular/main arm64 libmarkdown2 arm64 2.2.7-2build1 [36.8 kB] 1670s Get:223 http://ftpmaster.internal/ubuntu oracular/main arm64 libtext-markdown-discount-perl arm64 0.16-1build3 [12.1 kB] 1670s Get:224 http://ftpmaster.internal/ubuntu oracular/main arm64 libdata-messagepack-perl arm64 1.02-1build4 [30.0 kB] 1670s Get:225 http://ftpmaster.internal/ubuntu oracular/main arm64 libtext-xslate-perl arm64 3.5.9-2 [160 kB] 1670s Get:226 http://ftpmaster.internal/ubuntu oracular/main arm64 libtime-duration-perl all 1.21-2 [12.3 kB] 1670s Get:227 http://ftpmaster.internal/ubuntu oracular/main arm64 libtime-moment-perl arm64 0.44-2build4 [72.1 kB] 1670s Get:228 http://ftpmaster.internal/ubuntu oracular/main arm64 libunicode-utf8-perl arm64 0.62-2build3 [17.6 kB] 1670s Get:229 http://ftpmaster.internal/ubuntu oracular/main arm64 libcgi-pm-perl all 4.65-1 [185 kB] 1670s Get:230 http://ftpmaster.internal/ubuntu oracular/main arm64 libhtml-form-perl all 6.11-1 [32.1 kB] 1670s Get:231 http://ftpmaster.internal/ubuntu oracular/main arm64 libwww-mechanize-perl all 2.18-1ubuntu1 [93.1 kB] 1670s Get:232 http://ftpmaster.internal/ubuntu oracular/main arm64 libxml-namespacesupport-perl all 1.12-2 [13.5 kB] 1670s Get:233 http://ftpmaster.internal/ubuntu oracular/main arm64 libxml-sax-base-perl all 1.09-3 [18.9 kB] 1670s Get:234 http://ftpmaster.internal/ubuntu oracular/main arm64 libxml-sax-perl all 1.02+dfsg-3 [57.0 kB] 1670s Get:235 http://ftpmaster.internal/ubuntu oracular/main arm64 libxml-libxml-perl arm64 2.0207+dfsg+really+2.0134-2 [296 kB] 1670s Get:236 http://ftpmaster.internal/ubuntu oracular/main arm64 lzip arm64 1.24.1-1build1 [81.7 kB] 1670s Get:237 http://ftpmaster.internal/ubuntu oracular/main arm64 lzop arm64 1.04-2build3 [82.8 kB] 1670s Get:238 http://ftpmaster.internal/ubuntu oracular/main arm64 patchutils arm64 0.4.2-1build3 [75.3 kB] 1670s Get:239 http://ftpmaster.internal/ubuntu oracular/main arm64 t1utils arm64 1.41-4build3 [61.0 kB] 1670s Get:240 http://ftpmaster.internal/ubuntu oracular/main arm64 unzip arm64 6.0-28ubuntu5 [176 kB] 1670s Get:241 http://ftpmaster.internal/ubuntu oracular/main arm64 lintian all 2.117.0ubuntu2 [1065 kB] 1670s Get:242 http://ftpmaster.internal/ubuntu oracular/universe arm64 libconfig-model-dpkg-perl all 3.005 [175 kB] 1670s Get:243 http://ftpmaster.internal/ubuntu oracular/main arm64 libconvert-binhex-perl all 1.125-3 [27.1 kB] 1670s Get:244 http://ftpmaster.internal/ubuntu oracular/main arm64 libnet-smtp-ssl-perl all 1.04-2 [6218 B] 1670s Get:245 http://ftpmaster.internal/ubuntu oracular/main arm64 libmailtools-perl all 2.21-3 [77.0 kB] 1670s Get:246 http://ftpmaster.internal/ubuntu oracular/main arm64 libmime-tools-perl all 5.515-1 [187 kB] 1670s Get:247 http://ftpmaster.internal/ubuntu oracular/main arm64 libsuitesparseconfig7 arm64 1:7.7.0+dfsg-2 [12.4 kB] 1670s Get:248 http://ftpmaster.internal/ubuntu oracular/universe arm64 libamd3 arm64 1:7.7.0+dfsg-2 [25.6 kB] 1670s Get:249 http://ftpmaster.internal/ubuntu oracular/main arm64 libblas3 arm64 3.12.0-3build1 [143 kB] 1670s Get:250 http://ftpmaster.internal/ubuntu oracular/main arm64 libgfortran5 arm64 14.1.0-1ubuntu1 [443 kB] 1670s Get:251 http://ftpmaster.internal/ubuntu oracular/main arm64 liblapack3 arm64 3.12.0-3build1 [2241 kB] 1671s Get:252 http://ftpmaster.internal/ubuntu oracular/universe arm64 libarpack2t64 arm64 3.9.1-1.1build2 [90.6 kB] 1671s Get:253 http://ftpmaster.internal/ubuntu oracular/universe arm64 libccolamd3 arm64 1:7.7.0+dfsg-2 [25.1 kB] 1671s Get:254 http://ftpmaster.internal/ubuntu oracular/universe arm64 libcamd3 arm64 1:7.7.0+dfsg-2 [22.0 kB] 1671s Get:255 http://ftpmaster.internal/ubuntu oracular/main arm64 libcolamd3 arm64 1:7.7.0+dfsg-2 [18.0 kB] 1671s Get:256 http://ftpmaster.internal/ubuntu oracular/universe arm64 libcholmod5 arm64 1:7.7.0+dfsg-2 [582 kB] 1671s Get:257 http://ftpmaster.internal/ubuntu oracular/universe arm64 libcxsparse4 arm64 1:7.7.0+dfsg-2 [67.7 kB] 1671s Get:258 http://ftpmaster.internal/ubuntu oracular/main arm64 libfftw3-double3 arm64 3.3.10-1ubuntu3 [384 kB] 1673s Get:259 http://ftpmaster.internal/ubuntu oracular/main arm64 libfftw3-single3 arm64 3.3.10-1ubuntu3 [583 kB] 1673s Get:260 http://ftpmaster.internal/ubuntu oracular/main arm64 libxfixes3 arm64 1:6.0.0-2build1 [11.2 kB] 1673s Get:261 http://ftpmaster.internal/ubuntu oracular/main arm64 libxcursor1 arm64 1:1.2.2-1 [21.2 kB] 1673s Get:262 http://ftpmaster.internal/ubuntu oracular/main arm64 libxft2 arm64 2.3.6-1build1 [44.1 kB] 1673s Get:263 http://ftpmaster.internal/ubuntu oracular/main arm64 libxinerama1 arm64 2:1.1.4-3build1 [6394 B] 1673s Get:264 http://ftpmaster.internal/ubuntu oracular/universe arm64 libfltk1.3t64 arm64 1.3.8-6.1build2 [597 kB] 1673s Get:265 http://ftpmaster.internal/ubuntu oracular/main arm64 libglvnd0 arm64 1.7.0-1build1 [60.6 kB] 1673s Get:266 http://ftpmaster.internal/ubuntu oracular/main arm64 libglapi-mesa arm64 24.0.9-0ubuntu1 [58.6 kB] 1673s Get:267 http://ftpmaster.internal/ubuntu oracular/main arm64 libx11-xcb1 arm64 2:1.8.7-1build1 [7870 B] 1673s Get:268 http://ftpmaster.internal/ubuntu oracular/main arm64 libxcb-dri2-0 arm64 1.17.0-2 [7418 B] 1673s Get:269 http://ftpmaster.internal/ubuntu oracular/main arm64 libxcb-dri3-0 arm64 1.17.0-2 [7606 B] 1673s Get:270 http://ftpmaster.internal/ubuntu oracular/main arm64 libxcb-glx0 arm64 1.17.0-2 [25.5 kB] 1673s Get:271 http://ftpmaster.internal/ubuntu oracular/main arm64 libxcb-present0 arm64 1.17.0-2 [6224 B] 1673s Get:272 http://ftpmaster.internal/ubuntu oracular/main arm64 libxcb-randr0 arm64 1.17.0-2 [18.5 kB] 1673s Get:273 http://ftpmaster.internal/ubuntu oracular/main arm64 libxcb-sync1 arm64 1.17.0-2 [9688 B] 1673s Get:274 http://ftpmaster.internal/ubuntu oracular/main arm64 libxcb-xfixes0 arm64 1.17.0-2 [10.6 kB] 1673s Get:275 http://ftpmaster.internal/ubuntu oracular/main arm64 libxshmfence1 arm64 1.3-1build5 [4938 B] 1673s Get:276 http://ftpmaster.internal/ubuntu oracular/main arm64 libxxf86vm1 arm64 1:1.1.4-1build4 [9130 B] 1673s Get:277 http://ftpmaster.internal/ubuntu oracular/main arm64 libvulkan1 arm64 1.3.283.0-1 [151 kB] 1673s Get:278 http://ftpmaster.internal/ubuntu oracular/main arm64 libdrm-amdgpu1 arm64 2.4.121-2 [20.9 kB] 1673s Get:279 http://ftpmaster.internal/ubuntu oracular/main arm64 libdrm-nouveau2 arm64 2.4.121-2 [17.8 kB] 1673s Get:280 http://ftpmaster.internal/ubuntu oracular/main arm64 libdrm-radeon1 arm64 2.4.121-2 [20.9 kB] 1673s Get:281 http://ftpmaster.internal/ubuntu oracular/main arm64 libllvm17t64 arm64 1:17.0.6-12 [25.0 MB] 1674s Get:282 http://ftpmaster.internal/ubuntu oracular/main arm64 libgl1-mesa-dri arm64 24.0.9-0ubuntu1 [8244 kB] 1674s Get:283 http://ftpmaster.internal/ubuntu oracular/main arm64 libglx-mesa0 arm64 24.0.9-0ubuntu1 [166 kB] 1674s Get:284 http://ftpmaster.internal/ubuntu oracular/main arm64 libglx0 arm64 1.7.0-1build1 [33.2 kB] 1674s Get:285 http://ftpmaster.internal/ubuntu oracular/main arm64 libgl1 arm64 1.7.0-1build1 [106 kB] 1674s Get:286 http://ftpmaster.internal/ubuntu oracular/universe arm64 libfltk-gl1.3t64 arm64 1.3.8-6.1build2 [42.1 kB] 1674s Get:287 http://ftpmaster.internal/ubuntu oracular/universe arm64 libgl2ps1.4 arm64 1.4.2+dfsg1-2build1 [40.6 kB] 1674s Get:288 http://ftpmaster.internal/ubuntu oracular/main arm64 libltdl7 arm64 2.4.7-7build1 [40.4 kB] 1674s Get:289 http://ftpmaster.internal/ubuntu oracular/universe arm64 libglpk40 arm64 5.0-1build2 [337 kB] 1674s Get:290 http://ftpmaster.internal/ubuntu oracular/main arm64 libopengl0 arm64 1.7.0-1build1 [35.1 kB] 1674s Get:291 http://ftpmaster.internal/ubuntu oracular/main arm64 libglu1-mesa arm64 9.0.2-1.1build1 [139 kB] 1674s Get:292 http://ftpmaster.internal/ubuntu oracular/main arm64 libgif7 arm64 5.2.2-1ubuntu1 [35.5 kB] 1674s Get:293 http://ftpmaster.internal/ubuntu oracular/universe arm64 libhwy1t64 arm64 1.2.0-2 [633 kB] 1674s Get:294 http://ftpmaster.internal/ubuntu oracular/main arm64 liblcms2-2 arm64 2.14-2build1 [161 kB] 1674s Get:295 http://ftpmaster.internal/ubuntu oracular/universe arm64 libimath-3-1-29t64 arm64 3.1.9-3.1ubuntu2 [68.2 kB] 1674s Get:296 http://ftpmaster.internal/ubuntu oracular/universe arm64 libopenexr-3-1-30 arm64 3.1.5-5.1build3 [939 kB] 1674s Get:297 http://ftpmaster.internal/ubuntu oracular/universe arm64 libjxl0.9 arm64 0.9.2-8 [894 kB] 1675s Get:298 http://ftpmaster.internal/ubuntu oracular/main arm64 libwmflite-0.2-7 arm64 0.2.13-1.1build3 [68.6 kB] 1675s Get:299 http://ftpmaster.internal/ubuntu oracular/universe arm64 libgraphicsmagick-q16-3t64 arm64 1.4+really1.3.43-1build2 [1204 kB] 1675s Get:300 http://ftpmaster.internal/ubuntu oracular/universe arm64 libgraphicsmagick++-q16-12t64 arm64 1.4+really1.3.43-1build2 [111 kB] 1675s Get:301 http://ftpmaster.internal/ubuntu oracular/universe arm64 libaec0 arm64 1.1.3-1 [22.0 kB] 1675s Get:302 http://ftpmaster.internal/ubuntu oracular/universe arm64 libsz2 arm64 1.1.3-1 [5254 B] 1675s Get:303 http://ftpmaster.internal/ubuntu oracular/universe arm64 libhdf5-103-1t64 arm64 1.10.10+repack-3.1ubuntu4 [1192 kB] 1675s Get:304 http://ftpmaster.internal/ubuntu oracular/main arm64 libasound2-data all 1.2.11-1build2 [21.0 kB] 1675s Get:305 http://ftpmaster.internal/ubuntu oracular/main arm64 libasound2t64 arm64 1.2.11-1build2 [387 kB] 1675s Get:306 http://ftpmaster.internal/ubuntu oracular/main arm64 libopus0 arm64 1.4-1build1 [198 kB] 1675s Get:307 http://ftpmaster.internal/ubuntu oracular/main arm64 libsamplerate0 arm64 0.2.2-4build1 [1343 kB] 1675s Get:308 http://ftpmaster.internal/ubuntu oracular/main arm64 libjack-jackd2-0 arm64 1.9.21~dfsg-3ubuntu3 [285 kB] 1675s Get:309 http://ftpmaster.internal/ubuntu oracular/universe arm64 libportaudio2 arm64 19.6.0-1.2build3 [65.4 kB] 1675s Get:310 http://ftpmaster.internal/ubuntu oracular/universe arm64 libqhull-r8.0 arm64 2020.2-6build1 [189 kB] 1675s Get:311 http://ftpmaster.internal/ubuntu oracular/universe arm64 libqrupdate1 arm64 1.1.2-4build1 [34.8 kB] 1675s Get:312 http://ftpmaster.internal/ubuntu oracular/universe arm64 libqscintilla2-qt5-l10n all 2.14.1+dfsg-1build4 [56.5 kB] 1675s Get:313 http://ftpmaster.internal/ubuntu oracular/universe arm64 libdouble-conversion3 arm64 3.3.0-1build1 [38.0 kB] 1675s Get:314 http://ftpmaster.internal/ubuntu oracular/main arm64 libpcre2-16-0 arm64 10.42-4ubuntu2 [196 kB] 1675s Get:315 http://ftpmaster.internal/ubuntu oracular/universe arm64 libqt5core5t64 arm64 5.15.13+dfsg-1ubuntu1 [1973 kB] 1675s Get:316 http://ftpmaster.internal/ubuntu oracular/main arm64 libwayland-server0 arm64 1.22.0-2.1build1 [34.6 kB] 1675s Get:317 http://ftpmaster.internal/ubuntu oracular/main arm64 libgbm1 arm64 24.0.9-0ubuntu1 [43.8 kB] 1675s Get:318 http://ftpmaster.internal/ubuntu oracular/main arm64 libwayland-client0 arm64 1.22.0-2.1build1 [25.9 kB] 1675s Get:319 http://ftpmaster.internal/ubuntu oracular/main arm64 libegl-mesa0 arm64 24.0.9-0ubuntu1 [116 kB] 1675s Get:320 http://ftpmaster.internal/ubuntu oracular/main arm64 libegl1 arm64 1.7.0-1build1 [29.5 kB] 1675s Get:321 http://ftpmaster.internal/ubuntu oracular/main arm64 x11-common all 1:7.7+23ubuntu3 [21.7 kB] 1675s Get:322 http://ftpmaster.internal/ubuntu oracular/main arm64 libice6 arm64 2:1.0.10-1build3 [41.1 kB] 1675s Get:323 http://ftpmaster.internal/ubuntu oracular/main arm64 libmtdev1t64 arm64 1.1.6-1.2 [14.4 kB] 1675s Get:324 http://ftpmaster.internal/ubuntu oracular/main arm64 libwacom-common all 2.10.0-2 [63.4 kB] 1675s Get:325 http://ftpmaster.internal/ubuntu oracular/main arm64 libwacom9 arm64 2.10.0-2 [23.7 kB] 1675s Get:326 http://ftpmaster.internal/ubuntu oracular/main arm64 libinput-bin arm64 1.26.0-1 [22.5 kB] 1675s Get:327 http://ftpmaster.internal/ubuntu oracular/main arm64 libinput10 arm64 1.26.0-1 [131 kB] 1675s Get:328 http://ftpmaster.internal/ubuntu oracular/universe arm64 libmd4c0 arm64 0.4.8-1build1 [40.9 kB] 1676s Get:329 http://ftpmaster.internal/ubuntu oracular/universe arm64 libqt5dbus5t64 arm64 5.15.13+dfsg-1ubuntu1 [224 kB] 1676s Get:330 http://ftpmaster.internal/ubuntu oracular/universe arm64 libqt5network5t64 arm64 5.15.13+dfsg-1ubuntu1 [741 kB] 1676s Get:331 http://ftpmaster.internal/ubuntu oracular/main arm64 libsm6 arm64 2:1.2.3-1build3 [15.6 kB] 1676s Get:332 http://ftpmaster.internal/ubuntu oracular/main arm64 libxcb-icccm4 arm64 0.4.1-1.1build3 [10.5 kB] 1676s Get:333 http://ftpmaster.internal/ubuntu oracular/main arm64 libxcb-util1 arm64 0.4.0-1build3 [10.7 kB] 1676s Get:334 http://ftpmaster.internal/ubuntu oracular/main arm64 libxcb-image0 arm64 0.4.0-2build1 [10.8 kB] 1676s Get:335 http://ftpmaster.internal/ubuntu oracular/main arm64 libxcb-keysyms1 arm64 0.4.0-1build4 [7984 B] 1676s Get:336 http://ftpmaster.internal/ubuntu oracular/main arm64 libxcb-render-util0 arm64 0.3.9-1build4 [9648 B] 1676s Get:337 http://ftpmaster.internal/ubuntu oracular/main arm64 libxcb-shape0 arm64 1.17.0-2 [6246 B] 1676s Get:338 http://ftpmaster.internal/ubuntu oracular/main arm64 libxcb-xinerama0 arm64 1.17.0-2 [5590 B] 1676s Get:339 http://ftpmaster.internal/ubuntu oracular/main arm64 libxcb-xinput0 arm64 1.17.0-2 [34.2 kB] 1676s Get:340 http://ftpmaster.internal/ubuntu oracular/main arm64 libxcb-xkb1 arm64 1.17.0-2 [32.5 kB] 1676s Get:341 http://ftpmaster.internal/ubuntu oracular/main arm64 libxkbcommon-x11-0 arm64 1.6.0-1build1 [13.6 kB] 1676s Get:342 http://ftpmaster.internal/ubuntu oracular/universe arm64 libqt5gui5t64 arm64 5.15.13+dfsg-1ubuntu1 [3617 kB] 1676s Get:343 http://ftpmaster.internal/ubuntu oracular/main arm64 libavahi-common-data arm64 0.8-13ubuntu6 [29.6 kB] 1676s Get:344 http://ftpmaster.internal/ubuntu oracular/main arm64 libavahi-common3 arm64 0.8-13ubuntu6 [23.3 kB] 1676s Get:345 http://ftpmaster.internal/ubuntu oracular/main arm64 libavahi-client3 arm64 0.8-13ubuntu6 [27.2 kB] 1676s Get:346 http://ftpmaster.internal/ubuntu oracular/main arm64 libcups2t64 arm64 2.4.7-1.2ubuntu7 [273 kB] 1676s Get:347 http://ftpmaster.internal/ubuntu oracular/universe arm64 libqt5widgets5t64 arm64 5.15.13+dfsg-1ubuntu1 [2564 kB] 1676s Get:348 http://ftpmaster.internal/ubuntu oracular/universe arm64 libqt5printsupport5t64 arm64 5.15.13+dfsg-1ubuntu1 [210 kB] 1676s Get:349 http://ftpmaster.internal/ubuntu oracular/universe arm64 libqscintilla2-qt5-15 arm64 2.14.1+dfsg-1build4 [1130 kB] 1676s Get:350 http://ftpmaster.internal/ubuntu oracular/universe arm64 libqt5sql5t64 arm64 5.15.13+dfsg-1ubuntu1 [123 kB] 1676s Get:351 http://ftpmaster.internal/ubuntu oracular/universe arm64 libqt5help5 arm64 5.15.13-3 [165 kB] 1676s Get:352 http://ftpmaster.internal/ubuntu oracular/universe arm64 libqt5xml5t64 arm64 5.15.13+dfsg-1ubuntu1 [125 kB] 1676s Get:353 http://ftpmaster.internal/ubuntu oracular/main arm64 libogg0 arm64 1.3.5-3build1 [22.6 kB] 1676s Get:354 http://ftpmaster.internal/ubuntu oracular/main arm64 libflac12t64 arm64 1.4.3+ds-2.1ubuntu2 [170 kB] 1676s Get:355 http://ftpmaster.internal/ubuntu oracular/main arm64 libmp3lame0 arm64 3.100-6build1 [141 kB] 1676s Get:356 http://ftpmaster.internal/ubuntu oracular/main arm64 libmpg123-0t64 arm64 1.32.6-3 [171 kB] 1676s Get:357 http://ftpmaster.internal/ubuntu oracular/main arm64 libvorbis0a arm64 1.3.7-2 [95.0 kB] 1676s Get:358 http://ftpmaster.internal/ubuntu oracular/main arm64 libvorbisenc2 arm64 1.3.7-2 [80.0 kB] 1676s Get:359 http://ftpmaster.internal/ubuntu oracular/main arm64 libsndfile1 arm64 1.2.2-1ubuntu5 [208 kB] 1676s Get:360 http://ftpmaster.internal/ubuntu oracular/universe arm64 libspqr4 arm64 1:7.7.0+dfsg-2 [125 kB] 1676s Get:361 http://ftpmaster.internal/ubuntu oracular/universe arm64 libsundials-ida6 arm64 6.4.1+dfsg1-3build5 [123 kB] 1676s Get:362 http://ftpmaster.internal/ubuntu oracular/universe arm64 libbtf2 arm64 1:7.7.0+dfsg-2 [13.0 kB] 1676s Get:363 http://ftpmaster.internal/ubuntu oracular/universe arm64 libklu2 arm64 1:7.7.0+dfsg-2 [72.2 kB] 1676s Get:364 http://ftpmaster.internal/ubuntu oracular/main arm64 libfftw3-long3 arm64 3.3.10-1ubuntu3 [640 kB] 1676s Get:365 http://ftpmaster.internal/ubuntu oracular/main arm64 libevent-pthreads-2.1-7t64 arm64 2.1.12-stable-10 [7922 B] 1676s Get:366 http://ftpmaster.internal/ubuntu oracular/main arm64 librdmacm1t64 arm64 50.0-2build2 [70.6 kB] 1676s Get:367 http://ftpmaster.internal/ubuntu oracular/universe arm64 libfabric1 arm64 1.17.0-3build2 [541 kB] 1676s Get:368 http://ftpmaster.internal/ubuntu oracular/universe arm64 libhwloc15 arm64 2.10.0-1build1 [159 kB] 1676s Get:369 http://ftpmaster.internal/ubuntu oracular/universe arm64 libmunge2 arm64 0.5.15-4build1 [14.9 kB] 1676s Get:370 http://ftpmaster.internal/ubuntu oracular/main arm64 libpciaccess0 arm64 0.17-3build1 [18.9 kB] 1676s Get:371 http://ftpmaster.internal/ubuntu oracular/main arm64 libxnvctrl0 arm64 510.47.03-0ubuntu4 [12.4 kB] 1676s Get:372 http://ftpmaster.internal/ubuntu oracular/universe arm64 ocl-icd-libopencl1 arm64 2.3.2-1build1 [37.6 kB] 1676s Get:373 http://ftpmaster.internal/ubuntu oracular/universe arm64 libhwloc-plugins arm64 2.10.0-1build1 [15.7 kB] 1676s Get:374 http://ftpmaster.internal/ubuntu oracular/universe arm64 libpmix2t64 arm64 5.0.1-4.1build1 [655 kB] 1676s Get:375 http://ftpmaster.internal/ubuntu oracular/universe arm64 libucx0 arm64 1.16.0+ds-5ubuntu1 [1074 kB] 1676s Get:376 http://ftpmaster.internal/ubuntu oracular/universe arm64 libopenmpi3t64 arm64 4.1.6-7ubuntu2 [2463 kB] 1676s Get:377 http://ftpmaster.internal/ubuntu oracular/universe arm64 libfftw3-mpi3 arm64 3.3.10-1ubuntu3 [46.1 kB] 1676s Get:378 http://ftpmaster.internal/ubuntu oracular/universe arm64 libhdf5-openmpi-103-1t64 arm64 1.10.10+repack-3.1ubuntu4 [1242 kB] 1676s Get:379 http://ftpmaster.internal/ubuntu oracular/universe arm64 libcombblas2.0.0t64 arm64 2.0.0-3.1build2 [267 kB] 1676s Get:380 http://ftpmaster.internal/ubuntu oracular/universe arm64 libmetis5 arm64 5.1.0.dfsg-7build3 [176 kB] 1676s Get:381 http://ftpmaster.internal/ubuntu oracular/universe arm64 libptscotch-7.0 arm64 7.0.4-1ubuntu2 [709 kB] 1676s Get:382 http://ftpmaster.internal/ubuntu oracular/universe arm64 libsuperlu-dist8 arm64 8.2.1+dfsg1-1build2 [579 kB] 1676s Get:383 http://ftpmaster.internal/ubuntu oracular/universe arm64 libhypre-2.28.0 arm64 2.28.0-8build2 [1630 kB] 1677s Get:384 http://ftpmaster.internal/ubuntu oracular/universe arm64 openmpi-common all 4.1.6-7ubuntu2 [170 kB] 1677s Get:385 http://ftpmaster.internal/ubuntu oracular/universe arm64 openmpi-bin arm64 4.1.6-7ubuntu2 [113 kB] 1677s Get:386 http://ftpmaster.internal/ubuntu oracular/universe arm64 mpi-default-bin arm64 1.15build1 [2376 B] 1677s Get:387 http://ftpmaster.internal/ubuntu oracular/universe arm64 libscalapack-openmpi2.2 arm64 2.2.1-3.1ubuntu1 [1581 kB] 1677s Get:388 http://ftpmaster.internal/ubuntu oracular/universe arm64 libmumps-5.6t64 arm64 5.6.2-2.1build2 [1853 kB] 1677s Get:389 http://ftpmaster.internal/ubuntu oracular/universe arm64 libsuperlu6 arm64 6.0.1+dfsg1-1build1 [166 kB] 1677s Get:390 http://ftpmaster.internal/ubuntu oracular/universe arm64 libscotch-7.0 arm64 7.0.4-1ubuntu2 [426 kB] 1677s Get:391 http://ftpmaster.internal/ubuntu oracular/universe arm64 libtrilinos-kokkos-13.2 arm64 13.2.0-6 [103 kB] 1677s Get:392 http://ftpmaster.internal/ubuntu oracular/universe arm64 libtrilinos-teuchos-13.2 arm64 13.2.0-6 [1071 kB] 1677s Get:393 http://ftpmaster.internal/ubuntu oracular/universe arm64 libtrilinos-epetra-13.2 arm64 13.2.0-6 [414 kB] 1677s Get:394 http://ftpmaster.internal/ubuntu oracular/universe arm64 libtrilinos-triutils-13.2 arm64 13.2.0-6 [117 kB] 1677s Get:395 http://ftpmaster.internal/ubuntu oracular/universe arm64 libtrilinos-epetraext-13.2 arm64 13.2.0-6 [408 kB] 1677s Get:396 http://ftpmaster.internal/ubuntu oracular/universe arm64 libtrilinos-trilinosss-13.2 arm64 13.2.0-6 [87.2 kB] 1677s Get:397 http://ftpmaster.internal/ubuntu oracular/universe arm64 libtrilinos-amesos-13.2 arm64 13.2.0-6 [101 kB] 1677s Get:398 http://ftpmaster.internal/ubuntu oracular/universe arm64 libtrilinos-aztecoo-13.2 arm64 13.2.0-6 [205 kB] 1677s Get:399 http://ftpmaster.internal/ubuntu oracular/universe arm64 libtrilinos-galeri-13.2 arm64 13.2.0-6 [87.4 kB] 1677s Get:400 http://ftpmaster.internal/ubuntu oracular/universe arm64 libtrilinos-ifpack-13.2 arm64 13.2.0-6 [396 kB] 1677s Get:401 http://ftpmaster.internal/ubuntu oracular/universe arm64 libtrilinos-zoltan-13.2 arm64 13.2.0-6 [380 kB] 1677s Get:402 http://ftpmaster.internal/ubuntu oracular/universe arm64 libtrilinos-ml-13.2 arm64 13.2.0-6 [926 kB] 1677s Get:403 http://ftpmaster.internal/ubuntu oracular/universe arm64 libumfpack6 arm64 1:7.7.0+dfsg-2 [234 kB] 1677s Get:404 http://ftpmaster.internal/ubuntu oracular/universe arm64 libpetsc-real3.19t64 arm64 3.19.6+dfsg1-2.2ubuntu2 [5770 kB] 1677s Get:405 http://ftpmaster.internal/ubuntu oracular/universe arm64 libsundials-nvecparallel-petsc6 arm64 6.4.1+dfsg1-3build5 [35.5 kB] 1677s Get:406 http://ftpmaster.internal/ubuntu oracular/universe arm64 libsundials-sunmatrix4 arm64 6.4.1+dfsg1-3build5 [82.8 kB] 1678s Get:407 http://ftpmaster.internal/ubuntu oracular/universe arm64 libsundials-sunlinsol3 arm64 6.4.1+dfsg1-3build5 [176 kB] 1678s Get:408 http://ftpmaster.internal/ubuntu oracular/universe arm64 libtext-unidecode-perl all 1.30-3 [105 kB] 1678s Get:409 http://ftpmaster.internal/ubuntu oracular/universe arm64 texinfo-lib arm64 7.1-3build2 [130 kB] 1678s Get:410 http://ftpmaster.internal/ubuntu oracular/universe arm64 tex-common all 6.18 [32.8 kB] 1678s Get:411 http://ftpmaster.internal/ubuntu oracular/universe arm64 texinfo all 7.1-3build2 [1273 kB] 1678s Get:412 http://ftpmaster.internal/ubuntu oracular/universe arm64 octave-common all 8.4.0-1build5 [5925 kB] 1678s Get:413 http://ftpmaster.internal/ubuntu oracular/universe arm64 octave arm64 8.4.0-1build5 [9017 kB] 1678s Get:414 http://ftpmaster.internal/ubuntu oracular/main arm64 libncurses-dev arm64 6.5-2 [385 kB] 1678s Get:415 http://ftpmaster.internal/ubuntu oracular/main arm64 libreadline-dev arm64 8.2-4build1 [177 kB] 1678s Get:416 http://ftpmaster.internal/ubuntu oracular/universe arm64 libhdf5-fortran-102t64 arm64 1.10.10+repack-3.1ubuntu4 [86.4 kB] 1678s Get:417 http://ftpmaster.internal/ubuntu oracular/universe arm64 libhdf5-hl-100t64 arm64 1.10.10+repack-3.1ubuntu4 [55.8 kB] 1678s Get:418 http://ftpmaster.internal/ubuntu oracular/universe arm64 libhdf5-hl-fortran-100t64 arm64 1.10.10+repack-3.1ubuntu4 [30.9 kB] 1678s Get:419 http://ftpmaster.internal/ubuntu oracular/universe arm64 libhdf5-cpp-103-1t64 arm64 1.10.10+repack-3.1ubuntu4 [121 kB] 1678s Get:420 http://ftpmaster.internal/ubuntu oracular/universe arm64 libhdf5-hl-cpp-100t64 arm64 1.10.10+repack-3.1ubuntu4 [11.0 kB] 1678s Get:421 http://ftpmaster.internal/ubuntu oracular/main arm64 zlib1g-dev arm64 1:1.3.dfsg-3.1ubuntu2 [894 kB] 1678s Get:422 http://ftpmaster.internal/ubuntu oracular/main arm64 libjpeg-turbo8-dev arm64 2.1.5-2ubuntu2 [305 kB] 1678s Get:423 http://ftpmaster.internal/ubuntu oracular/main arm64 libjpeg8-dev arm64 8c-2ubuntu11 [1484 B] 1678s Get:424 http://ftpmaster.internal/ubuntu oracular/main arm64 libjpeg-dev arm64 8c-2ubuntu11 [1482 B] 1678s Get:425 http://ftpmaster.internal/ubuntu oracular/universe arm64 libaec-dev arm64 1.1.3-1 [19.3 kB] 1678s Get:426 http://ftpmaster.internal/ubuntu oracular/main arm64 libcurl4-openssl-dev arm64 8.8.0-1ubuntu1 [472 kB] 1678s Get:427 http://ftpmaster.internal/ubuntu oracular/main arm64 libssl-dev arm64 3.0.13-0ubuntu4 [2336 kB] 1678s Get:428 http://ftpmaster.internal/ubuntu oracular/universe arm64 hdf5-helpers arm64 1.10.10+repack-3.1ubuntu4 [15.8 kB] 1678s Get:429 http://ftpmaster.internal/ubuntu oracular/universe arm64 libhdf5-dev arm64 1.10.10+repack-3.1ubuntu4 [3038 kB] 1678s Get:430 http://ftpmaster.internal/ubuntu oracular/main arm64 xorg-sgml-doctools all 1:1.11-1.1 [10.9 kB] 1678s Get:431 http://ftpmaster.internal/ubuntu oracular/main arm64 x11proto-dev all 2024.1-1 [606 kB] 1678s Get:432 http://ftpmaster.internal/ubuntu oracular/main arm64 libxau-dev arm64 1:1.0.9-1build6 [10.0 kB] 1678s Get:433 http://ftpmaster.internal/ubuntu oracular/main arm64 libxdmcp-dev arm64 1:1.1.3-0ubuntu6 [26.3 kB] 1678s Get:434 http://ftpmaster.internal/ubuntu oracular/main arm64 xtrans-dev all 1.4.0-1 [68.9 kB] 1678s Get:435 http://ftpmaster.internal/ubuntu oracular/main arm64 libxcb1-dev arm64 1.17.0-2 [91.7 kB] 1678s Get:436 http://ftpmaster.internal/ubuntu oracular/main arm64 libx11-dev arm64 2:1.8.7-1build1 [742 kB] 1678s Get:437 http://ftpmaster.internal/ubuntu oracular/main arm64 libglx-dev arm64 1.7.0-1build1 [14.2 kB] 1678s Get:438 http://ftpmaster.internal/ubuntu oracular/main arm64 libgl-dev arm64 1.7.0-1build1 [102 kB] 1679s Get:439 http://ftpmaster.internal/ubuntu oracular/main arm64 libblas-dev arm64 3.12.0-3build1 [111 kB] 1679s Get:440 http://ftpmaster.internal/ubuntu oracular/main arm64 liblapack-dev arm64 3.12.0-3build1 [4293 kB] 1679s Get:441 http://ftpmaster.internal/ubuntu oracular/main arm64 libfftw3-bin arm64 3.3.10-1ubuntu3 [34.2 kB] 1679s Get:442 http://ftpmaster.internal/ubuntu oracular/main arm64 libfftw3-dev arm64 3.3.10-1ubuntu3 [1453 kB] 1679s Get:443 http://ftpmaster.internal/ubuntu oracular/main arm64 libgfortran-13-dev arm64 13.2.0-23ubuntu4 [478 kB] 1679s Get:444 http://ftpmaster.internal/ubuntu oracular/main arm64 gfortran-13-aarch64-linux-gnu arm64 13.2.0-23ubuntu4 [10.8 MB] 1679s Get:445 http://ftpmaster.internal/ubuntu oracular/main arm64 gfortran-13 arm64 13.2.0-23ubuntu4 [11.7 kB] 1679s Get:446 http://ftpmaster.internal/ubuntu oracular/main arm64 gfortran-aarch64-linux-gnu arm64 4:13.2.0-7ubuntu1 [1022 B] 1679s Get:447 http://ftpmaster.internal/ubuntu oracular/main arm64 gfortran arm64 4:13.2.0-7ubuntu1 [1164 B] 1679s Get:448 http://ftpmaster.internal/ubuntu oracular/main arm64 libstdc++-13-dev arm64 13.2.0-23ubuntu4 [2379 kB] 1679s Get:449 http://ftpmaster.internal/ubuntu oracular/main arm64 g++-13-aarch64-linux-gnu arm64 13.2.0-23ubuntu4 [11.7 MB] 1679s Get:450 http://ftpmaster.internal/ubuntu oracular/main arm64 g++-13 arm64 13.2.0-23ubuntu4 [14.5 kB] 1679s Get:451 http://ftpmaster.internal/ubuntu oracular/main arm64 g++-aarch64-linux-gnu arm64 4:13.2.0-7ubuntu1 [962 B] 1679s Get:452 http://ftpmaster.internal/ubuntu oracular/main arm64 g++ arm64 4:13.2.0-7ubuntu1 [1082 B] 1679s Get:453 http://ftpmaster.internal/ubuntu oracular/universe arm64 octave-dev arm64 8.4.0-1build5 [469 kB] 1679s Get:454 http://ftpmaster.internal/ubuntu oracular/universe arm64 dh-octave all 1.8.0 [19.7 kB] 1679s Get:455 http://ftpmaster.internal/ubuntu oracular/main arm64 libfontenc1 arm64 1:1.1.8-1build1 [13.9 kB] 1679s Get:456 http://ftpmaster.internal/ubuntu oracular/main arm64 libxt6t64 arm64 1:1.2.1-1.2build1 [168 kB] 1679s Get:457 http://ftpmaster.internal/ubuntu oracular/main arm64 libxmu6 arm64 2:1.1.3-3build2 [47.5 kB] 1679s Get:458 http://ftpmaster.internal/ubuntu oracular/main arm64 libxaw7 arm64 2:1.0.14-1build2 [183 kB] 1679s Get:459 http://ftpmaster.internal/ubuntu oracular/main arm64 libxfont2 arm64 1:2.0.6-1build1 [88.7 kB] 1679s Get:460 http://ftpmaster.internal/ubuntu oracular/main arm64 libxkbfile1 arm64 1:1.1.0-1build4 [69.4 kB] 1679s Get:461 http://ftpmaster.internal/ubuntu oracular/main arm64 libxrandr2 arm64 2:1.5.4-1 [19.6 kB] 1679s Get:462 http://ftpmaster.internal/ubuntu oracular/universe arm64 python3-mpmath all 1.3.0-1 [425 kB] 1679s Get:463 http://ftpmaster.internal/ubuntu oracular-proposed/universe arm64 python3-sympy all 1.12.1-1 [3967 kB] 1680s Get:464 http://ftpmaster.internal/ubuntu oracular/universe arm64 octave-symbolic all 3.1.1-2 [207 kB] 1680s Get:465 http://ftpmaster.internal/ubuntu oracular/main arm64 x11-xkb-utils arm64 7.7+8build2 [165 kB] 1680s Get:466 http://ftpmaster.internal/ubuntu oracular/main arm64 xserver-common all 2:21.1.12-1ubuntu1 [33.3 kB] 1680s Get:467 http://ftpmaster.internal/ubuntu oracular/universe arm64 xvfb arm64 2:21.1.12-1ubuntu1 [871 kB] 1695s Fetched 217 MB in 14s (15.0 MB/s) 1695s Selecting previously unselected package m4. 1696s (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 ... 78264 files and directories currently installed.) 1696s Preparing to unpack .../000-m4_1.4.19-4build1_arm64.deb ... 1696s Unpacking m4 (1.4.19-4build1) ... 1696s Selecting previously unselected package autoconf. 1696s Preparing to unpack .../001-autoconf_2.71-3_all.deb ... 1696s Unpacking autoconf (2.71-3) ... 1696s Selecting previously unselected package autotools-dev. 1696s Preparing to unpack .../002-autotools-dev_20220109.1_all.deb ... 1696s Unpacking autotools-dev (20220109.1) ... 1696s Selecting previously unselected package automake. 1696s Preparing to unpack .../003-automake_1%3a1.16.5-1.3ubuntu1_all.deb ... 1696s Unpacking automake (1:1.16.5-1.3ubuntu1) ... 1696s Selecting previously unselected package autopoint. 1696s Preparing to unpack .../004-autopoint_0.21-14ubuntu2_all.deb ... 1696s Unpacking autopoint (0.21-14ubuntu2) ... 1696s Selecting previously unselected package libcapture-tiny-perl. 1697s Preparing to unpack .../005-libcapture-tiny-perl_0.48-2_all.deb ... 1697s Unpacking libcapture-tiny-perl (0.48-2) ... 1697s Selecting previously unselected package libparams-util-perl. 1697s Preparing to unpack .../006-libparams-util-perl_1.102-3_arm64.deb ... 1697s Unpacking libparams-util-perl (1.102-3) ... 1697s Selecting previously unselected package libsub-install-perl. 1697s Preparing to unpack .../007-libsub-install-perl_0.929-1_all.deb ... 1697s Unpacking libsub-install-perl (0.929-1) ... 1697s Selecting previously unselected package libdata-optlist-perl. 1697s Preparing to unpack .../008-libdata-optlist-perl_0.114-1_all.deb ... 1697s Unpacking libdata-optlist-perl (0.114-1) ... 1697s Selecting previously unselected package libb-hooks-op-check-perl:arm64. 1698s Preparing to unpack .../009-libb-hooks-op-check-perl_0.22-3build1_arm64.deb ... 1698s Unpacking libb-hooks-op-check-perl:arm64 (0.22-3build1) ... 1698s Selecting previously unselected package libdynaloader-functions-perl. 1698s Preparing to unpack .../010-libdynaloader-functions-perl_0.003-3_all.deb ... 1698s Unpacking libdynaloader-functions-perl (0.003-3) ... 1698s Selecting previously unselected package libdevel-callchecker-perl:arm64. 1699s Preparing to unpack .../011-libdevel-callchecker-perl_0.009-1_arm64.deb ... 1699s Unpacking libdevel-callchecker-perl:arm64 (0.009-1) ... 1699s Selecting previously unselected package libparams-classify-perl:arm64. 1699s Preparing to unpack .../012-libparams-classify-perl_0.015-2build5_arm64.deb ... 1699s Unpacking libparams-classify-perl:arm64 (0.015-2build5) ... 1699s Selecting previously unselected package libmodule-runtime-perl. 1699s Preparing to unpack .../013-libmodule-runtime-perl_0.016-2_all.deb ... 1699s Unpacking libmodule-runtime-perl (0.016-2) ... 1699s Selecting previously unselected package libtry-tiny-perl. 1699s Preparing to unpack .../014-libtry-tiny-perl_0.31-2_all.deb ... 1699s Unpacking libtry-tiny-perl (0.31-2) ... 1699s Selecting previously unselected package libmodule-implementation-perl. 1699s Preparing to unpack .../015-libmodule-implementation-perl_0.09-2_all.deb ... 1699s Unpacking libmodule-implementation-perl (0.09-2) ... 1699s Selecting previously unselected package libpackage-stash-perl. 1699s Preparing to unpack .../016-libpackage-stash-perl_0.40-1_all.deb ... 1699s Unpacking libpackage-stash-perl (0.40-1) ... 1700s Selecting previously unselected package libclass-load-perl. 1700s Preparing to unpack .../017-libclass-load-perl_0.25-2_all.deb ... 1700s Unpacking libclass-load-perl (0.25-2) ... 1700s Selecting previously unselected package libio-stringy-perl. 1703s Preparing to unpack .../018-libio-stringy-perl_2.111-3_all.deb ... 1703s Unpacking libio-stringy-perl (2.111-3) ... 1703s Selecting previously unselected package libparams-validate-perl:arm64. 1709s Preparing to unpack .../019-libparams-validate-perl_1.31-2build3_arm64.deb ... 1710s Unpacking libparams-validate-perl:arm64 (1.31-2build3) ... 1711s Selecting previously unselected package libsub-exporter-perl. 1713s Preparing to unpack .../020-libsub-exporter-perl_0.990-1_all.deb ... 1713s Unpacking libsub-exporter-perl (0.990-1) ... 1717s Selecting previously unselected package libgetopt-long-descriptive-perl. 1719s Preparing to unpack .../021-libgetopt-long-descriptive-perl_0.111-1_all.deb ... 1719s Unpacking libgetopt-long-descriptive-perl (0.111-1) ... 1719s Selecting previously unselected package libio-tiecombine-perl. 1721s Preparing to unpack .../022-libio-tiecombine-perl_1.005-3_all.deb ... 1721s Unpacking libio-tiecombine-perl (1.005-3) ... 1721s Selecting previously unselected package libmodule-pluggable-perl. 1723s Preparing to unpack .../023-libmodule-pluggable-perl_5.2-5_all.deb ... 1723s Unpacking libmodule-pluggable-perl (5.2-5) ... 1723s Selecting previously unselected package libstring-rewriteprefix-perl. 1723s Preparing to unpack .../024-libstring-rewriteprefix-perl_0.009-1_all.deb ... 1723s Unpacking libstring-rewriteprefix-perl (0.009-1) ... 1723s Selecting previously unselected package libapp-cmd-perl. 1724s Preparing to unpack .../025-libapp-cmd-perl_0.336-1_all.deb ... 1724s Unpacking libapp-cmd-perl (0.336-1) ... 1724s Selecting previously unselected package libboolean-perl. 1725s Preparing to unpack .../026-libboolean-perl_0.46-3_all.deb ... 1725s Unpacking libboolean-perl (0.46-3) ... 1725s Selecting previously unselected package libsub-uplevel-perl. 1725s Preparing to unpack .../027-libsub-uplevel-perl_0.2800-3_all.deb ... 1725s Unpacking libsub-uplevel-perl (0.2800-3) ... 1725s Selecting previously unselected package libtest-exception-perl. 1725s Preparing to unpack .../028-libtest-exception-perl_0.43-3_all.deb ... 1725s Unpacking libtest-exception-perl (0.43-3) ... 1725s Selecting previously unselected package libcarp-assert-more-perl. 1726s Preparing to unpack .../029-libcarp-assert-more-perl_2.4.0-1_all.deb ... 1726s Unpacking libcarp-assert-more-perl (2.4.0-1) ... 1726s Selecting previously unselected package libfile-which-perl. 1726s Preparing to unpack .../030-libfile-which-perl_1.27-2_all.deb ... 1726s Unpacking libfile-which-perl (1.27-2) ... 1726s Selecting previously unselected package libfile-homedir-perl. 1726s Preparing to unpack .../031-libfile-homedir-perl_1.006-2_all.deb ... 1726s Unpacking libfile-homedir-perl (1.006-2) ... 1726s Selecting previously unselected package libclone-choose-perl. 1727s Preparing to unpack .../032-libclone-choose-perl_0.010-2_all.deb ... 1727s Unpacking libclone-choose-perl (0.010-2) ... 1727s Selecting previously unselected package libhash-merge-perl. 1729s Preparing to unpack .../033-libhash-merge-perl_0.302-1_all.deb ... 1729s Unpacking libhash-merge-perl (0.302-1) ... 1729s Selecting previously unselected package libjson-perl. 1733s Preparing to unpack .../034-libjson-perl_4.10000-1_all.deb ... 1733s Unpacking libjson-perl (4.10000-1) ... 1735s Selecting previously unselected package libexporter-tiny-perl. 1738s Preparing to unpack .../035-libexporter-tiny-perl_1.006002-1_all.deb ... 1738s Unpacking libexporter-tiny-perl (1.006002-1) ... 1739s Selecting previously unselected package liblist-moreutils-xs-perl. 1744s Preparing to unpack .../036-liblist-moreutils-xs-perl_0.430-4_arm64.deb ... 1744s Unpacking liblist-moreutils-xs-perl (0.430-4) ... 1745s Selecting previously unselected package liblist-moreutils-perl. 1748s Preparing to unpack .../037-liblist-moreutils-perl_0.430-2_all.deb ... 1748s Unpacking liblist-moreutils-perl (0.430-2) ... 1749s Selecting previously unselected package liblog-log4perl-perl. 1751s Preparing to unpack .../038-liblog-log4perl-perl_1.57-1_all.deb ... 1751s Unpacking liblog-log4perl-perl (1.57-1) ... 1753s Selecting previously unselected package libmouse-perl. 1756s Preparing to unpack .../039-libmouse-perl_2.5.10-1build8_arm64.deb ... 1756s Unpacking libmouse-perl (2.5.10-1build8) ... 1756s Selecting previously unselected package libmousex-nativetraits-perl. 1757s Preparing to unpack .../040-libmousex-nativetraits-perl_1.09-3_all.deb ... 1757s Unpacking libmousex-nativetraits-perl (1.09-3) ... 1757s Selecting previously unselected package libmousex-strictconstructor-perl. 1758s Preparing to unpack .../041-libmousex-strictconstructor-perl_0.02-3_all.deb ... 1758s Unpacking libmousex-strictconstructor-perl (0.02-3) ... 1758s Selecting previously unselected package libparse-recdescent-perl. 1759s Preparing to unpack .../042-libparse-recdescent-perl_1.967015+dfsg-4_all.deb ... 1759s Unpacking libparse-recdescent-perl (1.967015+dfsg-4) ... 1759s Selecting previously unselected package libpath-tiny-perl. 1759s Preparing to unpack .../043-libpath-tiny-perl_0.144-1_all.deb ... 1759s Unpacking libpath-tiny-perl (0.144-1) ... 1759s Selecting previously unselected package libpod-pom-perl. 1759s Preparing to unpack .../044-libpod-pom-perl_2.01-4_all.deb ... 1759s Unpacking libpod-pom-perl (2.01-4) ... 1759s Selecting previously unselected package libregexp-common-perl. 1759s Preparing to unpack .../045-libregexp-common-perl_2017060201-3_all.deb ... 1759s Unpacking libregexp-common-perl (2017060201-3) ... 1759s Selecting previously unselected package libyaml-tiny-perl. 1759s Preparing to unpack .../046-libyaml-tiny-perl_1.74-1_all.deb ... 1759s Unpacking libyaml-tiny-perl (1.74-1) ... 1759s Selecting previously unselected package libconfig-model-perl. 1760s Preparing to unpack .../047-libconfig-model-perl_2.153-3_all.deb ... 1760s Unpacking libconfig-model-perl (2.153-3) ... 1760s Selecting previously unselected package libyaml-pp-perl. 1760s Preparing to unpack .../048-libyaml-pp-perl_0.38.0-1_all.deb ... 1760s Unpacking libyaml-pp-perl (0.38.0-1) ... 1760s Selecting previously unselected package cme. 1760s Preparing to unpack .../049-cme_1.040-1_all.deb ... 1760s Unpacking cme (1.040-1) ... 1760s Selecting previously unselected package libisl23:arm64. 1761s Preparing to unpack .../050-libisl23_0.26-3build1_arm64.deb ... 1761s Unpacking libisl23:arm64 (0.26-3build1) ... 1761s Selecting previously unselected package libmpc3:arm64. 1762s Preparing to unpack .../051-libmpc3_1.3.1-1build1_arm64.deb ... 1762s Unpacking libmpc3:arm64 (1.3.1-1build1) ... 1762s Selecting previously unselected package cpp-13-aarch64-linux-gnu. 1763s Preparing to unpack .../052-cpp-13-aarch64-linux-gnu_13.2.0-23ubuntu4_arm64.deb ... 1763s Unpacking cpp-13-aarch64-linux-gnu (13.2.0-23ubuntu4) ... 1763s Selecting previously unselected package cpp-13. 1763s Preparing to unpack .../053-cpp-13_13.2.0-23ubuntu4_arm64.deb ... 1763s Unpacking cpp-13 (13.2.0-23ubuntu4) ... 1763s Selecting previously unselected package cpp-aarch64-linux-gnu. 1763s Preparing to unpack .../054-cpp-aarch64-linux-gnu_4%3a13.2.0-7ubuntu1_arm64.deb ... 1763s Unpacking cpp-aarch64-linux-gnu (4:13.2.0-7ubuntu1) ... 1763s Selecting previously unselected package cpp. 1764s Preparing to unpack .../055-cpp_4%3a13.2.0-7ubuntu1_arm64.deb ... 1764s Unpacking cpp (4:13.2.0-7ubuntu1) ... 1764s Selecting previously unselected package libdebhelper-perl. 1764s Preparing to unpack .../056-libdebhelper-perl_13.15.3ubuntu2_all.deb ... 1764s Unpacking libdebhelper-perl (13.15.3ubuntu2) ... 1764s Selecting previously unselected package libcc1-0:arm64. 1765s Preparing to unpack .../057-libcc1-0_14.1.0-1ubuntu1_arm64.deb ... 1765s Unpacking libcc1-0:arm64 (14.1.0-1ubuntu1) ... 1765s Selecting previously unselected package libgomp1:arm64. 1765s Preparing to unpack .../058-libgomp1_14.1.0-1ubuntu1_arm64.deb ... 1765s Unpacking libgomp1:arm64 (14.1.0-1ubuntu1) ... 1765s Selecting previously unselected package libitm1:arm64. 1765s Preparing to unpack .../059-libitm1_14.1.0-1ubuntu1_arm64.deb ... 1765s Unpacking libitm1:arm64 (14.1.0-1ubuntu1) ... 1765s Selecting previously unselected package libatomic1:arm64. 1766s Preparing to unpack .../060-libatomic1_14.1.0-1ubuntu1_arm64.deb ... 1766s Unpacking libatomic1:arm64 (14.1.0-1ubuntu1) ... 1766s Selecting previously unselected package libasan8:arm64. 1767s Preparing to unpack .../061-libasan8_14.1.0-1ubuntu1_arm64.deb ... 1767s Unpacking libasan8:arm64 (14.1.0-1ubuntu1) ... 1767s Selecting previously unselected package liblsan0:arm64. 1769s Preparing to unpack .../062-liblsan0_14.1.0-1ubuntu1_arm64.deb ... 1769s Unpacking liblsan0:arm64 (14.1.0-1ubuntu1) ... 1769s Selecting previously unselected package libtsan2:arm64. 1769s Preparing to unpack .../063-libtsan2_14.1.0-1ubuntu1_arm64.deb ... 1769s Unpacking libtsan2:arm64 (14.1.0-1ubuntu1) ... 1769s Selecting previously unselected package libubsan1:arm64. 1769s Preparing to unpack .../064-libubsan1_14.1.0-1ubuntu1_arm64.deb ... 1769s Unpacking libubsan1:arm64 (14.1.0-1ubuntu1) ... 1769s Selecting previously unselected package libhwasan0:arm64. 1770s Preparing to unpack .../065-libhwasan0_14.1.0-1ubuntu1_arm64.deb ... 1770s Unpacking libhwasan0:arm64 (14.1.0-1ubuntu1) ... 1770s Selecting previously unselected package libgcc-13-dev:arm64. 1770s Preparing to unpack .../066-libgcc-13-dev_13.2.0-23ubuntu4_arm64.deb ... 1770s Unpacking libgcc-13-dev:arm64 (13.2.0-23ubuntu4) ... 1770s Selecting previously unselected package gcc-13-aarch64-linux-gnu. 1770s Preparing to unpack .../067-gcc-13-aarch64-linux-gnu_13.2.0-23ubuntu4_arm64.deb ... 1770s Unpacking gcc-13-aarch64-linux-gnu (13.2.0-23ubuntu4) ... 1770s Selecting previously unselected package gcc-13. 1771s Preparing to unpack .../068-gcc-13_13.2.0-23ubuntu4_arm64.deb ... 1771s Unpacking gcc-13 (13.2.0-23ubuntu4) ... 1771s Selecting previously unselected package gcc-aarch64-linux-gnu. 1772s Preparing to unpack .../069-gcc-aarch64-linux-gnu_4%3a13.2.0-7ubuntu1_arm64.deb ... 1772s Unpacking gcc-aarch64-linux-gnu (4:13.2.0-7ubuntu1) ... 1772s Selecting previously unselected package gcc. 1772s Preparing to unpack .../070-gcc_4%3a13.2.0-7ubuntu1_arm64.deb ... 1772s Unpacking gcc (4:13.2.0-7ubuntu1) ... 1772s Selecting previously unselected package libtool. 1773s Preparing to unpack .../071-libtool_2.4.7-7build1_all.deb ... 1773s Unpacking libtool (2.4.7-7build1) ... 1773s Selecting previously unselected package dh-autoreconf. 1774s Preparing to unpack .../072-dh-autoreconf_20_all.deb ... 1774s Unpacking dh-autoreconf (20) ... 1774s Selecting previously unselected package libarchive-zip-perl. 1775s Preparing to unpack .../073-libarchive-zip-perl_1.68-1_all.deb ... 1775s Unpacking libarchive-zip-perl (1.68-1) ... 1775s Selecting previously unselected package libfile-stripnondeterminism-perl. 1776s Preparing to unpack .../074-libfile-stripnondeterminism-perl_1.14.0-1_all.deb ... 1776s Unpacking libfile-stripnondeterminism-perl (1.14.0-1) ... 1777s Selecting previously unselected package dh-strip-nondeterminism. 1777s Preparing to unpack .../075-dh-strip-nondeterminism_1.14.0-1_all.deb ... 1777s Unpacking dh-strip-nondeterminism (1.14.0-1) ... 1777s Selecting previously unselected package debugedit. 1778s Preparing to unpack .../076-debugedit_1%3a5.0-5build2_arm64.deb ... 1778s Unpacking debugedit (1:5.0-5build2) ... 1778s Selecting previously unselected package dwz. 1783s Preparing to unpack .../077-dwz_0.15-1build6_arm64.deb ... 1783s Unpacking dwz (0.15-1build6) ... 1784s Selecting previously unselected package gettext. 1784s Preparing to unpack .../078-gettext_0.21-14ubuntu2_arm64.deb ... 1784s Unpacking gettext (0.21-14ubuntu2) ... 1785s Selecting previously unselected package intltool-debian. 1785s Preparing to unpack .../079-intltool-debian_0.35.0+20060710.6_all.deb ... 1785s Unpacking intltool-debian (0.35.0+20060710.6) ... 1785s Selecting previously unselected package po-debconf. 1786s Preparing to unpack .../080-po-debconf_1.0.21+nmu1_all.deb ... 1786s Unpacking po-debconf (1.0.21+nmu1) ... 1786s Selecting previously unselected package debhelper. 1786s Preparing to unpack .../081-debhelper_13.15.3ubuntu2_all.deb ... 1786s Unpacking debhelper (13.15.3ubuntu2) ... 1786s Selecting previously unselected package aglfn. 1788s Preparing to unpack .../082-aglfn_1.7+git20191031.4036a9c-2_all.deb ... 1788s Unpacking aglfn (1.7+git20191031.4036a9c-2) ... 1788s Selecting previously unselected package gnuplot-data. 1790s Preparing to unpack .../083-gnuplot-data_6.0.0+dfsg1-1ubuntu3_all.deb ... 1790s Unpacking gnuplot-data (6.0.0+dfsg1-1ubuntu3) ... 1790s Selecting previously unselected package libpixman-1-0:arm64. 1791s Preparing to unpack .../084-libpixman-1-0_0.42.2-1build1_arm64.deb ... 1791s Unpacking libpixman-1-0:arm64 (0.42.2-1build1) ... 1791s Selecting previously unselected package libxcb-render0:arm64. 1791s Preparing to unpack .../085-libxcb-render0_1.17.0-2_arm64.deb ... 1791s Unpacking libxcb-render0:arm64 (1.17.0-2) ... 1791s Selecting previously unselected package libxcb-shm0:arm64. 1791s Preparing to unpack .../086-libxcb-shm0_1.17.0-2_arm64.deb ... 1791s Unpacking libxcb-shm0:arm64 (1.17.0-2) ... 1791s Selecting previously unselected package libxrender1:arm64. 1791s Preparing to unpack .../087-libxrender1_1%3a0.9.10-1.1build1_arm64.deb ... 1791s Unpacking libxrender1:arm64 (1:0.9.10-1.1build1) ... 1791s Selecting previously unselected package libcairo2:arm64. 1791s Preparing to unpack .../088-libcairo2_1.18.0-3build1_arm64.deb ... 1791s Unpacking libcairo2:arm64 (1.18.0-3build1) ... 1791s Selecting previously unselected package liblua5.4-0:arm64. 1791s Preparing to unpack .../089-liblua5.4-0_5.4.6-3build2_arm64.deb ... 1791s Unpacking liblua5.4-0:arm64 (5.4.6-3build2) ... 1792s Selecting previously unselected package fontconfig. 1792s Preparing to unpack .../090-fontconfig_2.15.0-1.1ubuntu2_arm64.deb ... 1792s Unpacking fontconfig (2.15.0-1.1ubuntu2) ... 1792s Selecting previously unselected package libgraphite2-3:arm64. 1792s Preparing to unpack .../091-libgraphite2-3_1.3.14-2build1_arm64.deb ... 1792s Unpacking libgraphite2-3:arm64 (1.3.14-2build1) ... 1792s Selecting previously unselected package libharfbuzz0b:arm64. 1792s Preparing to unpack .../092-libharfbuzz0b_8.3.0-2build2_arm64.deb ... 1792s Unpacking libharfbuzz0b:arm64 (8.3.0-2build2) ... 1792s Selecting previously unselected package libthai-data. 1792s Preparing to unpack .../093-libthai-data_0.1.29-2build1_all.deb ... 1792s Unpacking libthai-data (0.1.29-2build1) ... 1792s Selecting previously unselected package libdatrie1:arm64. 1792s Preparing to unpack .../094-libdatrie1_0.2.13-3build1_arm64.deb ... 1792s Unpacking libdatrie1:arm64 (0.2.13-3build1) ... 1792s Selecting previously unselected package libthai0:arm64. 1792s Preparing to unpack .../095-libthai0_0.1.29-2build1_arm64.deb ... 1792s Unpacking libthai0:arm64 (0.1.29-2build1) ... 1792s Selecting previously unselected package libpango-1.0-0:arm64. 1793s Preparing to unpack .../096-libpango-1.0-0_1.54.0+ds-1_arm64.deb ... 1793s Unpacking libpango-1.0-0:arm64 (1.54.0+ds-1) ... 1793s Selecting previously unselected package libpangoft2-1.0-0:arm64. 1793s Preparing to unpack .../097-libpangoft2-1.0-0_1.54.0+ds-1_arm64.deb ... 1793s Unpacking libpangoft2-1.0-0:arm64 (1.54.0+ds-1) ... 1793s Selecting previously unselected package libpangocairo-1.0-0:arm64. 1793s Preparing to unpack .../098-libpangocairo-1.0-0_1.54.0+ds-1_arm64.deb ... 1793s Unpacking libpangocairo-1.0-0:arm64 (1.54.0+ds-1) ... 1793s Selecting previously unselected package libwebpmux3:arm64. 1793s Preparing to unpack .../099-libwebpmux3_1.4.0-0.1_arm64.deb ... 1793s Unpacking libwebpmux3:arm64 (1.4.0-0.1) ... 1793s Selecting previously unselected package gnuplot-nox. 1793s Preparing to unpack .../100-gnuplot-nox_6.0.0+dfsg1-1ubuntu3_arm64.deb ... 1793s Unpacking gnuplot-nox (6.0.0+dfsg1-1ubuntu3) ... 1793s Selecting previously unselected package fonts-freefont-otf. 1793s Preparing to unpack .../101-fonts-freefont-otf_20211204+svn4273-2_all.deb ... 1793s Unpacking fonts-freefont-otf (20211204+svn4273-2) ... 1794s Selecting previously unselected package dh-octave-autopkgtest. 1794s Preparing to unpack .../102-dh-octave-autopkgtest_1.8.0_all.deb ... 1794s Unpacking dh-octave-autopkgtest (1.8.0) ... 1794s Selecting previously unselected package libapt-pkg-perl. 1794s Preparing to unpack .../103-libapt-pkg-perl_0.1.40build7_arm64.deb ... 1794s Unpacking libapt-pkg-perl (0.1.40build7) ... 1795s Selecting previously unselected package libarray-intspan-perl. 1796s Preparing to unpack .../104-libarray-intspan-perl_2.004-2_all.deb ... 1796s Unpacking libarray-intspan-perl (2.004-2) ... 1796s Selecting previously unselected package libyaml-libyaml-perl. 1796s Preparing to unpack .../105-libyaml-libyaml-perl_0.89+ds-1build2_arm64.deb ... 1796s Unpacking libyaml-libyaml-perl (0.89+ds-1build2) ... 1796s Selecting previously unselected package libconfig-model-backend-yaml-perl. 1797s Preparing to unpack .../106-libconfig-model-backend-yaml-perl_2.134-2_all.deb ... 1797s Unpacking libconfig-model-backend-yaml-perl (2.134-2) ... 1797s Selecting previously unselected package libexporter-lite-perl. 1797s Preparing to unpack .../107-libexporter-lite-perl_0.09-2_all.deb ... 1797s Unpacking libexporter-lite-perl (0.09-2) ... 1797s Selecting previously unselected package libencode-locale-perl. 1797s Preparing to unpack .../108-libencode-locale-perl_1.05-3_all.deb ... 1797s Unpacking libencode-locale-perl (1.05-3) ... 1797s Selecting previously unselected package libtimedate-perl. 1797s Preparing to unpack .../109-libtimedate-perl_2.3300-2_all.deb ... 1797s Unpacking libtimedate-perl (2.3300-2) ... 1797s Selecting previously unselected package libhttp-date-perl. 1798s Preparing to unpack .../110-libhttp-date-perl_6.06-1_all.deb ... 1798s Unpacking libhttp-date-perl (6.06-1) ... 1798s Selecting previously unselected package libfile-listing-perl. 1798s Preparing to unpack .../111-libfile-listing-perl_6.16-1_all.deb ... 1798s Unpacking libfile-listing-perl (6.16-1) ... 1798s Selecting previously unselected package libhtml-tagset-perl. 1798s Preparing to unpack .../112-libhtml-tagset-perl_3.24-1_all.deb ... 1798s Unpacking libhtml-tagset-perl (3.24-1) ... 1798s Selecting previously unselected package liburi-perl. 1798s Preparing to unpack .../113-liburi-perl_5.28-1_all.deb ... 1798s Unpacking liburi-perl (5.28-1) ... 1798s Selecting previously unselected package libhtml-parser-perl:arm64. 1798s Preparing to unpack .../114-libhtml-parser-perl_3.82-1_arm64.deb ... 1798s Unpacking libhtml-parser-perl:arm64 (3.82-1) ... 1799s Selecting previously unselected package libhtml-tree-perl. 1799s Preparing to unpack .../115-libhtml-tree-perl_5.07-3_all.deb ... 1799s Unpacking libhtml-tree-perl (5.07-3) ... 1799s Selecting previously unselected package libclone-perl:arm64. 1799s Preparing to unpack .../116-libclone-perl_0.46-1build3_arm64.deb ... 1799s Unpacking libclone-perl:arm64 (0.46-1build3) ... 1799s Selecting previously unselected package libio-html-perl. 1799s Preparing to unpack .../117-libio-html-perl_1.004-3_all.deb ... 1799s Unpacking libio-html-perl (1.004-3) ... 1799s Selecting previously unselected package liblwp-mediatypes-perl. 1799s Preparing to unpack .../118-liblwp-mediatypes-perl_6.04-2_all.deb ... 1799s Unpacking liblwp-mediatypes-perl (6.04-2) ... 1799s Selecting previously unselected package libhttp-message-perl. 1799s Preparing to unpack .../119-libhttp-message-perl_6.45-1ubuntu1_all.deb ... 1799s Unpacking libhttp-message-perl (6.45-1ubuntu1) ... 1799s Selecting previously unselected package libhttp-cookies-perl. 1799s Preparing to unpack .../120-libhttp-cookies-perl_6.11-1_all.deb ... 1799s Unpacking libhttp-cookies-perl (6.11-1) ... 1799s Selecting previously unselected package libhttp-negotiate-perl. 1799s Preparing to unpack .../121-libhttp-negotiate-perl_6.01-2_all.deb ... 1799s Unpacking libhttp-negotiate-perl (6.01-2) ... 1799s Selecting previously unselected package perl-openssl-defaults:arm64. 1799s Preparing to unpack .../122-perl-openssl-defaults_7build3_arm64.deb ... 1799s Unpacking perl-openssl-defaults:arm64 (7build3) ... 1799s Selecting previously unselected package libnet-ssleay-perl:arm64. 1799s Preparing to unpack .../123-libnet-ssleay-perl_1.94-1build4_arm64.deb ... 1799s Unpacking libnet-ssleay-perl:arm64 (1.94-1build4) ... 1799s Selecting previously unselected package libio-socket-ssl-perl. 1799s Preparing to unpack .../124-libio-socket-ssl-perl_2.085-1_all.deb ... 1799s Unpacking libio-socket-ssl-perl (2.085-1) ... 1799s Selecting previously unselected package libnet-http-perl. 1799s Preparing to unpack .../125-libnet-http-perl_6.23-1_all.deb ... 1799s Unpacking libnet-http-perl (6.23-1) ... 1799s Selecting previously unselected package liblwp-protocol-https-perl. 1799s Preparing to unpack .../126-liblwp-protocol-https-perl_6.14-1_all.deb ... 1799s Unpacking liblwp-protocol-https-perl (6.14-1) ... 1799s Selecting previously unselected package libwww-robotrules-perl. 1799s Preparing to unpack .../127-libwww-robotrules-perl_6.02-1_all.deb ... 1799s Unpacking libwww-robotrules-perl (6.02-1) ... 1799s Selecting previously unselected package libwww-perl. 1799s Preparing to unpack .../128-libwww-perl_6.77-1_all.deb ... 1799s Unpacking libwww-perl (6.77-1) ... 1800s Selecting previously unselected package liberror-perl. 1800s Preparing to unpack .../129-liberror-perl_0.17029-2_all.deb ... 1800s Unpacking liberror-perl (0.17029-2) ... 1800s Selecting previously unselected package libparse-debcontrol-perl. 1800s Preparing to unpack .../130-libparse-debcontrol-perl_2.005-6_all.deb ... 1800s Unpacking libparse-debcontrol-perl (2.005-6) ... 1800s Selecting previously unselected package libsoftware-copyright-perl. 1800s Preparing to unpack .../131-libsoftware-copyright-perl_0.012-2_all.deb ... 1800s Unpacking libsoftware-copyright-perl (0.012-2) ... 1800s Selecting previously unselected package libalgorithm-c3-perl. 1800s Preparing to unpack .../132-libalgorithm-c3-perl_0.11-2_all.deb ... 1800s Unpacking libalgorithm-c3-perl (0.11-2) ... 1800s Selecting previously unselected package libclass-c3-perl. 1800s Preparing to unpack .../133-libclass-c3-perl_0.35-2_all.deb ... 1800s Unpacking libclass-c3-perl (0.35-2) ... 1800s Selecting previously unselected package libmro-compat-perl. 1800s Preparing to unpack .../134-libmro-compat-perl_0.15-2_all.deb ... 1800s Unpacking libmro-compat-perl (0.15-2) ... 1800s Selecting previously unselected package libdata-section-perl. 1800s Preparing to unpack .../135-libdata-section-perl_0.200008-1_all.deb ... 1800s Unpacking libdata-section-perl (0.200008-1) ... 1800s Selecting previously unselected package libtext-template-perl. 1800s Preparing to unpack .../136-libtext-template-perl_1.61-1_all.deb ... 1800s Unpacking libtext-template-perl (1.61-1) ... 1800s Selecting previously unselected package libsoftware-license-perl. 1800s Preparing to unpack .../137-libsoftware-license-perl_0.104006-1_all.deb ... 1800s Unpacking libsoftware-license-perl (0.104006-1) ... 1801s Selecting previously unselected package libsoftware-licensemoreutils-perl. 1801s Preparing to unpack .../138-libsoftware-licensemoreutils-perl_1.009-1_all.deb ... 1801s Unpacking libsoftware-licensemoreutils-perl (1.009-1) ... 1801s Selecting previously unselected package libsort-versions-perl. 1801s Preparing to unpack .../139-libsort-versions-perl_1.62-3_all.deb ... 1801s Unpacking libsort-versions-perl (1.62-3) ... 1801s Selecting previously unselected package libtext-reform-perl. 1801s Preparing to unpack .../140-libtext-reform-perl_1.20-5_all.deb ... 1801s Unpacking libtext-reform-perl (1.20-5) ... 1801s Selecting previously unselected package libtext-autoformat-perl. 1801s Preparing to unpack .../141-libtext-autoformat-perl_1.750000-2_all.deb ... 1801s Unpacking libtext-autoformat-perl (1.750000-2) ... 1801s Selecting previously unselected package libtext-levenshtein-damerau-perl. 1801s Preparing to unpack .../142-libtext-levenshtein-damerau-perl_0.41-3_all.deb ... 1801s Unpacking libtext-levenshtein-damerau-perl (0.41-3) ... 1801s Selecting previously unselected package libtoml-tiny-perl. 1801s Preparing to unpack .../143-libtoml-tiny-perl_0.17-1_all.deb ... 1801s Unpacking libtoml-tiny-perl (0.17-1) ... 1801s Selecting previously unselected package libindirect-perl. 1801s Preparing to unpack .../144-libindirect-perl_0.39-2build4_arm64.deb ... 1801s Unpacking libindirect-perl (0.39-2build4) ... 1801s Selecting previously unselected package libxs-parse-keyword-perl. 1801s Preparing to unpack .../145-libxs-parse-keyword-perl_0.42-1_arm64.deb ... 1801s Unpacking libxs-parse-keyword-perl (0.42-1) ... 1802s Selecting previously unselected package libxs-parse-sublike-perl:arm64. 1802s Preparing to unpack .../146-libxs-parse-sublike-perl_0.21-2build3_arm64.deb ... 1802s Unpacking libxs-parse-sublike-perl:arm64 (0.21-2build3) ... 1802s Selecting previously unselected package libobject-pad-perl. 1802s Preparing to unpack .../147-libobject-pad-perl_0.808-1build3_arm64.deb ... 1802s Unpacking libobject-pad-perl (0.808-1build3) ... 1802s Selecting previously unselected package libsyntax-keyword-try-perl. 1802s Preparing to unpack .../148-libsyntax-keyword-try-perl_0.29-2_arm64.deb ... 1802s Unpacking libsyntax-keyword-try-perl (0.29-2) ... 1802s Selecting previously unselected package libio-interactive-perl. 1802s Preparing to unpack .../149-libio-interactive-perl_1.025-1_all.deb ... 1802s Unpacking libio-interactive-perl (1.025-1) ... 1802s Selecting previously unselected package liblog-any-perl. 1802s Preparing to unpack .../150-liblog-any-perl_1.717-1_all.deb ... 1802s Unpacking liblog-any-perl (1.717-1) ... 1802s Selecting previously unselected package liblog-any-adapter-screen-perl. 1802s Preparing to unpack .../151-liblog-any-adapter-screen-perl_0.140-2_all.deb ... 1802s Unpacking liblog-any-adapter-screen-perl (0.140-2) ... 1802s Selecting previously unselected package libsub-exporter-progressive-perl. 1803s Preparing to unpack .../152-libsub-exporter-progressive-perl_0.001013-3_all.deb ... 1803s Unpacking libsub-exporter-progressive-perl (0.001013-3) ... 1804s Selecting previously unselected package libvariable-magic-perl. 1804s Preparing to unpack .../153-libvariable-magic-perl_0.64-1_arm64.deb ... 1804s Unpacking libvariable-magic-perl (0.64-1) ... 1805s Selecting previously unselected package libb-hooks-endofscope-perl. 1805s Preparing to unpack .../154-libb-hooks-endofscope-perl_0.28-1_all.deb ... 1805s Unpacking libb-hooks-endofscope-perl (0.28-1) ... 1805s Selecting previously unselected package libsub-identify-perl. 1805s Preparing to unpack .../155-libsub-identify-perl_0.14-3build3_arm64.deb ... 1805s Unpacking libsub-identify-perl (0.14-3build3) ... 1805s Selecting previously unselected package libsub-name-perl:arm64. 1805s Preparing to unpack .../156-libsub-name-perl_0.27-1build3_arm64.deb ... 1805s Unpacking libsub-name-perl:arm64 (0.27-1build3) ... 1805s Selecting previously unselected package libnamespace-clean-perl. 1805s Preparing to unpack .../157-libnamespace-clean-perl_0.27-2_all.deb ... 1805s Unpacking libnamespace-clean-perl (0.27-2) ... 1805s Selecting previously unselected package libnumber-compare-perl. 1805s Preparing to unpack .../158-libnumber-compare-perl_0.03-3_all.deb ... 1805s Unpacking libnumber-compare-perl (0.03-3) ... 1805s Selecting previously unselected package libtext-glob-perl. 1805s Preparing to unpack .../159-libtext-glob-perl_0.11-3_all.deb ... 1805s Unpacking libtext-glob-perl (0.11-3) ... 1806s Selecting previously unselected package libpath-iterator-rule-perl. 1806s Preparing to unpack .../160-libpath-iterator-rule-perl_1.015-2_all.deb ... 1806s Unpacking libpath-iterator-rule-perl (1.015-2) ... 1806s Selecting previously unselected package libpod-parser-perl. 1806s Preparing to unpack .../161-libpod-parser-perl_1.67-1_all.deb ... 1806s Adding 'diversion of /usr/bin/podselect to /usr/bin/podselect.bundled by libpod-parser-perl' 1806s Adding 'diversion of /usr/share/man/man1/podselect.1.gz to /usr/share/man/man1/podselect.bundled.1.gz by libpod-parser-perl' 1806s Unpacking libpod-parser-perl (1.67-1) ... 1806s Selecting previously unselected package libpod-constants-perl. 1807s Preparing to unpack .../162-libpod-constants-perl_0.19-2_all.deb ... 1807s Unpacking libpod-constants-perl (0.19-2) ... 1807s Selecting previously unselected package libset-intspan-perl. 1807s Preparing to unpack .../163-libset-intspan-perl_1.19-3_all.deb ... 1807s Unpacking libset-intspan-perl (1.19-3) ... 1807s Selecting previously unselected package libstring-copyright-perl. 1807s Preparing to unpack .../164-libstring-copyright-perl_0.003014-1_all.deb ... 1807s Unpacking libstring-copyright-perl (0.003014-1) ... 1807s Selecting previously unselected package libstring-escape-perl. 1807s Preparing to unpack .../165-libstring-escape-perl_2010.002-3_all.deb ... 1807s Unpacking libstring-escape-perl (2010.002-3) ... 1807s Selecting previously unselected package libregexp-pattern-license-perl. 1807s Preparing to unpack .../166-libregexp-pattern-license-perl_3.11.0-1_all.deb ... 1807s Unpacking libregexp-pattern-license-perl (3.11.0-1) ... 1807s Selecting previously unselected package libregexp-pattern-perl. 1807s Preparing to unpack .../167-libregexp-pattern-perl_0.2.14-2_all.deb ... 1807s Unpacking libregexp-pattern-perl (0.2.14-2) ... 1807s Selecting previously unselected package libstring-license-perl. 1807s Preparing to unpack .../168-libstring-license-perl_0.0.9-2ubuntu1_all.deb ... 1807s Unpacking libstring-license-perl (0.0.9-2ubuntu1) ... 1807s Selecting previously unselected package licensecheck. 1807s Preparing to unpack .../169-licensecheck_3.3.9-1ubuntu1_all.deb ... 1807s Unpacking licensecheck (3.3.9-1ubuntu1) ... 1807s Selecting previously unselected package diffstat. 1808s Preparing to unpack .../170-diffstat_1.66-1build1_arm64.deb ... 1808s Unpacking diffstat (1.66-1build1) ... 1808s Selecting previously unselected package libberkeleydb-perl:arm64. 1808s Preparing to unpack .../171-libberkeleydb-perl_0.64-2build4_arm64.deb ... 1808s Unpacking libberkeleydb-perl:arm64 (0.64-2build4) ... 1808s Selecting previously unselected package libclass-xsaccessor-perl. 1808s Preparing to unpack .../172-libclass-xsaccessor-perl_1.19-4build4_arm64.deb ... 1808s Unpacking libclass-xsaccessor-perl (1.19-4build4) ... 1808s Selecting previously unselected package libconfig-tiny-perl. 1808s Preparing to unpack .../173-libconfig-tiny-perl_2.30-1_all.deb ... 1808s Unpacking libconfig-tiny-perl (2.30-1) ... 1808s Selecting previously unselected package libconst-fast-perl. 1808s Preparing to unpack .../174-libconst-fast-perl_0.014-2_all.deb ... 1808s Unpacking libconst-fast-perl (0.014-2) ... 1808s Selecting previously unselected package libcpanel-json-xs-perl:arm64. 1808s Preparing to unpack .../175-libcpanel-json-xs-perl_4.38-1_arm64.deb ... 1808s Unpacking libcpanel-json-xs-perl:arm64 (4.38-1) ... 1808s Selecting previously unselected package libaliased-perl. 1808s Preparing to unpack .../176-libaliased-perl_0.34-3_all.deb ... 1808s Unpacking libaliased-perl (0.34-3) ... 1808s Selecting previously unselected package libclass-data-inheritable-perl. 1808s Preparing to unpack .../177-libclass-data-inheritable-perl_0.08-3_all.deb ... 1808s Unpacking libclass-data-inheritable-perl (0.08-3) ... 1808s Selecting previously unselected package libdevel-stacktrace-perl. 1808s Preparing to unpack .../178-libdevel-stacktrace-perl_2.0500-1_all.deb ... 1808s Unpacking libdevel-stacktrace-perl (2.0500-1) ... 1808s Selecting previously unselected package libexception-class-perl. 1808s Preparing to unpack .../179-libexception-class-perl_1.45-1_all.deb ... 1808s Unpacking libexception-class-perl (1.45-1) ... 1808s Selecting previously unselected package libiterator-perl. 1808s Preparing to unpack .../180-libiterator-perl_0.03+ds1-2_all.deb ... 1808s Unpacking libiterator-perl (0.03+ds1-2) ... 1808s Selecting previously unselected package libiterator-util-perl. 1808s Preparing to unpack .../181-libiterator-util-perl_0.02+ds1-2_all.deb ... 1808s Unpacking libiterator-util-perl (0.02+ds1-2) ... 1808s Selecting previously unselected package libdata-dpath-perl. 1808s Preparing to unpack .../182-libdata-dpath-perl_0.59-1_all.deb ... 1808s Unpacking libdata-dpath-perl (0.59-1) ... 1808s Selecting previously unselected package libnet-domain-tld-perl. 1808s Preparing to unpack .../183-libnet-domain-tld-perl_1.75-3_all.deb ... 1808s Unpacking libnet-domain-tld-perl (1.75-3) ... 1808s Selecting previously unselected package libdata-validate-domain-perl. 1809s Preparing to unpack .../184-libdata-validate-domain-perl_0.10-1.1_all.deb ... 1809s Unpacking libdata-validate-domain-perl (0.10-1.1) ... 1809s Selecting previously unselected package libnet-ipv6addr-perl. 1809s Preparing to unpack .../185-libnet-ipv6addr-perl_1.02-1_all.deb ... 1809s Unpacking libnet-ipv6addr-perl (1.02-1) ... 1809s Selecting previously unselected package libnet-netmask-perl. 1809s Preparing to unpack .../186-libnet-netmask-perl_2.0002-2_all.deb ... 1809s Unpacking libnet-netmask-perl (2.0002-2) ... 1809s Selecting previously unselected package libnetaddr-ip-perl. 1809s Preparing to unpack .../187-libnetaddr-ip-perl_4.079+dfsg-2build4_arm64.deb ... 1809s Unpacking libnetaddr-ip-perl (4.079+dfsg-2build4) ... 1809s Selecting previously unselected package libdata-validate-ip-perl. 1809s Preparing to unpack .../188-libdata-validate-ip-perl_0.31-1_all.deb ... 1809s Unpacking libdata-validate-ip-perl (0.31-1) ... 1809s Selecting previously unselected package libdata-validate-uri-perl. 1809s Preparing to unpack .../189-libdata-validate-uri-perl_0.07-3_all.deb ... 1809s Unpacking libdata-validate-uri-perl (0.07-3) ... 1809s Selecting previously unselected package libdevel-size-perl. 1810s Preparing to unpack .../190-libdevel-size-perl_0.84-1_arm64.deb ... 1810s Unpacking libdevel-size-perl (0.84-1) ... 1810s Selecting previously unselected package libemail-address-xs-perl. 1810s Preparing to unpack .../191-libemail-address-xs-perl_1.05-1build4_arm64.deb ... 1810s Unpacking libemail-address-xs-perl (1.05-1build4) ... 1810s Selecting previously unselected package libipc-system-simple-perl. 1810s Preparing to unpack .../192-libipc-system-simple-perl_1.30-2_all.deb ... 1810s Unpacking libipc-system-simple-perl (1.30-2) ... 1810s Selecting previously unselected package libfile-basedir-perl. 1810s Preparing to unpack .../193-libfile-basedir-perl_0.09-2_all.deb ... 1810s Unpacking libfile-basedir-perl (0.09-2) ... 1810s Selecting previously unselected package libfile-find-rule-perl. 1810s Preparing to unpack .../194-libfile-find-rule-perl_0.34-3_all.deb ... 1810s Unpacking libfile-find-rule-perl (0.34-3) ... 1811s Selecting previously unselected package libio-string-perl. 1811s Preparing to unpack .../195-libio-string-perl_1.08-4_all.deb ... 1811s Unpacking libio-string-perl (1.08-4) ... 1811s Selecting previously unselected package libfont-ttf-perl. 1811s Preparing to unpack .../196-libfont-ttf-perl_1.06-2_all.deb ... 1811s Unpacking libfont-ttf-perl (1.06-2) ... 1811s Selecting previously unselected package libhtml-html5-entities-perl. 1811s Preparing to unpack .../197-libhtml-html5-entities-perl_0.004-3_all.deb ... 1811s Unpacking libhtml-html5-entities-perl (0.004-3) ... 1811s Selecting previously unselected package libhtml-tokeparser-simple-perl. 1811s Preparing to unpack .../198-libhtml-tokeparser-simple-perl_3.16-4_all.deb ... 1811s Unpacking libhtml-tokeparser-simple-perl (3.16-4) ... 1811s Selecting previously unselected package libipc-run3-perl. 1811s Preparing to unpack .../199-libipc-run3-perl_0.049-1_all.deb ... 1811s Unpacking libipc-run3-perl (0.049-1) ... 1811s Selecting previously unselected package libjson-maybexs-perl. 1811s Preparing to unpack .../200-libjson-maybexs-perl_1.004005-1_all.deb ... 1811s Unpacking libjson-maybexs-perl (1.004005-1) ... 1811s Selecting previously unselected package liblist-compare-perl. 1811s Preparing to unpack .../201-liblist-compare-perl_0.55-2_all.deb ... 1811s Unpacking liblist-compare-perl (0.55-2) ... 1811s Selecting previously unselected package liblist-someutils-perl. 1811s Preparing to unpack .../202-liblist-someutils-perl_0.59-1_all.deb ... 1811s Unpacking liblist-someutils-perl (0.59-1) ... 1812s Selecting previously unselected package liblist-utilsby-perl. 1812s Preparing to unpack .../203-liblist-utilsby-perl_0.12-2_all.deb ... 1812s Unpacking liblist-utilsby-perl (0.12-2) ... 1812s Selecting previously unselected package libmldbm-perl. 1812s Preparing to unpack .../204-libmldbm-perl_2.05-4_all.deb ... 1812s Unpacking libmldbm-perl (2.05-4) ... 1812s Selecting previously unselected package libclass-method-modifiers-perl. 1812s Preparing to unpack .../205-libclass-method-modifiers-perl_2.15-1_all.deb ... 1812s Unpacking libclass-method-modifiers-perl (2.15-1) ... 1812s Selecting previously unselected package libimport-into-perl. 1812s Preparing to unpack .../206-libimport-into-perl_1.002005-2_all.deb ... 1812s Unpacking libimport-into-perl (1.002005-2) ... 1812s Selecting previously unselected package librole-tiny-perl. 1812s Preparing to unpack .../207-librole-tiny-perl_2.002004-1_all.deb ... 1812s Unpacking librole-tiny-perl (2.002004-1) ... 1812s Selecting previously unselected package libsub-quote-perl. 1813s Preparing to unpack .../208-libsub-quote-perl_2.006008-1ubuntu1_all.deb ... 1813s Unpacking libsub-quote-perl (2.006008-1ubuntu1) ... 1813s Selecting previously unselected package libmoo-perl. 1813s Preparing to unpack .../209-libmoo-perl_2.005005-1_all.deb ... 1813s Unpacking libmoo-perl (2.005005-1) ... 1813s Selecting previously unselected package libstrictures-perl. 1813s Preparing to unpack .../210-libstrictures-perl_2.000006-1_all.deb ... 1813s Unpacking libstrictures-perl (2.000006-1) ... 1813s Selecting previously unselected package libmoox-aliases-perl. 1813s Preparing to unpack .../211-libmoox-aliases-perl_0.001006-2_all.deb ... 1813s Unpacking libmoox-aliases-perl (0.001006-2) ... 1813s Selecting previously unselected package libperlio-gzip-perl. 1814s Preparing to unpack .../212-libperlio-gzip-perl_0.20-1build4_arm64.deb ... 1814s Unpacking libperlio-gzip-perl (0.20-1build4) ... 1814s Selecting previously unselected package libperlio-utf8-strict-perl. 1814s Preparing to unpack .../213-libperlio-utf8-strict-perl_0.010-1build3_arm64.deb ... 1814s Unpacking libperlio-utf8-strict-perl (0.010-1build3) ... 1814s Selecting previously unselected package libproc-processtable-perl:arm64. 1814s Preparing to unpack .../214-libproc-processtable-perl_0.636-1build3_arm64.deb ... 1814s Unpacking libproc-processtable-perl:arm64 (0.636-1build3) ... 1814s Selecting previously unselected package libregexp-wildcards-perl. 1814s Preparing to unpack .../215-libregexp-wildcards-perl_1.05-3_all.deb ... 1814s Unpacking libregexp-wildcards-perl (1.05-3) ... 1814s Selecting previously unselected package libsereal-decoder-perl. 1814s Preparing to unpack .../216-libsereal-decoder-perl_5.004+ds-1build3_arm64.deb ... 1814s Unpacking libsereal-decoder-perl (5.004+ds-1build3) ... 1814s Selecting previously unselected package libsereal-encoder-perl. 1814s Preparing to unpack .../217-libsereal-encoder-perl_5.004+ds-1build3_arm64.deb ... 1814s Unpacking libsereal-encoder-perl (5.004+ds-1build3) ... 1814s Selecting previously unselected package libterm-readkey-perl. 1814s Preparing to unpack .../218-libterm-readkey-perl_2.38-2build4_arm64.deb ... 1814s Unpacking libterm-readkey-perl (2.38-2build4) ... 1814s Selecting previously unselected package libtext-levenshteinxs-perl. 1814s Preparing to unpack .../219-libtext-levenshteinxs-perl_0.03-5build4_arm64.deb ... 1814s Unpacking libtext-levenshteinxs-perl (0.03-5build4) ... 1814s Selecting previously unselected package libmarkdown2:arm64. 1814s Preparing to unpack .../220-libmarkdown2_2.2.7-2build1_arm64.deb ... 1814s Unpacking libmarkdown2:arm64 (2.2.7-2build1) ... 1815s Selecting previously unselected package libtext-markdown-discount-perl. 1815s Preparing to unpack .../221-libtext-markdown-discount-perl_0.16-1build3_arm64.deb ... 1815s Unpacking libtext-markdown-discount-perl (0.16-1build3) ... 1815s Selecting previously unselected package libdata-messagepack-perl. 1815s Preparing to unpack .../222-libdata-messagepack-perl_1.02-1build4_arm64.deb ... 1815s Unpacking libdata-messagepack-perl (1.02-1build4) ... 1815s Selecting previously unselected package libtext-xslate-perl:arm64. 1815s Preparing to unpack .../223-libtext-xslate-perl_3.5.9-2_arm64.deb ... 1815s Unpacking libtext-xslate-perl:arm64 (3.5.9-2) ... 1815s Selecting previously unselected package libtime-duration-perl. 1816s Preparing to unpack .../224-libtime-duration-perl_1.21-2_all.deb ... 1816s Unpacking libtime-duration-perl (1.21-2) ... 1816s Selecting previously unselected package libtime-moment-perl. 1816s Preparing to unpack .../225-libtime-moment-perl_0.44-2build4_arm64.deb ... 1816s Unpacking libtime-moment-perl (0.44-2build4) ... 1816s Selecting previously unselected package libunicode-utf8-perl. 1817s Preparing to unpack .../226-libunicode-utf8-perl_0.62-2build3_arm64.deb ... 1817s Unpacking libunicode-utf8-perl (0.62-2build3) ... 1817s Selecting previously unselected package libcgi-pm-perl. 1817s Preparing to unpack .../227-libcgi-pm-perl_4.65-1_all.deb ... 1817s Unpacking libcgi-pm-perl (4.65-1) ... 1817s Selecting previously unselected package libhtml-form-perl. 1817s Preparing to unpack .../228-libhtml-form-perl_6.11-1_all.deb ... 1817s Unpacking libhtml-form-perl (6.11-1) ... 1817s Selecting previously unselected package libwww-mechanize-perl. 1818s Preparing to unpack .../229-libwww-mechanize-perl_2.18-1ubuntu1_all.deb ... 1818s Unpacking libwww-mechanize-perl (2.18-1ubuntu1) ... 1818s Selecting previously unselected package libxml-namespacesupport-perl. 1818s Preparing to unpack .../230-libxml-namespacesupport-perl_1.12-2_all.deb ... 1818s Unpacking libxml-namespacesupport-perl (1.12-2) ... 1818s Selecting previously unselected package libxml-sax-base-perl. 1818s Preparing to unpack .../231-libxml-sax-base-perl_1.09-3_all.deb ... 1818s Unpacking libxml-sax-base-perl (1.09-3) ... 1818s Selecting previously unselected package libxml-sax-perl. 1818s Preparing to unpack .../232-libxml-sax-perl_1.02+dfsg-3_all.deb ... 1818s Unpacking libxml-sax-perl (1.02+dfsg-3) ... 1818s Selecting previously unselected package libxml-libxml-perl. 1818s Preparing to unpack .../233-libxml-libxml-perl_2.0207+dfsg+really+2.0134-2_arm64.deb ... 1818s Unpacking libxml-libxml-perl (2.0207+dfsg+really+2.0134-2) ... 1818s Selecting previously unselected package lzip. 1818s Preparing to unpack .../234-lzip_1.24.1-1build1_arm64.deb ... 1818s Unpacking lzip (1.24.1-1build1) ... 1818s Selecting previously unselected package lzop. 1819s Preparing to unpack .../235-lzop_1.04-2build3_arm64.deb ... 1819s Unpacking lzop (1.04-2build3) ... 1819s Selecting previously unselected package patchutils. 1819s Preparing to unpack .../236-patchutils_0.4.2-1build3_arm64.deb ... 1819s Unpacking patchutils (0.4.2-1build3) ... 1819s Selecting previously unselected package t1utils. 1819s Preparing to unpack .../237-t1utils_1.41-4build3_arm64.deb ... 1819s Unpacking t1utils (1.41-4build3) ... 1819s Selecting previously unselected package unzip. 1819s Preparing to unpack .../238-unzip_6.0-28ubuntu5_arm64.deb ... 1819s Unpacking unzip (6.0-28ubuntu5) ... 1819s Selecting previously unselected package lintian. 1819s Preparing to unpack .../239-lintian_2.117.0ubuntu2_all.deb ... 1819s Unpacking lintian (2.117.0ubuntu2) ... 1820s Selecting previously unselected package libconfig-model-dpkg-perl. 1820s Preparing to unpack .../240-libconfig-model-dpkg-perl_3.005_all.deb ... 1820s Unpacking libconfig-model-dpkg-perl (3.005) ... 1820s Selecting previously unselected package libconvert-binhex-perl. 1820s Preparing to unpack .../241-libconvert-binhex-perl_1.125-3_all.deb ... 1820s Unpacking libconvert-binhex-perl (1.125-3) ... 1820s Selecting previously unselected package libnet-smtp-ssl-perl. 1821s Preparing to unpack .../242-libnet-smtp-ssl-perl_1.04-2_all.deb ... 1821s Unpacking libnet-smtp-ssl-perl (1.04-2) ... 1821s Selecting previously unselected package libmailtools-perl. 1821s Preparing to unpack .../243-libmailtools-perl_2.21-3_all.deb ... 1821s Unpacking libmailtools-perl (2.21-3) ... 1821s Selecting previously unselected package libmime-tools-perl. 1821s Preparing to unpack .../244-libmime-tools-perl_5.515-1_all.deb ... 1821s Unpacking libmime-tools-perl (5.515-1) ... 1821s Selecting previously unselected package libsuitesparseconfig7:arm64. 1821s Preparing to unpack .../245-libsuitesparseconfig7_1%3a7.7.0+dfsg-2_arm64.deb ... 1821s Unpacking libsuitesparseconfig7:arm64 (1:7.7.0+dfsg-2) ... 1821s Selecting previously unselected package libamd3:arm64. 1821s Preparing to unpack .../246-libamd3_1%3a7.7.0+dfsg-2_arm64.deb ... 1821s Unpacking libamd3:arm64 (1:7.7.0+dfsg-2) ... 1821s Selecting previously unselected package libblas3:arm64. 1822s Preparing to unpack .../247-libblas3_3.12.0-3build1_arm64.deb ... 1822s Unpacking libblas3:arm64 (3.12.0-3build1) ... 1822s Selecting previously unselected package libgfortran5:arm64. 1822s Preparing to unpack .../248-libgfortran5_14.1.0-1ubuntu1_arm64.deb ... 1822s Unpacking libgfortran5:arm64 (14.1.0-1ubuntu1) ... 1822s Selecting previously unselected package liblapack3:arm64. 1822s Preparing to unpack .../249-liblapack3_3.12.0-3build1_arm64.deb ... 1822s Unpacking liblapack3:arm64 (3.12.0-3build1) ... 1822s Selecting previously unselected package libarpack2t64:arm64. 1822s Preparing to unpack .../250-libarpack2t64_3.9.1-1.1build2_arm64.deb ... 1822s Unpacking libarpack2t64:arm64 (3.9.1-1.1build2) ... 1823s Selecting previously unselected package libccolamd3:arm64. 1823s Preparing to unpack .../251-libccolamd3_1%3a7.7.0+dfsg-2_arm64.deb ... 1823s Unpacking libccolamd3:arm64 (1:7.7.0+dfsg-2) ... 1823s Selecting previously unselected package libcamd3:arm64. 1823s Preparing to unpack .../252-libcamd3_1%3a7.7.0+dfsg-2_arm64.deb ... 1823s Unpacking libcamd3:arm64 (1:7.7.0+dfsg-2) ... 1823s Selecting previously unselected package libcolamd3:arm64. 1824s Preparing to unpack .../253-libcolamd3_1%3a7.7.0+dfsg-2_arm64.deb ... 1824s Unpacking libcolamd3:arm64 (1:7.7.0+dfsg-2) ... 1824s Selecting previously unselected package libcholmod5:arm64. 1824s Preparing to unpack .../254-libcholmod5_1%3a7.7.0+dfsg-2_arm64.deb ... 1824s Unpacking libcholmod5:arm64 (1:7.7.0+dfsg-2) ... 1824s Selecting previously unselected package libcxsparse4:arm64. 1824s Preparing to unpack .../255-libcxsparse4_1%3a7.7.0+dfsg-2_arm64.deb ... 1824s Unpacking libcxsparse4:arm64 (1:7.7.0+dfsg-2) ... 1824s Selecting previously unselected package libfftw3-double3:arm64. 1825s Preparing to unpack .../256-libfftw3-double3_3.3.10-1ubuntu3_arm64.deb ... 1825s Unpacking libfftw3-double3:arm64 (3.3.10-1ubuntu3) ... 1825s Selecting previously unselected package libfftw3-single3:arm64. 1825s Preparing to unpack .../257-libfftw3-single3_3.3.10-1ubuntu3_arm64.deb ... 1825s Unpacking libfftw3-single3:arm64 (3.3.10-1ubuntu3) ... 1825s Selecting previously unselected package libxfixes3:arm64. 1825s Preparing to unpack .../258-libxfixes3_1%3a6.0.0-2build1_arm64.deb ... 1825s Unpacking libxfixes3:arm64 (1:6.0.0-2build1) ... 1825s Selecting previously unselected package libxcursor1:arm64. 1825s Preparing to unpack .../259-libxcursor1_1%3a1.2.2-1_arm64.deb ... 1825s Unpacking libxcursor1:arm64 (1:1.2.2-1) ... 1825s Selecting previously unselected package libxft2:arm64. 1825s Preparing to unpack .../260-libxft2_2.3.6-1build1_arm64.deb ... 1825s Unpacking libxft2:arm64 (2.3.6-1build1) ... 1825s Selecting previously unselected package libxinerama1:arm64. 1825s Preparing to unpack .../261-libxinerama1_2%3a1.1.4-3build1_arm64.deb ... 1825s Unpacking libxinerama1:arm64 (2:1.1.4-3build1) ... 1826s Selecting previously unselected package libfltk1.3t64:arm64. 1826s Preparing to unpack .../262-libfltk1.3t64_1.3.8-6.1build2_arm64.deb ... 1826s Unpacking libfltk1.3t64:arm64 (1.3.8-6.1build2) ... 1826s Selecting previously unselected package libglvnd0:arm64. 1827s Preparing to unpack .../263-libglvnd0_1.7.0-1build1_arm64.deb ... 1827s Unpacking libglvnd0:arm64 (1.7.0-1build1) ... 1827s Selecting previously unselected package libglapi-mesa:arm64. 1828s Preparing to unpack .../264-libglapi-mesa_24.0.9-0ubuntu1_arm64.deb ... 1828s Unpacking libglapi-mesa:arm64 (24.0.9-0ubuntu1) ... 1828s Selecting previously unselected package libx11-xcb1:arm64. 1828s Preparing to unpack .../265-libx11-xcb1_2%3a1.8.7-1build1_arm64.deb ... 1828s Unpacking libx11-xcb1:arm64 (2:1.8.7-1build1) ... 1828s Selecting previously unselected package libxcb-dri2-0:arm64. 1829s Preparing to unpack .../266-libxcb-dri2-0_1.17.0-2_arm64.deb ... 1829s Unpacking libxcb-dri2-0:arm64 (1.17.0-2) ... 1829s Selecting previously unselected package libxcb-dri3-0:arm64. 1829s Preparing to unpack .../267-libxcb-dri3-0_1.17.0-2_arm64.deb ... 1829s Unpacking libxcb-dri3-0:arm64 (1.17.0-2) ... 1829s Selecting previously unselected package libxcb-glx0:arm64. 1830s Preparing to unpack .../268-libxcb-glx0_1.17.0-2_arm64.deb ... 1830s Unpacking libxcb-glx0:arm64 (1.17.0-2) ... 1830s Selecting previously unselected package libxcb-present0:arm64. 1830s Preparing to unpack .../269-libxcb-present0_1.17.0-2_arm64.deb ... 1830s Unpacking libxcb-present0:arm64 (1.17.0-2) ... 1830s Selecting previously unselected package libxcb-randr0:arm64. 1831s Preparing to unpack .../270-libxcb-randr0_1.17.0-2_arm64.deb ... 1831s Unpacking libxcb-randr0:arm64 (1.17.0-2) ... 1831s Selecting previously unselected package libxcb-sync1:arm64. 1831s Preparing to unpack .../271-libxcb-sync1_1.17.0-2_arm64.deb ... 1831s Unpacking libxcb-sync1:arm64 (1.17.0-2) ... 1831s Selecting previously unselected package libxcb-xfixes0:arm64. 1831s Preparing to unpack .../272-libxcb-xfixes0_1.17.0-2_arm64.deb ... 1831s Unpacking libxcb-xfixes0:arm64 (1.17.0-2) ... 1831s Selecting previously unselected package libxshmfence1:arm64. 1831s Preparing to unpack .../273-libxshmfence1_1.3-1build5_arm64.deb ... 1831s Unpacking libxshmfence1:arm64 (1.3-1build5) ... 1831s Selecting previously unselected package libxxf86vm1:arm64. 1832s Preparing to unpack .../274-libxxf86vm1_1%3a1.1.4-1build4_arm64.deb ... 1832s Unpacking libxxf86vm1:arm64 (1:1.1.4-1build4) ... 1832s Selecting previously unselected package libvulkan1:arm64. 1833s Preparing to unpack .../275-libvulkan1_1.3.283.0-1_arm64.deb ... 1833s Unpacking libvulkan1:arm64 (1.3.283.0-1) ... 1833s Selecting previously unselected package libdrm-amdgpu1:arm64. 1834s Preparing to unpack .../276-libdrm-amdgpu1_2.4.121-2_arm64.deb ... 1834s Unpacking libdrm-amdgpu1:arm64 (2.4.121-2) ... 1834s Selecting previously unselected package libdrm-nouveau2:arm64. 1834s Preparing to unpack .../277-libdrm-nouveau2_2.4.121-2_arm64.deb ... 1834s Unpacking libdrm-nouveau2:arm64 (2.4.121-2) ... 1834s Selecting previously unselected package libdrm-radeon1:arm64. 1835s Preparing to unpack .../278-libdrm-radeon1_2.4.121-2_arm64.deb ... 1835s Unpacking libdrm-radeon1:arm64 (2.4.121-2) ... 1835s Selecting previously unselected package libllvm17t64:arm64. 1835s Preparing to unpack .../279-libllvm17t64_1%3a17.0.6-12_arm64.deb ... 1835s Unpacking libllvm17t64:arm64 (1:17.0.6-12) ... 1836s Selecting previously unselected package libgl1-mesa-dri:arm64. 1836s Preparing to unpack .../280-libgl1-mesa-dri_24.0.9-0ubuntu1_arm64.deb ... 1836s Unpacking libgl1-mesa-dri:arm64 (24.0.9-0ubuntu1) ... 1836s Selecting previously unselected package libglx-mesa0:arm64. 1836s Preparing to unpack .../281-libglx-mesa0_24.0.9-0ubuntu1_arm64.deb ... 1836s Unpacking libglx-mesa0:arm64 (24.0.9-0ubuntu1) ... 1836s Selecting previously unselected package libglx0:arm64. 1836s Preparing to unpack .../282-libglx0_1.7.0-1build1_arm64.deb ... 1836s Unpacking libglx0:arm64 (1.7.0-1build1) ... 1836s Selecting previously unselected package libgl1:arm64. 1837s Preparing to unpack .../283-libgl1_1.7.0-1build1_arm64.deb ... 1837s Unpacking libgl1:arm64 (1.7.0-1build1) ... 1837s Selecting previously unselected package libfltk-gl1.3t64:arm64. 1837s Preparing to unpack .../284-libfltk-gl1.3t64_1.3.8-6.1build2_arm64.deb ... 1837s Unpacking libfltk-gl1.3t64:arm64 (1.3.8-6.1build2) ... 1837s Selecting previously unselected package libgl2ps1.4. 1837s Preparing to unpack .../285-libgl2ps1.4_1.4.2+dfsg1-2build1_arm64.deb ... 1837s Unpacking libgl2ps1.4 (1.4.2+dfsg1-2build1) ... 1837s Selecting previously unselected package libltdl7:arm64. 1837s Preparing to unpack .../286-libltdl7_2.4.7-7build1_arm64.deb ... 1837s Unpacking libltdl7:arm64 (2.4.7-7build1) ... 1837s Selecting previously unselected package libglpk40:arm64. 1837s Preparing to unpack .../287-libglpk40_5.0-1build2_arm64.deb ... 1837s Unpacking libglpk40:arm64 (5.0-1build2) ... 1838s Selecting previously unselected package libopengl0:arm64. 1838s Preparing to unpack .../288-libopengl0_1.7.0-1build1_arm64.deb ... 1838s Unpacking libopengl0:arm64 (1.7.0-1build1) ... 1838s Selecting previously unselected package libglu1-mesa:arm64. 1838s Preparing to unpack .../289-libglu1-mesa_9.0.2-1.1build1_arm64.deb ... 1838s Unpacking libglu1-mesa:arm64 (9.0.2-1.1build1) ... 1838s Selecting previously unselected package libgif7:arm64. 1838s Preparing to unpack .../290-libgif7_5.2.2-1ubuntu1_arm64.deb ... 1838s Unpacking libgif7:arm64 (5.2.2-1ubuntu1) ... 1838s Selecting previously unselected package libhwy1t64:arm64. 1838s Preparing to unpack .../291-libhwy1t64_1.2.0-2_arm64.deb ... 1838s Unpacking libhwy1t64:arm64 (1.2.0-2) ... 1838s Selecting previously unselected package liblcms2-2:arm64. 1838s Preparing to unpack .../292-liblcms2-2_2.14-2build1_arm64.deb ... 1838s Unpacking liblcms2-2:arm64 (2.14-2build1) ... 1838s Selecting previously unselected package libimath-3-1-29t64:arm64. 1839s Preparing to unpack .../293-libimath-3-1-29t64_3.1.9-3.1ubuntu2_arm64.deb ... 1839s Unpacking libimath-3-1-29t64:arm64 (3.1.9-3.1ubuntu2) ... 1839s Selecting previously unselected package libopenexr-3-1-30:arm64. 1839s Preparing to unpack .../294-libopenexr-3-1-30_3.1.5-5.1build3_arm64.deb ... 1839s Unpacking libopenexr-3-1-30:arm64 (3.1.5-5.1build3) ... 1839s Selecting previously unselected package libjxl0.9:arm64. 1839s Preparing to unpack .../295-libjxl0.9_0.9.2-8_arm64.deb ... 1839s Unpacking libjxl0.9:arm64 (0.9.2-8) ... 1839s Selecting previously unselected package libwmflite-0.2-7:arm64. 1840s Preparing to unpack .../296-libwmflite-0.2-7_0.2.13-1.1build3_arm64.deb ... 1840s Unpacking libwmflite-0.2-7:arm64 (0.2.13-1.1build3) ... 1840s Selecting previously unselected package libgraphicsmagick-q16-3t64. 1840s Preparing to unpack .../297-libgraphicsmagick-q16-3t64_1.4+really1.3.43-1build2_arm64.deb ... 1840s Unpacking libgraphicsmagick-q16-3t64 (1.4+really1.3.43-1build2) ... 1840s Selecting previously unselected package libgraphicsmagick++-q16-12t64. 1840s Preparing to unpack .../298-libgraphicsmagick++-q16-12t64_1.4+really1.3.43-1build2_arm64.deb ... 1840s Unpacking libgraphicsmagick++-q16-12t64 (1.4+really1.3.43-1build2) ... 1841s Selecting previously unselected package libaec0:arm64. 1841s Preparing to unpack .../299-libaec0_1.1.3-1_arm64.deb ... 1841s Unpacking libaec0:arm64 (1.1.3-1) ... 1841s Selecting previously unselected package libsz2:arm64. 1841s Preparing to unpack .../300-libsz2_1.1.3-1_arm64.deb ... 1841s Unpacking libsz2:arm64 (1.1.3-1) ... 1841s Selecting previously unselected package libhdf5-103-1t64:arm64. 1841s Preparing to unpack .../301-libhdf5-103-1t64_1.10.10+repack-3.1ubuntu4_arm64.deb ... 1841s Unpacking libhdf5-103-1t64:arm64 (1.10.10+repack-3.1ubuntu4) ... 1841s Selecting previously unselected package libasound2-data. 1841s Preparing to unpack .../302-libasound2-data_1.2.11-1build2_all.deb ... 1841s Unpacking libasound2-data (1.2.11-1build2) ... 1842s Selecting previously unselected package libasound2t64:arm64. 1842s Preparing to unpack .../303-libasound2t64_1.2.11-1build2_arm64.deb ... 1842s Unpacking libasound2t64:arm64 (1.2.11-1build2) ... 1842s Selecting previously unselected package libopus0:arm64. 1842s Preparing to unpack .../304-libopus0_1.4-1build1_arm64.deb ... 1842s Unpacking libopus0:arm64 (1.4-1build1) ... 1842s Selecting previously unselected package libsamplerate0:arm64. 1842s Preparing to unpack .../305-libsamplerate0_0.2.2-4build1_arm64.deb ... 1842s Unpacking libsamplerate0:arm64 (0.2.2-4build1) ... 1842s Selecting previously unselected package libjack-jackd2-0:arm64. 1842s Preparing to unpack .../306-libjack-jackd2-0_1.9.21~dfsg-3ubuntu3_arm64.deb ... 1842s Unpacking libjack-jackd2-0:arm64 (1.9.21~dfsg-3ubuntu3) ... 1842s Selecting previously unselected package libportaudio2:arm64. 1842s Preparing to unpack .../307-libportaudio2_19.6.0-1.2build3_arm64.deb ... 1842s Unpacking libportaudio2:arm64 (19.6.0-1.2build3) ... 1842s Selecting previously unselected package libqhull-r8.0:arm64. 1842s Preparing to unpack .../308-libqhull-r8.0_2020.2-6build1_arm64.deb ... 1842s Unpacking libqhull-r8.0:arm64 (2020.2-6build1) ... 1842s Selecting previously unselected package libqrupdate1:arm64. 1843s Preparing to unpack .../309-libqrupdate1_1.1.2-4build1_arm64.deb ... 1843s Unpacking libqrupdate1:arm64 (1.1.2-4build1) ... 1843s Selecting previously unselected package libqscintilla2-qt5-l10n. 1843s Preparing to unpack .../310-libqscintilla2-qt5-l10n_2.14.1+dfsg-1build4_all.deb ... 1843s Unpacking libqscintilla2-qt5-l10n (2.14.1+dfsg-1build4) ... 1843s Selecting previously unselected package libdouble-conversion3:arm64. 1843s Preparing to unpack .../311-libdouble-conversion3_3.3.0-1build1_arm64.deb ... 1843s Unpacking libdouble-conversion3:arm64 (3.3.0-1build1) ... 1843s Selecting previously unselected package libpcre2-16-0:arm64. 1843s Preparing to unpack .../312-libpcre2-16-0_10.42-4ubuntu2_arm64.deb ... 1843s Unpacking libpcre2-16-0:arm64 (10.42-4ubuntu2) ... 1843s Selecting previously unselected package libqt5core5t64:arm64. 1843s Preparing to unpack .../313-libqt5core5t64_5.15.13+dfsg-1ubuntu1_arm64.deb ... 1843s Unpacking libqt5core5t64:arm64 (5.15.13+dfsg-1ubuntu1) ... 1843s Selecting previously unselected package libwayland-server0:arm64. 1844s Preparing to unpack .../314-libwayland-server0_1.22.0-2.1build1_arm64.deb ... 1844s Unpacking libwayland-server0:arm64 (1.22.0-2.1build1) ... 1844s Selecting previously unselected package libgbm1:arm64. 1845s Preparing to unpack .../315-libgbm1_24.0.9-0ubuntu1_arm64.deb ... 1845s Unpacking libgbm1:arm64 (24.0.9-0ubuntu1) ... 1845s Selecting previously unselected package libwayland-client0:arm64. 1845s Preparing to unpack .../316-libwayland-client0_1.22.0-2.1build1_arm64.deb ... 1845s Unpacking libwayland-client0:arm64 (1.22.0-2.1build1) ... 1845s Selecting previously unselected package libegl-mesa0:arm64. 1845s Preparing to unpack .../317-libegl-mesa0_24.0.9-0ubuntu1_arm64.deb ... 1845s Unpacking libegl-mesa0:arm64 (24.0.9-0ubuntu1) ... 1845s Selecting previously unselected package libegl1:arm64. 1845s Preparing to unpack .../318-libegl1_1.7.0-1build1_arm64.deb ... 1845s Unpacking libegl1:arm64 (1.7.0-1build1) ... 1845s Selecting previously unselected package x11-common. 1845s Preparing to unpack .../319-x11-common_1%3a7.7+23ubuntu3_all.deb ... 1845s Unpacking x11-common (1:7.7+23ubuntu3) ... 1845s Selecting previously unselected package libice6:arm64. 1845s Preparing to unpack .../320-libice6_2%3a1.0.10-1build3_arm64.deb ... 1845s Unpacking libice6:arm64 (2:1.0.10-1build3) ... 1845s Selecting previously unselected package libmtdev1t64:arm64. 1846s Preparing to unpack .../321-libmtdev1t64_1.1.6-1.2_arm64.deb ... 1846s Unpacking libmtdev1t64:arm64 (1.1.6-1.2) ... 1846s Selecting previously unselected package libwacom-common. 1846s Preparing to unpack .../322-libwacom-common_2.10.0-2_all.deb ... 1846s Unpacking libwacom-common (2.10.0-2) ... 1846s Selecting previously unselected package libwacom9:arm64. 1846s Preparing to unpack .../323-libwacom9_2.10.0-2_arm64.deb ... 1846s Unpacking libwacom9:arm64 (2.10.0-2) ... 1846s Selecting previously unselected package libinput-bin. 1847s Preparing to unpack .../324-libinput-bin_1.26.0-1_arm64.deb ... 1847s Unpacking libinput-bin (1.26.0-1) ... 1847s Selecting previously unselected package libinput10:arm64. 1847s Preparing to unpack .../325-libinput10_1.26.0-1_arm64.deb ... 1847s Unpacking libinput10:arm64 (1.26.0-1) ... 1847s Selecting previously unselected package libmd4c0:arm64. 1847s Preparing to unpack .../326-libmd4c0_0.4.8-1build1_arm64.deb ... 1847s Unpacking libmd4c0:arm64 (0.4.8-1build1) ... 1847s Selecting previously unselected package libqt5dbus5t64:arm64. 1847s Preparing to unpack .../327-libqt5dbus5t64_5.15.13+dfsg-1ubuntu1_arm64.deb ... 1847s Unpacking libqt5dbus5t64:arm64 (5.15.13+dfsg-1ubuntu1) ... 1847s Selecting previously unselected package libqt5network5t64:arm64. 1847s Preparing to unpack .../328-libqt5network5t64_5.15.13+dfsg-1ubuntu1_arm64.deb ... 1847s Unpacking libqt5network5t64:arm64 (5.15.13+dfsg-1ubuntu1) ... 1847s Selecting previously unselected package libsm6:arm64. 1847s Preparing to unpack .../329-libsm6_2%3a1.2.3-1build3_arm64.deb ... 1847s Unpacking libsm6:arm64 (2:1.2.3-1build3) ... 1848s Selecting previously unselected package libxcb-icccm4:arm64. 1848s Preparing to unpack .../330-libxcb-icccm4_0.4.1-1.1build3_arm64.deb ... 1848s Unpacking libxcb-icccm4:arm64 (0.4.1-1.1build3) ... 1848s Selecting previously unselected package libxcb-util1:arm64. 1848s Preparing to unpack .../331-libxcb-util1_0.4.0-1build3_arm64.deb ... 1848s Unpacking libxcb-util1:arm64 (0.4.0-1build3) ... 1848s Selecting previously unselected package libxcb-image0:arm64. 1848s Preparing to unpack .../332-libxcb-image0_0.4.0-2build1_arm64.deb ... 1848s Unpacking libxcb-image0:arm64 (0.4.0-2build1) ... 1848s Selecting previously unselected package libxcb-keysyms1:arm64. 1848s Preparing to unpack .../333-libxcb-keysyms1_0.4.0-1build4_arm64.deb ... 1848s Unpacking libxcb-keysyms1:arm64 (0.4.0-1build4) ... 1848s Selecting previously unselected package libxcb-render-util0:arm64. 1848s Preparing to unpack .../334-libxcb-render-util0_0.3.9-1build4_arm64.deb ... 1848s Unpacking libxcb-render-util0:arm64 (0.3.9-1build4) ... 1849s Selecting previously unselected package libxcb-shape0:arm64. 1849s Preparing to unpack .../335-libxcb-shape0_1.17.0-2_arm64.deb ... 1849s Unpacking libxcb-shape0:arm64 (1.17.0-2) ... 1849s Selecting previously unselected package libxcb-xinerama0:arm64. 1849s Preparing to unpack .../336-libxcb-xinerama0_1.17.0-2_arm64.deb ... 1849s Unpacking libxcb-xinerama0:arm64 (1.17.0-2) ... 1849s Selecting previously unselected package libxcb-xinput0:arm64. 1849s Preparing to unpack .../337-libxcb-xinput0_1.17.0-2_arm64.deb ... 1849s Unpacking libxcb-xinput0:arm64 (1.17.0-2) ... 1849s Selecting previously unselected package libxcb-xkb1:arm64. 1849s Preparing to unpack .../338-libxcb-xkb1_1.17.0-2_arm64.deb ... 1849s Unpacking libxcb-xkb1:arm64 (1.17.0-2) ... 1849s Selecting previously unselected package libxkbcommon-x11-0:arm64. 1849s Preparing to unpack .../339-libxkbcommon-x11-0_1.6.0-1build1_arm64.deb ... 1849s Unpacking libxkbcommon-x11-0:arm64 (1.6.0-1build1) ... 1849s Selecting previously unselected package libqt5gui5t64:arm64. 1849s Preparing to unpack .../340-libqt5gui5t64_5.15.13+dfsg-1ubuntu1_arm64.deb ... 1849s Unpacking libqt5gui5t64:arm64 (5.15.13+dfsg-1ubuntu1) ... 1849s Selecting previously unselected package libavahi-common-data:arm64. 1849s Preparing to unpack .../341-libavahi-common-data_0.8-13ubuntu6_arm64.deb ... 1849s Unpacking libavahi-common-data:arm64 (0.8-13ubuntu6) ... 1850s Selecting previously unselected package libavahi-common3:arm64. 1850s Preparing to unpack .../342-libavahi-common3_0.8-13ubuntu6_arm64.deb ... 1850s Unpacking libavahi-common3:arm64 (0.8-13ubuntu6) ... 1850s Selecting previously unselected package libavahi-client3:arm64. 1850s Preparing to unpack .../343-libavahi-client3_0.8-13ubuntu6_arm64.deb ... 1850s Unpacking libavahi-client3:arm64 (0.8-13ubuntu6) ... 1851s Selecting previously unselected package libcups2t64:arm64. 1851s Preparing to unpack .../344-libcups2t64_2.4.7-1.2ubuntu7_arm64.deb ... 1851s Unpacking libcups2t64:arm64 (2.4.7-1.2ubuntu7) ... 1851s Selecting previously unselected package libqt5widgets5t64:arm64. 1851s Preparing to unpack .../345-libqt5widgets5t64_5.15.13+dfsg-1ubuntu1_arm64.deb ... 1851s Unpacking libqt5widgets5t64:arm64 (5.15.13+dfsg-1ubuntu1) ... 1851s Selecting previously unselected package libqt5printsupport5t64:arm64. 1852s Preparing to unpack .../346-libqt5printsupport5t64_5.15.13+dfsg-1ubuntu1_arm64.deb ... 1852s Unpacking libqt5printsupport5t64:arm64 (5.15.13+dfsg-1ubuntu1) ... 1852s Selecting previously unselected package libqscintilla2-qt5-15:arm64. 1852s Preparing to unpack .../347-libqscintilla2-qt5-15_2.14.1+dfsg-1build4_arm64.deb ... 1852s Unpacking libqscintilla2-qt5-15:arm64 (2.14.1+dfsg-1build4) ... 1852s Selecting previously unselected package libqt5sql5t64:arm64. 1852s Preparing to unpack .../348-libqt5sql5t64_5.15.13+dfsg-1ubuntu1_arm64.deb ... 1852s Unpacking libqt5sql5t64:arm64 (5.15.13+dfsg-1ubuntu1) ... 1853s Selecting previously unselected package libqt5help5:arm64. 1853s Preparing to unpack .../349-libqt5help5_5.15.13-3_arm64.deb ... 1853s Unpacking libqt5help5:arm64 (5.15.13-3) ... 1853s Selecting previously unselected package libqt5xml5t64:arm64. 1854s Preparing to unpack .../350-libqt5xml5t64_5.15.13+dfsg-1ubuntu1_arm64.deb ... 1854s Unpacking libqt5xml5t64:arm64 (5.15.13+dfsg-1ubuntu1) ... 1854s Selecting previously unselected package libogg0:arm64. 1855s Preparing to unpack .../351-libogg0_1.3.5-3build1_arm64.deb ... 1855s Unpacking libogg0:arm64 (1.3.5-3build1) ... 1855s Selecting previously unselected package libflac12t64:arm64. 1855s Preparing to unpack .../352-libflac12t64_1.4.3+ds-2.1ubuntu2_arm64.deb ... 1855s Unpacking libflac12t64:arm64 (1.4.3+ds-2.1ubuntu2) ... 1855s Selecting previously unselected package libmp3lame0:arm64. 1855s Preparing to unpack .../353-libmp3lame0_3.100-6build1_arm64.deb ... 1855s Unpacking libmp3lame0:arm64 (3.100-6build1) ... 1855s Selecting previously unselected package libmpg123-0t64:arm64. 1855s Preparing to unpack .../354-libmpg123-0t64_1.32.6-3_arm64.deb ... 1855s Unpacking libmpg123-0t64:arm64 (1.32.6-3) ... 1855s Selecting previously unselected package libvorbis0a:arm64. 1855s Preparing to unpack .../355-libvorbis0a_1.3.7-2_arm64.deb ... 1855s Unpacking libvorbis0a:arm64 (1.3.7-2) ... 1855s Selecting previously unselected package libvorbisenc2:arm64. 1855s Preparing to unpack .../356-libvorbisenc2_1.3.7-2_arm64.deb ... 1855s Unpacking libvorbisenc2:arm64 (1.3.7-2) ... 1855s Selecting previously unselected package libsndfile1:arm64. 1855s Preparing to unpack .../357-libsndfile1_1.2.2-1ubuntu5_arm64.deb ... 1855s Unpacking libsndfile1:arm64 (1.2.2-1ubuntu5) ... 1855s Selecting previously unselected package libspqr4:arm64. 1855s Preparing to unpack .../358-libspqr4_1%3a7.7.0+dfsg-2_arm64.deb ... 1855s Unpacking libspqr4:arm64 (1:7.7.0+dfsg-2) ... 1855s Selecting previously unselected package libsundials-ida6:arm64. 1855s Preparing to unpack .../359-libsundials-ida6_6.4.1+dfsg1-3build5_arm64.deb ... 1855s Unpacking libsundials-ida6:arm64 (6.4.1+dfsg1-3build5) ... 1855s Selecting previously unselected package libbtf2:arm64. 1856s Preparing to unpack .../360-libbtf2_1%3a7.7.0+dfsg-2_arm64.deb ... 1856s Unpacking libbtf2:arm64 (1:7.7.0+dfsg-2) ... 1856s Selecting previously unselected package libklu2:arm64. 1856s Preparing to unpack .../361-libklu2_1%3a7.7.0+dfsg-2_arm64.deb ... 1856s Unpacking libklu2:arm64 (1:7.7.0+dfsg-2) ... 1856s Selecting previously unselected package libfftw3-long3:arm64. 1856s Preparing to unpack .../362-libfftw3-long3_3.3.10-1ubuntu3_arm64.deb ... 1856s Unpacking libfftw3-long3:arm64 (3.3.10-1ubuntu3) ... 1856s Selecting previously unselected package libevent-pthreads-2.1-7t64:arm64. 1856s Preparing to unpack .../363-libevent-pthreads-2.1-7t64_2.1.12-stable-10_arm64.deb ... 1856s Unpacking libevent-pthreads-2.1-7t64:arm64 (2.1.12-stable-10) ... 1856s Selecting previously unselected package librdmacm1t64:arm64. 1856s Preparing to unpack .../364-librdmacm1t64_50.0-2build2_arm64.deb ... 1856s Unpacking librdmacm1t64:arm64 (50.0-2build2) ... 1856s Selecting previously unselected package libfabric1:arm64. 1856s Preparing to unpack .../365-libfabric1_1.17.0-3build2_arm64.deb ... 1856s Unpacking libfabric1:arm64 (1.17.0-3build2) ... 1856s Selecting previously unselected package libhwloc15:arm64. 1856s Preparing to unpack .../366-libhwloc15_2.10.0-1build1_arm64.deb ... 1856s Unpacking libhwloc15:arm64 (2.10.0-1build1) ... 1856s Selecting previously unselected package libmunge2:arm64. 1856s Preparing to unpack .../367-libmunge2_0.5.15-4build1_arm64.deb ... 1856s Unpacking libmunge2:arm64 (0.5.15-4build1) ... 1856s Selecting previously unselected package libpciaccess0:arm64. 1856s Preparing to unpack .../368-libpciaccess0_0.17-3build1_arm64.deb ... 1856s Unpacking libpciaccess0:arm64 (0.17-3build1) ... 1856s Selecting previously unselected package libxnvctrl0:arm64. 1856s Preparing to unpack .../369-libxnvctrl0_510.47.03-0ubuntu4_arm64.deb ... 1856s Unpacking libxnvctrl0:arm64 (510.47.03-0ubuntu4) ... 1856s Selecting previously unselected package ocl-icd-libopencl1:arm64. 1856s Preparing to unpack .../370-ocl-icd-libopencl1_2.3.2-1build1_arm64.deb ... 1856s Unpacking ocl-icd-libopencl1:arm64 (2.3.2-1build1) ... 1856s Selecting previously unselected package libhwloc-plugins:arm64. 1857s Preparing to unpack .../371-libhwloc-plugins_2.10.0-1build1_arm64.deb ... 1857s Unpacking libhwloc-plugins:arm64 (2.10.0-1build1) ... 1859s Selecting previously unselected package libpmix2t64:arm64. 1859s Preparing to unpack .../372-libpmix2t64_5.0.1-4.1build1_arm64.deb ... 1859s Unpacking libpmix2t64:arm64 (5.0.1-4.1build1) ... 1859s Selecting previously unselected package libucx0:arm64. 1859s Preparing to unpack .../373-libucx0_1.16.0+ds-5ubuntu1_arm64.deb ... 1859s Unpacking libucx0:arm64 (1.16.0+ds-5ubuntu1) ... 1859s Selecting previously unselected package libopenmpi3t64:arm64. 1859s Preparing to unpack .../374-libopenmpi3t64_4.1.6-7ubuntu2_arm64.deb ... 1859s Unpacking libopenmpi3t64:arm64 (4.1.6-7ubuntu2) ... 1860s Selecting previously unselected package libfftw3-mpi3:arm64. 1860s Preparing to unpack .../375-libfftw3-mpi3_3.3.10-1ubuntu3_arm64.deb ... 1860s Unpacking libfftw3-mpi3:arm64 (3.3.10-1ubuntu3) ... 1860s Selecting previously unselected package libhdf5-openmpi-103-1t64:arm64. 1860s Preparing to unpack .../376-libhdf5-openmpi-103-1t64_1.10.10+repack-3.1ubuntu4_arm64.deb ... 1860s Unpacking libhdf5-openmpi-103-1t64:arm64 (1.10.10+repack-3.1ubuntu4) ... 1860s Selecting previously unselected package libcombblas2.0.0t64:arm64. 1861s Preparing to unpack .../377-libcombblas2.0.0t64_2.0.0-3.1build2_arm64.deb ... 1861s Unpacking libcombblas2.0.0t64:arm64 (2.0.0-3.1build2) ... 1861s Selecting previously unselected package libmetis5:arm64. 1861s Preparing to unpack .../378-libmetis5_5.1.0.dfsg-7build3_arm64.deb ... 1861s Unpacking libmetis5:arm64 (5.1.0.dfsg-7build3) ... 1861s Selecting previously unselected package libptscotch-7.0:arm64. 1862s Preparing to unpack .../379-libptscotch-7.0_7.0.4-1ubuntu2_arm64.deb ... 1862s Unpacking libptscotch-7.0:arm64 (7.0.4-1ubuntu2) ... 1862s Selecting previously unselected package libsuperlu-dist8:arm64. 1862s Preparing to unpack .../380-libsuperlu-dist8_8.2.1+dfsg1-1build2_arm64.deb ... 1862s Unpacking libsuperlu-dist8:arm64 (8.2.1+dfsg1-1build2) ... 1862s Selecting previously unselected package libhypre-2.28.0:arm64. 1862s Preparing to unpack .../381-libhypre-2.28.0_2.28.0-8build2_arm64.deb ... 1862s Unpacking libhypre-2.28.0:arm64 (2.28.0-8build2) ... 1862s Selecting previously unselected package openmpi-common. 1862s Preparing to unpack .../382-openmpi-common_4.1.6-7ubuntu2_all.deb ... 1862s Unpacking openmpi-common (4.1.6-7ubuntu2) ... 1862s Selecting previously unselected package openmpi-bin. 1862s Preparing to unpack .../383-openmpi-bin_4.1.6-7ubuntu2_arm64.deb ... 1862s Unpacking openmpi-bin (4.1.6-7ubuntu2) ... 1862s Selecting previously unselected package mpi-default-bin. 1863s Preparing to unpack .../384-mpi-default-bin_1.15build1_arm64.deb ... 1863s Unpacking mpi-default-bin (1.15build1) ... 1863s Selecting previously unselected package libscalapack-openmpi2.2:arm64. 1863s Preparing to unpack .../385-libscalapack-openmpi2.2_2.2.1-3.1ubuntu1_arm64.deb ... 1863s Unpacking libscalapack-openmpi2.2:arm64 (2.2.1-3.1ubuntu1) ... 1863s Selecting previously unselected package libmumps-5.6t64:arm64. 1863s Preparing to unpack .../386-libmumps-5.6t64_5.6.2-2.1build2_arm64.deb ... 1863s Unpacking libmumps-5.6t64:arm64 (5.6.2-2.1build2) ... 1863s Selecting previously unselected package libsuperlu6:arm64. 1863s Preparing to unpack .../387-libsuperlu6_6.0.1+dfsg1-1build1_arm64.deb ... 1863s Unpacking libsuperlu6:arm64 (6.0.1+dfsg1-1build1) ... 1863s Selecting previously unselected package libscotch-7.0:arm64. 1863s Preparing to unpack .../388-libscotch-7.0_7.0.4-1ubuntu2_arm64.deb ... 1863s Unpacking libscotch-7.0:arm64 (7.0.4-1ubuntu2) ... 1863s Selecting previously unselected package libtrilinos-kokkos-13.2:arm64. 1863s Preparing to unpack .../389-libtrilinos-kokkos-13.2_13.2.0-6_arm64.deb ... 1863s Unpacking libtrilinos-kokkos-13.2:arm64 (13.2.0-6) ... 1863s Selecting previously unselected package libtrilinos-teuchos-13.2:arm64. 1863s Preparing to unpack .../390-libtrilinos-teuchos-13.2_13.2.0-6_arm64.deb ... 1863s Unpacking libtrilinos-teuchos-13.2:arm64 (13.2.0-6) ... 1863s Selecting previously unselected package libtrilinos-epetra-13.2:arm64. 1863s Preparing to unpack .../391-libtrilinos-epetra-13.2_13.2.0-6_arm64.deb ... 1863s Unpacking libtrilinos-epetra-13.2:arm64 (13.2.0-6) ... 1863s Selecting previously unselected package libtrilinos-triutils-13.2:arm64. 1864s Preparing to unpack .../392-libtrilinos-triutils-13.2_13.2.0-6_arm64.deb ... 1864s Unpacking libtrilinos-triutils-13.2:arm64 (13.2.0-6) ... 1864s Selecting previously unselected package libtrilinos-epetraext-13.2:arm64. 1864s Preparing to unpack .../393-libtrilinos-epetraext-13.2_13.2.0-6_arm64.deb ... 1864s Unpacking libtrilinos-epetraext-13.2:arm64 (13.2.0-6) ... 1864s Selecting previously unselected package libtrilinos-trilinosss-13.2:arm64. 1864s Preparing to unpack .../394-libtrilinos-trilinosss-13.2_13.2.0-6_arm64.deb ... 1864s Unpacking libtrilinos-trilinosss-13.2:arm64 (13.2.0-6) ... 1864s Selecting previously unselected package libtrilinos-amesos-13.2:arm64. 1864s Preparing to unpack .../395-libtrilinos-amesos-13.2_13.2.0-6_arm64.deb ... 1864s Unpacking libtrilinos-amesos-13.2:arm64 (13.2.0-6) ... 1864s Selecting previously unselected package libtrilinos-aztecoo-13.2:arm64. 1864s Preparing to unpack .../396-libtrilinos-aztecoo-13.2_13.2.0-6_arm64.deb ... 1864s Unpacking libtrilinos-aztecoo-13.2:arm64 (13.2.0-6) ... 1865s Selecting previously unselected package libtrilinos-galeri-13.2:arm64. 1865s Preparing to unpack .../397-libtrilinos-galeri-13.2_13.2.0-6_arm64.deb ... 1865s Unpacking libtrilinos-galeri-13.2:arm64 (13.2.0-6) ... 1865s Selecting previously unselected package libtrilinos-ifpack-13.2:arm64. 1865s Preparing to unpack .../398-libtrilinos-ifpack-13.2_13.2.0-6_arm64.deb ... 1865s Unpacking libtrilinos-ifpack-13.2:arm64 (13.2.0-6) ... 1865s Selecting previously unselected package libtrilinos-zoltan-13.2:arm64. 1865s Preparing to unpack .../399-libtrilinos-zoltan-13.2_13.2.0-6_arm64.deb ... 1865s Unpacking libtrilinos-zoltan-13.2:arm64 (13.2.0-6) ... 1865s Selecting previously unselected package libtrilinos-ml-13.2:arm64. 1866s Preparing to unpack .../400-libtrilinos-ml-13.2_13.2.0-6_arm64.deb ... 1866s Unpacking libtrilinos-ml-13.2:arm64 (13.2.0-6) ... 1866s Selecting previously unselected package libumfpack6:arm64. 1866s Preparing to unpack .../401-libumfpack6_1%3a7.7.0+dfsg-2_arm64.deb ... 1866s Unpacking libumfpack6:arm64 (1:7.7.0+dfsg-2) ... 1866s Selecting previously unselected package libpetsc-real3.19t64:arm64. 1866s Preparing to unpack .../402-libpetsc-real3.19t64_3.19.6+dfsg1-2.2ubuntu2_arm64.deb ... 1866s Unpacking libpetsc-real3.19t64:arm64 (3.19.6+dfsg1-2.2ubuntu2) ... 1866s Selecting previously unselected package libsundials-nvecparallel-petsc6:arm64. 1866s Preparing to unpack .../403-libsundials-nvecparallel-petsc6_6.4.1+dfsg1-3build5_arm64.deb ... 1866s Unpacking libsundials-nvecparallel-petsc6:arm64 (6.4.1+dfsg1-3build5) ... 1866s Selecting previously unselected package libsundials-sunmatrix4:arm64. 1866s Preparing to unpack .../404-libsundials-sunmatrix4_6.4.1+dfsg1-3build5_arm64.deb ... 1866s Unpacking libsundials-sunmatrix4:arm64 (6.4.1+dfsg1-3build5) ... 1866s Selecting previously unselected package libsundials-sunlinsol3:arm64. 1866s Preparing to unpack .../405-libsundials-sunlinsol3_6.4.1+dfsg1-3build5_arm64.deb ... 1866s Unpacking libsundials-sunlinsol3:arm64 (6.4.1+dfsg1-3build5) ... 1866s Selecting previously unselected package libtext-unidecode-perl. 1866s Preparing to unpack .../406-libtext-unidecode-perl_1.30-3_all.deb ... 1866s Unpacking libtext-unidecode-perl (1.30-3) ... 1866s Selecting previously unselected package texinfo-lib. 1867s Preparing to unpack .../407-texinfo-lib_7.1-3build2_arm64.deb ... 1867s Unpacking texinfo-lib (7.1-3build2) ... 1867s Selecting previously unselected package tex-common. 1867s Preparing to unpack .../408-tex-common_6.18_all.deb ... 1867s Unpacking tex-common (6.18) ... 1867s Selecting previously unselected package texinfo. 1867s Preparing to unpack .../409-texinfo_7.1-3build2_all.deb ... 1867s Unpacking texinfo (7.1-3build2) ... 1867s Selecting previously unselected package octave-common. 1867s Preparing to unpack .../410-octave-common_8.4.0-1build5_all.deb ... 1867s Unpacking octave-common (8.4.0-1build5) ... 1867s Selecting previously unselected package octave. 1867s Preparing to unpack .../411-octave_8.4.0-1build5_arm64.deb ... 1867s Unpacking octave (8.4.0-1build5) ... 1868s Selecting previously unselected package libncurses-dev:arm64. 1868s Preparing to unpack .../412-libncurses-dev_6.5-2_arm64.deb ... 1868s Unpacking libncurses-dev:arm64 (6.5-2) ... 1868s Selecting previously unselected package libreadline-dev:arm64. 1868s Preparing to unpack .../413-libreadline-dev_8.2-4build1_arm64.deb ... 1868s Unpacking libreadline-dev:arm64 (8.2-4build1) ... 1868s Selecting previously unselected package libhdf5-fortran-102t64:arm64. 1868s Preparing to unpack .../414-libhdf5-fortran-102t64_1.10.10+repack-3.1ubuntu4_arm64.deb ... 1868s Unpacking libhdf5-fortran-102t64:arm64 (1.10.10+repack-3.1ubuntu4) ... 1868s Selecting previously unselected package libhdf5-hl-100t64:arm64. 1868s Preparing to unpack .../415-libhdf5-hl-100t64_1.10.10+repack-3.1ubuntu4_arm64.deb ... 1868s Unpacking libhdf5-hl-100t64:arm64 (1.10.10+repack-3.1ubuntu4) ... 1868s Selecting previously unselected package libhdf5-hl-fortran-100t64:arm64. 1868s Preparing to unpack .../416-libhdf5-hl-fortran-100t64_1.10.10+repack-3.1ubuntu4_arm64.deb ... 1868s Unpacking libhdf5-hl-fortran-100t64:arm64 (1.10.10+repack-3.1ubuntu4) ... 1868s Selecting previously unselected package libhdf5-cpp-103-1t64:arm64. 1869s Preparing to unpack .../417-libhdf5-cpp-103-1t64_1.10.10+repack-3.1ubuntu4_arm64.deb ... 1869s Unpacking libhdf5-cpp-103-1t64:arm64 (1.10.10+repack-3.1ubuntu4) ... 1869s Selecting previously unselected package libhdf5-hl-cpp-100t64:arm64. 1869s Preparing to unpack .../418-libhdf5-hl-cpp-100t64_1.10.10+repack-3.1ubuntu4_arm64.deb ... 1869s Unpacking libhdf5-hl-cpp-100t64:arm64 (1.10.10+repack-3.1ubuntu4) ... 1869s Selecting previously unselected package zlib1g-dev:arm64. 1869s Preparing to unpack .../419-zlib1g-dev_1%3a1.3.dfsg-3.1ubuntu2_arm64.deb ... 1869s Unpacking zlib1g-dev:arm64 (1:1.3.dfsg-3.1ubuntu2) ... 1869s Selecting previously unselected package libjpeg-turbo8-dev:arm64. 1870s Preparing to unpack .../420-libjpeg-turbo8-dev_2.1.5-2ubuntu2_arm64.deb ... 1870s Unpacking libjpeg-turbo8-dev:arm64 (2.1.5-2ubuntu2) ... 1870s Selecting previously unselected package libjpeg8-dev:arm64. 1870s Preparing to unpack .../421-libjpeg8-dev_8c-2ubuntu11_arm64.deb ... 1870s Unpacking libjpeg8-dev:arm64 (8c-2ubuntu11) ... 1870s Selecting previously unselected package libjpeg-dev:arm64. 1870s Preparing to unpack .../422-libjpeg-dev_8c-2ubuntu11_arm64.deb ... 1870s Unpacking libjpeg-dev:arm64 (8c-2ubuntu11) ... 1870s Selecting previously unselected package libaec-dev:arm64. 1870s Preparing to unpack .../423-libaec-dev_1.1.3-1_arm64.deb ... 1870s Unpacking libaec-dev:arm64 (1.1.3-1) ... 1870s Selecting previously unselected package libcurl4-openssl-dev:arm64. 1870s Preparing to unpack .../424-libcurl4-openssl-dev_8.8.0-1ubuntu1_arm64.deb ... 1870s Unpacking libcurl4-openssl-dev:arm64 (8.8.0-1ubuntu1) ... 1870s Selecting previously unselected package libssl-dev:arm64. 1870s Preparing to unpack .../425-libssl-dev_3.0.13-0ubuntu4_arm64.deb ... 1870s Unpacking libssl-dev:arm64 (3.0.13-0ubuntu4) ... 1870s Selecting previously unselected package hdf5-helpers. 1871s Preparing to unpack .../426-hdf5-helpers_1.10.10+repack-3.1ubuntu4_arm64.deb ... 1871s Unpacking hdf5-helpers (1.10.10+repack-3.1ubuntu4) ... 1871s Selecting previously unselected package libhdf5-dev. 1871s Preparing to unpack .../427-libhdf5-dev_1.10.10+repack-3.1ubuntu4_arm64.deb ... 1871s Unpacking libhdf5-dev (1.10.10+repack-3.1ubuntu4) ... 1871s Selecting previously unselected package xorg-sgml-doctools. 1871s Preparing to unpack .../428-xorg-sgml-doctools_1%3a1.11-1.1_all.deb ... 1871s Unpacking xorg-sgml-doctools (1:1.11-1.1) ... 1871s Selecting previously unselected package x11proto-dev. 1871s Preparing to unpack .../429-x11proto-dev_2024.1-1_all.deb ... 1871s Unpacking x11proto-dev (2024.1-1) ... 1871s Selecting previously unselected package libxau-dev:arm64. 1871s Preparing to unpack .../430-libxau-dev_1%3a1.0.9-1build6_arm64.deb ... 1871s Unpacking libxau-dev:arm64 (1:1.0.9-1build6) ... 1871s Selecting previously unselected package libxdmcp-dev:arm64. 1871s Preparing to unpack .../431-libxdmcp-dev_1%3a1.1.3-0ubuntu6_arm64.deb ... 1871s Unpacking libxdmcp-dev:arm64 (1:1.1.3-0ubuntu6) ... 1871s Selecting previously unselected package xtrans-dev. 1871s Preparing to unpack .../432-xtrans-dev_1.4.0-1_all.deb ... 1871s Unpacking xtrans-dev (1.4.0-1) ... 1871s Selecting previously unselected package libxcb1-dev:arm64. 1871s Preparing to unpack .../433-libxcb1-dev_1.17.0-2_arm64.deb ... 1871s Unpacking libxcb1-dev:arm64 (1.17.0-2) ... 1871s Selecting previously unselected package libx11-dev:arm64. 1871s Preparing to unpack .../434-libx11-dev_2%3a1.8.7-1build1_arm64.deb ... 1871s Unpacking libx11-dev:arm64 (2:1.8.7-1build1) ... 1871s Selecting previously unselected package libglx-dev:arm64. 1872s Preparing to unpack .../435-libglx-dev_1.7.0-1build1_arm64.deb ... 1872s Unpacking libglx-dev:arm64 (1.7.0-1build1) ... 1872s Selecting previously unselected package libgl-dev:arm64. 1872s Preparing to unpack .../436-libgl-dev_1.7.0-1build1_arm64.deb ... 1872s Unpacking libgl-dev:arm64 (1.7.0-1build1) ... 1872s Selecting previously unselected package libblas-dev:arm64. 1872s Preparing to unpack .../437-libblas-dev_3.12.0-3build1_arm64.deb ... 1872s Unpacking libblas-dev:arm64 (3.12.0-3build1) ... 1872s Selecting previously unselected package liblapack-dev:arm64. 1872s Preparing to unpack .../438-liblapack-dev_3.12.0-3build1_arm64.deb ... 1872s Unpacking liblapack-dev:arm64 (3.12.0-3build1) ... 1873s Selecting previously unselected package libfftw3-bin. 1873s Preparing to unpack .../439-libfftw3-bin_3.3.10-1ubuntu3_arm64.deb ... 1873s Unpacking libfftw3-bin (3.3.10-1ubuntu3) ... 1873s Selecting previously unselected package libfftw3-dev:arm64. 1873s Preparing to unpack .../440-libfftw3-dev_3.3.10-1ubuntu3_arm64.deb ... 1873s Unpacking libfftw3-dev:arm64 (3.3.10-1ubuntu3) ... 1873s Selecting previously unselected package libgfortran-13-dev:arm64. 1873s Preparing to unpack .../441-libgfortran-13-dev_13.2.0-23ubuntu4_arm64.deb ... 1873s Unpacking libgfortran-13-dev:arm64 (13.2.0-23ubuntu4) ... 1873s Selecting previously unselected package gfortran-13-aarch64-linux-gnu. 1873s Preparing to unpack .../442-gfortran-13-aarch64-linux-gnu_13.2.0-23ubuntu4_arm64.deb ... 1873s Unpacking gfortran-13-aarch64-linux-gnu (13.2.0-23ubuntu4) ... 1873s Selecting previously unselected package gfortran-13. 1873s Preparing to unpack .../443-gfortran-13_13.2.0-23ubuntu4_arm64.deb ... 1873s Unpacking gfortran-13 (13.2.0-23ubuntu4) ... 1873s Selecting previously unselected package gfortran-aarch64-linux-gnu. 1873s Preparing to unpack .../444-gfortran-aarch64-linux-gnu_4%3a13.2.0-7ubuntu1_arm64.deb ... 1873s Unpacking gfortran-aarch64-linux-gnu (4:13.2.0-7ubuntu1) ... 1873s Selecting previously unselected package gfortran. 1873s Preparing to unpack .../445-gfortran_4%3a13.2.0-7ubuntu1_arm64.deb ... 1873s Unpacking gfortran (4:13.2.0-7ubuntu1) ... 1873s Selecting previously unselected package libstdc++-13-dev:arm64. 1873s Preparing to unpack .../446-libstdc++-13-dev_13.2.0-23ubuntu4_arm64.deb ... 1873s Unpacking libstdc++-13-dev:arm64 (13.2.0-23ubuntu4) ... 1873s Selecting previously unselected package g++-13-aarch64-linux-gnu. 1874s Preparing to unpack .../447-g++-13-aarch64-linux-gnu_13.2.0-23ubuntu4_arm64.deb ... 1874s Unpacking g++-13-aarch64-linux-gnu (13.2.0-23ubuntu4) ... 1874s Selecting previously unselected package g++-13. 1874s Preparing to unpack .../448-g++-13_13.2.0-23ubuntu4_arm64.deb ... 1874s Unpacking g++-13 (13.2.0-23ubuntu4) ... 1874s Selecting previously unselected package g++-aarch64-linux-gnu. 1874s Preparing to unpack .../449-g++-aarch64-linux-gnu_4%3a13.2.0-7ubuntu1_arm64.deb ... 1874s Unpacking g++-aarch64-linux-gnu (4:13.2.0-7ubuntu1) ... 1874s Selecting previously unselected package g++. 1875s Preparing to unpack .../450-g++_4%3a13.2.0-7ubuntu1_arm64.deb ... 1876s Unpacking g++ (4:13.2.0-7ubuntu1) ... 1876s Selecting previously unselected package octave-dev. 1876s Preparing to unpack .../451-octave-dev_8.4.0-1build5_arm64.deb ... 1876s Unpacking octave-dev (8.4.0-1build5) ... 1877s Selecting previously unselected package dh-octave. 1877s Preparing to unpack .../452-dh-octave_1.8.0_all.deb ... 1877s Unpacking dh-octave (1.8.0) ... 1877s Selecting previously unselected package libfontenc1:arm64. 1878s Preparing to unpack .../453-libfontenc1_1%3a1.1.8-1build1_arm64.deb ... 1878s Unpacking libfontenc1:arm64 (1:1.1.8-1build1) ... 1878s Selecting previously unselected package libxt6t64:arm64. 1878s Preparing to unpack .../454-libxt6t64_1%3a1.2.1-1.2build1_arm64.deb ... 1878s Unpacking libxt6t64:arm64 (1:1.2.1-1.2build1) ... 1878s Selecting previously unselected package libxmu6:arm64. 1879s Preparing to unpack .../455-libxmu6_2%3a1.1.3-3build2_arm64.deb ... 1879s Unpacking libxmu6:arm64 (2:1.1.3-3build2) ... 1879s Selecting previously unselected package libxaw7:arm64. 1879s Preparing to unpack .../456-libxaw7_2%3a1.0.14-1build2_arm64.deb ... 1879s Unpacking libxaw7:arm64 (2:1.0.14-1build2) ... 1879s Selecting previously unselected package libxfont2:arm64. 1879s Preparing to unpack .../457-libxfont2_1%3a2.0.6-1build1_arm64.deb ... 1879s Unpacking libxfont2:arm64 (1:2.0.6-1build1) ... 1879s Selecting previously unselected package libxkbfile1:arm64. 1879s Preparing to unpack .../458-libxkbfile1_1%3a1.1.0-1build4_arm64.deb ... 1879s Unpacking libxkbfile1:arm64 (1:1.1.0-1build4) ... 1879s Selecting previously unselected package libxrandr2:arm64. 1879s Preparing to unpack .../459-libxrandr2_2%3a1.5.4-1_arm64.deb ... 1879s Unpacking libxrandr2:arm64 (2:1.5.4-1) ... 1879s Selecting previously unselected package python3-mpmath. 1879s Preparing to unpack .../460-python3-mpmath_1.3.0-1_all.deb ... 1879s Unpacking python3-mpmath (1.3.0-1) ... 1879s Selecting previously unselected package python3-sympy. 1879s Preparing to unpack .../461-python3-sympy_1.12.1-1_all.deb ... 1879s Unpacking python3-sympy (1.12.1-1) ... 1880s Selecting previously unselected package octave-symbolic. 1880s Preparing to unpack .../462-octave-symbolic_3.1.1-2_all.deb ... 1880s Unpacking octave-symbolic (3.1.1-2) ... 1880s Selecting previously unselected package x11-xkb-utils. 1880s Preparing to unpack .../463-x11-xkb-utils_7.7+8build2_arm64.deb ... 1880s Unpacking x11-xkb-utils (7.7+8build2) ... 1880s Selecting previously unselected package xserver-common. 1880s Preparing to unpack .../464-xserver-common_2%3a21.1.12-1ubuntu1_all.deb ... 1880s Unpacking xserver-common (2:21.1.12-1ubuntu1) ... 1880s Selecting previously unselected package xvfb. 1880s Preparing to unpack .../465-xvfb_2%3a21.1.12-1ubuntu1_arm64.deb ... 1880s Unpacking xvfb (2:21.1.12-1ubuntu1) ... 1880s Selecting previously unselected package autopkgtest-satdep. 1881s Preparing to unpack .../466-1-autopkgtest-satdep.deb ... 1881s Unpacking autopkgtest-satdep (0) ... 1881s Setting up libapt-pkg-perl (0.1.40build7) ... 1881s Setting up libhwy1t64:arm64 (1.2.0-2) ... 1881s Setting up libmodule-pluggable-perl (5.2-5) ... 1881s Setting up libgraphite2-3:arm64 (1.3.14-2build1) ... 1881s Setting up libstring-escape-perl (2010.002-3) ... 1881s Setting up libxcb-dri3-0:arm64 (1.17.0-2) ... 1881s Setting up liblcms2-2:arm64 (2.14-2build1) ... 1881s Setting up libberkeleydb-perl:arm64 (0.64-2build4) ... 1881s Setting up libpixman-1-0:arm64 (0.42.2-1build1) ... 1881s Setting up libwayland-server0:arm64 (1.22.0-2.1build1) ... 1881s Setting up libx11-xcb1:arm64 (2:1.8.7-1build1) ... 1881s Setting up libpciaccess0:arm64 (0.17-3build1) ... 1881s Setting up libfile-which-perl (1.27-2) ... 1881s Setting up fontconfig (2.15.0-1.1ubuntu2) ... 1883s Regenerating fonts cache... done. 1883s Setting up libjpeg-turbo8-dev:arm64 (2.1.5-2ubuntu2) ... 1883s Setting up libdouble-conversion3:arm64 (3.3.0-1build1) ... 1883s Setting up libncurses-dev:arm64 (6.5-2) ... 1883s Setting up libdrm-nouveau2:arm64 (2.4.121-2) ... 1883s Setting up libunicode-utf8-perl (0.62-2build3) ... 1883s Setting up libset-intspan-perl (1.19-3) ... 1883s Setting up libxcb-xfixes0:arm64 (1.17.0-2) ... 1883s Setting up libogg0:arm64 (1.3.5-3build1) ... 1883s Setting up libmouse-perl (2.5.10-1build8) ... 1883s Setting up libpod-pom-perl (2.01-4) ... 1883s Setting up hdf5-helpers (1.10.10+repack-3.1ubuntu4) ... 1883s Setting up libwmflite-0.2-7:arm64 (0.2.13-1.1build3) ... 1883s Setting up libregexp-pattern-perl (0.2.14-2) ... 1883s Setting up libdata-messagepack-perl (1.02-1build4) ... 1883s Setting up libxcb-xinput0:arm64 (1.17.0-2) ... 1883s Setting up libxrender1:arm64 (1:0.9.10-1.1build1) ... 1883s Setting up libdynaloader-functions-perl (0.003-3) ... 1883s Setting up libdatrie1:arm64 (0.2.13-3build1) ... 1883s Setting up libtext-glob-perl (0.11-3) ... 1883s Setting up libclass-method-modifiers-perl (2.15-1) ... 1883s Setting up liblist-compare-perl (0.55-2) ... 1883s Setting up libxcb-render0:arm64 (1.17.0-2) ... 1883s Setting up libclone-perl:arm64 (0.46-1build3) ... 1883s Setting up libarchive-zip-perl (1.68-1) ... 1883s Setting up libsub-identify-perl (0.14-3build3) ... 1883s Setting up libevent-pthreads-2.1-7t64:arm64 (2.1.12-stable-10) ... 1883s Setting up libdrm-radeon1:arm64 (2.4.121-2) ... 1883s Setting up libcpanel-json-xs-perl:arm64 (4.38-1) ... 1883s Setting up libglvnd0:arm64 (1.7.0-1build1) ... 1883s Setting up libio-stringy-perl (2.111-3) ... 1883s Setting up libscotch-7.0:arm64 (7.0.4-1ubuntu2) ... 1883s Setting up libhtml-tagset-perl (3.24-1) ... 1883s Setting up liblog-any-perl (1.717-1) ... 1883s Setting up libqscintilla2-qt5-l10n (2.14.1+dfsg-1build4) ... 1883s Setting up libyaml-pp-perl (0.38.0-1) ... 1883s Setting up libxcb-glx0:arm64 (1.17.0-2) ... 1883s Setting up libdevel-size-perl (0.84-1) ... 1883s Setting up unzip (6.0-28ubuntu5) ... 1883s Setting up libdebhelper-perl (13.15.3ubuntu2) ... 1883s Setting up libregexp-pattern-license-perl (3.11.0-1) ... 1883s Setting up libconvert-binhex-perl (1.125-3) ... 1883s Setting up liblwp-mediatypes-perl (6.04-2) ... 1883s Setting up libyaml-libyaml-perl (0.89+ds-1build2) ... 1883s Setting up fonts-freefont-otf (20211204+svn4273-2) ... 1883s Setting up libio-interactive-perl (1.025-1) ... 1883s Setting up libxcb-keysyms1:arm64 (0.4.0-1build4) ... 1883s Setting up libxcb-shape0:arm64 (1.17.0-2) ... 1883s Setting up x11-common (1:7.7+23ubuntu3) ... 1884s Setting up libtry-tiny-perl (0.31-2) ... 1884s Setting up perl-openssl-defaults:arm64 (7build3) ... 1884s Setting up libmldbm-perl (2.05-4) ... 1884s Setting up libxml-namespacesupport-perl (1.12-2) ... 1884s Setting up m4 (1.4.19-4build1) ... 1884s Setting up libclone-choose-perl (0.010-2) ... 1884s Setting up libqhull-r8.0:arm64 (2020.2-6build1) ... 1884s Setting up libxcb-render-util0:arm64 (0.3.9-1build4) ... 1884s Setting up libtime-moment-perl (0.44-2build4) ... 1884s Setting up libencode-locale-perl (1.05-3) ... 1884s Setting up libtrilinos-kokkos-13.2:arm64 (13.2.0-6) ... 1884s Setting up libmetis5:arm64 (5.1.0.dfsg-7build3) ... 1884s Setting up libxcb-shm0:arm64 (1.17.0-2) ... 1884s Setting up libxcb-icccm4:arm64 (0.4.1-1.1build3) ... 1884s Setting up texinfo-lib (7.1-3build2) ... 1884s Setting up libreadline-dev:arm64 (8.2-4build1) ... 1884s Setting up libmpg123-0t64:arm64 (1.32.6-3) ... 1884s Setting up libgomp1:arm64 (14.1.0-1ubuntu1) ... 1884s Setting up libconfig-tiny-perl (2.30-1) ... 1884s Setting up libsereal-encoder-perl (5.004+ds-1build3) ... 1884s Setting up liblist-utilsby-perl (0.12-2) ... 1884s Setting up libyaml-tiny-perl (1.74-1) ... 1884s Setting up octave-common (8.4.0-1build5) ... 1884s Setting up libcairo2:arm64 (1.18.0-3build1) ... 1884s Setting up libregexp-common-perl (2017060201-3) ... 1884s Setting up libpcre2-16-0:arm64 (10.42-4ubuntu2) ... 1884s Setting up libaec0:arm64 (1.1.3-1) ... 1884s Setting up libnet-netmask-perl (2.0002-2) ... 1884s Setting up libopengl0:arm64 (1.7.0-1build1) ... 1884s Setting up libsub-install-perl (0.929-1) ... 1884s Setting up libxcb-util1:arm64 (0.4.0-1build3) ... 1884s Setting up libxxf86vm1:arm64 (1:1.1.4-1build4) ... 1884s Setting up libindirect-perl (0.39-2build4) ... 1884s Setting up libxcb-xkb1:arm64 (1.17.0-2) ... 1884s Setting up libxcb-image0:arm64 (0.4.0-2build1) ... 1884s Setting up libxs-parse-sublike-perl:arm64 (0.21-2build3) ... 1884s Setting up libnumber-compare-perl (0.03-3) ... 1884s Setting up libxnvctrl0:arm64 (510.47.03-0ubuntu4) ... 1884s Setting up libxcb-present0:arm64 (1.17.0-2) ... 1884s Setting up liberror-perl (0.17029-2) ... 1884s Setting up libtrilinos-trilinosss-13.2:arm64 (13.2.0-6) ... 1884s Setting up libasound2-data (1.2.11-1build2) ... 1884s Setting up patchutils (0.4.2-1build3) ... 1884s Setting up tex-common (6.18) ... 1884s update-language: texlive-base not installed and configured, doing nothing! 1884s Setting up libbtf2:arm64 (1:7.7.0+dfsg-2) ... 1884s Setting up libjson-maybexs-perl (1.004005-1) ... 1884s Setting up libxml-sax-base-perl (1.09-3) ... 1884s Setting up libio-string-perl (1.08-4) ... 1884s Setting up libboolean-perl (0.46-3) ... 1884s Setting up libnetaddr-ip-perl (4.079+dfsg-2build4) ... 1884s Setting up xtrans-dev (1.4.0-1) ... 1884s Setting up libqt5core5t64:arm64 (5.15.13+dfsg-1ubuntu1) ... 1884s Setting up libfontenc1:arm64 (1:1.1.8-1build1) ... 1884s Setting up autotools-dev (20220109.1) ... 1884s Setting up libblas3:arm64 (3.12.0-3build1) ... 1884s update-alternatives: using /usr/lib/aarch64-linux-gnu/blas/libblas.so.3 to provide /usr/lib/aarch64-linux-gnu/libblas.so.3 (libblas.so.3-aarch64-linux-gnu) in auto mode 1884s Setting up libclass-data-inheritable-perl (0.08-3) ... 1884s Setting up libxs-parse-keyword-perl (0.42-1) ... 1884s Setting up libxcb-xinerama0:arm64 (1.17.0-2) ... 1884s Setting up libalgorithm-c3-perl (0.11-2) ... 1884s Setting up libasound2t64:arm64 (1.2.11-1build2) ... 1884s Setting up libmunge2:arm64 (0.5.15-4build1) ... 1884s Setting up liblog-log4perl-perl (1.57-1) ... 1884s Setting up libllvm17t64:arm64 (1:17.0.6-12) ... 1884s Setting up libtext-reform-perl (1.20-5) ... 1884s Setting up libfile-find-rule-perl (0.34-3) ... 1884s Setting up libxfixes3:arm64 (1:6.0.0-2build1) ... 1884s Setting up libcurl4-openssl-dev:arm64 (8.8.0-1ubuntu1) ... 1884s Setting up libxcb-sync1:arm64 (1.17.0-2) ... 1884s Setting up libipc-system-simple-perl (1.30-2) ... 1884s Setting up libio-tiecombine-perl (1.005-3) ... 1884s Setting up libnet-domain-tld-perl (1.75-3) ... 1884s Setting up libperlio-utf8-strict-perl (0.010-1build3) ... 1884s Setting up aglfn (1.7+git20191031.4036a9c-2) ... 1884s Setting up lzip (1.24.1-1build1) ... 1884s update-alternatives: using /usr/bin/lzip.lzip to provide /usr/bin/lzip (lzip) in auto mode 1884s update-alternatives: using /usr/bin/lzip.lzip to provide /usr/bin/lzip-compressor (lzip-compressor) in auto mode 1884s update-alternatives: using /usr/bin/lzip.lzip to provide /usr/bin/lzip-decompressor (lzip-decompressor) in auto mode 1884s Setting up libavahi-common-data:arm64 (0.8-13ubuntu6) ... 1884s Setting up libopus0:arm64 (1.4-1build1) ... 1884s Setting up t1utils (1.41-4build3) ... 1884s Setting up libxinerama1:arm64 (2:1.1.4-3build1) ... 1884s Setting up diffstat (1.66-1build1) ... 1884s Setting up libxkbcommon-x11-0:arm64 (1.6.0-1build1) ... 1884s Setting up libssl-dev:arm64 (3.0.13-0ubuntu4) ... 1884s Setting up libhwloc15:arm64 (2.10.0-1build1) ... 1884s Setting up libimath-3-1-29t64:arm64 (3.1.9-3.1ubuntu2) ... 1884s Setting up libmpc3:arm64 (1.3.1-1build1) ... 1884s Setting up libatomic1:arm64 (14.1.0-1ubuntu1) ... 1884s Setting up libvorbis0a:arm64 (1.3.7-2) ... 1884s Setting up libvariable-magic-perl (0.64-1) ... 1884s Setting up libio-html-perl (1.004-3) ... 1884s Setting up libxrandr2:arm64 (2:1.5.4-1) ... 1884s Setting up libtext-template-perl (1.61-1) ... 1884s Setting up libpod-parser-perl (1.67-1) ... 1884s Setting up autopoint (0.21-14ubuntu2) ... 1884s Setting up libb-hooks-op-check-perl:arm64 (0.22-3build1) ... 1884s Setting up liblist-moreutils-xs-perl (0.430-4) ... 1884s Setting up libltdl7:arm64 (2.4.7-7build1) ... 1884s Setting up libfftw3-double3:arm64 (3.3.10-1ubuntu3) ... 1884s Setting up libglapi-mesa:arm64 (24.0.9-0ubuntu1) ... 1884s Setting up libparams-util-perl (1.102-3) ... 1884s Setting up libgfortran5:arm64 (14.1.0-1ubuntu1) ... 1884s Setting up libvulkan1:arm64 (1.3.283.0-1) ... 1884s Setting up libtime-duration-perl (1.21-2) ... 1884s Setting up autoconf (2.71-3) ... 1884s Setting up libtext-xslate-perl:arm64 (3.5.9-2) ... 1884s Setting up libsub-exporter-progressive-perl (0.001013-3) ... 1884s Setting up libarray-intspan-perl (2.004-2) ... 1884s Setting up libcapture-tiny-perl (0.48-2) ... 1884s Setting up libtimedate-perl (2.3300-2) ... 1884s Setting up libexporter-lite-perl (0.09-2) ... 1884s Setting up libubsan1:arm64 (14.1.0-1ubuntu1) ... 1884s Setting up libxcb-dri2-0:arm64 (1.17.0-2) ... 1884s Setting up libsub-name-perl:arm64 (0.27-1build3) ... 1884s Setting up libgif7:arm64 (5.2.2-1ubuntu1) ... 1884s Setting up zlib1g-dev:arm64 (1:1.3.dfsg-3.1ubuntu2) ... 1884s Setting up libsyntax-keyword-try-perl (0.29-2) ... 1884s Setting up dwz (0.15-1build6) ... 1884s Setting up libdata-validate-domain-perl (0.10-1.1) ... 1884s Setting up libproc-processtable-perl:arm64 (0.636-1build3) ... 1884s Setting up libparse-recdescent-perl (1.967015+dfsg-4) ... 1884s Setting up libmtdev1t64:arm64 (1.1.6-1.2) ... 1884s Setting up ocl-icd-libopencl1:arm64 (2.3.2-1build1) ... 1884s Setting up libxshmfence1:arm64 (1.3-1build5) ... 1884s Setting up libhwasan0:arm64 (14.1.0-1ubuntu1) ... 1884s Setting up libxcb-randr0:arm64 (1.17.0-2) ... 1884s Setting up libpath-tiny-perl (0.144-1) ... 1884s Setting up libasan8:arm64 (14.1.0-1ubuntu1) ... 1884s Setting up lzop (1.04-2build3) ... 1884s Setting up libjson-perl (4.10000-1) ... 1884s Setting up liblog-any-adapter-screen-perl (0.140-2) ... 1884s Setting up librole-tiny-perl (2.002004-1) ... 1884s Setting up openmpi-common (4.1.6-7ubuntu2) ... 1884s Setting up libqt5sql5t64:arm64 (5.15.13+dfsg-1ubuntu1) ... 1884s Setting up debugedit (1:5.0-5build2) ... 1884s Setting up libipc-run3-perl (0.049-1) ... 1884s Setting up libmd4c0:arm64 (0.4.8-1build1) ... 1884s Setting up libregexp-wildcards-perl (1.05-3) ... 1884s Setting up libmousex-strictconstructor-perl (0.02-3) ... 1884s Setting up libsub-uplevel-perl (0.2800-3) ... 1884s Setting up libsuitesparseconfig7:arm64 (1:7.7.0+dfsg-2) ... 1884s Setting up librdmacm1t64:arm64 (50.0-2build2) ... 1884s Setting up liblua5.4-0:arm64 (5.4.6-3build2) ... 1884s Setting up libaliased-perl (0.34-3) ... 1884s Setting up libharfbuzz0b:arm64 (8.3.0-2build2) ... 1884s Setting up libthai-data (0.1.29-2build1) ... 1884s Setting up xorg-sgml-doctools (1:1.11-1.1) ... 1884s Setting up libstrictures-perl (2.000006-1) ... 1884s Setting up libsub-quote-perl (2.006008-1ubuntu1) ... 1884s Setting up libdevel-stacktrace-perl (2.0500-1) ... 1884s Setting up libclass-xsaccessor-perl (1.19-4build4) ... 1884s Setting up libtext-autoformat-perl (1.750000-2) ... 1884s Setting up libglu1-mesa:arm64 (9.0.2-1.1build1) ... 1884s Setting up libflac12t64:arm64 (1.4.3+ds-2.1ubuntu2) ... 1884s Setting up libtoml-tiny-perl (0.17-1) ... 1884s Setting up libxkbfile1:arm64 (1:1.1.0-1build4) ... 1884s Setting up libsort-versions-perl (1.62-3) ... 1884s Setting up libtsan2:arm64 (14.1.0-1ubuntu1) ... 1884s Setting up libexporter-tiny-perl (1.006002-1) ... 1884s Setting up libterm-readkey-perl (2.38-2build4) ... 1884s Setting up libjpeg8-dev:arm64 (8c-2ubuntu11) ... 1884s Setting up python3-mpmath (1.3.0-1) ... 1885s Setting up libisl23:arm64 (0.26-3build1) ... 1885s Setting up libtext-unidecode-perl (1.30-3) ... 1885s Setting up libfont-ttf-perl (1.06-2) ... 1885s Setting up libfile-homedir-perl (1.006-2) ... 1885s Setting up libsamplerate0:arm64 (0.2.2-4build1) ... 1885s Setting up libwebpmux3:arm64 (1.4.0-0.1) ... 1885s Setting up libtext-levenshteinxs-perl (0.03-5build4) ... 1885s Setting up libperlio-gzip-perl (0.20-1build4) ... 1885s Setting up libxfont2:arm64 (1:2.0.6-1build1) ... 1885s Setting up libhtml-html5-entities-perl (0.004-3) ... 1885s Setting up libtext-levenshtein-damerau-perl (0.41-3) ... 1885s Setting up libsereal-decoder-perl (5.004+ds-1build3) ... 1885s Setting up libmarkdown2:arm64 (2.2.7-2build1) ... 1885s Setting up libcc1-0:arm64 (14.1.0-1ubuntu1) ... 1885s Setting up liburi-perl (5.28-1) ... 1885s Setting up libnet-ipv6addr-perl (1.02-1) ... 1885s Setting up liblsan0:arm64 (14.1.0-1ubuntu1) ... 1885s Setting up libmp3lame0:arm64 (3.100-6build1) ... 1885s Setting up libblas-dev:arm64 (3.12.0-3build1) ... 1885s update-alternatives: using /usr/lib/aarch64-linux-gnu/blas/libblas.so to provide /usr/lib/aarch64-linux-gnu/libblas.so (libblas.so-aarch64-linux-gnu) in auto mode 1885s Setting up libsz2:arm64 (1.1.3-1) ... 1885s Setting up libitm1:arm64 (14.1.0-1ubuntu1) ... 1885s Setting up libvorbisenc2:arm64 (1.3.7-2) ... 1885s Setting up libdata-validate-ip-perl (0.31-1) ... 1885s Setting up libdrm-amdgpu1:arm64 (2.4.121-2) ... 1885s Setting up libwacom-common (2.10.0-2) ... 1885s Setting up libmousex-nativetraits-perl (1.09-3) ... 1885s Setting up libemail-address-xs-perl (1.05-1build4) ... 1885s Setting up libwayland-client0:arm64 (1.22.0-2.1build1) ... 1885s Setting up libnet-ssleay-perl:arm64 (1.94-1build4) ... 1885s Setting up automake (1:1.16.5-1.3ubuntu1) ... 1885s update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode 1885s Setting up x11proto-dev (2024.1-1) ... 1885s Setting up libfile-stripnondeterminism-perl (1.14.0-1) ... 1885s Setting up libfabric1:arm64 (1.17.0-3build2) ... 1885s Setting up python3-sympy (1.12.1-1) ... 1891s Setting up gnuplot-data (6.0.0+dfsg1-1ubuntu3) ... 1891s Setting up libice6:arm64 (2:1.0.10-1build3) ... 1891s Setting up libhttp-date-perl (6.06-1) ... 1891s Setting up libucx0:arm64 (1.16.0+ds-5ubuntu1) ... 1891s Setting up liblapack3:arm64 (3.12.0-3build1) ... 1891s update-alternatives: using /usr/lib/aarch64-linux-gnu/lapack/liblapack.so.3 to provide /usr/lib/aarch64-linux-gnu/liblapack.so.3 (liblapack.so.3-aarch64-linux-gnu) in auto mode 1891s Setting up libxft2:arm64 (2.3.6-1build1) ... 1891s Setting up libqt5dbus5t64:arm64 (5.15.13+dfsg-1ubuntu1) ... 1891s Setting up libfile-basedir-perl (0.09-2) ... 1891s Setting up gettext (0.21-14ubuntu2) ... 1891s Setting up libarpack2t64:arm64 (3.9.1-1.1build2) ... 1891s Setting up libfftw3-single3:arm64 (3.3.10-1ubuntu3) ... 1891s Setting up libamd3:arm64 (1:7.7.0+dfsg-2) ... 1891s Setting up libfile-listing-perl (6.16-1) ... 1891s Setting up libxau-dev:arm64 (1:1.0.9-1build6) ... 1891s Setting up cpp-13-aarch64-linux-gnu (13.2.0-23ubuntu4) ... 1891s Setting up libgbm1:arm64 (24.0.9-0ubuntu1) ... 1891s Setting up libcolamd3:arm64 (1:7.7.0+dfsg-2) ... 1891s Setting up libwacom9:arm64 (2.10.0-2) ... 1891s Setting up liblist-moreutils-perl (0.430-2) ... 1891s Setting up libxcursor1:arm64 (1:1.2.2-1) ... 1891s Setting up libpod-constants-perl (0.19-2) ... 1891s Setting up libgl1-mesa-dri:arm64 (24.0.9-0ubuntu1) ... 1891s Setting up libqt5network5t64:arm64 (5.15.13+dfsg-1ubuntu1) ... 1891s Setting up libhash-merge-perl (0.302-1) ... 1891s Setting up libsoftware-copyright-perl (0.012-2) ... 1891s Setting up libaec-dev:arm64 (1.1.3-1) ... 1891s Setting up libavahi-common3:arm64 (0.8-13ubuntu6) ... 1891s Setting up libcxsparse4:arm64 (1:7.7.0+dfsg-2) ... 1891s Setting up libjpeg-dev:arm64 (8c-2ubuntu11) ... 1891s Setting up libfftw3-long3:arm64 (3.3.10-1ubuntu3) ... 1891s Setting up libnet-http-perl (6.23-1) ... 1891s Setting up libpath-iterator-rule-perl (1.015-2) ... 1891s Setting up libtext-markdown-discount-perl (0.16-1build3) ... 1891s Setting up libqt5xml5t64:arm64 (5.15.13+dfsg-1ubuntu1) ... 1891s Setting up libexception-class-perl (1.45-1) ... 1891s Setting up libsundials-sunmatrix4:arm64 (6.4.1+dfsg1-3build5) ... 1891s Setting up libclass-c3-perl (0.35-2) ... 1891s Setting up libsuperlu6:arm64 (6.0.1+dfsg1-1build1) ... 1891s Setting up libhwloc-plugins:arm64 (2.10.0-1build1) ... 1891s Setting up libqrupdate1:arm64 (1.1.2-4build1) ... 1891s Setting up libdevel-callchecker-perl:arm64 (0.009-1) ... 1891s Setting up libxml-sax-perl (1.02+dfsg-3) ... 1892s update-perl-sax-parsers: Registering Perl SAX parser XML::SAX::PurePerl with priority 10... 1892s update-perl-sax-parsers: Updating overall Perl SAX parser modules info file... 1892s 1892s Creating config file /etc/perl/XML/SAX/ParserDetails.ini with new version 1892s Setting up libsundials-ida6:arm64 (6.4.1+dfsg1-3build5) ... 1892s Setting up libcamd3:arm64 (1:7.7.0+dfsg-2) ... 1892s Setting up libinput-bin (1.26.0-1) ... 1892s Setting up intltool-debian (0.35.0+20060710.6) ... 1892s Setting up libobject-pad-perl (0.808-1build3) ... 1892s Setting up libthai0:arm64 (0.1.29-2build1) ... 1892s Setting up libxdmcp-dev:arm64 (1:1.1.3-0ubuntu6) ... 1892s Setting up cpp-aarch64-linux-gnu (4:13.2.0-7ubuntu1) ... 1892s Setting up libegl-mesa0:arm64 (24.0.9-0ubuntu1) ... 1892s Setting up libdata-validate-uri-perl (0.07-3) ... 1892s Setting up libtest-exception-perl (0.43-3) ... 1892s Setting up libglpk40:arm64 (5.0-1build2) ... 1892s Setting up libstring-copyright-perl (0.003014-1) ... 1892s Setting up libopenexr-3-1-30:arm64 (3.1.5-5.1build3) ... 1892s Setting up liblapack-dev:arm64 (3.12.0-3build1) ... 1892s update-alternatives: using /usr/lib/aarch64-linux-gnu/lapack/liblapack.so to provide /usr/lib/aarch64-linux-gnu/liblapack.so (liblapack.so-aarch64-linux-gnu) in auto mode 1892s Setting up libdata-optlist-perl (0.114-1) ... 1892s Setting up libpmix2t64:arm64 (5.0.1-4.1build1) ... 1892s Setting up libopenmpi3t64:arm64 (4.1.6-7ubuntu2) ... 1892s Setting up libccolamd3:arm64 (1:7.7.0+dfsg-2) ... 1892s Setting up libxml-libxml-perl (2.0207+dfsg+really+2.0134-2) ... 1892s update-perl-sax-parsers: Registering Perl SAX parser XML::LibXML::SAX::Parser with priority 50... 1892s update-perl-sax-parsers: Registering Perl SAX parser XML::LibXML::SAX with priority 50... 1892s update-perl-sax-parsers: Updating overall Perl SAX parser modules info file... 1892s Replacing config file /etc/perl/XML/SAX/ParserDetails.ini with new version 1893s Setting up dh-strip-nondeterminism (1.14.0-1) ... 1893s Setting up libwww-robotrules-perl (6.02-1) ... 1893s Setting up libjack-jackd2-0:arm64 (1.9.21~dfsg-3ubuntu3) ... 1893s Setting up libgcc-13-dev:arm64 (13.2.0-23ubuntu4) ... 1893s Setting up libhtml-parser-perl:arm64 (3.82-1) ... 1893s Setting up libegl1:arm64 (1.7.0-1build1) ... 1893s Setting up libsndfile1:arm64 (1.2.2-1ubuntu5) ... 1893s Setting up libmro-compat-perl (0.15-2) ... 1893s Setting up libhdf5-103-1t64:arm64 (1.10.10+repack-3.1ubuntu4) ... 1893s Setting up libgfortran-13-dev:arm64 (13.2.0-23ubuntu4) ... 1893s Setting up libsm6:arm64 (2:1.2.3-1build3) ... 1893s Setting up libfltk1.3t64:arm64 (1.3.8-6.1build2) ... 1893s Setting up libavahi-client3:arm64 (0.8-13ubuntu6) ... 1893s Setting up libio-socket-ssl-perl (2.085-1) ... 1893s Setting up openmpi-bin (4.1.6-7ubuntu2) ... 1893s update-alternatives: using /usr/bin/mpirun.openmpi to provide /usr/bin/mpirun (mpirun) in auto mode 1893s update-alternatives: using /usr/bin/mpicc.openmpi to provide /usr/bin/mpicc (mpi) in auto mode 1893s Setting up libstdc++-13-dev:arm64 (13.2.0-23ubuntu4) ... 1893s Setting up libsub-exporter-perl (0.990-1) ... 1893s Setting up libhttp-message-perl (6.45-1ubuntu1) ... 1893s Setting up libhtml-form-perl (6.11-1) ... 1893s Setting up libiterator-perl (0.03+ds1-2) ... 1893s Setting up libinput10:arm64 (1.26.0-1) ... 1893s Setting up libhdf5-hl-100t64:arm64 (1.10.10+repack-3.1ubuntu4) ... 1893s Setting up libportaudio2:arm64 (19.6.0-1.2build3) ... 1893s Setting up libhttp-negotiate-perl (6.01-2) ... 1893s Setting up libcarp-assert-more-perl (2.4.0-1) ... 1893s Setting up libcholmod5:arm64 (1:7.7.0+dfsg-2) ... 1893s Setting up libptscotch-7.0:arm64 (7.0.4-1ubuntu2) ... 1893s Setting up libglx-mesa0:arm64 (24.0.9-0ubuntu1) ... 1893s Setting up libxcb1-dev:arm64 (1.17.0-2) ... 1893s Setting up libiterator-util-perl (0.02+ds1-2) ... 1893s Setting up libglx0:arm64 (1.7.0-1build1) ... 1893s Setting up cpp-13 (13.2.0-23ubuntu4) ... 1893s Setting up libhttp-cookies-perl (6.11-1) ... 1893s Setting up libspqr4:arm64 (1:7.7.0+dfsg-2) ... 1893s Setting up libfftw3-bin (3.3.10-1ubuntu3) ... 1893s Setting up po-debconf (1.0.21+nmu1) ... 1893s Setting up libhtml-tree-perl (5.07-3) ... 1893s Setting up libparams-classify-perl:arm64 (0.015-2build5) ... 1893s Setting up libpango-1.0-0:arm64 (1.54.0+ds-1) ... 1893s Setting up libhdf5-cpp-103-1t64:arm64 (1.10.10+repack-3.1ubuntu4) ... 1893s Setting up libcgi-pm-perl (4.65-1) ... 1893s Setting up mpi-default-bin (1.15build1) ... 1893s Setting up libx11-dev:arm64 (2:1.8.7-1build1) ... 1893s Setting up libhdf5-fortran-102t64:arm64 (1.10.10+repack-3.1ubuntu4) ... 1893s Setting up libjxl0.9:arm64 (0.9.2-8) ... 1893s Setting up libcombblas2.0.0t64:arm64 (2.0.0-3.1build2) ... 1893s Setting up libfftw3-mpi3:arm64 (3.3.10-1ubuntu3) ... 1893s Setting up gcc-13-aarch64-linux-gnu (13.2.0-23ubuntu4) ... 1893s Setting up libtrilinos-zoltan-13.2:arm64 (13.2.0-6) ... 1893s Setting up libhdf5-openmpi-103-1t64:arm64 (1.10.10+repack-3.1ubuntu4) ... 1893s Setting up libtrilinos-teuchos-13.2:arm64 (13.2.0-6) ... 1893s Setting up libgl1:arm64 (1.7.0-1build1) ... 1893s Setting up libnet-smtp-ssl-perl (1.04-2) ... 1893s Setting up libmodule-runtime-perl (0.016-2) ... 1893s Setting up libmailtools-perl (2.21-3) ... 1893s Setting up libklu2:arm64 (1:7.7.0+dfsg-2) ... 1893s Setting up libtrilinos-epetra-13.2:arm64 (13.2.0-6) ... 1893s Setting up libconfig-model-perl (2.153-3) ... 1893s Setting up libxt6t64:arm64 (1:1.2.1-1.2build1) ... 1893s Setting up gcc-13 (13.2.0-23ubuntu4) ... 1893s Setting up texinfo (7.1-3build2) ... 1893s Setting up libumfpack6:arm64 (1:7.7.0+dfsg-2) ... 1893s Setting up libconst-fast-perl (0.014-2) ... 1893s Setting up libtrilinos-aztecoo-13.2:arm64 (13.2.0-6) ... 1893s Setting up cpp (4:13.2.0-7ubuntu1) ... 1893s Setting up libdata-section-perl (0.200008-1) ... 1893s Setting up libglx-dev:arm64 (1.7.0-1build1) ... 1893s Setting up libpangoft2-1.0-0:arm64 (1.54.0+ds-1) ... 1893s Setting up libdata-dpath-perl (0.59-1) ... 1893s Setting up libhdf5-hl-cpp-100t64:arm64 (1.10.10+repack-3.1ubuntu4) ... 1893s Setting up libfftw3-dev:arm64 (3.3.10-1ubuntu3) ... 1893s Setting up libcups2t64:arm64 (2.4.7-1.2ubuntu7) ... 1893s Setting up libgl-dev:arm64 (1.7.0-1build1) ... 1893s Setting up libtrilinos-triutils-13.2:arm64 (13.2.0-6) ... 1893s Setting up libstring-rewriteprefix-perl (0.009-1) ... 1893s Setting up libpangocairo-1.0-0:arm64 (1.54.0+ds-1) ... 1893s Setting up libscalapack-openmpi2.2:arm64 (2.2.1-3.1ubuntu1) ... 1893s Setting up g++-13-aarch64-linux-gnu (13.2.0-23ubuntu4) ... 1893s Setting up libconfig-model-backend-yaml-perl (2.134-2) ... 1893s Setting up gcc-aarch64-linux-gnu (4:13.2.0-7ubuntu1) ... 1893s Setting up g++-13 (13.2.0-23ubuntu4) ... 1893s Setting up libxmu6:arm64 (2:1.1.3-3build2) ... 1893s Setting up libgraphicsmagick-q16-3t64 (1.4+really1.3.43-1build2) ... 1893s Setting up libtool (2.4.7-7build1) ... 1893s Setting up libmodule-implementation-perl (0.09-2) ... 1893s Setting up libsuperlu-dist8:arm64 (8.2.1+dfsg1-1build2) ... 1893s Setting up libpackage-stash-perl (0.40-1) ... 1893s Setting up libimport-into-perl (1.002005-2) ... 1893s Setting up libmoo-perl (2.005005-1) ... 1893s Setting up gfortran-13-aarch64-linux-gnu (13.2.0-23ubuntu4) ... 1893s Setting up libhdf5-hl-fortran-100t64:arm64 (1.10.10+repack-3.1ubuntu4) ... 1893s Setting up liblist-someutils-perl (0.59-1) ... 1893s Setting up libxaw7:arm64 (2:1.0.14-1build2) ... 1893s Setting up libmime-tools-perl (5.515-1) ... 1893s Setting up libgraphicsmagick++-q16-12t64 (1.4+really1.3.43-1build2) ... 1893s Setting up libsoftware-license-perl (0.104006-1) ... 1893s Setting up libclass-load-perl (0.25-2) ... 1893s Setting up gcc (4:13.2.0-7ubuntu1) ... 1893s Setting up libgl2ps1.4 (1.4.2+dfsg1-2build1) ... 1893s Setting up dh-autoreconf (20) ... 1893s Setting up libfltk-gl1.3t64:arm64 (1.3.8-6.1build2) ... 1893s Setting up libqt5gui5t64:arm64 (5.15.13+dfsg-1ubuntu1) ... 1893s Setting up gfortran-13 (13.2.0-23ubuntu4) ... 1893s Setting up libmumps-5.6t64:arm64 (5.6.2-2.1build2) ... 1893s Setting up libhdf5-dev (1.10.10+repack-3.1ubuntu4) ... 1893s update-alternatives: using /usr/lib/aarch64-linux-gnu/pkgconfig/hdf5-serial.pc to provide /usr/lib/aarch64-linux-gnu/pkgconfig/hdf5.pc (hdf5.pc) in auto mode 1893s Setting up libhypre-2.28.0:arm64 (2.28.0-8build2) ... 1893s Setting up libtrilinos-epetraext-13.2:arm64 (13.2.0-6) ... 1893s Setting up libtrilinos-galeri-13.2:arm64 (13.2.0-6) ... 1893s Setting up g++-aarch64-linux-gnu (4:13.2.0-7ubuntu1) ... 1893s Setting up gfortran-aarch64-linux-gnu (4:13.2.0-7ubuntu1) ... 1893s Setting up libtrilinos-amesos-13.2:arm64 (13.2.0-6) ... 1893s Setting up gnuplot-nox (6.0.0+dfsg1-1ubuntu3) ... 1893s update-alternatives: using /usr/bin/gnuplot-nox to provide /usr/bin/gnuplot (gnuplot) in auto mode 1893s Setting up libmoox-aliases-perl (0.001006-2) ... 1893s Setting up libparams-validate-perl:arm64 (1.31-2build3) ... 1893s Setting up libb-hooks-endofscope-perl (0.28-1) ... 1893s Setting up libqt5widgets5t64:arm64 (5.15.13+dfsg-1ubuntu1) ... 1893s Setting up libsoftware-licensemoreutils-perl (1.009-1) ... 1893s Setting up x11-xkb-utils (7.7+8build2) ... 1893s Setting up debhelper (13.15.3ubuntu2) ... 1893s Setting up libqt5help5:arm64 (5.15.13-3) ... 1893s Setting up gfortran (4:13.2.0-7ubuntu1) ... 1893s update-alternatives: using /usr/bin/gfortran to provide /usr/bin/f95 (f95) in auto mode 1893s 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 1893s update-alternatives: using /usr/bin/gfortran to provide /usr/bin/f77 (f77) in auto mode 1893s 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 1893s Setting up dh-octave-autopkgtest (1.8.0) ... 1893s Setting up libtrilinos-ifpack-13.2:arm64 (13.2.0-6) ... 1893s Setting up libnamespace-clean-perl (0.27-2) ... 1893s Setting up libstring-license-perl (0.0.9-2ubuntu1) ... 1893s Setting up libgetopt-long-descriptive-perl (0.111-1) ... 1893s Setting up g++ (4:13.2.0-7ubuntu1) ... 1893s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 1893s Setting up xserver-common (2:21.1.12-1ubuntu1) ... 1893s Setting up licensecheck (3.3.9-1ubuntu1) ... 1893s Setting up libqt5printsupport5t64:arm64 (5.15.13+dfsg-1ubuntu1) ... 1893s Setting up libtrilinos-ml-13.2:arm64 (13.2.0-6) ... 1893s Setting up libapp-cmd-perl (0.336-1) ... 1893s Setting up xvfb (2:21.1.12-1ubuntu1) ... 1893s Setting up libqscintilla2-qt5-15:arm64 (2.14.1+dfsg-1build4) ... 1893s Setting up cme (1.040-1) ... 1893s Setting up libpetsc-real3.19t64:arm64 (3.19.6+dfsg1-2.2ubuntu2) ... 1893s update-alternatives: using /usr/lib/aarch64-linux-gnu/libpetsc_real.so.3.19.6 to provide /usr/lib/aarch64-linux-gnu/libpetsc.so.3.19 (libpetsc.so.3.19) in auto mode 1893s Setting up libsundials-nvecparallel-petsc6:arm64 (6.4.1+dfsg1-3build5) ... 1893s Setting up libsundials-sunlinsol3:arm64 (6.4.1+dfsg1-3build5) ... 1893s Setting up octave (8.4.0-1build5) ... 1897s Setting up octave-dev (8.4.0-1build5) ... 1898s Setting up octave-symbolic (3.1.1-2) ... 1898s Setting up liblwp-protocol-https-perl (6.14-1) ... 1898s Setting up libwww-perl (6.77-1) ... 1898s Setting up libparse-debcontrol-perl (2.005-6) ... 1898s Setting up libhtml-tokeparser-simple-perl (3.16-4) ... 1898s Setting up libwww-mechanize-perl (2.18-1ubuntu1) ... 1898s Setting up lintian (2.117.0ubuntu2) ... 1898s Setting up libconfig-model-dpkg-perl (3.005) ... 1898s Setting up dh-octave (1.8.0) ... 1898s Setting up autopkgtest-satdep (0) ... 1898s Processing triggers for libc-bin (2.39-0ubuntu9) ... 1898s Processing triggers for man-db (2.12.1-2) ... 1900s Processing triggers for udev (255.4-1ubuntu8) ... 1901s Processing triggers for install-info (7.1-3build2) ... 1919s (Reading database ... 96115 files and directories currently installed.) 1919s Removing autopkgtest-satdep (0) ... 1919s autopkgtest [10:53:34]: test command1: DH_OCTAVE_TEST_ENV="xvfb-run -a" /usr/bin/dh_octave_check --use-installed-package 1919s autopkgtest [10:53:34]: test command1: [----------------------- 1920s Checking package... 1920s Run the unit tests... 1922s Checking m files ... 1922s [inst/assume.m] 1922s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/assume.m 1922s ***** error 1922s a = assume('a', 'real') 1922s ***** error 1922s assume positive integer 1923s Symbolic pkg v3.1.1: Python communication link active, SymPy v1.12.1. 1923s ***** error 1923s assume x y 1923s ***** error 1923s assume x clear real 1923s ***** error 1923s assume a>0 1923s ***** error 1923s assume 'x/pi' integer 1923s ***** test 1923s syms x 1923s assume x positive 1923s a = assumptions(x); 1923s assert(strcmp(a, 'x: positive')) 1923s assume x even 1923s a = assumptions(x); 1923s assert(strcmp(a, 'x: even')) 1923s ***** test 1923s % multiple assumptions 1923s syms x 1923s assume x positive integer 1923s [tilde, a] = assumptions(x, 'dict'); 1923s assert(a{1}.integer) 1923s assert(a{1}.positive) 1923s ***** test 1923s % does workspace 1923s syms x positive 1923s x2 = x; 1923s f = sin(x); 1923s assume x negative 1923s a = assumptions(x); 1923s assert(strcmp(a, 'x: negative')) 1923s a = assumptions(x2); 1923s assert(strcmp(a, 'x: negative')) 1923s a = assumptions(f); 1923s assert(strcmp(a, 'x: negative')) 1923s ***** error 1923s % does not create new variable x 1923s clear x 1923s assume x real 1923s ***** error 1923s % no explicit variable named x 1923s clear x 1923s f = 2*sym('x'); 1923s assume x real 1924s ***** test 1924s % clear does workspace 1924s syms x positive 1924s f = 2*x; 1924s assume x clear 1924s assert (isempty (assumptions (f))); 1924s assert (isempty (assumptions ())); 1924s ***** test 1924s syms x y 1924s f = sin (2*x); 1924s assume x y real 1924s assert (strcmp (assumptions (x), 'x: real')) 1924s assert (strcmp (assumptions (y), 'y: real')) 1924s assert (strcmp (assumptions (f), 'x: real')) 1924s ***** test 1924s syms x y 1924s f = sin (2*x); 1924s assume x y positive even 1924s assert (strcmp (assumptions (x), 'x: positive, even') || strcmp (assumptions (x), 'x: even, positive')) 1924s assert (strcmp (assumptions (y), 'y: positive, even') || strcmp (assumptions (y), 'y: even, positive')) 1924s assert (strcmp (assumptions (f), 'x: positive, even') || strcmp (assumptions (f), 'x: even, positive')) 1924s ***** test 1924s % works from variable names not symbols 1924s syms x y 1924s a = [x y]; 1924s assume a real 1924s assert (strcmp (assumptions (x), 'x: real')) 1924s assert (strcmp (assumptions (y), 'y: real')) 1925s ***** test 1925s % works from variable names not symbols 1925s y = sym('x'); 1925s f = 2*y; 1925s assume y real 1925s assert (strcmp (assumptions (f), 'x: real')) 1925s ***** test 1925s % matrix of symbols 1925s syms a b c d 1925s A = [a b; c d]; 1925s assume A real 1925s assert (strcmp (assumptions (a), 'a: real')) 1925s assert (strcmp (assumptions (b), 'b: real')) 1925s assert (strcmp (assumptions (c), 'c: real')) 1925s assert (strcmp (assumptions (d), 'd: real')) 1925s ***** test 1925s % assume after symfun 1925s clear x 1925s syms f(x) 1925s assume x real 1925s assert (~ isempty (assumptions (formula (f)))) 1925s assert (~ isempty (assumptions (argnames (f)))) 1925s warning: test: file /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/assume.m leaked file descriptors 1925s 18 tests, 18 passed, 0 known failure, 0 skipped 1925s [inst/syms.m] 1926s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/syms.m 1926s ***** test 1926s %% assumptions 1926s syms x real 1926s x2 = sym('x', 'real'); 1926s assert (isequal (x, x2)) 1926s ***** test 1926s % assumptions and clearing them on a symbol 1926s syms x real 1926s assert (~isempty (assumptions (x))) 1926s syms x 1926s assert (isempty (assumptions (x))) 1926s ***** test 1926s % Note SMT would clear syms in existing expressions 1926s syms x real 1926s f = {x {2*x} cos(x/2)}; 1926s assert (~isempty (assumptions (f))) 1926s syms x 1926s % but we do not: this would have to toggle for pure SMT compat 1926s assert (~isempty (assumptions (f))) 1926s % assert (isempty (assumptions (f))) 1926s ***** error 1926s syms x clear 1926s ***** error 1926s syms x positive y 1926s ***** error 1926s % this sometimes catches typos or errors in assumption names 1926s % (if you need careful checking, use sym not syms) 1926s syms x positive evne 1926s ***** error 1926s syms positive integer 1926s ***** test 1926s % does not create a variable called positive 1926s syms x positive integer 1926s assert (logical(exist('x', 'var'))) 1926s assert (~logical(exist('positive', 'var'))) 1926s ***** test 1926s % Issue #885 1926s syms S(x) I(x) O(x) 1926s ***** test 1926s % Issue #290 1926s syms FF(x) 1926s syms ff(x) 1926s syms Eq(x) 1926s ***** test 1926s % Issue #290 1926s syms beta(x) 1926s ***** test 1926s syms x real 1926s syms f(x) 1926s assert (~ isempty (assumptions (x))) 1926s ***** test 1926s syms x real 1926s f(x) = symfun(sym('f(x)'), x); 1926s assert (~ isempty (assumptions (x))) 1926s assert (~ isempty (assumptions (argnames (f)))) 1926s :18: SyntaxWarning: invalid escape sequence '\(' 1926s 13 tests, 13 passed, 0 known failure, 0 skipped 1926s [inst/@symfun/subsref.m] 1926s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@symfun/subsref.m 1926s ***** test 1926s syms x 1926s f(x) = x^2; 1926s v = f.vars; 1926s assert(iscell(v)) 1926s assert(length(v)==1) 1926s assert(isequal(v{1},x)) 1926s ***** test 1926s %% pass through to sym properties 1926s syms x 1926s f(x) = x^2; 1926s y = x^2; % not a symfun 1926s assert(strcmp(f.flat, y.flat)) 1926s 2 tests, 2 passed, 0 known failure, 0 skipped 1926s [inst/@symfun/numel.m] 1926s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@symfun/numel.m 1926s ***** test 1926s syms x 1926s f(x) = x^2; 1926s assert(numel(f)==1) 1926s ***** test 1926s syms x 1926s f(x) = [1 x]; 1926s assert(numel(f)==1) 1926s 2 tests, 2 passed, 0 known failure, 0 skipped 1926s [inst/@symfun/plus.m] 1926s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@symfun/plus.m 1926s ***** test 1926s syms x 1926s f(x) = x^2; 1926s assert( isa(f + f, 'symfun')) 1926s assert( isa(f + x, 'symfun')) 1926s 1 test, 1 passed, 0 known failure, 0 skipped 1926s [inst/@symfun/formula.m] 1926s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@symfun/formula.m 1926s ***** test 1926s % simple 1926s syms x 1926s f(x) = sin(x); 1926s g = formula(f); 1926s assert (isequal (g, sin(x))); 1926s ***** test 1926s % concrete: return is a sym, not a symfun 1926s syms x 1926s f(x) = sin(x); 1926s g = formula(f); 1926s assert (~isa(g, 'symfun')); 1926s ***** test 1926s % abstract: return is a sym, not a symfun 1926s syms f(x) 1926s g = formula(f); 1926s assert (~isa(g, 'symfun')); 1927s 3 tests, 3 passed, 0 known failure, 0 skipped 1927s [inst/@symfun/times.m] 1927s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@symfun/times.m 1927s ***** test 1927s syms x 1927s f(x) = x^2; 1927s assert( isa(f .* f, 'symfun')) 1927s assert( isa(f .* x, 'symfun')) 1927s ***** test 1927s syms x 1927s f(x) = [x 2*x]; 1927s h = f.*[x 3]; 1927s assert( isa(h, 'symfun')) 1927s assert (isequal (formula (h), [x^2 6*x])) 1927s 2 tests, 2 passed, 0 known failure, 0 skipped 1927s [inst/@symfun/symfun.m] 1927s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@symfun/symfun.m 1927s ***** error symfun (1, sym('x'), 3) 1927s ***** error symfun ('f', sym('x')) 1927s ***** test 1927s syms x y 1927s syms f(x) 1927s assert(isa(f,'symfun')) 1927s clear f 1927s f(x,y) = sym('f(x,y)'); 1927s assert(isa(f,'symfun')) 1927s :18: SyntaxWarning: invalid escape sequence '\(' 1927s ***** test 1927s % symfuns are syms as well 1927s syms x 1927s f(x) = 2*x; 1927s assert (isa (f, 'symfun')) 1927s assert (isa (f, 'sym')) 1927s assert (isequal (f(3), 6)) 1927s assert (isequal (f(sin(x)), 2*sin(x))) 1928s ***** test 1928s syms x y 1928s f = symfun(sym('f(x)'), {x}); 1928s assert(isa(f, 'symfun')) 1928s f = symfun(sym('f(x,y)'), [x y]); 1928s assert(isa(f, 'symfun')) 1928s f = symfun(sym('f(x,y)'), {x y}); 1928s assert(isa(f, 'symfun')) 1928s :18: SyntaxWarning: invalid escape sequence '\(' 1928s :18: SyntaxWarning: invalid escape sequence '\(' 1928s :18: SyntaxWarning: invalid escape sequence '\(' 1928s ***** test 1928s % rhs is not sym 1928s syms x 1928s f = symfun(8, x); 1928s assert (isa (f,'symfun')) 1928s assert (isequal (f(10), sym(8))) 1928s ***** test 1928s % vector symfun 1928s syms x y 1928s F(x,y) = [1; 2*x; y; y*sin(x)]; 1928s assert (isa (F, 'symfun')) 1928s assert (isa (F, 'sym')) 1928s assert (isequal (F(sym(pi)/2,4) , [sym(1); sym(pi); 4; 4] )) 1928s ***** test 1928s x = sym('x'); 1928s y = sym('y'); 1928s f(x) = sym('f(x)'); 1928s g(x,y) = sym('g(x,y)'); 1928s % make sure these don't fail 1928s f(1); 1928s g(1,2); 1928s g(x,y); 1928s diff(g, x); 1928s diff(g, y); 1928s :18: SyntaxWarning: invalid escape sequence '\(' 1928s :18: SyntaxWarning: invalid escape sequence '\(' 1929s ***** test 1929s % defining 1D symfun in terms of a 2D symfun 1929s syms x y t 1929s syms 'g(x,y)' 1929s f(t) = g(t,t); 1929s f(5); 1929s assert (length (argnames (f)) == 1) 1929s assert (isequal (argnames (f), t)) 1929s assert (isequal( formula(diff(f,x)), sym(0))) 1929s ***** test 1929s % replace g with shorter and specific fcn 1929s syms x g(x) 1929s g; 1929s g(x) = 2*x; 1929s assert( isequal (g(5), 10)) 1929s ***** test 1929s % octave <= 3.8 needs quotes on 2D symfuns, so make sure it works 1929s syms x y 1929s syms 'f(x)' 1929s syms 'g(x,y)' 1929s assert (isa (f, 'symfun')) 1929s assert (isa (g, 'symfun')) 1929s ***** test 1929s % Bug #41: Octave <= 3.8 parser fails without quotes around 2D fcn 1929s syms x y 1929s eval('syms g(x,y)') 1929s assert (isa (g, 'symfun')) 1929s ***** test 1929s % and these days it works without eval trick 1929s syms g(x,y) 1929s assert (isa (g, 'symfun')) 1929s ***** test 1929s % syms f(x) without defining x 1929s clear x 1929s syms f(x) 1929s assert(isa(f, 'symfun')) 1929s assert(isa(x, 'sym')) 1929s ***** test 1929s % SMT compat: symfun indep var overwrites existing var 1929s t = 6; 1929s syms f(t) 1929s assert (logical (t ~= 6)) 1929s ***** test 1929s % SMT compat: symfun indep var overwrites existing var, even if sym 1929s syms x 1929s t = x; 1929s syms f(t) 1929s assert (~ logical (t == x)) 1929s ***** test 1929s syms x y 1929s f(x) = x^2; 1929s g(x,y) = sym('g(x,y)'); 1929s f2 = 2*f; 1929s assert( isequal (f2(4), 32)) 1929s assert( isa(f2, 'symfun')) 1929s assert( isa(2*g, 'symfun')) 1929s assert( isa(0*g, 'symfun')) % in SMT, this is the zero symfun 1929s :18: SyntaxWarning: invalid escape sequence '\(' 1929s ***** test 1929s % syms has its own parsing code, check it works 1929s syms f(x,y) 1929s g = f; 1929s syms f(x, y) 1929s assert (isequal (f, g)) 1929s syms 'f( x, y )' 1929s assert (isequal (f, g)) 1930s ***** test 1930s % syms own parsing code should not reorder the vars 1930s syms f(y, x) 1930s v = argnames (f); 1930s assert (isequal (v(1), y) && isequal (v(2), x)) 1930s ***** test 1930s % assignment of symfun to symfun, issue #189 1930s syms t 1930s x(t) = 2*t; 1930s y(t) = x; 1930s assert (isa (y, 'symfun')) 1930s y = symfun(x, t); 1930s assert (isa (y, 'symfun')) 1930s % others 1930s y = x; 1930s assert (isa (y, 'symfun')) 1930s y(t) = x(t); 1930s assert (isa (y, 'symfun')) 1930s ***** test 1930s % assignment of generic symfun to symfun 1930s syms t x(t) 1930s y(t) = x; 1930s assert (isa (y, 'symfun')) 1930s y = symfun(x, t); 1930s assert (isa (y, 'symfun')) 1930s ***** error 1930s % Issue #444: invalid args 1930s syms x 1930s f(x, x) = 2*x; 1930s ***** error 1930s % Issue #444: invalid args 1930s syms x y 1930s f(x, y, x) = x + y; 1930s ***** error 1930s % Issue #444: invalid args 1930s syms x y 1930s f(x, y, x) = x + y; 1930s ***** error 1930s % Issue #444: expression as arg 1930s syms x 1930s f(2*x) = 4*x; 1930s 25 tests, 25 passed, 0 known failure, 0 skipped 1930s [inst/@symfun/minus.m] 1930s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@symfun/minus.m 1930s ***** test 1930s syms x 1930s f(x) = x^2; 1930s assert( isa(f - f, 'symfun')) 1930s assert( isa(f - x, 'symfun')) 1930s ***** test 1930s % Octave bug #42735 fixed in 4.4.2 1930s syms x 1930s f(x) = x^2; 1930s g = x^2; 1930s h = x - f; assert (isa (h, 'symfun') && isequal (formula (h), x - g)) 1930s h = x + f; assert (isa (h, 'symfun') && isequal (formula (h), x + g)) 1930s h = x * f; assert (isa (h, 'symfun') && isequal (formula (h), x * g)) 1930s h = x / f; assert (isa (h, 'symfun') && isequal (formula (h), x / g)) 1930s h = x ^ f; assert (isa (h, 'symfun') && isequal (formula (h), x ^ g)) 1930s h = x .* f; assert (isa (h, 'symfun') && isequal (formula (h), x .* g)) 1930s h = x ./ f; assert (isa (h, 'symfun') && isequal (formula (h), x ./ g)) 1930s h = x .^ f; assert (isa (h, 'symfun') && isequal (formula (h), x .^ g)) 1931s ***** test 1931s % different variables 1931s syms x y 1931s f(x) = 2*x; 1931s g(y) = sin(y); 1931s h = f - g(x); 1931s assert( isa(h, 'symfun')) 1931s assert( isequal (argnames (h), argnames (f))) 1931s assert (isequal (formula (h), 2*x - sin(x))) 1931s % and even if rh-sym has a dummy variable: 1931s h = f - g(y); 1931s assert( isa(h, 'symfun')) 1931s assert( isequal (argnames (h), argnames(f))) 1931s assert (isequal (formula (h), 2*x - sin(y))) 1931s ***** test 1931s % different variables, f has more 1931s syms x y 1931s f(x,y) = 2*x*y; 1931s g(y) = sin(y); 1931s h = f - g(y) + g(x); 1931s assert( isa(h, 'symfun')) 1931s assert( isequal (argnames (h), argnames (f))) 1931s assert (isequal (formula (h), 2*x*y - sin(y) + sin(x))) 1931s 4 tests, 4 passed, 0 known failure, 0 skipped 1931s [inst/@symfun/diff.m] 1931s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@symfun/diff.m 1931s ***** test 1931s % concrete fcn 1931s syms x 1931s f(x) = x*x; 1931s g(x) = 2*x; 1931s assert (logical (diff(f) == g)) 1931s assert (isa (diff(f), 'symfun')) 1931s ***** test 1931s % abstract fcn 1931s syms y(x) 1931s assert (logical (diff(y) == diff(y(x)))) 1931s assert (isa (diff(y), 'symfun')) 1932s 2 tests, 2 passed, 0 known failure, 0 skipped 1932s [inst/@symfun/ldivide.m] 1932s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@symfun/ldivide.m 1932s ***** test 1932s syms x 1932s f(x) = x^2; 1932s assert( isa(f .\ f, 'symfun')) 1932s assert( isa(f .\ x, 'symfun')) 1932s 1 test, 1 passed, 0 known failure, 0 skipped 1932s [inst/@symfun/power.m] 1932s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@symfun/power.m 1932s ***** test 1932s syms x 1932s f(x) = 2*x; 1932s h = f.^f; 1932s assert( isa(h, 'symfun')) 1932s assert (isequal (formula (h), (2*x)^(2*x))) 1932s ***** test 1932s syms x 1932s f(x) = [x 2*x]; 1932s h = f.^[x 3]; 1932s assert( isa(h, 'symfun')) 1932s assert (isequal (formula (h), [x^x 8*x^3])) 1932s 2 tests, 2 passed, 0 known failure, 0 skipped 1932s [inst/@symfun/mrdivide.m] 1932s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@symfun/mrdivide.m 1932s ***** test 1932s syms x 1932s f(x) = x^2; 1932s assert( isa(f/f, 'symfun')) 1932s assert( isa(f/x, 'symfun')) 1932s 1 test, 1 passed, 0 known failure, 0 skipped 1932s [inst/@symfun/mpower.m] 1932s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@symfun/mpower.m 1932s ***** test 1932s syms x 1932s f(x) = 2*x; 1932s h = f^f; 1932s assert( isa(h, 'symfun')) 1932s assert (isequal (formula (h), (2*x)^(2*x))) 1932s h = f^sym(2); 1932s assert( isa(h, 'symfun')) 1932s assert (isequal (formula (h), 4*x^2)) 1932s 1 test, 1 passed, 0 known failure, 0 skipped 1932s [inst/@symfun/symvar.m] 1932s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@symfun/symvar.m 1932s ***** test 1932s % basic 1932s syms f(t, s) 1932s assert (isempty (symvar (f, 0))) 1932s assert (isequal (symvar (f, 1), t)) 1932s assert (isequal (symvar (f, 2), [t s])) 1932s assert (isequal (symvar (f, 3), [t s])) 1933s ***** test 1933s % note preference for vars of symfun, if n requested 1933s syms x f(y) 1933s assert (isequal (symvar(f*x, 1), y)) 1933s assert (isequal (symvar(f(y)*x, 1), x)) 1933s ***** test 1933s % symfun, checked smt 1933s syms x f(y) 1933s a = f*x; 1933s b = f(y)*x; 1933s assert (isequal (symvar(a), [x y])) 1933s assert (isequal (symvar(b), [x y])) 1933s ***** test 1933s % preference for the explicit variables 1933s syms a x f(t, s) 1933s h = f*a + x; 1933s assert (isequal (symvar (h, 1), t)) 1933s assert (isequal (symvar (h, 2), [t s])) 1933s assert (isequal (symvar (h, 3), [t s x])) 1933s assert (isequal (symvar (h, 4), [t s x a])) 1933s assert (isequal (symvar (h, 5), [t s x a])) 1933s assert (isequal (symvar (h), [a s t x])) 1935s ***** test 1935s % symfun dep on some vars only, matches smt w/ n 1935s syms x s t 1935s f(s) = x; 1935s g(s, t) = x*s; 1935s assert (isequal (symvar(f, 1), s)) 1935s assert (isequal (symvar(f, 2), [s x])) 1935s assert (isequal (symvar(g, 1), s)) 1935s assert (isequal (symvar(g, 2), [s t])) 1935s assert (isequal (symvar(g, 3), [s t x])) 1936s ***** test 1936s % A documented difference from SMT on symvar(symfun) w/o n 1936s syms x s t 1936s f(s) = x; 1936s g(s, t) = x*s; 1936s % SMT would have 1936s %assert (isequal (symvar(f), x)) % no s 1936s %assert (isequal (symvar(g), [s x])) % no t 1936s assert (isequal (symvar(f), [s x])) 1936s assert (isequal (symvar(g), [s t x])) 1936s 6 tests, 6 passed, 0 known failure, 0 skipped 1936s [inst/@symfun/argnames.m] 1936s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@symfun/argnames.m 1936s ***** test 1936s % basic test 1936s syms f(x) 1936s assert (isequal (argnames (f), x)) 1936s ***** test 1936s % Multiple variables, abstract symfun 1936s syms f(t, x, y) 1936s assert (isequal (argnames (f), [t x y])) 1936s ***** test 1936s % Concrete symfun 1936s syms x y z t 1936s f(t, x, y) = x + y + z; 1936s assert (isequal (argnames (f), [t x y])) 1936s 3 tests, 3 passed, 0 known failure, 0 skipped 1936s [inst/@symfun/size.m] 1936s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@symfun/size.m 1936s ***** test 1936s syms x 1936s f(x) = x; 1936s d = size(f); 1936s assert (isequal (d, [1 1])) 1936s [n, m] = size(f); 1936s assert (isequal ([n m], [1 1])) 1936s assert (size(f, 1) == 1) 1936s assert (size(f, 2) == 1) 1936s ***** test 1936s syms x 1936s f(x) = [1 x]; 1936s d = size(f); 1936s assert (isequal (d, [1 1])) 1936s [n, m] = size(f); 1936s assert (isequal ([n m], [1 1])) 1936s assert (size(f, 1) == 1) 1936s assert (size(f, 2) == 1) 1936s 2 tests, 2 passed, 0 known failure, 0 skipped 1936s [inst/@symfun/uminus.m] 1936s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@symfun/uminus.m 1936s ***** test 1936s % Issue #447 1936s syms x 1936s f(x) = x^2; 1936s assert (isa (-f, 'symfun')) 1936s ***** test 1936s syms f(x) 1936s h = -f; 1936s assert (isa (h, 'symfun')) 1936s 2 tests, 2 passed, 0 known failure, 0 skipped 1936s [inst/@symfun/mtimes.m] 1936s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@symfun/mtimes.m 1936s ***** test 1936s syms x 1936s f(x) = x^2; 1936s assert( isa(f * f, 'symfun')) 1936s assert( isa(f * x, 'symfun')) 1936s 1 test, 1 passed, 0 known failure, 0 skipped 1936s [inst/@symfun/rdivide.m] 1936s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@symfun/rdivide.m 1936s ***** test 1936s syms x 1936s f(x) = x^2; 1936s assert( isa(f./f, 'symfun')) 1936s assert( isa(f./[x x^2], 'symfun')) 1937s ***** test 1937s syms x 1937s f(x) = [x 2*x]; 1937s h = f./[x 2]; 1937s assert( isa(h, 'symfun')) 1937s assert (isequal (formula (h), [1 x])) 1937s 2 tests, 2 passed, 0 known failure, 0 skipped 1937s [inst/@symfun/int.m] 1937s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@symfun/int.m 1937s ***** test 1937s % indefinite integral of symfun gives symfun 1937s syms x 1937s f(x) = x^2; 1937s g = int(f); 1937s assert (isa(g, 'symfun')) 1937s g = int(f, x); 1937s assert (isa(g, 'symfun')) 1937s ***** test 1937s % indefinite integral of abstract symfun gives symfun 1937s syms f(x) 1937s g = int(f); 1937s assert (isa(g, 'symfun')) 1937s g = int(f, x); 1937s assert (isa(g, 'symfun')) 1937s ***** test 1937s % definite integral does not give symfun 1937s syms x 1937s f(x) = x^2; 1937s g = int(f, x, 0, 2); 1937s assert (isa(g, 'sym')) 1937s assert (~isa(g, 'symfun')) 1937s ***** test 1937s % ... even if it has a variable in it 1937s syms x t 1937s f(x) = x; 1937s g = int(f, x, 0, t); 1937s assert (isa(g, 'sym')) 1937s assert (~isa(g, 'symfun')) 1937s ***** test 1937s % ... even if the input is abstract funcion 1937s syms f(x) 1937s g = int(f, x, 0, 2); 1937s assert (isa(g, 'sym')) 1937s assert (~isa(g, 'symfun')) 1937s ***** test 1937s % symfun in x, integrated in y gives symfun still in x 1937s % (SMT does this too). 1937s syms f(x) y 1937s g = int(f, y); 1937s assert (isa (g, 'symfun')) 1937s assert (isequal (argnames (g), x)) 1937s ***** test 1937s % same as above, but concrete symfun 1937s syms x y 1937s f(x) = x^2; 1937s g = int(f, y); 1937s assert (isa (g, 'symfun')) 1937s assert (isequal (argnames (g), x)) 1937s assert (isequal (formula(g), x^2*y)) 1938s 7 tests, 7 passed, 0 known failure, 0 skipped 1938s [inst/@symfun/mldivide.m] 1938s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@symfun/mldivide.m 1938s ***** test 1938s syms x 1938s f(x) = x^2; 1938s assert( isa(f\f, 'symfun')) 1938s assert( isa(f\x, 'symfun')) 1938s 1 test, 1 passed, 0 known failure, 0 skipped 1938s [inst/@symfun/isequal.m] 1938s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@symfun/isequal.m 1938s ***** error isequal (symfun('x + 1', x)) 1938s ***** test 1938s syms x y 1938s f(x) = 2*x; 1938s g(x) = 2*x; 1938s assert (isequal (f, g)) 1938s ***** test 1938s syms x 1938s f(x) = 2*x + 1; 1938s g(x) = 2*x + 1; 1938s h(x) = 2*x + 1; 1938s assert (isequal (f, g, h)) 1938s ***** test 1938s syms x 1938s f(x) = 2*x + 1; 1938s g(x) = 2*x + 1; 1938s h(x) = 2*x; 1938s assert (~ isequal (f, g, h)) 1938s ***** test 1938s syms x y 1938s f(x) = 2*x; 1938s g(x, y) = 2*x; 1938s assert (~ isequal (f, g)) 1938s ***** test 1938s syms x y 1938s f(x) = symfun(nan, x); 1938s g(x) = symfun(nan, x); 1938s assert (~ isequal (f, g)) 1938s 6 tests, 6 passed, 0 known failure, 0 skipped 1938s [inst/@symfun/private_disp_name.m] 1938s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@symfun/private_disp_name.m 1938s ***** test 1938s syms f(x) 1938s s = private_disp_name(f, 'f'); 1938s assert (strcmp (s, 'f(x)')) 1938s ***** test 1938s syms x y 1938s g(y, x) = x + y; 1938s s = private_disp_name(g, 'g'); 1938s assert (strcmp (s, 'g(y, x)')) 1939s ***** test 1939s syms f(x) 1939s assert (isempty (private_disp_name(f, ''))) 1939s 3 tests, 3 passed, 0 known failure, 0 skipped 1939s [inst/@symfun/isequaln.m] 1939s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@symfun/isequaln.m 1939s ***** error isequaln (symfun('x + 1', x)) 1939s ***** test 1939s syms x y 1939s f(x) = 2*x; 1939s g(x) = 2*x; 1939s assert (isequaln (f, g)) 1939s ***** test 1939s syms x 1939s f(x) = 2*x + 1; 1939s g(x) = 2*x + 1; 1939s h(x) = 2*x + 1; 1939s assert (isequaln (f, g, h)) 1939s ***** test 1939s syms x 1939s f(x) = 2*x + 1; 1939s g(x) = 2*x + 1; 1939s h(x) = 2*x; 1939s assert (~ isequaln (f, g, h)) 1939s ***** test 1939s syms x y 1939s f(x) = 2*x; 1939s g(x, y) = 2*x; 1939s assert (~ isequaln (f, g)) 1939s ***** test 1939s syms x y 1939s f(x) = symfun(nan, x); 1939s g(x) = symfun(nan, x); 1939s assert (isequaln (f, g)) 1939s ***** test 1939s syms x y 1939s f(x) = symfun(nan, x); 1939s g(x, y) = symfun(nan, x); 1939s assert (~ isequaln (f, g)) 1940s 7 tests, 7 passed, 0 known failure, 0 skipped 1940s [inst/finiteset.m] 1940s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/finiteset.m 1940s ***** test 1940s s1 = finiteset(sym(1), 2, 2); 1940s s2 = finiteset(sym(1), 2, 2, 2); 1940s assert (isequal (s1, s2)) 1940s ***** test 1940s s1 = finiteset(sym(0), 1); 1940s s2 = finiteset(sym(0), 2, 3); 1940s s = finiteset(sym(0), 1, 2, 3); 1940s assert (isequal (s1 + s2, s)) 1940s ***** test 1940s e = finiteset(); 1940s s = finiteset(sym(1)); 1940s s2 = e + s; 1940s assert (isequal (s, s2)) 1940s 3 tests, 3 passed, 0 known failure, 0 skipped 1940s [inst/vpa.m] 1940s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/vpa.m 1940s ***** test 1940s a = vpa(0, 4); 1940s b = double(a); 1940s assert(b == 0) 1940s ***** test 1940s a = vpa(pi, 4); 1940s b = sin(a); 1940s assert(abs(double(b)) < 1e-4) 1940s ***** test 1940s % vpa from double is ok, doesn't warn (c.f., sym(2.3)) 1940s a = vpa(2.3); 1940s assert(true) 1940s ***** test 1940s % vpa from double not more than 16 digits 1940s a = vpa(sqrt(pi), 32); 1940s b = sin(a^2); 1940s assert(abs(double(b)) > 1e-20) 1940s assert(abs(double(b)) < 1e-15) 1940s ***** test 1940s a = vpa(sym(pi), 32); 1940s b = sin(a); 1940s assert(abs(double(b)) < 1e-30) 1940s ***** test 1940s a = vpa(sym(pi), 256); 1940s b = sin(a); 1940s assert(abs(double(b)) < 1e-256) 1940s ***** test 1940s % pi str 1940s a = vpa('pi', 32); 1940s b = sin(a); 1940s assert(abs(double(b)) < 1e-32) 1940s ***** test 1940s % pi str 1940s a = vpa('pi', 32); 1940s b = vpa(sym('pi'), 32); 1940s assert (double (a - b) == 0) 1940s ***** test 1940s spi = sym(pi); 1940s a = vpa(spi, 10); 1940s b = double(a); 1940s assert(~isAlways(spi == a)) 1940s ***** test 1940s % matrix of sym 1940s a = [sym(pi) 0; sym(1)/2 1]; 1940s b = [pi 0; 0.5 1]; 1940s c = vpa(a, 6); 1940s assert(max(max(abs(double(c)-b))) < 1e-6) 1940s ***** test 1940s % matrix of double 1940s b = [pi 0; 0.5 1]; 1940s c = vpa(b, 6); 1940s assert(max(max(abs(double(c)-b))) < 1e-6) 1941s ***** test 1941s % integer type 1941s a = vpa(int32(6), 64); 1941s b = vpa(6, 64); 1941s assert (isequal (a, b)) 1941s ***** test 1941s % matrix of int 1941s b = int32([pi 0; 6.25 1]); 1941s c = vpa(b, 6); 1941s assert (isequal (double(c), [3 0; 6 1])) 1941s ***** test 1941s % can pass pi directly to vpa 1941s a = vpa(sym(pi), 128); 1941s b = vpa(pi, 128); 1941s assert (isequal (a, b)) 1941s ***** test 1941s % if sym does sth special for e so should vpa 1941s a = vpa(sym(exp(1)), 64); 1941s b = vpa(exp(1), 64); 1941s assert (isequal (a, b)) 1941s ***** test 1941s % can pass pi directly to vpa, even in array 1941s a = vpa(sym([2 pi]), 128); 1941s b = vpa([2 pi], 128); 1941s assert (isequal (a, b)) 1941s ***** test 1941s % can pass i directly to vpa 1941s a = vpa(sym(i)); 1941s b = vpa(i); 1941s ***** test 1941s % 'i' and 'I' just make vars 1941s a = vpa(sym(1i)); 1941s b = vpa('i'); 1941s c = vpa('I'); 1941s assert (~isequal (a, b)) 1941s assert (~isequal (a, c)) 1941s ***** test 1941s % '1i' and '1j' strings 1941s a = vpa(sym(1i)); 1941s b = vpa('1i'); 1941s c = vpa('1j'); 1941s assert (isequal (a, b)) 1941s assert (isequal (a, c)) 1941s ***** test 1941s % Issue #868, precision loss on '0.33j' 1941s a = vpa('0.33j', 40); 1941s b = vpa('0.33i', 40); 1941s assert (double (abs (imag (a)*100/33) - 1) < 1e-39) 1941s assert (isequal (a, b)) 1942s ***** test 1942s % inf/-inf do not become symbol('inf') 1942s S = {'oo', '-oo', 'inf', 'Inf', '-inf', '+inf'}; 1942s for j = 1:length(S) 1942s a = vpa(S{j}); 1942s b = vpa(sym(S{j})); 1942s assert (isequal (a, b)) 1942s end 1942s ***** test 1942s a = vpa('2.3', 20); 1942s s = strtrim(disp(a, 'flat')); 1942s assert (strcmp (s, '2.3000000000000000000')) 1942s ***** test 1942s % these should *not* be the same 1942s a = vpa(2.3, 40); 1942s b = vpa('2.3', 40); 1942s sa = sympy (a); 1942s sb = sympy (b); 1942s assert (~isequal (a, b)) 1942s assert (abs(double(a - b)) > 1e-20) 1942s assert (abs(double(a - b)) < 1e-15) 1942s assert (~strcmp(sa, sb)) 1942s ***** test 1942s % these should *not* be the same 1942s x = vpa('1/3', 32); 1942s y = vpa(sym(1)/3, 32); 1942s z = vpa(1/3, 32); 1942s assert (isequal (x, y)) 1942s assert (~isequal (x, z)) 1942s ***** test 1942s % big integers 1942s a = int64(12345678); 1942s a = a*a; 1942s b = vpa(a); 1942s c = vpa('152415765279684'); 1942s assert (isequal (b, c)) 1942s ***** test 1942s % big integers (workaround poor num2str, works in 4.0?) 1942s a = int64(1234567891); a = a*a; 1942s b = vpa(a); 1942s c = vpa('1524157877488187881'); 1942s assert (isequal (b, c)) 1942s ***** warning vpa ('sqrt(2.0)'); 1942s ***** warning 1942s if (pycall_sympy__ ('return Version(spver) > Version("1.4")')) 1942s a = vpa('2**0.5'); 1942s b = vpa(sqrt(sym(2))); 1942s assert (isequal (a, b)) 1942s else 1942s warning('dangerous') % fake it until we drop 1.4 1942s end 1942s ***** test 1942s a = vpa('2.3e1'); 1942s b = vpa(' 2.3e+1 '); 1942s assert (isequal (a, b)) 1942s a = vpa('21e-1'); 1942s b = vpa('2.1'); 1942s assert (isequal (a, b)) 1942s ***** test 1942s % Issue #859, operations on immutable matrices 1942s x = vpa (sym ([1 2])); 1942s % If vpa no longer makes an ImmutableDenseMatrix, 1942s % may need to adjust or remove this test. 1942s assert (~ isempty (strfind (sympy (x), 'Immutable'))) 1942s y = sin(x); 1942s y2 = [sin(vpa(sym(1))) sin(vpa(sym(2)))]; 1942s assert (isequal (y, y2)) 1942s 30 tests, 30 passed, 0 known failure, 0 skipped 1942s [inst/vpasolve.m] 1942s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/vpasolve.m 1942s ***** test 1942s syms x 1942s vpi = vpa(sym(pi), 64); 1942s e = tan(x/4) == 1; 1942s q = vpasolve(e, x, 3.0); 1942s w = q - vpi ; 1942s assert (double(w) < 1e-30) 1942s ***** test 1942s syms x 1942s vpi = vpa(sym(pi), 64); 1942s e = tan(x/4) == 1; 1942s q = vpasolve(e, x); 1942s w = q - vpi; 1942s assert (double(w) < 1e-30) 1942s q = vpasolve(e); 1942s w = q - vpi; 1942s assert (double(w) < 1e-30) 1943s ***** test 1943s % very accurate pi 1943s syms x 1943s e = tan(x/4) == 1; 1943s m = digits(256); 1943s q = vpasolve(e, x, 3); 1943s assert (double(abs(sin(q))) < 1e-256) 1943s digits(m); 1943s ***** test 1943s % very accurate sqrt 2 1943s syms x 1943s e = x*x == 2; 1943s m = digits(256); 1943s q = vpasolve(e, x, 1.5); 1943s assert (double(abs(q*q - 2)) < 1e-256) 1943s digits(m); 1943s ***** test 1943s % very accurate sqrt pi 1943s % (used to fail https://github.com/sympy/sympy/issues/8564) 1943s syms x 1943s e = x*x == sym(pi); 1943s m = digits(256); 1943s q = vpasolve(e, x, 3); 1943s assert (double(abs(sin(q*q))) < 1e-256) 1943s digits(m); 1943s ***** test 1943s syms x 1943s r = vpasolve(x^2 + 2 == 0, x, 1i); 1943s assert (double (imag(r)^2 - 2), 0, 1e-32) 1943s assert (double (real(r)^2), 0, 1e-32) 1943s r = vpasolve(x^2 + 2 == 0, x, -3i + 5); 1943s assert (double (imag(r)^2 - 2), 0, 1e-32) 1943s assert (double (real(r)^2), 0, 1e-32) 1944s ***** test 1944s % system 1944s syms x y 1944s f = 3*x^2 - 2*y^2 - 1; 1944s g = x^2 - 2*x + y^2 + 2*y - 8; 1944s r = vpasolve([f; g], [x; y], sym([-1; 1])); 1944s assert (isa (r, 'sym')) 1944s assert (numel (r) == 2) 1944s ***** test 1944s % system, double guess 1944s syms x y 1944s f = 3*x^2 - 2*y^2 - 1; 1944s g = x^2 - 2*x + y^2 + 2*y - 8; 1944s r = vpasolve([f; g], [x; y], [-1.1 1.2]); 1944s ***** test 1944s % system, double guess 1944s syms x y 1944s f = 3*x^2 - 2*y^2 - 1; 1944s g = x^2 - 2*x + y^2 + 2*y - 8; 1944s r1 = vpasolve([f; g], [x; y], [-1.1]); 1944s r2 = vpasolve([f; g], [x; y], [-1.1 -1.1]); 1944s assert (isequal (r1, r2)) 1945s ***** test 1945s % system, more eqns than unknowns 1945s syms x y 1945s eqns = [x^3 - x - y == 0; y*exp(x) == 16; log(y) + x == 4*log(sym(2))]; 1945s r = vpasolve (eqns, [x; y], [1; 1]); 1945s A = subs (lhs (eqns), [x; y], r); 1945s err = A - [0; 16; 4*log(sym(2))]; 1945s assert (double (err), zeros (size (err)), 1e-31) 1945s :7: SymPyDeprecationWarning: 1945s 1945s non-Expr objects in a Matrix is deprecated. Matrix represents 1945s a mathematical matrix. To represent a container of non-numeric 1945s entities, Use a list of lists, TableForm, NumPy array, or some 1945s other data structure instead. 1945s 1945s See https://docs.sympy.org/latest/explanation/active-deprecations.html#deprecated-non-expr-in-matrix 1945s for details. 1945s 1945s This has been deprecated since SymPy version 1.9. It 1945s will be removed in a future version of SymPy. 1945s 1945s 10 tests, 10 passed, 0 known failure, 0 skipped 1945s [inst/lambertw.m] 1945s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/lambertw.m 1945s ***** assert (isequal (lambertw (0), 0)) 1945s ***** assert (isequal (lambertw (0, 0), 0)) 1945s ***** assert (lambertw (-1/exp(1)), -1, 2*eps) 1945s ***** assert (lambertw (0, -1/exp(1)), -1, 2*eps) 1945s ***** assert (lambertw (-1, -1/exp(1)), -1, 2*eps) 1945s ***** test 1945s x = [1 2 3 pi 10 100 1000 12345]; 1945s W = lambertw (x); 1945s assert (W.*exp (W), x, -3*eps) 1945s ***** test 1945s x = [1 2 3 pi 10 100 1000 12345]; 1945s k = [-3 -2 -1 0 1 2 3 4]; 1945s W = lambertw (k, x); 1945s assert (W.*exp (W), x, -10*eps) 1945s ***** test 1945s % input shape preserved 1945s x = [0 1; 2 3]; 1945s b = x; 1945s W = lambertw (b, x); 1945s assert (W.*exp (W), x, -10*eps) 1945s ***** test 1945s % input shape preserved 1945s x = [0 1; 2 3]; 1945s b = 0; 1945s W = lambertw (b, x); 1945s assert (W.*exp (W), x, -10*eps) 1945s ***** test 1945s % input shape preserved 1945s x = 10; 1945s b = [0 1; 2 3]; 1945s W = lambertw (b, x); 1945s assert (W.*exp (W), x*ones (size (b)), -10*eps) 1945s ***** assert (isnan (lambertw (nan))) 1945s ***** test 1945s % limiting behaviour as z large 1945s k = 3; 1945s A = lambertw (k, 1e100); 1945s assert (abs (imag (A) - 2*pi*k) < 0.1) 1945s ***** test 1945s % limiting behaviour as z large, up imag axis 1945s k = 1; 1945s A = lambertw (k, 1e100*1i); 1945s assert (abs (imag (A) - (2*k+0.5)*pi) < 0.1) 1945s ***** test 1945s % limiting behaviour as z large, down imag axis 1945s k = -2; 1945s A = lambertw (k, -1e100*1i); 1945s assert (abs (imag (A) - (2*k-0.5)*pi) < 0.1) 1945s ***** test 1945s % limiting behaviour as z large, near branch 1945s k = 3; 1945s A = lambertw (k, -1e100); 1945s B = lambertw (k, -1e100 + 1i); 1945s C = lambertw (k, -1e100 - 1i); 1945s assert (abs (imag (A) - (2*k+1)*pi) < 0.1) 1945s assert (abs (imag (B) - (2*k+1)*pi) < 0.1) 1945s assert (abs (imag (C) - (2*k-1)*pi) < 0.1) 1945s ***** test 1945s % infinities and nan 1945s A = lambertw ([inf exp(1) -inf nan]); 1945s B = [inf 1 inf + pi*1i nan]; 1945s assert (isequaln (A, B)) 1945s ***** test 1945s % infinities and nan 1945s A = lambertw (3, [inf 1 -inf nan]); 1945s B = [inf + 2*3*pi*1i lambertw(3,1) inf + (2*3+1)*pi*1i nan]; 1945s assert (isequaln (A, B)) 1945s ***** test 1945s % infinities and nan 1945s A = lambertw ([0 1 2 0], [inf -inf nan exp(1)]); 1945s B = [inf inf+3*pi*1i nan 1]; 1945s assert (isequaln (A, B)) 1945s ***** test 1945s % scalar infinity z, vector b 1945s A = lambertw ([1 2 -3], inf); 1945s B = [lambertw(1, inf) lambertw(2, inf) lambertw(-3, inf)]; 1945s assert (isequal (A, B)) 1945s ***** test 1945s % scalar -infinity z, vector b 1945s A = lambertw ([1 2 -3], -inf); 1945s B = [lambertw(1, -inf) lambertw(2, -inf) lambertw(-3, -inf)]; 1945s assert (isequal (A, B)) 1945s ***** test 1945s % scalar z nan, vector b 1945s A = lambertw ([1 2 -3], nan); 1945s B = [nan nan nan]; 1945s assert (isequaln (A, B)) 1945s 21 tests, 21 passed, 0 known failure, 0 skipped 1945s [inst/assumptions.m] 1945s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/assumptions.m 1945s ***** test 1945s syms x 1945s assert(isempty(assumptions(x))) 1945s ***** test 1945s x = sym('x', 'positive'); 1945s a = assumptions(x); 1945s assert(~isempty(strfind(a{1}, 'positive'))) 1946s ***** test 1946s syms x 1946s assert(isempty(assumptions(x))) 1946s ***** test 1946s clear variables % for matlab test script 1946s syms x positive 1946s assert(~isempty(assumptions())) 1946s clear x 1946s assert(isempty(assumptions())) 1946s ***** test 1946s % make sure we have at least these possible assumptions 1946s A = {'real' 'positive' 'negative' 'integer' 'even' 'odd' 'rational'}; 1946s B = assumptions('possible'); 1946s assert (isempty (setdiff(A, B))) 1946s ***** test 1946s A = assumptions('possible'); 1946s for i = 1:length(A) 1946s x = sym('x', A{i}); 1946s a = assumptions(x); 1946s assert(strcmp(a{1}, ['x: ' A{i}] )) 1946s s1 = sympy (x); 1946s s2 = ['Symbol(''x'', ' A{i} '=True)']; 1946s assert (strcmp (s1, s2)) 1946s end 1946s ***** test 1946s syms x positive 1946s syms y real 1946s syms z 1946s f = x*y*z; 1946s a = assumptions(f); 1946s assert(length(a) == 2) 1946s assert(~isempty(strfind(a{1}, 'positive'))) 1946s assert(~isempty(strfind(a{2}, 'real'))) 1947s ***** test 1947s % dict output 1947s syms x positive 1947s syms y real 1947s syms z 1947s f = x*y*z; 1947s [v, d] = assumptions(f, 'dict'); 1947s assert(length(v) == 2) 1947s assert(iscell(v)) 1947s assert(isa(v{1}, 'sym')) 1947s assert(isa(v{2}, 'sym')) 1947s assert(length(d) == 2) 1947s assert(iscell(d)) 1947s assert(isstruct(d{1})) 1947s assert(isstruct(d{2})) 1947s ***** test 1947s %% assumptions on just the vars in an expression 1947s clear variables % for matlab test script 1947s syms x y positive 1947s f = 2*x; 1947s assert(length(assumptions(f))==1) 1947s assert(length(assumptions())==2) 1947s ***** test 1947s %% assumptions in cell/struct 1947s clear variables % for matlab test script 1947s syms x y z w positive 1947s f = {2*x [1 2 y] {1, {z}}}; 1947s assert(length(assumptions())==4) 1947s assert(length(assumptions(f))==3) 1947s clear x y z w 1947s assert(length(assumptions())==3) 1947s assert(length(assumptions(f))==3) 1947s ***** test 1947s % multiple assumptions 1947s n = sym('n', 'negative', 'even'); 1947s assert (logical (n < 0)) 1947s assert (~(logical (n > 0))) 1947s assert (~(logical (n == -1))) 1947s ***** test 1947s % multiple assumptions: eqn neither true nor false 1947s n = sym('n', 'negative', 'even'); 1947s assert (~isequal (n, sym(true)) && ~isequal (n, sym(false))) 1947s ***** test 1947s %% TODO: rewrite later with https://github.com/cbm755/octsympy/issues/622 1947s a = pycall_sympy__ ('return Symbol("a", real=False)'); 1947s assert (strcmp (assumptions (a), {'a: ~real'})) 1947s 13 tests, 13 passed, 0 known failure, 0 skipped 1947s [inst/findsymbols.m] 1947s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/findsymbols.m 1947s ***** test 1947s syms x b y n a arlo 1947s z = a*x + b*pi*sin (n) + exp (y) + exp (sym (1)) + arlo; 1947s s = findsymbols (z); 1947s assert (isequal ([s{:}], [a,arlo,b,n,x,y])) 1948s ***** test 1948s syms x 1948s s = findsymbols (x); 1948s assert (isequal (s{1}, x)) 1948s ***** test 1948s syms z x y a 1948s s = findsymbols ([x y; 1 a]); 1948s assert (isequal ([s{:}], [a x y])) 1948s ***** assert (isempty (findsymbols (sym (1)))) 1948s ***** assert (isempty (findsymbols (sym ([1 2])))) 1948s ***** assert (isempty (findsymbols (sym (nan)))) 1948s ***** assert (isempty (findsymbols (sym (inf)))) 1948s ***** assert (isempty (findsymbols (exp (sym (2))))) 1948s ***** test 1948s % empty sym for findsymbols, findsym, and symvar 1948s assert (isempty (findsymbols (sym([])))) 1948s assert (isempty (findsym (sym([])))) 1948s assert (isempty (symvar (sym([])))) 1948s ***** test 1948s % diff. assumptions make diff. symbols 1948s x1 = sym('x'); 1948s x2 = sym('x', 'positive'); 1948s f = x1*x2; 1948s assert (length (findsymbols (f)) == 2) 1948s ***** test 1948s % symfun or sym 1948s syms x f(y) 1948s a = f*x; 1948s b = f(y)*x; 1948s assert (isequal (findsymbols(a), {x y})) 1948s assert (isequal (findsymbols(b), {x y})) 1948s ***** test 1948s % findsymbols on symfun does not find the argnames (unless they 1948s % are on the RHS of course, this matches SMT 2014a). 1948s syms a x y 1948s f(x, y) = a; % const symfun 1948s assert (isequal (findsymbols(f), {a})) 1948s syms a x y 1948s f(x, y) = a*y; 1948s assert (isequal (findsymbols(f), {a y})) 1948s ***** test 1948s % sorts lexigraphically, same as symvar *with single input* 1948s % (note symvar does something different with 2 inputs). 1948s syms A B a b x y X Y 1948s f = A*a*B*b*y*X*Y*x; 1948s assert (isequal (findsymbols(f), {A B X Y a b x y})) 1948s assert (isequal (symvar(f), [A B X Y a b x y])) 1949s ***** test 1949s % symbols in matpow 1949s syms x y 1949s syms n 1949s A = [sin(x) 2; y 1]; 1949s B = A^n; 1949s L = findsymbols(B); 1949s assert (isequal (L, {n x y})) 1950s ***** test 1950s % array of eq 1950s syms x y 1950s assert (isequal (findsymbols (2 == [2 x y]), {x y})) 1950s ***** test 1950s % array of ineq 1950s syms x y 1950s A = [x < 1 2*x < y x >= 2 3 <= x x != y]; 1950s assert (isequal (findsymbols (A), {x y})) 1951s 16 tests, 16 passed, 0 known failure, 0 skipped 1951s [inst/poly2sym.m] 1951s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/poly2sym.m 1951s ***** shared x,y,a,b,c,p 1951s syms x y a b c 1951s p = x^3 + 2*x^2 + 3*x + 4; 1951s ***** assert(isAlways( poly2sym([1 2 3 4]) == p )) 1951s ***** assert(isAlways( poly2sym([1 2 3 4],x) == p )) 1951s ***** assert(isAlways( poly2sym([1 2 3 4],y) == subs(p,x,y) )) 1951s ***** assert(isAlways( poly2sym([1 2 3 4],5) == subs(p,x,5) )) 1952s ***** assert(isequal( poly2sym ([1]), 1 )) 1952s ***** assert(isequal( poly2sym ([]), 0 )) 1952s ***** assert(isAlways( poly2sym(sym([1 2 3 4]),x) == p )) 1952s ***** assert(isAlways( poly2sym([a b c],x) == a*x^2 + b*x + c )) 1952s ***** assert(isAlways( poly2sym([a b c]) == a*x^2 + b*x + c )) 1953s ***** assert(isequal( poly2sym(sym([])), 0 )) 1953s ***** assert(isAlways( poly2sym({sym(1) sym(2)}, x) == x + 2 )) 1953s ***** assert(isequal( poly2sym ({1}), 1 )) 1953s ***** assert(isequal( poly2sym ({}), 0 )) 1953s ***** assert(isequal( poly2sym ({1}, x), 1 )) 1953s ***** assert(isequal( poly2sym ({}, x), 0 )) 1953s ***** assert(isAlways( poly2sym([x x], x) == x^2 + x )) 1953s ***** test 1953s % mixed cell array with doubles and syms 1953s assert (isequal (poly2sym ({2.0 sym(3) int64(4)}), 2*x^2 + 3*x + 4)) 1954s ***** test 1954s % string for x 1954s p = poly2sym ([1 2], 's'); 1954s syms s 1954s assert (isequal (p, s + 2)) 1954s 18 tests, 18 passed, 0 known failure, 0 skipped 1954s [inst/@sym/ellipticF.m] 1954s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/ellipticF.m 1954s ***** error ellipticF (sym(1)) 1954s ***** error ellipticF (sym(1), 2, 3) 1955s ***** assert (double (ellipticF (sym (pi)/3, sym (-105)/10)), 0.6184459461, 10e-11) 1955s ***** assert (double (ellipticF (sym (pi)/4, sym (-pi))), 0.6485970495, 10e-11) 1955s ***** assert (double (ellipticF (sym (1), sym (-1))), 0.8963937895, 10e-11) 1955s ***** assert (double (ellipticF (sym (pi)/6, sym (0))), 0.5235987756, 10e-11) 1955s ***** test 1955s % compare to Maple 1955s us = vpa (ellipticF (sym(11)/10, sym(9)/4), 40); 1955s % > evalf(EllipticF(sin(11/10), sqrt(9/4)), 40); 1955s maple = vpa ('1.206444996991058996424988192917728014427', 40) - ... 1955s vpa ('0.8157358125823472313001683083685348517476j', 40); 1955s assert (abs (double (maple - us)), 0, 1e-39) 1955s 7 tests, 7 passed, 0 known failure, 0 skipped 1955s [inst/@sym/hilb.m] 1955s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/hilb.m 1955s ***** test 1955s A = hilb (sym(3)); 1955s 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]; 1955s assert (isequal (A, B)) 1956s 1 test, 1 passed, 0 known failure, 0 skipped 1956s [inst/@sym/assume.m] 1956s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/assume.m 1956s ***** test 1956s syms x 1956s x = assume(x, 'positive'); 1956s a = assumptions(x); 1956s assert(strcmp(a, 'x: positive')) 1956s x = assume(x, 'even'); 1956s a = assumptions(x); 1956s assert(strcmp(a, 'x: even')) 1956s x = assume(x, 'odd'); 1956s a = assumptions(x); 1956s assert(strcmp(a, 'x: odd')) 1956s ***** error 1956s syms x 1956s x = assume (x, x); 1956s ***** error 1956s syms x 1956s x = assume (x/pi, 'integer') 1956s ***** test 1956s % multiple assumptions 1956s syms x 1956s x = assume(x, 'positive', 'integer'); 1956s [tilde, a] = assumptions(x, 'dict'); 1956s assert(a{1}.integer) 1956s assert(a{1}.positive) 1956s ***** test 1956s % multiple assumptions 1956s syms x 1956s x = assume(x, 'even', 'positive'); 1956s [tilde, a] = assumptions(x, 'dict'); 1956s assert(a{1}.even) 1956s assert(a{1}.positive) 1956s ***** test 1956s % has output so avoids workspace 1956s syms x positive 1956s x2 = x; 1956s f = sin(x); 1956s x = assume(x, 'negative'); 1956s a = assumptions(x); 1956s assert(strcmp(a, 'x: negative')) 1956s a = assumptions(x2); 1956s assert(strcmp(a, 'x: positive')) 1956s a = assumptions(f); 1956s assert(strcmp(a, 'x: positive')) 1956s ***** test 1956s % clear: has output so avoids workspace 1956s syms x positive 1956s f = 2*x; 1956s x2 = assume(x, 'clear'); 1956s assert (~ isempty (assumptions (f))); 1956s ***** test 1956s % has no output so does workspace 1956s syms x positive 1956s x2 = x; 1956s f = sin(x); 1956s assume(x, 'negative'); 1956s a = assumptions(x); 1956s assert(strcmp(a, 'x: negative')) 1956s a = assumptions(x2); 1956s assert(strcmp(a, 'x: negative')) 1956s a = assumptions(f); 1956s assert(strcmp(a, 'x: negative')) 1957s ***** test 1957s % clear: has not output so does workspace 1957s syms x positive 1957s f = 2*x; 1957s assume(x, 'clear'); 1957s assert (isempty (assumptions (f))); 1957s assert (isempty (assumptions ())); 1957s ***** test 1957s syms x positive 1957s assume (x, 'clear') 1957s assert (isempty (assumptions ())) 1957s ***** error 1957s syms x 1957s x2 = assume (x, 'clear', 'real'); 1957s ***** error 1957s syms a 1957s assume (a > 0) 1957s ***** test 1957s syms x y 1957s assume ([x y], 'real') 1957s assert (strcmp (assumptions (x), 'x: real')) 1957s assert (strcmp (assumptions (y), 'y: real')) 1957s ***** test 1957s syms x y 1957s assume ([x y], 'positive', 'even') 1957s assert (strcmp (assumptions (x), 'x: positive, even') || strcmp (assumptions (x), 'x: even, positive')) 1957s assert (strcmp (assumptions (y), 'y: positive, even') || strcmp (assumptions (y), 'y: even, positive')) 1957s ***** test 1957s % with output, original x and y are unchanged 1957s syms x y 1957s [p, q] = assume ([x y], 'real'); 1957s assert (isempty (assumptions (x))) 1957s assert (isempty (assumptions (y))) 1957s assert (strcmp (assumptions (p), 'x: real')) 1957s assert (strcmp (assumptions (q), 'y: real')) 1957s ***** test 1957s % matrix input 1957s syms a b c d 1957s assume ([a b; c d], 'real') 1957s assert (strcmp (assumptions (a), 'a: real')) 1957s assert (strcmp (assumptions (b), 'b: real')) 1957s assert (strcmp (assumptions (c), 'c: real')) 1957s assert (strcmp (assumptions (d), 'd: real')) 1958s 16 tests, 16 passed, 0 known failure, 0 skipped 1958s [inst/@sym/besselj.m] 1958s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/besselj.m 1958s ***** test 1958s X = [1 2 3; 4 5 6]; 1958s ns = [sym(0) 1 -2; sym(1)/2 -sym(3)/2 pi]; 1958s n = double(ns); 1958s A = double(besselj(ns, X)); 1958s B = besselj(n, X); 1958s assert (all (all (abs (A - B) < 50*eps*abs(A)))) 1959s ***** test 1959s % roundtrip 1959s syms x 1959s A = besselj(2, 10); 1959s q = besselj(2, x); 1959s h = function_handle(q); 1959s B = h(10); 1959s assert (abs (A - B) <= eps*abs(A)) 1959s ***** error besselj(sym('x')) 1959s 3 tests, 3 passed, 0 known failure, 0 skipped 1959s [inst/@sym/pretty.m] 1959s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/pretty.m 1959s ***** test 1959s % simple 1959s syms x 1959s s1 = pretty(sin(x)); 1959s s2 = sprintf(' sin(x)\n'); 1959s assert (strcmp (s1, s2)) 1959s ***** test 1959s % force ascii 1959s syms x 1959s s1 = pretty(sin(x/2), 'ascii'); 1959s s2 = sprintf(' /x\\\n sin|-|\n \\2/\n'); 1959s swin = strrep(s1, sprintf('\r\n'), sprintf('\n')); 1959s assert (strcmp (s1, s2) || strcmp (swin, s2)) 1959s ***** test 1959s % force unicode 1959s syms x 1959s s1 = pretty(sin(x/2), 'unicode'); 1959s s2 = sprintf(' ⎛x⎞\n sin⎜─⎟\n ⎝2⎠\n'); 1959s swin = strrep(s1, sprintf('\r\n'), sprintf('\n')); 1959s assert (strcmp (s1, s2) || strcmp (swin, s2)) 1959s 3 tests, 3 passed, 0 known failure, 0 skipped 1959s [inst/@sym/ei.m] 1959s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/ei.m 1959s ***** test 1959s syms x 1959s f = ei(sym(0)); 1959s assert (double(f) == -inf) 1960s ***** test 1960s D = [1.895117816355937 4.954234356001890]; 1960s A = ei(sym([1 2])); 1960s assert (all (abs(double(A) - D) < 1e-15)) 1960s 2 tests, 2 passed, 0 known failure, 0 skipped 1960s [inst/@sym/children.m] 1960s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/children.m 1960s ***** test 1960s % basics, sum 1960s syms x y 1960s f = 2*x + x*x + sin(y); 1960s assert (isempty (setxor (children(f), [2*x x*x sin(y)]))) 1960s ***** test 1960s % basics, product 1960s syms x y 1960s f = 2*x*sin(y); 1960s assert (isempty (setxor (children(f), [2 x sin(y)]))) 1960s ***** test 1960s % basics, product and powers 1960s syms x y 1960s f = 2*x^2*y^3; 1960s assert (isempty (setxor (children(f), [2 x^2 y^3]))) 1960s ***** test 1960s % eqn, ineq 1960s syms x y 1960s lhs = 2*x^2; rhs = y^3 + 7; 1960s assert (isequal (children(lhs == rhs), [lhs rhs])) 1960s assert (isequal (children(lhs < rhs), [lhs rhs])) 1960s assert (isequal (children(lhs >= rhs), [lhs rhs])) 1960s ***** test 1960s % matrix 1960s syms x y 1960s f = [4 + y 1 + x; 2 + x 3 + x]; 1960s c = children(f); 1960s ec = {[4 y], [1 x]; [2 x], [3 x]}; 1960s assert (isequal (size(c), size(ec))) 1960s for i=1:length(c) 1960s assert (isempty (setxor (c{i}, ec{i}))) 1960s end 1961s ***** test 1961s % matrix, sum/prod 1961s syms x y 1961s f = [x + y; x*sin(y); sin(x)]; 1961s ec = {[x y]; [x sin(y)]; [x]}; 1961s c = children(f); 1961s assert (isequal (size(c), size(ec))) 1961s for i=1:length(c) 1961s assert (isempty (setxor (c{i}, ec{i}))) 1961s end 1961s ***** test 1961s % scalar symbol 1961s syms x 1961s assert (isequal (children(x), x)) 1961s ***** test 1961s % scalar number 1961s x = sym(6); 1961s assert (isequal (children(x), x)) 1961s ***** test 1961s % symbolic size matrix 1961s syms n m integer 1961s A = sym('a', [n m]); 1961s C = children (A); 1961s assert (isequal (C(2), n)) 1961s assert (isequal (C(3), m)) 1961s ***** xtest 1961s % symbolic size matrix, fails on newer SymPy Issue #1089 1961s syms n m integer 1961s A = sym('a', [n m]); 1961s assert (isequal (children (A), [sym('a') n m])) 1961s !!!!! known failure 1961s assert (isequal (children (A), [sym('a'), n, m])) failed 1961s 10 tests, 9 passed, 1 known failure, 0 skipped 1961s [inst/@sym/hessian.m] 1961s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/hessian.m 1961s ***** error hessian (sym(1), 2, 3) 1961s ***** error hessian ([sym(1) sym(2)]) 1961s ***** shared x,y,z 1961s syms x y z 1961s ***** test 1961s % 1D 1961s f = x^2; 1961s assert (isequal (hessian(f), diff(f,x,x))) 1961s assert (isequal (hessian(f,{x}), diff(f,x,x))) 1961s assert (isequal (hessian(f,x), diff(f,x,x))) 1961s ***** test 1961s % const 1961s f = sym(1); 1961s g = sym(0); 1961s assert (isequal (hessian(f), g)) 1961s assert (isequal (hessian(f,x), g)) 1961s ***** test 1961s % double const 1961s f = 1; 1961s g = sym(0); 1961s assert (isequal (hessian(f,x), g)) 1961s ***** test 1961s % linear 1961s f = 42*x; 1961s g = sym(0); 1961s assert (isequal (hessian(f), g)) 1961s assert (isequal (hessian(f,x), g)) 1961s ***** test 1961s % linear 1961s f = 42*x - sym('a')*y; 1961s g = [0 0; 0 0]; 1961s assert (isequal (hessian(f, {x y}), g)) 1962s ***** test 1962s % 2d 1962s f = x*cos(y); 1962s g = [0 -sin(y); -sin(y) -f]; 1962s assert (isequal (hessian(f), g)) 1962s assert (isequal (hessian(f, {x y}), g)) 1962s ***** test 1962s % 3d 1962s f = x*cos(z); 1962s Hexp = [0 0 -sin(z); sym(0) 0 0; -sin(z) 0 -f]; 1962s H = hessian(f, {x y z}); 1962s assert (isequal (H, Hexp)) 1962s 9 tests, 9 passed, 0 known failure, 0 skipped 1962s [inst/@sym/ilaplace.m] 1962s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/ilaplace.m 1962s ***** error ilaplace (sym(1), 2, 3, 4) 1962s ***** test 1962s % basic SMT compact: no heaviside 1962s syms s 1962s syms t positive 1962s assert (isequal (ilaplace(1/s^2), t)) 1962s assert (isequal (ilaplace(s/(s^2+9)), cos(3*t))) 1962s assert (isequal (ilaplace(6/s^4), t^3)) 1963s ***** test 1963s % more SMT compact 1963s syms r 1963s syms u positive 1963s assert (isequal (ilaplace(1/r^2, u), u)) 1963s assert (isequal (ilaplace(1/r^2, r, u), u)) 1963s ***** test 1963s % if t specified and not positive, we expect heaviside 1963s clear s t 1963s syms s t 1963s assert (isequal (ilaplace(1/s^2, s, t), t*heaviside(t))) 1963s assert (isequal (ilaplace(s/(s^2+9), t), cos(3*t)*heaviside(t))) 1963s assert (isequal (ilaplace(6/s^4, t), t^3*heaviside(t))) 1963s ***** test 1963s % Heaviside test 1963s syms s 1963s t=sym('t', 'positive'); 1963s assert(logical( ilaplace(exp(-5*s)/s^2,t) == (t-5)*heaviside(t-5) )) 1964s ***** test 1964s % Delta dirac test 1964s syms s 1964s t = sym('t'); 1964s assert (isequal (ilaplace (sym('2'), t), 2*dirac(t))) 1964s ***** test 1964s % Delta dirac test 2 1964s syms s t 1964s calc = ilaplace (5*exp (-3*s) - 2*exp (-2*s)/s, s, t); 1964s want = 5*dirac (t-3) - 2*heaviside (t-2); 1964s assert (isequal (calc, want)) 1964s ***** test 1964s % Delta dirac test 3, coefficient 1964s syms s t 1964s syms c positive 1964s calc = ilaplace (2*exp (-c*s), s, t); 1964s want = 2*dirac (t - c); 1964s assert (isAlways (calc == want)) 1964s ***** error ilaplace (sym('s', 'positive')*sym('s')) 1964s ***** test 1964s % SMT compact, prefers s over symvar 1964s syms s x 1964s syms t positive 1964s assert (isequal (ilaplace(x/s^4), x*t^3/6)) 1964s t = sym('t'); 1964s assert (isequal (ilaplace(x/s^4, t), x*t^3/6*heaviside(t))) 1965s ***** test 1965s % pick s even it has assumptions 1965s syms s real 1965s syms x t 1965s assert (isequal (ilaplace (x/s^2, t), x*t*heaviside(t))) 1965s 11 tests, 11 passed, 0 known failure, 0 skipped 1965s [inst/@sym/tanh.m] 1965s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/tanh.m 1965s ***** error tanh (sym(1), 2) 1965s ***** assert (isequaln (tanh (sym(nan)), sym(nan))) 1965s ***** shared x, d 1965s d = 1; 1965s x = sym('1'); 1965s ***** test 1965s f1 = tanh(x); 1965s f2 = tanh(d); 1965s assert( abs(double(f1) - f2) < 1e-15 ) 1965s ***** test 1965s D = [d d; d d]; 1965s A = [x x; x x]; 1965s f1 = tanh(A); 1965s f2 = tanh(D); 1965s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1965s ***** test 1965s % round trip 1965s y = sym('y'); 1965s A = tanh (d); 1965s f = tanh (y); 1965s h = function_handle (f); 1965s B = h (d); 1965s assert (A, B, -eps) 1965s 5 tests, 5 passed, 0 known failure, 0 skipped 1965s [inst/@sym/null.m] 1965s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/null.m 1965s ***** test 1965s A = sym([1 2; 3 4]); 1965s assert (isempty (null (A))) 1965s ***** assert (isempty (null (sym(4)))) 1965s ***** test 1965s A = sym([1 2 3; 3 4 5]); 1965s assert (isequal (null(A), sym([1;-2;1]))) 1966s 3 tests, 3 passed, 0 known failure, 0 skipped 1966s [inst/@sym/unique.m] 1966s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/unique.m 1966s ***** test 1966s A = sym([1 2 3 3 5 3 2 6 5]); 1966s B = sym([1 2 3 5 6]); 1966s assert (isequal (unique(A), B)) 1966s ***** test 1966s syms x y 1966s A = [1 2 3 3 4 5 5 6 7 7 x x y y]; 1966s B = [1 2 3 4 5 6 7 x y]; 1966s assert (isequal (unique(A), B)) 1966s ***** test 1966s syms x 1966s assert (isequal (unique(x), x)) 1966s 3 tests, 3 passed, 0 known failure, 0 skipped 1966s [inst/@sym/cumprod.m] 1966s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/cumprod.m 1966s ***** shared x, y 1966s x = sym ('x'); 1966s y = sym ('y'); 1966s ***** error cumprod (x, 1, 2) 1966s ***** assert (isequal (cumprod ([-x; -2*x; -3*x]), [-x; 2*x^2; -6*x^3])) 1966s ***** assert (isequal (expand (cumprod ([x + i, x - i])), [x + i, x^2 + 1])) 1967s ***** assert (isequal (cumprod ([1, x; y, 2], 1), [1, x; y, 2*x] )) 1967s ***** assert (isequal (cumprod ([1, x; y, 2], 2), [1, x; y, 2*y] )) 1967s ***** test cumprod ([x, x], [2, 1]); # ensure behaves like builtin cumprod 1967s ***** test cumprod ([x, x], [1, -2]); # ensure behaves like builtin cumprod 1967s ***** error cumprod (x, []) 1967s ***** error cumprod (x, {1}) 1967s ***** error cumprod (x, struct('a', 1)) 1967s ***** error cumprod (x, x) 1967s ***** error cumprod (x, 0) 1967s ***** error cumprod (x, -1) 1967s 13 tests, 13 passed, 0 known failure, 0 skipped 1967s [inst/@sym/ne.m] 1967s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/ne.m 1967s ***** test 1967s % simple 1967s x = sym(1); y = sym(1); e = x ~= y; 1967s assert (~logical (e)) 1967s x = sym(1); y = sym(2); e = x ~= y; 1967s assert (logical(e)) 1967s ***** test 1967s % array -- array 1967s syms x 1967s a = sym([1 3 3 2*x]); 1967s b = sym([2 x 3 10]); 1967s e = a ~= b; 1967s assert (isa (e, 'sym')) 1967s assert (logical (e(1))) 1967s assert (isa (e(2), 'sym')) 1967s assert (isequal (e(2), 3 ~= x)) 1967s assert (~logical (e(3))) 1967s assert (isa (e(4), 'sym')) 1967s assert (isequal (e(4), 2*x ~= 10)) 1968s ***** test 1968s % oo 1968s syms oo x 1968s e = oo ~= x; 1968s assert (isa (e, 'sym')) 1968s s = strtrim (disp (e, 'flat')); 1968s % SymPy <= 0.7.6.x will be '!=', newer gives 'Ne', test both 1968s assert (strcmp (s, 'oo != x') || strcmp (s, 'Ne(oo, x)')) 1968s ***** test 1968s % nan 1968s syms oo x 1968s snan = sym(nan); 1968s e = snan ~= sym(0); 1968s assert (logical (e)) 1968s e = snan ~= snan; 1968s assert (logical (e)) 1968s 4 tests, 4 passed, 0 known failure, 0 skipped 1968s [inst/@sym/nnz.m] 1968s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/nnz.m 1968s ***** assert (nnz (sym ([1])) == 1) 1968s ***** assert (nnz (sym ([0])) == 0) 1968s ***** assert (nnz (sym ([])) == 0) 1968s ***** assert (nnz (sym ([1 0; 0 3])) == 2) 1968s ***** test 1968s syms x 1968s assert (nnz ([x 0]) == 1) 1968s ***** assert (nnz (sym (true)) == 1) 1968s ***** assert (nnz (sym (false)) == 0) 1968s ***** assert (nnz (sym (inf)) == 1) 1968s ***** assert (nnz (sym (nan)) == 1) 1968s 9 tests, 9 passed, 0 known failure, 0 skipped 1968s [inst/@sym/prod.m] 1968s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/prod.m 1968s ***** error prod (sym(1), 2, 3) 1968s ***** error prod (sym(1), 42) 1969s ***** shared x,y,z 1969s syms x y z 1969s ***** assert (isequal (prod (x), x)) 1969s ***** assert (isequal (prod ([x y z]), x*y*z)) 1969s ***** assert (isequal (prod ([x; y; z]), x*y*z)) 1969s ***** assert (isequal (prod ([x y z], 1), [x y z])) 1970s ***** assert (isequal (prod ([x y z], 2), x*y*z)) 1970s ***** shared a,b 1970s b = [1 2; 3 4]; a = sym(b); 1970s ***** assert (isequal (prod(a), prod(b))) 1970s ***** assert (isequal (prod(a,1), prod(b,1))) 1970s ***** assert (isequal (prod(a,2), prod(b,2))) 1970s ***** test 1970s % weird inputs 1970s a = prod('xx', sym(1)); 1970s assert (isequal (a, sym('xx'))) 1970s 11 tests, 11 passed, 0 known failure, 0 skipped 1970s [inst/@sym/chebyshevT.m] 1970s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/chebyshevT.m 1970s ***** error chebyshevT (sym(1)) 1971s ***** error chebyshevT (sym(1), 2, 3) 1971s ***** assert (isequaln (chebyshevT (2, sym(nan)), sym(nan))) 1971s ***** shared x 1971s syms x 1971s ***** assert(isequal(chebyshevT(0, x), sym(1))) 1971s ***** assert(isequal(chebyshevT(1, x), x)) 1971s ***** assert(isequal(chebyshevT(2, x), 2*x*x - 1)) 1971s ***** assert(isequal(chebyshevT([0 1 2], x), [sym(1) x (2*x*x-1)])) 1972s ***** test 1972s % round trip 1972s syms n z 1972s f = chebyshevT (n, z); 1972s h = function_handle (f, 'vars', [n z]); 1972s A = h (1.1, 2.2); 1972s B = chebyshevT (1.1, 2.2); 1972s assert (A, B) 1972s 8 tests, 8 passed, 0 known failure, 0 skipped 1972s [inst/@sym/findsym.m] 1972s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/findsym.m 1972s ***** assert (strcmp (findsym (sym(2)), '')); 1972s ***** shared x,y,f 1972s x=sym('x'); y=sym('y'); f=x^2+3*x*y-y^2; 1972s ***** assert (strcmp (findsym (f), 'x,y')); 1972s ***** assert (strcmp (findsym (f,1), 'x')); 1972s ***** test 1972s % test order of returned vars 1972s syms x y a b c xx 1972s % https://www.mathworks.com/matlabcentral/newsreader/view_thread/237730 1972s alpha = sym('alpha'); 1972s assert (strcmp (findsym(b*xx*exp(alpha) + c*sin(a*y), 2), 'xx,y')) 1972s 4 tests, 4 passed, 0 known failure, 0 skipped 1972s [inst/@sym/iscolumn.m] 1972s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/iscolumn.m 1972s ***** assert (iscolumn (sym ([1]))) 1972s ***** assert (iscolumn (sym ([1 2 3]'))) 1972s ***** assert (~iscolumn (sym ([]))) 1972s ***** assert (~iscolumn (sym ([1 2 3]))) 1972s ***** assert (~iscolumn (sym ([1 2; 3 4]))) 1972s 5 tests, 5 passed, 0 known failure, 0 skipped 1972s [inst/@sym/tril.m] 1972s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/tril.m 1972s ***** test 1972s syms x 1972s assert (isequal (tril(x), x)) 1972s ***** test 1972s % with symbols 1972s syms x 1972s A = [x 2*x; 3*x 4*x]; 1972s assert (isequal (tril(A), [x 0; 3*x 4*x])) 1974s ***** test 1974s % diagonal shifts 1974s B = round(10*rand(3,4)); 1974s A = sym(B); 1974s assert (isequal (tril(A), tril(B))) 1974s assert (isequal (tril(A,0), tril(B,0))) 1974s assert (isequal (tril(A,1), tril(B,1))) 1974s assert (isequal (tril(A,-1), tril(B,-1))) 1975s ***** test 1975s % double array pass through 1975s B = round(10*rand(3,4)); 1975s assert (isequal (tril(B,sym(1)), tril(B,1))) 1975s assert (isa (tril(B,sym(1)), 'double')) 1975s 4 tests, 4 passed, 0 known failure, 0 skipped 1975s [inst/@sym/eq.m] 1975s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/eq.m 1975s ***** test 1975s % simple tests with scalar numbers 1975s assert (logical (sym(1) == sym(1))) 1975s assert (logical (sym(1) == 1)) 1975s assert (~logical (sym(1) == 0)) 1975s assert (isequal (sym(1) == sym(1), sym(true))) 1975s assert (isequal (sym(1) == 1, sym(true))) 1975s assert (isequal (sym(1) == 0, sym(false))) 1975s ***** test 1975s % Type of the output is sym or logical? 1975s % FIXME: in current version, they are sym 1975s e = sym(1) == sym(1); 1975s %assert (islogical (e)) 1975s assert (isa (e, 'sym')) 1975s ***** test 1975s % things involving a variable are usually not bool but sym. 1975s % (SMT behaviour says always, FIXME: currently we differ.) 1975s syms x 1975s e = x == 0; 1975s assert (~islogical (e)) 1975s assert (isa (e, 'sym')) 1975s ***** test 1975s % ... except of course via cancelation 1975s syms x 1975s e = x - x == 0; 1975s assert (logical (e)) 1975s assert (isequal (e, sym(true))) 1975s ***** test 1975s % array == array 1975s a = sym([1 2; 3 4]); 1975s y = a == a; 1975s assert (isequal( size(y), [2 2])) 1975s assert (isequal (y, sym([true true; true true]))) 1975s assert (all(all(y))) 1975s y = a == 1; 1975s assert (isequal( size(y), [2 2])) 1975s assert (isequal (y, sym([true false; false false]))) 1975s assert (any(any(y))) 1975s y = a == 42; 1975s assert (isequal( size(y), [2 2])) 1975s assert (isequal (y, sym([false false; false false]))) 1975s ***** test 1975s % more array == array 1975s D = [0 1; 2 3]; 1975s A = [sym(0) 1; sym(2) 3]; 1975s DZ = D - D; 1975s assert (isequal (logical(A == A), [true true; true true])) 1975s assert (isequal (logical(A == D), [true true; true true])) 1975s assert (isequal (logical(A - D == DZ), [true true; true true])) 1975s assert (all (all ( A == A ))) 1975s assert (all (all ( A == D ))) 1975s assert (all (all ( A - D == DZ ))) 1976s ***** test 1976s % logical output, right shape, etc 1976s t = true; f = false; 1976s a = sym([0 1 2; 3 4 5]); 1976s b = sym([0 1 1; 3 5 5]); 1976s e = a == b; 1976s eexp = sym(logical([1 1 0; 1 0 1])); 1976s assert (isequal (e, eexp)) 1976s a = sym([0 1 2]); 1976s b = sym([0 1 1]); 1976s e = a == b; 1976s eexp = sym(logical([1 1 0])); 1976s assert (isequal (e, eexp)) 1976s e = a' == b'; 1976s eexp = eexp.'; % is/was bug here with ' 1976s assert (isequal (e, eexp)) 1976s ***** test 1976s % empty matrices compare to correct empty size 1976s a = zeros (sym(3), 0); 1976s assert (size (a == a), [3, 0]) 1976s a = zeros (sym(0), 2); 1976s assert (size (a == a), [0, 2]) 1976s 8 tests, 8 passed, 0 known failure, 0 skipped 1976s [inst/@sym/subsref.m] 1976s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/subsref.m 1976s ***** shared a,b 1976s b = [1:4]; 1976s a = sym(b); 1977s ***** assert(isequal( a(1), b(1) )) 1977s ***** assert(isequal( a(2), b(2) )) 1977s ***** assert(isequal( a(4), b(4) )) 1977s ***** assert(isempty( a([]) )) 1977s ***** shared a,b 1977s b = [1:4]; b = [b; 3*b; 5*b]; 1977s a = sym(b); 1977s ***** assert(isequal( a(1), b(1) )) 1977s ***** assert(isequal( a(2), b(2) )) 1977s ***** assert(isequal( a(4), b(4) )) 1977s ***** assert(isequal( a(:,:), a )) 1977s ***** assert(isequal( a(1:2,1:3), a(1:2,1:3) )) 1977s ***** assert(isequal( a(1:2:3,[1 2 4]), b(1:2:3,[1 2 4]) )) 1977s ***** assert(isequal( a(1:2:3,[4 2 3 1]), b(1:2:3,[4 2 3 1]) )) 1977s ***** assert(isequal( a(1:2:3,[4 1 1 1]), b(1:2:3,[4 1 1 1]) )) 1977s ***** assert(isequal( a([],:), b([],:) )) 1977s ***** assert(isequal( size(a([],:)), [0 4] )) 1977s ***** assert(isequal( a(1:2,[]), b(1:2,[]) )) 1978s ***** assert(isequal( size(a(1:2,[])), [2 0] )) 1978s ***** assert(isempty( a(1:2,[]) )) 1978s ***** assert(isempty( a([],[]) )) 1978s ***** assert(isequal( a([],[]), sym([]) )) 1978s ***** assert(~isequal( a(1:2,[]), sym([]) )) 1978s ***** shared e 1978s e = sym([1 3 5; 2 4 6]); 1978s ***** assert(isequal( e(:), sym((1:6)') )) 1978s ***** assert(isequal( e([1 2 3]), sym([1 2 3]) )) 1978s ***** assert(isequal( e([1; 3; 4]), sym([1; 3; 4]) )) 1978s ***** assert(isempty( e([]) )) 1978s ***** assert(isempty( e('') )) 1978s ***** assert(isequal( e([]), sym([]) )) 1978s ***** shared a,b 1978s b = 1:5; a = sym(b); 1978s ***** assert(isequal( a([1 2 5]), b([1 2 5]) )) 1978s ***** assert(isequal( a([1; 2; 5]), b([1; 2; 5]) )) 1978s ***** shared x 1978s syms x 1978s ***** test 1978s % logical with empty result 1978s assert(isempty( x(false) )) 1978s a = [x x]; 1978s assert(isempty( a([false false]) )) 1978s ***** test 1978s % issue 18, scalar access 1978s assert(isequal( x(1), x )) 1978s assert(isequal( x(true), x )) 1978s ***** shared 1978s ***** test 1978s % older access tests 1978s syms x 1978s f = [x 2; 3 4*x]; 1978s % element access 1978s assert (logical( f(1,1) == x )) 1978s assert (logical( f(1,2) == 2 )) 1978s % linear access of 2d array 1978s assert (logical( f(1) == x )) 1978s assert (logical( f(2) == 3 )) % column based 1978s assert (logical( f(3) == 2 )) 1979s ***** shared a,b 1979s % effectively a random matrix 1979s a = reshape( round(50*(sin(1:20)+1)), 5,4); 1979s b = sym(a); 1979s ***** test 1979s % older array refs test 1979s assert (logical(b(1,1) == a(1,1))) 1979s assert (logical(b(3,1) == a(3,1))) 1979s assert (logical(b(1,3) == a(1,3))) 1979s assert (logical(b(4,4) == a(4,4))) 1979s ***** test 1979s % older array refs test: linear indices 1979s assert (logical(b(1) == a(1))) 1979s assert (logical(b(3) == a(3))) 1979s assert (logical(b(13) == a(13))) 1979s ***** test 1979s % older array refs test: end 1979s assert (all(all(logical( b(end,1) == a(end,1) )))) 1979s assert (all(all(logical( b(2,end) == a(2,end) )))) 1979s assert (all(all(logical( b(end,end) == a(end,end) )))) 1979s assert (all(all(logical( b(end-1,1) == a(end-1,1) )))) 1979s assert (all(all(logical( b(2,end-1) == a(2,end-1) )))) 1979s assert (all(all(logical( b(end-1,end-1) == a(end-1,end-1) )))) 1980s ***** shared 1980s ***** test 1980s % older slicing tests 1980s syms x 1980s a = [1 2 3 4 5 6]; a = [a; 3*a; 5*a; 2*a; 4*a]; 1980s b = sym(a); 1980s assert (isequal( b(:,1), a(:,1) )) 1980s assert (isequal( b(:,2), a(:,2) )) 1980s assert (isequal( b(1,:), a(1,:) )) 1980s assert (isequal( b(2,:), a(2,:) )) 1980s assert (isequal( b(:,:), a(:,:) )) 1980s assert (isequal( b(1:3,2), a(1:3,2) )) 1980s assert (isequal( b(1:4,:), a(1:4,:) )) 1980s assert (isequal( b(1:2:5,:), a(1:2:5,:) )) 1980s assert (isequal( b(1:2:4,:), a(1:2:4,:) )) 1980s assert (isequal( b(2:2:4,3), a(2:2:4,3) )) 1980s assert (isequal( b(2:2:4,3), a(2:2:4,3) )) 1981s ***** test 1981s % 2D arrays 1981s b = [1:4]; b = [b; 3*b; 5*b]; 1981s a = sym(b); 1981s I = rand(size(b)) > 0.5; 1981s assert (isequal (a(I), b(I))) 1981s I = I(:); 1981s assert (isequal (a(I), b(I))) 1981s I = I'; 1981s assert (isequal (a(I), b(I))) 1981s I = logical(zeros(size(b))); 1981s assert (isequal (a(I), b(I))) 1982s ***** test 1982s % 1D arrays, does right with despite warning 1982s r = [1:6]; 1982s ar = sym(r); 1982s c = r'; 1982s ac = sym(c); 1982s Ir = rand(size(r)) > 0.5; 1982s Ic = rand(size(c)) > 0.5; 1982s assert (isequal (ar(Ir), r(Ir))) 1982s assert (isequal (ac(Ic), c(Ic))) 1982s assert (isequal (ar(Ic), r(Ic))) 1982s assert (isequal (ac(Ir), c(Ir))) 1983s ***** test 1983s % rccross tests 1983s B = [1 2 3 4; 5 6 7 9; 10 11 12 13]; 1983s A = sym(B); 1983s assert (isequal (A([1 3],[2 3]), B([1 3], [2 3]) )) 1983s assert (isequal (A(1,[2 3]), B(1,[2 3]) )) 1983s assert (isequal (A([1 2],4), B([1 2],4) )) 1983s assert (isequal (A([2 1],[4 2]), B([2 1],[4 2]) )) 1983s assert (isequal (A([],[]), B([],[]) )) 1984s ***** error 1984s % issue #445 1984s A = sym([10 11]); 1984s A(1.1) 1984s ***** error 1984s % issue #445 1984s A = sym([10 11]); 1984s A(sym(4)/3) 1984s ***** error 1984s % issue #445 1984s A = sym([1 2; 3 4]); 1984s A(1.1, 1) 1984s ***** error 1984s % issue #445 1984s A = sym([1 2; 3 4]); 1984s A(1, sym(4)/3) 1984s ***** error 1984s A = sym([1 2; 3 4]); 1984s A(5) 1984s ***** shared a, b 1984s a = [1 2 3 5; 4 5 6 9; 7 5 3 2]; 1984s b = sym (a); 1984s ***** test 1984s c = true; 1984s assert (isequal (a(c), b(c))) 1984s c = false; 1984s assert (isequal (a(c), b(c))) 1984s ***** test 1984s c = [false true]; 1984s assert (isequal (a(c), b(c))) 1984s d = c | true; 1984s assert (isequal (a(d), b(d))) 1984s d = c & false; 1984s assert (isequal (a(d), b(d))) 1984s ***** test 1984s c = [false true false true; true false true false; false true false true]; 1984s assert (isequal (a(c), b(c))) 1984s d = c | true; 1984s assert (isequal (a(d), b(d))) 1984s d = c & false; 1984s assert (isequal (a(d), b(d))) 1984s ***** test 1984s c = [false true false true false]; 1984s assert (isequal (a(c), b(c))) 1984s d = c | true; 1984s assert (isequal (a(d), b(d))) 1984s d = c & false; 1984s assert (isequal (a(d), b(d))) 1985s ***** test 1985s c = [false; true; false; true; false]; 1985s assert (isequal (a(c), b(c))) 1985s d = c | true; 1985s assert (isequal (a(d), b(d))) 1985s d = c & false; 1985s assert (isequal (a(d), b(d))) 1985s ***** test 1985s c = [false true; false true; true false]; 1985s assert (isequal (a(c), b(c))) 1985s d = c | true; 1985s assert (isequal (a(d), b(d))) 1985s d = c & false; 1985s assert (isequal (a(d), b(d))) 1985s ***** shared 1985s ***** test 1985s % Orientation of empty results of logical indexing on row or column vectors 1985s r = [1:6]; 1985s c = r'; 1985s ar = sym(r); 1985s ac = sym(c); 1985s assert (isequal (ar(false), r(false))) 1985s assert (isequal (ac(false), c(false))) 1985s assert (isequal (ar(false (1, 6)), r(false (1, 6)))) 1985s assert (isequal (ac(false (1, 6)), c(false (1, 6)))) 1985s assert (isequal (ar(false (6, 1)), r(false (6, 1)))) 1985s assert (isequal (ac(false (6, 1)), c(false (6, 1)))) 1985s 50 tests, 50 passed, 0 known failure, 0 skipped 1985s [inst/@sym/cosh.m] 1985s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/cosh.m 1985s ***** error cosh (sym(1), 2) 1985s ***** assert (isequaln (cosh (sym(nan)), sym(nan))) 1985s ***** shared x, d 1985s d = 1; 1985s x = sym('1'); 1985s ***** test 1985s f1 = cosh(x); 1985s f2 = cosh(d); 1985s assert( abs(double(f1) - f2) < 1e-15 ) 1985s ***** test 1985s D = [d d; d d]; 1985s A = [x x; x x]; 1985s f1 = cosh(A); 1985s f2 = cosh(D); 1985s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1986s ***** test 1986s % round trip 1986s y = sym('y'); 1986s A = cosh (d); 1986s f = cosh (y); 1986s h = function_handle (f); 1986s B = h (d); 1986s assert (A, B, -eps) 1986s 5 tests, 5 passed, 0 known failure, 0 skipped 1986s [inst/@sym/symreplace.m] 1986s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/symreplace.m 1986s ***** test 1986s % start with assumptions on x then remove them 1986s syms x positive 1986s f = x*10; 1986s symreplace(x, sym('x')) 1986s assert(isempty(assumptions(x))) 1986s ***** test 1986s % replace x with y 1986s syms x 1986s f = x*10; 1986s symreplace(x, sym('y')) 1986s assert( isequal (f, 10*sym('y'))) 1986s ***** test 1986s % gets inside cells 1986s syms x 1986s f = {x 1 2 {3 4*x}}; 1986s symreplace(x, sym('y')) 1986s syms y 1986s assert( isequal (f{1}, y)) 1986s assert( isequal (f{4}{2}, 4*y)) 1986s ***** test 1986s % gets inside structs/cells 1986s syms x 1986s my.foo = {x 1 2 {3 4*x}}; 1986s my.bar = x; 1986s g = {'ride' my 'motor' 'sicle'}; 1986s symreplace(x, sym('y')) 1986s syms y 1986s f = g{2}; 1986s assert( isequal (f.foo{1}, y)) 1986s assert( isequal (f.foo{4}{2}, 4*y)) 1986s assert( isequal (f.bar, y)) 1986s 4 tests, 4 passed, 0 known failure, 0 skipped 1986s [inst/@sym/imag.m] 1986s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/imag.m 1986s ***** assert (isequal (imag (sym (4) + 3i),3)) 1986s ***** test 1986s syms x y real 1986s z = x + 1i*y; 1986s assert (isequal (imag (z),y)) 1986s ***** test 1986s syms x y real 1986s Z = [4 x + 1i*y; 1i*y 4 + 3i]; 1986s assert (isequal (imag (Z),[0 y; y 3])) 1987s ***** test 1987s syms x real 1987s d = exp (x*i); 1987s assert (isequal (imag (d), sin (x))) 1987s ***** test 1987s % round trip 1987s syms x 1987s d = 3 - 5i; 1987s f = imag (x); 1987s A = imag (d); 1987s h = function_handle (f); 1987s B = h (d); 1987s assert (A, B) 1987s 5 tests, 5 passed, 0 known failure, 0 skipped 1987s [inst/@sym/cos.m] 1987s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/cos.m 1987s ***** error cos (sym(1), 2) 1987s ***** assert (isequaln (cos (sym(nan)), sym(nan))) 1987s ***** shared x, d 1987s d = 1; 1987s x = sym('1'); 1987s ***** test 1987s f1 = cos(x); 1987s f2 = cos(d); 1987s assert( abs(double(f1) - f2) < 1e-15 ) 1987s ***** test 1987s D = [d d; d d]; 1987s A = [x x; x x]; 1987s f1 = cos(A); 1987s f2 = cos(D); 1987s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1987s ***** test 1987s % round trip 1987s y = sym('y'); 1987s A = cos (d); 1987s f = cos (y); 1987s h = function_handle (f); 1987s B = h (d); 1987s assert (A, B, -eps) 1987s 5 tests, 5 passed, 0 known failure, 0 skipped 1987s [inst/@sym/acosd.m] 1987s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/acosd.m 1987s ***** error acosd (sym(1), 2) 1987s ***** assert (isequaln (acosd (sym(nan)), sym(nan))) 1987s ***** test 1987s f1 = acosd (sym(1)/2); 1987s f2 = acosd (1/2); 1987s assert (double (f1), f2, -eps) 1987s ***** test 1987s D = [1 2; 3 4]/4; 1987s A = sym([1 2; 3 4])/4; 1987s f1 = acosd (A); 1987s f2 = acosd (D); 1987s assert (double (f1), f2, -eps) 1988s 4 tests, 4 passed, 0 known failure, 0 skipped 1988s [inst/@sym/erfinv.m] 1988s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/erfinv.m 1988s ***** error erfinv (sym(1), 2) 1988s ***** assert (isequaln (erfinv (sym(nan)), sym(nan))) 1988s ***** shared x, d 1988s d = 1/2; 1988s x = sym('1/2'); 1988s ***** test 1988s f1 = erfinv(x); 1988s f2 = erfinv(d); 1988s assert( abs(double(f1) - f2) < 1e-15 ) 1988s ***** test 1988s D = [d d; d d]; 1988s A = [x x; x x]; 1988s f1 = erfinv(A); 1988s f2 = erfinv(D); 1988s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1988s ***** test 1988s % round trip 1988s y = sym('y'); 1988s A = erfinv (d); 1988s f = erfinv (y); 1988s h = function_handle (f); 1988s B = h (d); 1988s assert (A, B, -eps) 1988s 5 tests, 5 passed, 0 known failure, 0 skipped 1988s [inst/@sym/expint.m] 1988s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/expint.m 1988s ***** error expint (sym(1), 2, 3) 1988s ***** test 1988s f1 = expint(sym(1)); 1988s f2 = expint(1); 1988s assert( abs(double(f1) - f2) < 1e-15 ) 1988s ***** test 1988s f1 = expint(sym(1i)); 1988s f2 = expint(1i); 1988s assert( abs(double(f1) - f2) < 1e-15 ) 1988s ***** test 1988s D = [1 2; 3 4]; 1988s A = sym(D); 1988s f1 = expint(A); 1988s f2 = expint(D); 1988s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1988s ***** test 1988s syms x 1988s A = expint(x); 1988s B = expint(1, x); 1988s assert (isequal (A, B)) 1988s ***** test 1988s syms x 1988s A = exp(-x)/x; 1988s B = expint(0, x); 1988s assert (isequal (A, B)) 1989s ***** test 1989s % round trip 1989s syms x 1989s A = expint (3); 1989s f = expint (x); 1989s h = function_handle (f); 1989s B = h (3); 1989s assert (A, B, -eps) 1989s ***** error 1989s % round trip 1989s syms n x 1989s f = expint (n, x); 1989s h = function_handle (f); 1989s 8 tests, 8 passed, 0 known failure, 0 skipped 1989s [inst/@sym/numel.m] 1989s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/numel.m 1989s ***** test 1989s a = sym([1 2 3]); 1989s assert(numel(a) == 3); 1989s ***** test 1989s % 2D array 1989s a = sym([1 2 3; 4 5 6]); 1989s assert(numel(a) == 6); 1989s ***** test 1989s % empty 1989s a = sym([]); 1989s assert(numel(a) == 0); 1989s 3 tests, 3 passed, 0 known failure, 0 skipped 1989s [inst/@sym/charpoly.m] 1989s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/charpoly.m 1989s ***** error charpoly (sym (1), 1, 2) 1990s ***** error charpoly (sym ([1 2])) 1991s ***** test 1991s syms x 1991s A = sym([1 2; 3 4]); 1991s assert (isequal (charpoly(A, x), x^2 - 5*x -2)) 1991s ***** test 1991s syms x 1991s A = sym([1 2; 3 4]); 1991s B = sym([1 -5 -2]); 1991s assert (isequal (charpoly(A), B)) 1991s ***** test 1991s syms x 1991s A = sym([x x; x x]); 1991s B = sym([1 -2*x 0]); 1991s assert (isequal (charpoly(A), B)) 1991s 5 tests, 5 passed, 0 known failure, 0 skipped 1991s [inst/@sym/fliplr.m] 1991s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/fliplr.m 1991s ***** test 1991s % simple 1991s syms x 1991s A = [x 2; sym(pi) x]; 1991s B = [2 x; x sym(pi)]; 1991s assert (isequal (fliplr(A), B)) 1991s ***** test 1991s % simple, odd # cols 1991s syms x 1991s A = [x 2 sym(pi); x 1 2]; 1991s B = [sym(pi) 2 x; 2 1 x]; 1991s assert (isequal (fliplr(A), B)) 1991s ***** test 1991s % scalar 1991s syms x 1991s assert (isequal (fliplr(x), x)) 1991s 3 tests, 3 passed, 0 known failure, 0 skipped 1991s [inst/@sym/isconstant.m] 1991s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/isconstant.m 1991s ***** test 1991s syms x 1991s A = [x 2 3]; 1991s B = [false true true]; 1991s assert (isequal (isconstant (A), B)) 1991s /usr/lib/python3/dist-packages/sympy/matrices/common.py:1989: SymPyDeprecationWarning: 1991s 1991s non-Expr objects in a Matrix is deprecated. Matrix represents 1991s a mathematical matrix. To represent a container of non-numeric 1991s entities, Use a list of lists, TableForm, NumPy array, or some 1991s other data structure instead. 1991s 1991s See https://docs.sympy.org/latest/explanation/active-deprecations.html#deprecated-non-expr-in-matrix 1991s for details. 1991s 1991s This has been deprecated since SymPy version 1.9. It 1991s will be removed in a future version of SymPy. 1991s 1991s return self._eval_applyfunc(f) 1991s ***** test 1991s syms x 1991s A = [x 2; 3 x]; 1991s B = [false true; true false]; 1991s assert (isequal (isconstant (A), B)) 1992s 2 tests, 2 passed, 0 known failure, 0 skipped 1992s [inst/@sym/flipud.m] 1992s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/flipud.m 1992s ***** test 1992s % simple 1992s syms x 1992s A = [x 2; sym(pi) x]; 1992s B = [sym(pi) x; x 2]; 1992s assert (isequal (flipud(A), B)) 1992s ***** test 1992s % simple, odd # rows 1992s syms x 1992s A = [x 2; sym(pi) x; [1 2]]; 1992s B = [[1 2]; sym(pi) x; x 2]; 1992s assert (isequal (flipud(A), B)) 1992s ***** test 1992s % scalar 1992s syms x 1992s assert (isequal (flipud(x), x)) 1992s 3 tests, 3 passed, 0 known failure, 0 skipped 1992s [inst/@sym/hypot.m] 1992s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/hypot.m 1992s ***** assert (isequal (hypot (sym(3), 4), sym(5))) 1992s ***** test 1992s % compare to @double (note Matlab hypot only takes 2 inputs) 1992s A = hypot (hypot ([1 2 3], [4 5 6]), [7 8 9]); 1992s B = double (hypot (sym([1 2 3]), [4 5 6], [7 8 9])); 1992s assert (A, B, -eps) 1992s ***** test 1992s % compare to @double, with complex 1992s A = hypot ([1+2i 3+4i], [1 3+1i]); 1992s B = double (hypot (sym([1+2i 3+4i]), [1 3+1i])); 1992s assert (A, B, -eps) 1993s ***** test 1993s % matrices 1993s x = sym([1 -2; 0 3]); 1993s y = sym([0 0; 8 4]); 1993s A = hypot (x, y); 1993s B = sym([1 2; 8 5]); 1993s assert (isequal (A, B)) 1993s 4 tests, 4 passed, 0 known failure, 0 skipped 1993s [inst/@sym/factorial.m] 1993s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/factorial.m 1993s ***** error factorial (sym(1), 2) 1993s ***** xtest 1993s assert (isequaln (factorial (sym(nan)), sym(nan))) 1993s !!!!! known failure 1993s assert (isequaln (factorial (sym (nan)), sym (nan))) failed 1993s ***** shared x, d 1993s d = 1; 1993s x = sym('1'); 1993s ***** test 1993s f1 = factorial(x); 1993s f2 = factorial(d); 1993s assert( abs(double(f1) - f2) < 1e-15 ) 1993s ***** test 1993s D = [d d; d d]; 1993s A = [x x; x x]; 1993s f1 = factorial(A); 1993s f2 = factorial(D); 1993s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1993s ***** test 1993s % round trip 1993s y = sym('y'); 1993s A = factorial (d); 1993s f = factorial (y); 1993s h = function_handle (f); 1993s B = h (d); 1993s assert (A, B, -eps) 1993s 5 tests, 4 passed, 1 known failure, 0 skipped 1993s [inst/@sym/vertcat.m] 1993s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/vertcat.m 1993s ***** test 1993s % basic 1993s syms x 1993s A = [x; x]; 1993s B = vertcat(x, x); 1993s C = vertcat(x, x, x); 1993s assert (isa (A, 'sym')) 1993s assert (isa (B, 'sym')) 1993s assert (isa (C, 'sym')) 1993s assert (isequal (size(A), [2 1])) 1993s assert (isequal (size(B), [2 1])) 1993s assert (isequal (size(C), [3 1])) 1993s ***** test 1993s % basic, part 2 1993s syms x 1993s A = [x; 1]; 1993s B = [1; x]; 1993s C = [1; 2; x]; 1993s assert (isa (A, 'sym')) 1993s assert (isa (B, 'sym')) 1993s assert (isa (C, 'sym')) 1993s assert (isequal (size(A), [2 1])) 1993s assert (isequal (size(B), [2 1])) 1993s assert (isequal (size(C), [3 1])) 1993s ***** test 1993s % column vectors 1993s a = [sym(1); 2]; 1993s b = [sym(3); 4]; 1993s assert (isequal ( [a;b] , [1; 2; 3; 4] )) 1993s assert (isequal ( [a;b;a] , [1; 2; 3; 4; 1; 2] )) 1994s ***** test 1994s % row vectors 1994s a = [sym(1) 2]; 1994s b = [sym(3) 4]; 1994s assert (isequal ( [a;b] , [1 2; 3 4] )) 1994s assert (isequal ( [a;b;a] , [1 2; 3 4; 1 2] )) 1994s ***** test 1994s % row vector, other row 1994s a = [sym(1) 2]; 1994s assert (isequal ( [a; [sym(3) 4]] , [1 2; 3 4] )) 1994s ***** test 1994s % empty vectors 1994s v = [sym(1) sym(2)]; 1994s a = [v; []]; 1994s assert (isequal (a, v)) 1994s a = [[]; v; []]; 1994s assert (isequal (a, v)) 1994s a = [v; []; []]; 1994s assert (isequal (a, v)) 1994s ***** xtest 1994s % FIXME: is this Octave bug? worth worrying about 1994s syms x 1994s a = [x; [] []]; 1994s assert (isequal (a, x)) 1995s !!!!! known failure 1995s octave_base_value::map_value(): wrong type argument 'null_matrix' 1995s ***** test 1995s % more empty vectors 1995s v = [sym(1) sym(2)]; 1995s q = sym(ones(0, 2)); 1995s assert (isequal ([v; q], v)) 1995s ***** error 1995s v = [sym(1) sym(2)]; 1995s q = sym(ones(0, 3)); 1995s w = vertcat(v, q); 1995s ***** test 1995s % Octave 3.6 bug: should pass on 3.8.1 and matlab 1995s a = [sym(1) 2]; 1995s assert (isequal ( [a; [3 4]] , [1 2; 3 4] )) 1995s assert (isequal ( [a; sym(3) 4] , [1 2; 3 4] )) 1995s % more examples 1995s syms x 1995s [x [x x]; x x x]; 1995s [[x x] x; x x x]; 1995s [[x x] x; [x x] x]; 1995s [x x x; [x x] x]; 1995s ***** test 1995s % issue #700 1995s A = sym ([1 2]); 1995s B = simplify (A); 1995s assert (isequal ([B; A], [A; B])) 1995s 11 tests, 10 passed, 1 known failure, 0 skipped 1995s [inst/@sym/logspace.m] 1995s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/logspace.m 1995s ***** test 1995s % default argument for N 1995s A = logspace(0, 2); 1995s assert (length (A) == 50); 1995s ***** test 1995s % special case: pi as end pt 1995s A = logspace(-sym(3), sym(pi), 3); 1995s assert (isequal (A(end), sym(pi))) 1995s ***** test 1995s A = logspace(-sym(4), 0, 3); 1995s B = [sym(1)/10000 sym(1)/100 sym(1)]; 1995s assert (isequal (A, B)) 1996s ***** test 1996s % vpa support, might need recent sympy for sympy issue #10063 1996s n = 32; 1996s A = logspace(-vpa(1,n), 0, 3); 1996s B = [10^(-vpa(1,n)) 10^(-vpa(sym(1)/2,n)) vpa(1,n)]; 1996s assert (isequal (A, B)) 1996s assert (max(abs(double(A) - logspace(-1, 0, 3))) < 1e-15) 1996s 4 tests, 4 passed, 0 known failure, 0 skipped 1996s [inst/@sym/any.m] 1996s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/any.m 1996s ***** test 1996s % matrix 1996s a = [0 0; 1 0]; 1996s s = sym(a); 1996s assert (isequal (any (s), any (a))) 1996s assert (isequal (any (s,1), any (a,1))) 1996s assert (isequal (any (s,2), any (a,2))) 1996s ***** test 1996s % vector 1996s a = [0 1 0]; 1996s s = sym(a); 1996s assert (isequal (any (s), any (a))) 1996s assert (isequal (any (s,1), any (a,1))) 1996s assert (isequal (any (s,2), any (a,2))) 1996s ***** test 1996s % should fail on symbols 1996s syms x 1996s s = [0 1 x]; 1996s try 1996s any (s) 1996s waserr = false; 1996s catch 1996s waserr = true; 1996s end 1996s assert (waserr) 1996s 3 tests, 3 passed, 0 known failure, 0 skipped 1996s [inst/@sym/erfcinv.m] 1996s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/erfcinv.m 1996s ***** error erfcinv (sym(1), 2) 1996s ***** assert (isequaln (erfcinv (sym(nan)), sym(nan))) 1996s ***** shared x, d 1996s d = 1; 1996s x = sym('1'); 1996s ***** test 1996s f1 = erfcinv(x); 1996s f2 = erfcinv(d); 1996s assert( abs(double(f1) - f2) < 1e-15 ) 1996s ***** test 1996s D = [d d; d d]; 1996s A = [x x; x x]; 1996s f1 = erfcinv(A); 1996s f2 = erfcinv(D); 1996s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1997s ***** test 1997s % round trip 1997s y = sym('y'); 1997s A = erfcinv (d); 1997s f = erfcinv (y); 1997s h = function_handle (f); 1997s B = h (d); 1997s assert (A, B, -eps) 1997s 5 tests, 5 passed, 0 known failure, 0 skipped 1997s [inst/@sym/repmat.m] 1997s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/repmat.m 1997s ***** test 1997s % simple 1997s syms x 1997s A = [x x x; x x x]; 1997s assert (isequal (repmat(x, 2, 3), A)) 1997s ***** test 1997s % block cf double 1997s A = [1 2 3; 4 5 6]; 1997s B = sym(A); 1997s C = repmat(A, 2, 3); 1997s D = repmat(B, 2, 3); 1997s assert (isequal (C, D)) 1998s ***** test 1998s % empty 1998s A = repmat(sym([]), 2, 3); 1998s assert (isempty(A)); 1998s assert (isequal (size(A), [0 0])) 1998s ***** test 1998s % more empties 1998s A = repmat(sym(pi), [0 0]); 1998s assert (isequal (size(A), [0 0])) 1998s A = repmat(sym(pi), [0 3]); 1998s assert (isequal (size(A), [0 3])) 1998s A = repmat(sym(pi), [2 0]); 1998s assert (isequal (size(A), [2 0])) 1998s 4 tests, 4 passed, 0 known failure, 0 skipped 1998s [inst/@sym/exp.m] 1998s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/exp.m 1998s ***** error exp (sym(1), 2) 1998s ***** assert (isequaln (exp (sym(nan)), sym(nan))) 1998s ***** shared x, d 1998s d = 1; 1998s x = sym('1'); 1998s ***** test 1998s f1 = exp(x); 1998s f2 = exp(d); 1998s assert( abs(double(f1) - f2) < 1e-15 ) 1998s ***** test 1998s D = [d d; d d]; 1998s A = [x x; x x]; 1998s f1 = exp(A); 1998s f2 = exp(D); 1998s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 1998s ***** test 1998s % round trip 1998s y = sym('y'); 1998s A = exp (d); 1998s f = exp (y); 1998s h = function_handle (f); 1998s B = h (d); 1998s assert (A, B, -eps) 1998s 5 tests, 5 passed, 0 known failure, 0 skipped 1998s [inst/@sym/ssinint.m] 1998s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/ssinint.m 1998s ***** assert (isequal (ssinint(sym(0)), -sym(pi)/2)) 1999s ***** test 1999s A = ssinint (sym ([0 1])); 1999s B = [-pi/2 -0.62471325642771360426]; 1999s assert( all(all( abs(double(A)-B) < 1e-15 ))) 1999s 2 tests, 2 passed, 0 known failure, 0 skipped 1999s [inst/@sym/intersect.m] 1999s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/intersect.m 1999s ***** test 1999s A = sym([1 2 3]); 1999s B = sym([1 2 4]); 1999s C = intersect(A, B); 1999s D = sym([1 2]); 1999s assert (isequal (C, D)) 1999s ***** test 1999s % one nonsym 1999s A = sym([1 2 3]); 1999s B = [1 2 4]; 1999s C = intersect(A, B); 1999s D = sym([1 2]); 1999s assert (isequal (C, D)) 1999s ***** test 1999s % empty 1999s A = sym([1 2 3]); 1999s C = intersect(A, A); 1999s assert (isequal (C, A)) 1999s ***** test 1999s % empty input 1999s A = sym([1 2]); 1999s C = intersect(A, []); 1999s assert (isequal (C, sym([]))) 1999s ***** test 1999s % scalar 1999s syms x 1999s assert (isequal (intersect([x 1], x), x)) 1999s assert (isequal (intersect(x, x), x)) 1999s ***** test 1999s A = interval(sym(1), 3); 1999s B = interval(sym(2), 5); 1999s C = intersect(A, B); 1999s assert( isequal( C, interval(sym(2), 3))) 1999s 6 tests, 6 passed, 0 known failure, 0 skipped 1999s [inst/@sym/coeffs.m] 1999s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/coeffs.m 1999s ***** error coeffs (sym(1), 2, 3, 4) 1999s ***** error coeffs (sym(1), 2, 'al') 1999s ***** error coeffs (sym(1), 'al') 1999s ***** test 1999s % simple 1999s syms x 1999s [c, t] = coeffs(6*x*x + 27); 1999s assert (isequal (c, [6 27])) 1999s assert (isequal (t, [x*x 1])) 2000s ***** test 2000s % specify a variable 2000s syms x 2000s [c, t] = coeffs(6*x*x + 27, x); 2000s assert (isequal (c, [6 27])) 2000s assert (isequal (t, [x*x 1])) 2000s ***** test 2000s % specify another variable 2000s syms x y 2000s [c, t] = coeffs(6*x + 27, y); 2000s assert (isequal (c, 6*x + 27)) 2000s assert (isequal (t, 1)) 2000s ***** test 2000s % weird SMT order 2000s syms x 2000s a1 = [27 6]; 2000s a2 = [6 27]; 2000s c = coeffs(6*x*x + 27); 2000s assert (isequal (c, a1)) 2000s coeffs(6*x*x + 27); 2000s assert (isequal (ans, a1)) 2000s [c, t] = coeffs(6*x*x + 27); 2000s assert (isequal (c, a2)) 2001s ***** test 2001s % no weird order with "all" 2001s syms x 2001s c = coeffs(6*x*x + 27, 'all'); 2001s assert (isequal (c, [6 0 27])) 2001s ***** test 2001s % "all" 2001s syms x 2001s [c, t] = coeffs(6*x*x + 27, 'all'); 2001s assert (isequal (c, [6 0 27])) 2001s assert (isequal (t, [x^2 x 1])) 2001s ***** test 2001s % "All" 2001s syms x 2001s [c, t] = coeffs(6*x, 'All'); 2001s assert (isequal (c, [6 0])) 2001s assert (isequal (t, [x 1])) 2001s ***** test 2001s % multivariable array 2001s syms x y 2001s [c, t] = coeffs(6*x*x + 27*y*x + 36, [x y]); 2001s a = [6 27 36]; 2001s s = [x^2 x*y 1]; 2001s assert (isequal (c, a)) 2001s assert (isequal (t, s)) 2001s % with list 2001s [c, t] = coeffs(6*x*x + 27*y*x + 36, {x y}); 2001s assert (isequal (c, a)) 2001s assert (isequal (t, s)) 2001s ***** test 2001s % other symbols treated as part of coeffs 2001s syms x y 2001s [c, t] = coeffs(6*x*x + 27*y*x + 36, x); 2001s a = [6 27*y 36]; 2001s s = [x^2 x 1]; 2001s assert (isequal (c, a)) 2001s assert (isequal (t, s)) 2002s ***** error 2002s % TODO: multivariate all not working (https://github.com/cbm755/octsympy/issues/720) 2002s syms x y 2002s [c, t] = coeffs(6*x^2 + 7*y + 19, [x y], 'all'); 2002s ***** test 2002s % empty same as not specifying; maybe not SMT compatible: 2002s % https://github.com/cbm755/octsympy/pull/708#discussion_r94292831 2002s syms x y 2002s [c, t] = coeffs(6*x*x + 27*y*x + 36, {}); 2002s a = [6 27 36]; 2002s assert (isequal (c, a)) 2002s [c, t] = coeffs(6*x*x + 27*y*x + 36); 2002s assert (isequal (c, a)) 2002s ***** test 2002s % no input defaults to all symbols (not symvar to get x) 2002s syms x y 2002s [c, t] = coeffs(6*x*x + 27*y*x + 36); 2002s assert (isequal (c, [6 27 36])) 2002s ***** test 2002s % non sym input 2002s syms x 2002s assert (isequal (coeffs(6, x), sym(6))) 2002s ***** test 2002s % constant input without x 2002s assert (isequal (coeffs(sym(6)), sym(6))) 2003s ***** test 2003s % constant input without x 2003s assert (isequal (coeffs (sym(6), {}), sym(6))) 2003s % irrational coefficients 2003s syms x 2003s f = x^2 + sqrt(sym(2))*x; 2003s [c1, t1] = coeffs (f); 2003s [c2, t2] = coeffs (f, x); 2003s assert (isequal (c1, c2)) 2003s assert (isequal (t1, t2)) 2003s 18 tests, 18 passed, 0 known failure, 0 skipped 2003s [inst/@sym/sort.m] 2003s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/sort.m 2003s ***** error sort (sym(1), 2) 2003s ***** test 2003s f = [sym(1), sym(0)]; 2003s expected = sym([0, 1]); 2003s assert (isequal (sort(f), expected)) 2003s ***** test 2003s f = [sym(1)]; 2003s expected = sym(1); 2003s assert (isequal (sort(f), expected)) 2003s ***** test 2003s f = [sym(3), sym(2), sym(6)]; 2003s s = sort(f); 2003s expected_s = sym([2, 3, 6]); 2003s assert (isequal (s, expected_s)) 2003s ***** test 2003s f = [sym(pi), sin(sym(2)), sqrt(sym(6))]; 2003s s = sort(f); 2003s expected_s = sym([sin(sym(2)), sqrt(sym(6)), sym(pi)]); 2003s assert (isequal (s, expected_s)) 2003s ***** test 2003s f = [sym(1), sym(2); sym(2), sym(pi); sym(pi), sym(1)]; 2003s s = sort(f); 2003s expected_s = ([sym(1), sym(1); sym(2), sym(2); sym(pi), sym(pi)]); 2003s assert (isequal (s, expected_s)) 2004s ***** assert (isequal (sort(sym([])), sym([]))) 2004s ***** error sort([sym('x') 1]) 2004s ***** test 2004s % but with assumptions, symbols can be sorted 2004s p = sym('p', 'positive'); 2004s n = sym('n', 'negative'); 2004s expected_s = [n p]; 2004s s = sort ([p n]); 2004s assert (isequal (s, expected_s)) 2004s 9 tests, 9 passed, 0 known failure, 0 skipped 2004s [inst/@sym/display.m] 2004s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/display.m 2004s ***** test 2004s assert(true) 2004s 1 test, 1 passed, 0 known failure, 0 skipped 2004s [inst/@sym/cot.m] 2004s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/cot.m 2004s ***** error cot (sym(1), 2) 2004s ***** assert (isequaln (cot (sym(nan)), sym(nan))) 2004s ***** shared x, d 2004s d = 1; 2004s x = sym('1'); 2004s ***** test 2004s f1 = cot(x); 2004s f2 = cot(d); 2004s assert( abs(double(f1) - f2) < 1e-15 ) 2004s ***** test 2004s D = [d d; d d]; 2004s A = [x x; x x]; 2004s f1 = cot(A); 2004s f2 = cot(D); 2004s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2004s ***** test 2004s % round trip 2004s y = sym('y'); 2004s A = cot (d); 2004s f = cot (y); 2004s h = function_handle (f); 2004s B = h (d); 2004s assert (A, B, -eps) 2004s 5 tests, 5 passed, 0 known failure, 0 skipped 2004s [inst/@sym/fresnelc.m] 2004s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/fresnelc.m 2004s ***** error fresnelc (sym(1), 2) 2004s ***** test 2004s a = fresnelc(sym(0)); 2004s assert (isequal (a, sym(0))) 2004s ***** test 2004s b = fresnelc(sym('oo')); 2004s assert (isequal (b, sym(1)/2)) 2004s ***** test 2004s % values in a matrix 2004s syms x 2004s a = fresnelc([sym(0) sym('oo') x 1]); 2004s b = [sym(0) sym(1)/2 fresnelc(x) fresnelc(sym(1))]; 2004s assert (isequal (a, b)) 2004s ***** test 2004s % round trip 2004s syms x 2004s f = fresnelc (x); 2004s h = function_handle (f); 2004s A = h (1.1); 2004s B = fresnelc (1.1); 2004s assert (A, B) 2004s 5 tests, 5 passed, 0 known failure, 0 skipped 2004s [inst/@sym/sympy.m] 2004s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/sympy.m 2004s ***** assert (strcmp (sympy (sym(pi)), 'pi')) 2004s ***** assert (strcmp (sympy (sym(1)), 'Integer(1)')) 2004s ***** assert (strcmp (sympy (sym(2)/3), 'Rational(2, 3)')) 2004s ***** assert (strcmp (sympy (sym('x')), 'Symbol(''x'')')) 2004s ***** test 2004s x = sym('x'); 2004s assert (isequal (sym(sympy(x)), x)) 2004s :18: SyntaxWarning: invalid escape sequence '\(' 2004s 5 tests, 5 passed, 0 known failure, 0 skipped 2004s [inst/@sym/erfc.m] 2004s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/erfc.m 2004s ***** error erfc (sym(1), 2) 2004s ***** assert (isequaln (erfc (sym(nan)), sym(nan))) 2004s ***** shared x, d 2004s d = 1; 2004s x = sym('1'); 2004s ***** test 2004s f1 = erfc(x); 2004s f2 = erfc(d); 2004s assert( abs(double(f1) - f2) < 1e-15 ) 2004s ***** test 2004s D = [d d; d d]; 2004s A = [x x; x x]; 2004s f1 = erfc(A); 2004s f2 = erfc(D); 2004s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2005s ***** test 2005s % round trip 2005s y = sym('y'); 2005s A = erfc (d); 2005s f = erfc (y); 2005s h = function_handle (f); 2005s B = h (d); 2005s assert (A, B, -eps) 2005s 5 tests, 5 passed, 0 known failure, 0 skipped 2005s [inst/@sym/angle.m] 2005s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/angle.m 2005s ***** test 2005s Z = [sqrt(sym(3)) + 3*sym(i), 3 + sqrt(sym(3))*sym(i); 1 + sym(i), sym(i)]; 2005s Q = [sym(pi)/3 sym(pi)/6; sym(pi)/4 sym(pi)/2]; 2005s assert( isequal( angle(Z), Q)); 2005s ***** test 2005s % roundtrip 2005s syms x 2005s A = angle (2+2i); 2005s f = angle (x); 2005s h = function_handle (f); 2005s B = h (2+2i); 2005s assert (A, B, -eps) 2005s 2 tests, 2 passed, 0 known failure, 0 skipped 2005s [inst/@sym/isAlways.m] 2005s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/isAlways.m 2005s ***** test 2005s % basics 2005s assert(isAlways(true)) 2005s assert(isAlways(1==1)) 2005s assert(isAlways(sym(1)==sym(1))) 2005s assert(isAlways(sym(1)==1)) 2006s ***** test 2006s % numbers to logic? 2006s assert (isAlways(sym(1))) 2006s assert (isAlways(sym(-1))) 2006s assert (~isAlways(sym(0))) 2006s ***** shared x 2006s syms x 2006s ***** test 2006s % in this case it is boolean 2006s expr = x - x == 0; 2006s assert (logical(expr)) 2006s assert (isAlways(expr)) 2006s % and both are logical type 2006s assert (islogical(logical(expr))) 2006s assert (islogical(isAlways(expr))) 2006s ***** test 2006s % structurally same and mathematically true 2006s % (here expr should be sym, non-boolean) 2006s expr = x == x; 2006s assert (logical(expr)) 2006s assert (isAlways(expr)) 2006s %assert (~islogical(expr)) % FIXME: Issue #56 2006s %assert (isa(expr, 'sym)) 2006s ***** test 2006s % structurally same and mathematically true 2006s % (here expr should be sym, non-boolean) 2006s expr = 1 + x == x + 1; 2006s assert (logical(expr)) 2006s assert (isAlways(expr)) 2006s ***** test 2006s % non-zero numbers are true 2006s assert (isAlways(sym(1))) 2006s assert (isAlways(sym(-10))) 2006s assert (~isAlways(sym(0))) 2006s ***** shared x, y 2006s syms x y 2006s ***** test 2006s % structurally same and mathematically true 2006s % (here expr should be sym, non-boolean) 2006s expr = x*(1+y) == x*(y+1); 2006s assert (logical(expr)) 2006s assert (isAlways(expr)) 2006s assert (islogical(isAlways(expr))) 2006s ***** test 2006s % Now for some differences 2006s % simplest example from SymPy FAQ 2006s expr = x*(1+y) == x+x*y; 2006s assert (~logical(expr)) 2006s assert (isAlways(expr)) 2006s ***** test 2006s % more differences 1, these don't simplify in sympy (as of 2016-01) 2006s expr = (x+1)^2 == x*x + 2*x + 1; 2006s assert (~logical(expr)) 2006s assert (isAlways(expr)) 2006s ***** test 2006s % more differences 2 2006s expr = sin(2*x) == 2*sin(x)*cos(x); 2006s assert (~logical(expr)) 2006s assert (isAlways(expr)) 2006s ***** test 2006s % more differences 3, false 2006s expr = x*(x+y) == x^2 + x*y + 1; 2006s assert (~logical(expr)) 2006s assert (~isAlways(expr)) 2006s assert (~isAlways(expr, 'unknown', 'error')) 2007s ***** test 2007s % logically not equal, math equal 2007s exprn = x*(x+y) ~= x^2 + x*y; 2007s assert (logical(exprn)) 2007s assert (~isAlways(exprn)) 2007s ***** test 2007s % logically not equal, math not equal 2007s exprn = x*(x+y) ~= x^2 + x*y + 1; 2007s assert (logical(exprn)) 2007s assert (isAlways(exprn)) 2007s ***** test 2007s % equal and not equal 2007s e1 = sin(x)^2 + cos(x)^2 == 1; 2007s e2 = sin(x)^2 + cos(x)^2 == 2; 2007s assert (~logical(e1)) 2007s assert (isAlways(e1)) 2007s assert (~logical(e2)) 2007s assert (~isAlways(e2)) 2007s assert (~isAlways(e2, 'unknown', 'error')) 2007s ***** error isAlways(x, 'unknown', 'kevin') 2007s ***** error isAlways(x, 'unknown') 2009s ***** error isAlways(x, 'kevin', 'true') 2009s ***** error 2009s a = [x*(x+y)==x^2+x*y x==y]; 2009s b = isAlways(a, 'unknown', 'error'); 2009s ***** error 2009s a = x==y; 2009s b = isAlways(a, 'unknown', 'error'); 2009s ***** test 2009s % array, unknown keyword 2009s a = [x==x x==x+1 x==y x*(x+y)==x^2+x*y cos(x)^2+sin(x)^2==2]; 2009s b = isAlways(a, 'unknown', false); 2009s c = isAlways(a, 'unknown', 'false'); 2009s expect = [true false false true false]; 2009s assert (islogical(b)) 2009s assert (isequal (b, expect)) 2009s assert (isequal (c, expect)) 2009s b = isAlways(a, 'unknown', true); 2009s c = isAlways(a, 'unknown', 'true'); 2009s expect = [true false true true false]; 2009s assert (islogical(b)) 2009s assert (isequal (b, expect)) 2009s assert (isequal (c, expect)) 2010s ***** test 2010s % ineq 2010s e = x*(x+y) <= x^2 + x*y + 1; 2010s assert (~logical(e)) 2010s assert (isAlways(e)) 2010s e = x*(x+y) <= x^2 + x*y; 2010s assert (~logical(e)) 2010s assert (isAlways(e)) 2010s 21 tests, 21 passed, 0 known failure, 0 skipped 2010s [inst/@sym/disp.m] 2010s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/disp.m 2010s ***** test 2010s syms x 2010s s = disp(sin(x)); 2010s assert(strcmp(s, sprintf(' sin(x)\n'))) 2011s ***** test 2011s syms x 2011s s = disp(sin(x/2), 'flat'); 2011s assert(strcmp(s, sprintf(' sin(x/2)\n'))) 2011s ***** test 2011s % Examples of 2x0 and 0x2 empty matrices: 2011s a = sym([1 2; 3 4]); 2011s b2x0 = a([true true], [false false]); 2011s b0x2 = a([false false], [true true]); 2011s assert (isequal (size (b2x0), [2 0])) 2011s assert (isequal (size (b0x2), [0 2])) 2011s s = disp(b2x0); 2011s assert(strcmp(s, sprintf(' []\n'))) 2011s s = disp(b0x2); 2011s assert(strcmp(s, sprintf(' []\n'))) 2011s 3 tests, 3 passed, 0 known failure, 0 skipped 2011s [inst/@sym/plus.m] 2011s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/plus.m 2011s ***** test 2011s % basic addition 2011s syms x 2011s assert (isa (x+5, 'sym')) 2011s assert (isa (5+x, 'sym')) 2011s assert (isa (5+sym(4), 'sym')) 2011s assert (isequal (5+sym(4), sym(9))) 2011s ***** test 2011s % array addition 2011s syms x 2011s D = [0 1; 2 3]; 2011s A = [sym(0) 1; sym(2) 3]; 2011s DZ = D - D; 2011s assert( isequal ( A + D , 2*D )) 2011s assert( isequal ( D + A , 2*D )) 2011s assert( isequal ( A + A , 2*D )) 2011s assert( isequal ( A + 2 , D + 2 )) 2011s assert( isequal ( 4 + A , 4 + D )) 2011s ***** test 2011s % ensure MatrixExpr can be manipulated somewhat 2011s syms n m integer 2011s A = sym('A', [n m]); 2011s B = subs(A, [n m], [5 6]); 2011s B = B + 1; 2011s assert (isa (B, 'sym')) 2011s C = B(1, 1); % currently makes a MatrixElement 2011s C = C + 1; 2011s assert (isa (C, 'sym')) 2012s 3 tests, 3 passed, 0 known failure, 0 skipped 2012s [inst/@sym/uplus.m] 2012s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/uplus.m 2012s ***** test 2012s syms x 2012s assert (isa (+x, 'sym')) 2012s assert (isequal (+x, x)) 2012s ***** test 2012s A = sym([0 -1 inf]); 2012s assert( isequal ( +A, A)) 2012s 2 tests, 2 passed, 0 known failure, 0 skipped 2012s [inst/@sym/find.m] 2012s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/find.m 2012s ***** error find (sym (1), 2, 3, 4) 2012s ***** error [x, y, z, w] = find (sym (1)) 2012s ***** test 2012s syms x y positive 2012s assert (isequal (find ([0 x 0 y]), [2 4])) 2012s assert (isequal (find ([0 x 0 y], 1), 2)) 2012s assert (isequal (find ([0 x 0 y], 1, 'first'), 2)) 2012s assert (isequal (find ([0 x 0 y], 1, 'last'), 4)) 2012s assert (isequal (find ([0 x 0 y], 2, 'last'), [2 4])) 2013s ***** test 2013s % its enough that it could be non-zero, does not have to be 2013s syms x y 2013s assert (isequal (find ([0 x+y]), 2)) 2013s ***** test 2013s % false should not be found 2013s syms x y 2013s assert (isequal (find ([x==x x==y]), 1)) 2013s assert (isequal (find ([x==y]), [])) 2013s ***** test 2013s % and/or should be treated as boolean 2013s syms x y 2013s assert (isequal (find ([or(x==y, x==2*y) x==y x==x]), 3)) 2013s ***** test 2013s % None 2013s none = pycall_sympy__ ('return None'); 2013s assert (isequal (find ([sym(0) none sym(1)]), 3)) 2013s syms x y 2013s assert (isequal (find ([x==y none x==x]), 3)) 2013s ***** test 2013s % two output 2013s syms x y 2013s A = [x 0 0; x+y 5 0]; 2013s [i, j] = find (A); 2013s assert (isequal (i, [1; 2; 2])) 2013s assert (isequal (j, [1; 1; 2])) 2013s ***** test 2013s % three output 2013s syms x y 2013s A = [x 0 0; x+y 5 0]; 2013s [i, j, v] = find (A); 2013s assert (isequal (i, [1; 2; 2])) 2013s assert (isequal (j, [1; 1; 2])) 2013s assert (isequal (v, [x; x+y; sym(5)])) 2013s 9 tests, 9 passed, 0 known failure, 0 skipped 2013s [inst/@sym/acoth.m] 2013s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/acoth.m 2013s ***** error acoth (sym(1), 2) 2013s ***** assert (isequaln (acoth (sym(nan)), sym(nan))) 2013s ***** shared x, d 2013s d = 2; 2013s x = sym('2'); 2013s ***** test 2013s f1 = acoth(x); 2013s f2 = acoth(d); 2013s assert( abs(double(f1) - f2) < 1e-15 ) 2013s ***** test 2013s D = [d d; d d]; 2013s A = [x x; x x]; 2013s f1 = acoth(A); 2013s f2 = acoth(D); 2013s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2015s ***** test 2015s % round trip 2015s y = sym('y'); 2015s A = acoth (d); 2015s f = acoth (y); 2015s h = function_handle (f); 2015s B = h (d); 2015s assert (A, B, -eps) 2015s 5 tests, 5 passed, 0 known failure, 0 skipped 2015s [inst/@sym/ezsurf.m] 2015s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/ezsurf.m 2015s ***** error 2015s syms u v t 2015s ezsurf(u*v, 2*u*v, 3*v*t) 2015s ***** error 2015s syms u v t 2015s ezsurf(u*v, 2*u*v, u*v*t) 2015s 2 tests, 2 passed, 0 known failure, 0 skipped 2015s [inst/@sym/formula.m] 2015s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/formula.m 2015s ***** test 2015s syms x 2015s assert (isequal (formula(x), x)) 2015s assert (isequal (formula(2*x), 2*x)) 2015s 1 test, 1 passed, 0 known failure, 0 skipped 2015s [inst/@sym/subsasgn.m] 2015s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/subsasgn.m 2015s ***** shared a,b 2015s b = [1:4]; 2015s a = sym(b); 2016s ***** test a(1) = 10; b(1) = 10; 2016s assert(isequal( a, b )) 2016s ***** test I = logical([1 0 1 0]); 2016s a(I) = 2; b(I) = 2; 2016s assert(isequal( a, b )) 2016s ***** test I = logical([1 0 1 0]); 2016s a(I) = [2 4]; b(I) = [2 4]; 2016s assert(isequal( a, b )) 2016s ***** test I = logical([1 0 1 0]); 2016s a(I) = [2; 4]; b(I) = [2; 4]; 2016s assert(isequal( a, b )) 2016s ***** shared 2016s ***** test 2016s b = 1:4; b = [b; 2*b; 3*b]; 2016s a = sym(b); 2016s rhs = [10 11; 12 13]; 2016s a([1:2],[1:2]) = rhs; 2016s b([1:2],[1:2]) = rhs; 2016s assert(isequal( a, b )) 2016s a(1:2,1:2) = rhs; 2016s assert(isequal( a, b )) 2017s ***** test 2017s % slice : 2017s b = 1:4; b = [b; 2*b]; 2017s a = sym(b); 2017s rhs = [10 11; 12 13]; 2017s a(:,2:3) = rhs; 2017s b(:,2:3) = rhs; 2017s assert(isequal( a, b )) 2017s ***** test 2017s % grow 2D 2017s b = 1:4; b = [b; 2*b]; 2017s a = sym(b); 2017s rhs = [10 11; 12 13]; 2017s a([1 end+1],end:end+1) = rhs; 2017s b([1 end+1],end:end+1) = rhs; 2017s assert(isequal( a, b )) 2017s ***** test 2017s % grow from nothing 2017s clear a 2017s a(3) = sym (1); 2017s b = sym ([0 0 1]); 2017s assert (isequal (a, b)) 2017s ***** test 2017s % grow from nothing, 2D 2017s clear a 2017s a(2, 3) = sym (1); 2017s b = sym ([0 0 0; 0 0 1;]); 2017s assert (isequal (a, b)) 2018s ***** test 2018s % linear indices of 2D 2018s b = 1:4; b = [b; 2*b; 3*b]; 2018s a = sym(b); 2018s b(1:4) = [10 11 12 13]; 2018s a(1:4) = [10 11 12 13]; 2018s assert(isequal( a, b )) 2018s b(1:4) = [10 11; 12 13]; 2018s a(1:4) = [10 11; 12 13]; 2018s assert(isequal( a, b )) 2018s ***** error 2018s % Wrong shape matrix RHS: Matlab/Octave don't allow this on doubles. 2018s % Matlab SMT 2013b gets it wrong. We throw an error. 2018s rhs = [10 11; 12 13]; 2018s a = sym (magic (3)); 2018s a(1:2,1:2) = rhs(:); 2018s ***** test 2018s % Issue #963: vector RHS with diff orientation from 2D indexing 2018s b = 1:4; b = [b; 2*b; 3*b]; 2018s a = sym(b); 2018s b(1:2:3, 1) = 11:2:13; 2018s a(1:2:3, 1) = sym(11:2:13); 2018s assert (isequal (a, b)) 2018s b(1:2:3, 1) = 1:2:3; 2018s a(1:2:3, 1) = 1:2:3; 2018s assert (isequal (a, b)) 2019s ***** test 2019s % Issue #963: vector RHS with diff orientation from 2D indexing 2019s a = sym (magic (3)); 2019s b = a; 2019s a(1:2:3, 2) = [14 15]; 2019s b(1:2:3, 2) = [14; 15]; 2019s assert (isequal (a, b)) 2019s a(2, 1:2:3) = [24 25]; 2019s b(2, 1:2:3) = [24; 25]; 2019s assert (isequal (a, b)) 2019s ***** test 2019s % 1D growth and 'end' 2019s g = sym([1 2 3]); 2019s g(3:4) = [67 68]; 2019s g(end:end+1) = [12 14]; 2019s assert(isequal( g, [1 2 67 12 14] )) 2020s ***** test 2020s % expanding empty and scalar 2020s syms x 2020s c = sym([]); 2020s c(1) = x; 2020s assert(isequal( c, x )) 2020s c(2) = 2*x; 2020s assert(isequal( c, [x 2*x] )) 2020s ***** shared a,b,I,J 2020s b = 1:4; b = [b; 3*b; 5*b]; a = sym(b); 2020s I = logical([1 0 1]); 2020s J = logical([1 0 1 0]); 2020s ***** assert(isequal( a(I,J), b(I,J) )) 2020s ***** test 2020s rhs = [90 91; 92 93]; 2020s b(I, J) = rhs; 2020s a(I, J) = rhs; 2020s assert(isequal( a, b )) 2020s ***** test 2020s b(I, J) = 100; 2020s a(I, J) = 100; 2020s assert(isequal( a, b )) 2020s ***** shared 2020s ***** test 2020s % logical with all false 2020s syms x 2020s y = x; 2020s y(false) = 6; 2020s assert(isequal( y, x )); 2020s a = [x x]; 2020s a([false false]) = [6 6]; 2020s assert(isequal( a, [x x] )); 2020s ***** test 2020s % issue #18, scalar access 2020s syms x 2020s x(1) = sym(6); 2020s assert(isequal( x, sym(6) )); 2020s x(1) = 6; 2020s assert(isequal( x, sym(6) )); 2020s x(true) = 88; 2020s assert(isequal( x, sym(88) )); 2020s ***** test 2020s % bug: assignment to column vector used to fail 2020s A = sym(zeros(3,1)); 2020s A(1) = 5; 2021s ***** test 2021s % symfun creation (generic function) 2021s syms x 2021s g(x) = x*x; 2021s assert(isa(g,'symfun')) 2021s ***** test 2021s % symfun creation (generic function) 2021s syms x g(x) 2021s assert(isa(g,'symfun')) 2021s ***** test 2021s % symfun creation when g already exists and is a sym/symfun 2021s syms x 2021s g = x; 2021s syms g(x) 2021s assert(isa(g,'symfun')) 2021s clear g 2021s g(x) = x; 2021s g(x) = x*x; 2021s assert(isa(g,'symfun')) 2021s ***** test 2021s % Issue #443: assignment with sym indices 2021s A = sym([10 11]); 2021s A(sym(1)) = 12; 2021s assert (isequal (A, sym([12 11]))) 2021s ***** test 2021s % Issue #443: assignment with sym indices 2021s A = sym([10 11]); 2021s A(sym(1), 1) = 12; 2021s assert (isequal (A, sym([12 11]))) 2021s A(sym(1), sym(1)) = 13; 2021s assert (isequal (A, sym([13 11]))) 2021s ***** test 2021s % Issue #443: assignment with sym indices, increase size 2021s A = sym([10 11]); 2021s A(sym(2), 1) = 12; 2021s assert (isequal (A, sym([10 11; 12 0]))) 2021s ***** error 2021s % Issue #443 2021s A = sym([10 11]); 2021s A(2, sym('x')) = sym(12); 2021s ***** error 2021s % Issue #443 2021s A = sym([10 11]); 2021s A(sym(2), sym('x')) = sym(12); 2021s ***** error 2021s % issue #445 2021s A = sym([10 11]); 2021s A(1.1) = 13 2021s ***** error 2021s % issue #445 2021s A = sym([10 11]); 2021s A(sym(pi)) = 13 2021s ***** error 2021s % issue #445 2021s A = sym([1 2; 3 4]); 2021s A(1.3, 1.2) = 13 2021s ***** test 2021s % older expansion tests 2021s syms x 2021s f = [2*x 3*x]; 2021s f(2) = 4*x; 2021s assert (isequal (f, [2*x 4*x])) 2021s f(2) = 2; 2021s assert (isequal(f, [2*x 2])) 2021s g = f; 2021s g(1,3) = x*x; 2021s assert (isequal(g, [2*x 2 x^2])) 2021s g = f; 2021s g(3) = x*x; 2021s assert (isequal(g, [2*x 2 x^2])) 2021s g = f; 2021s g(3) = 4; 2021s assert (isequal(g, [2*x 2 4])) 2022s ***** test 2022s % older slicing tests 2022s syms x 2022s f = [1 x^2 x^4]; 2022s f(1:2) = [x x]; 2022s assert (isequal( f, [x x x^4] )) 2022s f(1:2) = [1 2]; 2022s assert (isequal( f, [1 2 x^4] )) 2022s f(end-1:end) = [3 4]; 2022s assert (isequal( f, [1 3 4] )) 2022s f(3:4) = [10 11]; 2022s assert (isequal( f, [1 3 10 11] )) 2022s f(end:end+1) = [12 14]; 2022s assert (isequal( f, [1 3 10 12 14] )) 2022s ***** test 2022s % struct.str = sym, sometimes calls subsasgn 2022s d = struct(); 2022s syms x 2022s d.a = x; 2022s assert (isa (d, 'struct')) 2022s assert (isequal (d.a, x)) 2022s d.('a') = x; 2022s assert (isa (d, 'struct')) 2022s assert (isequal (d.a, x)) 2022s d = setfield(d, 'a', x); 2022s assert (isa (d, 'struct')) 2022s assert (isequal (d.a, x)) 2022s % at least on Oct 3.8, this calls sym's subsasgn 2022s d = struct(); 2022s d = setfield(d, 'a', x); 2022s assert (isa (d, 'struct')) 2022s assert (isequal (d.a, x)) 2022s ***** test 2022s % bool scalar assignments of true/false into sym 2022s syms x 2022s a = sym([1 2 x 3]); 2022s b = [1 2 10 4]; 2022s e = a == b; 2022s assert (logical (e(2))) 2022s e(2) = false; 2022s assert (~logical (e(2))) 2023s ***** test 2023s % bool vector assignments of true/false into sym 2023s syms x 2023s a = sym([1 2 x 3]); 2023s b = [1 2 10 4]; 2023s e = a == b; 2023s e(1:2) = [true true]; 2023s assert (isequal (e, [sym(1)==1 sym(2)==2 x==10 sym(3)==4])) 2023s ***** test 2023s % bool scalar promoted to vector assignments into sym 2023s syms x 2023s a = sym([1 2 x 3]); 2023s b = [1 2 10 4]; 2023s e = a == b; 2023s e(1:2) = true; 2023s assert (isequal (e, [sym(1)==1 sym(2)==2 x==10 sym(3)==4])) 2023s ***** test 2023s % grow scalar equality expression into a matrix of equalities 2023s syms a b c d 2023s e = a == b; 2023s e(2) = c == d; 2023s assert (isequal (e, [a==b c==d])) 2023s ***** shared a, b, I 2023s b = [1:4]; b = [b; 3*b; 5*b]; 2023s a = sym(b); 2023s I = mod (b, 5) > 1; 2023s ***** test 2023s A = a; A(I) = 2*b(I); 2023s B = b; B(I) = 2*b(I); 2023s assert (isequal (A, B)) 2024s ***** test 2024s % scalar RHS 2024s A = a; A(I) = 17; 2024s B = b; B(I) = 17; 2024s assert (isequal (A, B)) 2024s ***** test 2024s % nonetheless, above strange case should give right answer 2024s I = logical([1 0 1 0; 0 1 0 1; 1 0 1 0]); 2024s rhs = 2*b(I); 2024s rhs2 = reshape(rhs, 2, 3); 2024s A0 = a; A1 = a; 2024s A0(I) = rhs; 2024s A1(I) = rhs2; 2024s assert (isequal (A0, A1)) 2024s ***** shared AA, BB 2024s BB = [1 2 3; 4 5 6]; 2024s AA = sym(BB); 2024s ***** test 2024s A = AA; B = BB; 2024s B([1 6]) = [8 9]; 2024s A([1 6]) = [8 9]; 2024s assert (isequal (A, B)) 2024s ***** test 2024s % rhs scalar 2024s A = AA; B = BB; 2024s B([1 6]) = 88; 2024s A([1 6]) = 88; 2024s assert (isequal (A, B)) 2024s ***** test 2024s % If rhs is not a vector, make sure col-based access works 2024s rhs = [18 20; 19 21]; 2024s A = AA; B = BB; 2024s B([1 6]) = 88; 2024s A([1 6]) = 88; 2024s B([1 2 3 4]) = rhs; 2024s A([1 2 3 4]) = rhs; 2024s assert (isequal (A, B)) 2024s ***** test 2024s % Growth 2024s A = AA; B = BB; 2024s A(1,5) = 10; 2024s B(1,5) = 10; 2024s assert (isequal (A, B)) 2025s ***** shared 2025s ***** test 2025s % Check row deletion 1D 2025s a = sym([1; 3; 5]); 2025s b = sym([3; 5]); 2025s a(1) = []; 2025s assert( isequal( a, b)) 2025s ***** test 2025s % Check column deletion 1D 2025s a = sym([1, 4, 8]); 2025s b = sym([4, 8]); 2025s a(1) = []; 2025s assert( isequal( a, b)) 2025s ***** test 2025s % Check row deletion 2D 2025s a = sym([1, 2; 3, 4]); 2025s b = sym([3, 4]); 2025s a(1, :) = []; 2025s assert( isequal( a, b)) 2025s ***** test 2025s % Check column deletion 2D 2025s a = sym([1, 2; 3, 4]); 2025s b = sym([2; 4]); 2025s a(:, 1) = []; 2025s assert( isequal( a, b)) 2025s ***** test 2025s % General assign 2025s a = sym([1, 2; 3, 4]); 2025s b = sym([5, 5; 5, 5]); 2025s a(:) = 5; 2025s assert( isequal( a, b)) 2025s ***** test 2025s % Empty matrix 2025s a = sym([1, 2; 3, 4]); 2025s a(:) = []; 2025s assert( isequal( a, sym([]))) 2025s ***** test 2025s % Disassemble matrix 2025s a = sym([1 2; 3 4; 5 6]); 2025s b = sym([3 5 2 4 6]); 2025s a(1) = []; 2025s assert (isequal (a, b)); 2026s ***** error 2026s a = sym([1, 2; 3, 4]); 2026s a(1, 2) = []; 2026s ***** test 2026s % Issue #964 2026s a = sym(10); 2026s a(1) = []; 2026s assert (isempty (a)) 2026s assert (isequal (a, zeros(1, 0))) 2026s ***** test 2026s % Issue #963: scalar asgn to empty part of matrix 2026s A = sym (magic (3)); 2026s B = A; 2026s A(1, []) = 42; 2026s assert (isequal (A, B)) 2026s A([], 2) = 42; 2026s assert (isequal (A, B)) 2026s A([]) = 42; 2026s assert (isequal (A, B)) 2026s A([], []) = 42; 2026s assert (isequal (A, B)) 2026s A(2:3, []) = 42; 2026s assert (isequal (A, B)) 2026s A([], 2:3) = 42; 2026s assert (isequal (A, B)) 2026s A(:, []) = 42; 2026s assert (isequal (A, B)) 2026s A([], :) = 42; 2026s assert (isequal (A, B)) 2026s ***** test 2026s % Issue #1026 2026s a = sym(1:5); 2026s a(1:3) = []; 2026s assert (isequal (a, sym([4 5]))) 2026s ***** test 2026s % Issue #1026 2026s B = eye(4); 2026s A = sym(B); 2026s A(1:2, :) = []; 2026s B(1:2, :) = []; 2026s assert (isequal (A, B)) 2027s ***** error 2027s % TODO: do we care what error? 2027s A = sym (magic (3)); 2027s A(2:3, []) = [66; 66]; 2027s ***** error 2027s A = sym (magic (3)); 2027s A([]) = [66; 66]; 2027s ***** error 2027s A = sym (magic (3)); 2027s A([], 1) = [66; 66]; 2027s ***** test 2027s % Issue #966: empty indexing, empty RHS, A unchanged 2027s B = magic(3); 2027s A = sym(B); 2027s A(1, []) = []; 2027s assert (isequal (A, B)) 2027s A([], 2) = []; 2027s assert (isequal (A, B)) 2027s A([], []) = []; 2027s assert (isequal (A, B)) 2027s A(2:3, []) = []; 2027s assert (isequal (A, B)) 2027s A([], 2:3) = []; 2027s assert (isequal (A, B)) 2027s A(:, []) = []; 2027s assert (isequal (A, B)) 2027s A([], :) = []; 2027s assert (isequal (A, B)) 2028s ***** test 2028s % Issue 967 2028s B = [1 2; 3 4]; 2028s A = sym(B); 2028s A([]) = []; 2028s assert (isequal (A, B)) 2028s ***** test 2028s % Issue #965 2028s a = sym(7); 2028s a([]) = []; 2028s assert (isequal (a, sym(7))) 2028s ***** test 2028s % Issue #965 2028s a = sym(7); 2028s a([]) = 42; 2028s assert (isequal (a, sym(7))) 2028s ***** error 2028s % Issue #965 2028s a = sym(7); 2028s a([]) = [42 42] 2028s ***** test 2028s b = eye (3); 2028s a = sym (b); 2028s I = [2 3; 4 5]; 2028s a(I) = -2*I; 2028s b(I) = -2*I; 2028s assert (isequal (a, sym (b))); 2028s assert (size (a), [3 3]); 2029s ***** error 2029s syms x 2029s A = [1 x; x 2]; 2029s A(5) = x; 2029s ***** test 2029s % 2D indexing with length in one dimension more than 2 2029s a = sym ([1 2; 3 4; 5 6]); 2029s indices = [1 4; 2 5; 3 6]; 2029s b = [10 11; 12 13; 14 15]; 2029s a(indices) = b; 2029s assert (isequal (a, sym (b))); 2029s ***** test 2029s A = sym ([0 0 0]); 2029s indices = [false true false]; 2029s A(indices) = 1; 2029s assert (isequal (A, sym ([0 1 0]))); 2029s A(indices) = []; 2029s assert (isequal (A, sym ([0 0]))); 2029s indices = [false false]; 2029s A(indices) = []; 2029s assert (isequal (A, sym ([0 0]))); 2029s ***** shared a, b 2029s a = [1 2 3 5; 4 5 6 9; 7 5 3 2]; 2029s b = sym (a); 2029s ***** test 2029s A = a; B = b; 2029s A(true) = 0; 2029s B(true) = 0; 2029s assert (isequal (A, B)) 2030s ***** test 2030s A = a; B = b; 2030s A(false) = 0; 2030s B(false) = 0; 2030s assert (isequal (A, B)) 2030s ***** test 2030s c = [false true]; 2030s A = a; B = b; 2030s A(c) = 0; B(c) = 0; 2030s assert (isequal (A, B)) 2030s d = c | true; 2030s A(d) = 1; B(d) = 1; 2030s assert (isequal (A, B)) 2030s d = c & false; 2030s A(d) = 2; B(d) = 2; 2030s assert (isequal (A, B)) 2030s ***** test 2030s c = [false true false true; true false true false; false true false true]; 2030s A = a; B = b; 2030s A(c) = 0; B(c) = 0; 2030s assert (isequal (A, B)) 2030s d = c | true; 2030s A(d) = 1; B(d) = 1; 2030s assert (isequal (A, B)) 2030s d = c & false; 2030s A(d) = 2; B(d) = 2; 2030s assert (isequal (A, B)) 2031s ***** test 2031s c = [false true false true false]; 2031s A = a; B = b; 2031s A(c) = 0; B(c) = 0; 2031s assert (isequal (A, B)) 2031s d = c | true; 2031s A(d) = 1; B(d) = 1; 2031s assert (isequal (A, B)) 2031s d = c & false; 2031s A(d) = 2; B(d) = 2; 2031s assert (isequal (A, B)) 2031s ***** test 2031s c = [false; true; false; true; false]; 2031s A = a; B = b; 2031s A(c) = 0; B(c) = 0; 2031s assert (isequal (A, B)) 2031s d = c | true; 2031s A(d) = 1; B(d) = 1; 2031s assert (isequal (A, B)) 2031s d = c & false; 2031s A(d) = 2; B(d) = 2; 2031s assert (isequal (A, B)) 2032s ***** test 2032s c = [false true; false true; true false]; 2032s A = a; B = b; 2032s A(c) = 0; B(c) = 0; 2032s assert (isequal (A, B)) 2032s d = c | true; 2032s A(d) = 1; B(d) = 1; 2032s assert (isequal (A, B)) 2032s d = c & false; 2032s A(d) = 2; B(d) = 2; 2032s assert (isequal (A, B)) 2032s 77 tests, 77 passed, 0 known failure, 0 skipped 2032s [inst/@sym/rhs.m] 2032s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/rhs.m 2032s ***** test 2032s syms x 2032s f = x + 1 == 2*x; 2032s assert (isequal (rhs(f), 2*x)) 2033s ***** error 2033s syms x 2033s rhs(x) 2033s 2 tests, 2 passed, 0 known failure, 0 skipped 2033s [inst/@sym/lambertw.m] 2033s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/lambertw.m 2033s ***** test 2033s % W(x)*exp(W(x)) == x 2033s syms x 2033s T = lambertw(x)*exp(lambertw(x)); 2033s T = double (subs (T, x, 10)); 2033s assert (isequal (T, 10)); 2033s ***** test 2033s % k, x not x, k to match SMT 2033s syms x 2033s T = lambertw(2, x)*exp(lambertw(2, x)); 2033s T = double (subs (T, x, 10)); 2033s assert (abs(T - 10) < 1e-15) 2033s ***** assert (isequal (lambertw(sym(0)), sym(0))) 2033s ***** assert ( isequal (lambertw (-1/exp(sym(1))), -sym(1))) 2033s ***** assert ( isequal (lambertw (0, -1/exp(sym(1))), -sym(1))) 2033s ***** assert ( isequal (lambertw (-1, -1/exp(sym(1))), -sym(1))) 2033s ***** xtest 2033s % W(x)*exp(W(x)) == x; FIXME: a failure in SymPy? 2033s syms x 2033s T = simplify(lambertw(x)*exp(lambertw(x))); 2033s assert (isequal (T, x)) 2033s !!!!! known failure 2033s assert (isequal (T, x)) failed 2033s ***** assert (abs (lambertw(pi) - double(lambertw(sym(pi)))) < 5*eps) 2033s ***** assert (abs (lambertw(-1, 5) - double(lambertw(-1, sym(5)))) < 5*eps) 2033s ***** assert (abs (lambertw(2, 2) - double(lambertw(2, sym(2)))) < 5*eps) 2033s ***** test 2033s % round trip 2033s syms x k 2033s A = lambertw (5); 2033s f = lambertw (x); 2033s h = function_handle (f); 2033s B = h (5); 2033s assert (A, B) 2033s 2033s A = lambertw (3, 5); 2033s f = lambertw (k, x); 2033s h = function_handle (f); 2033s B = h (3, 5); 2033s assert (A, B) 2034s 11 tests, 10 passed, 1 known failure, 0 skipped 2034s [inst/@sym/times.m] 2034s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/times.m 2034s ***** test 2034s % scalar 2034s syms x 2034s assert (isa (x.*2, 'sym')) 2034s assert (isequal (x.*2, x*2)) 2034s assert (isequal (2.*sym(3), sym(6))) 2034s assert (isequal (sym(2).*3, sym(6))) 2034s ***** test 2034s % matrix-matrix and matrix-scalar 2034s D = [0 1; 2 3]; 2034s A = sym(D); 2034s assert (isequal ( 2.*A , 2*D )) 2034s assert (isequal ( A.*2 , 2*D )) 2034s assert (isequal ( A.*A , D.*D )) 2034s assert (isequal ( A.*D , D.*D )) 2034s assert (isequal ( D.*A , D.*D )) 2036s ***** test 2036s syms x 2036s A = [1 x]; 2036s B = [2 3]; 2036s assert (isequal (A.*B, [2 3*x])) 2036s ***** test 2036s % immutable test 2036s A = sym([1 2]); 2036s B = sym('ImmutableDenseMatrix([[Integer(1), Integer(2)]])'); 2036s assert (isequal (A.*A, B.*B)) 2036s :18: SyntaxWarning: invalid escape sequence '\(' 2037s ***** test 2037s % MatrixSymbol test 2037s A = sym([1 2; 3 4]); 2037s B = sym('ImmutableDenseMatrix([[Integer(1), Integer(2)], [Integer(3), Integer(4)]])'); 2037s C = sym('MatrixSymbol("C", 2, 2)'); 2037s assert (~ isempty (strfind (sympy (C.*C), 'Hadamard'))) 2037s assert (~ isempty (strfind (sympy (A.*C), 'Hadamard'))) 2037s assert (~ isempty (strfind (sympy (C.*A), 'Hadamard'))) 2037s assert (~ isempty (strfind (sympy (B.*C), 'Hadamard'))) 2037s assert (~ isempty (strfind (sympy (C.*B), 'Hadamard'))) 2037s :18: SyntaxWarning: invalid escape sequence '\(' 2037s :18: SyntaxWarning: invalid escape sequence '\(' 2037s 5 tests, 5 passed, 0 known failure, 0 skipped 2037s [inst/@sym/symsum.m] 2037s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/symsum.m 2037s ***** error symsum (sym(1), 2, 3, 4, 5) 2037s ***** test 2037s % finite sums 2037s syms n 2037s assert (isequal (symsum(n,n,1,10), 55)) 2037s assert(isa(symsum(n,n,1,10), 'sym')) 2037s assert (isequal (symsum(n,n,sym(1),sym(10)), 55)) 2037s assert (isequal (symsum(n,n,sym(1),sym(10)), 55)) 2037s assert (isequal (symsum(1/n,n,1,10), sym(7381)/2520)) 2038s ***** test 2038s % negative limits 2038s syms n 2038s assert (isequal (symsum(n,n,-3,3), sym(0))) 2038s assert (isequal (symsum(n,n,-3,0), sym(-6))) 2038s assert (isequal (symsum(n,n,-3,-1), sym(-6))) 2038s ***** test 2038s % one input 2038s syms n 2038s f = symsum (n); 2038s g = n^2/2 - n/2; 2038s assert (isequal (f, g)) 2038s f = symsum (2*n); 2038s g = n^2 - n; 2038s assert (isequal (f, g)) 2038s ***** test 2038s % constant input 2038s f = symsum (sym(2)); 2038s syms x 2038s g = 2*x; 2038s assert (isequal (f, g)) 2038s ***** test 2038s % two inputs 2038s syms n 2038s f = symsum (2*n, n); 2038s g = n^2 - n; 2038s assert (isequal (f, g)) 2038s ***** test 2038s % two inputs, second is range 2038s syms n 2038s f = symsum (n, [1 6]); 2038s g = 21; 2038s assert (isequal (f, g)) 2038s f = symsum (n, [sym(1) 6]); 2038s g = 21; 2038s assert (isequal (f, g)) 2038s f = symsum (2*n, [1 6]); 2038s g = 2*21; 2038s assert (isequal (f, g)) 2039s ***** test 2039s % three inputs, last is range 2039s syms n 2039s f = symsum (2*n, n, [1 4]); 2039s g = sym(20); 2039s assert (isequal (f, g)) 2039s f = symsum (2*n, n, [sym(1) 4]); 2039s g = sym(20); 2039s assert (isequal (f, g)) 2039s f = symsum (2, n, [sym(1) 4]); 2039s g = sym(8); 2039s assert (isequal (f, g)) 2039s ***** test 2039s % three inputs, no range 2039s syms n 2039s f = symsum (2*n, 1, 4); 2039s g = sym(20); 2039s assert (isequal (f, g)) 2039s f = symsum (5, sym(1), 3); 2039s g = sym(15); 2039s assert (isequal (f, g)) 2039s ***** test 2039s % ok to use double's for arguments in infinite series 2039s syms n oo 2039s assert(isequal(symsum(1/n^2,n,1,oo), sym(pi)^2/6)) 2039s assert(isequal(symsum(1/n^2,n,1,inf), sym(pi)^2/6)) 2039s ***** test 2039s % should be oo because 1 is real but seems to be 2039s % zoo/oo depending on sympy version 2039s syms n oo 2039s zoo = sym('zoo'); 2039s assert (isequal (symsum(1/n,n,1,oo), oo) || ... 2039s isequal (symsum(1/n,n,1,oo), zoo)) 2039s 11 tests, 11 passed, 0 known failure, 0 skipped 2039s [inst/@sym/isscalar.m] 2040s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/isscalar.m 2040s ***** assert(isscalar(sym('x'))) 2040s ***** test 2040s a = sym([1 2 3]); 2040s assert(~isscalar(a)) 2040s ***** assert(~isscalar(sym([]))) 2040s 3 tests, 3 passed, 0 known failure, 0 skipped 2040s [inst/@sym/fortran.m] 2040s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/fortran.m 2040s ***** shared x,y,z 2040s syms x y z 2040s ***** test 2040s % basic test 2040s f = x*sin(y) + abs(z); 2040s source = fortran(f); 2040s expected = ' x*sin(y) + abs(z)'; 2040s s1 = strrep (expected, 'abs', 'Abs'); 2040s assert (strcmp (source, expected) || strcmp (source, s1)) 2040s ***** test 2040s % output test 2040s f = x*sin(y) + abs(z); 2040s [F,H] = fortran(f, 'file', '', 'show_header', false); 2040s 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'); 2040s 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'); 2040s assert(strcmp(F.name, 'file.f90')) 2040s assert(strcmp(H.name, 'file.h')) 2040s %disp(expected_f_code); disp(F.code) 2040s s1 = strrep (expected_f_code, 'abs', 'Abs'); 2040s s2 = strrep (expected_f_code, sprintf ('\n'), sprintf ('\r\n')); 2040s s3 = strrep (s2, 'abs', 'Abs'); 2040s s4 = strrep (expected_h_code, sprintf ('\n'), sprintf ('\r\n')); 2040s assert (strcmp (F.code, expected_f_code) || strcmp (F.code, s1) || strcmp (F.code, s2) || strcmp (F.code, s3)) 2040s assert (strcmp (H.code, expected_h_code) || strcmp (H.code, s4)) 2040s 2 tests, 2 passed, 0 known failure, 0 skipped 2040s [inst/@sym/min.m] 2040s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/min.m 2040s ***** test 2040s % scalars with dim 2040s a = min(sym(pi), [], 1); 2040s b = sym(pi); 2040s assert (isequal (a, b)); 2040s a = min(sym(pi), [], 2); 2040s assert (isequal (a, b)); 2040s a = max(sym(pi), [], 1); 2040s assert (isequal (a, b)); 2040s a = max(sym(pi), [], 2); 2040s assert (isequal (a, b)); 2040s ***** shared A, D 2040s D = [0 1 2 3]; 2040s A = sym(D); 2040s ***** test 2040s % row vectors 2040s assert (isequal (min(A), sym(min(D)))) 2040s assert (isequal (min(A), sym(0))) 2040s assert (isequal (max(A), sym(max(D)))) 2040s assert (isequal (max(A), sym(3))) 2040s ***** test 2040s % row vectors with dim 2040s assert (isequal (min(A, [], 1), sym(min(D, [], 1)))) 2040s assert (isequal (min(A, [], 2), sym(min(D, [], 2)))) 2040s assert (isequal (max(A, [], 1), sym(max(D, [], 1)))) 2040s assert (isequal (max(A, [], 2), sym(max(D, [], 2)))) 2040s ***** test 2040s % column vectors 2040s A = A.'; 2040s D = D.'; 2040s assert (isequal (min(A), sym(min(D)))) 2040s assert (isequal (min(A), sym(0))) 2040s assert (isequal (max(A), sym(max(D)))) 2040s assert (isequal (max(A), sym(3))) 2041s ***** test 2041s % row vectors with dim 2041s assert (isequal (min(A, [], 1), sym(min(D, [], 1)))) 2041s assert (isequal (min(A, [], 2), sym(min(D, [], 2)))) 2041s assert (isequal (max(A, [], 1), sym(max(D, [], 1)))) 2041s assert (isequal (max(A, [], 2), sym(max(D, [], 2)))) 2041s ***** shared 2041s ***** test 2041s % empty 2041s a = min(sym([])); 2041s assert(isempty(a)) 2041s a = max(sym([])); 2041s assert(isempty(a)) 2041s ***** test 2041s % matrix 2041s A = [1 4 6; 2 2 5]; 2041s A = sym(A); 2041s assert (isequal (min(A), sym([1 2 5]))) 2041s assert (isequal (min(A, [], 1), sym([1 2 5]))) 2041s assert (isequal (min(A, [], 2), sym([1; 2]))) 2041s assert (isequal (max(A), sym([2 4 6]))) 2041s assert (isequal (max(A, [], 1), sym([2 4 6]))) 2041s assert (isequal (max(A, [], 2), sym([6; 5]))) 2041s ***** test 2041s % index output is double not sym 2041s [m, I] = min(sym(2), [], 1); 2041s assert (strcmp(class(I), 'double')) 2041s [m, I] = max(sym(2), [], 1); 2041s assert (strcmp(class(I), 'double')) 2041s ***** test 2041s % empty rows/columns, I is double 2041s A = sym(zeros(0, 4)); 2041s [m, I] = min(A, [], 1); 2041s assert (strcmp(class(I), 'double')) 2041s [m, I] = max(A, [], 1); 2041s assert (strcmp(class(I), 'double')) 2041s A = sym(zeros(3, 0)); 2041s [m, I] = min(A, [], 2); 2041s assert (strcmp(class(I), 'double')) 2041s [m, I] = max(A, [], 2); 2041s assert (strcmp(class(I), 'double')) 2041s ***** test 2041s % index output 2041s A = [0 1 9; 10 7 4]; 2041s B = sym(A); 2041s [m1, I1] = min(A); 2041s [m2, I2] = min(B); 2041s assert (isequal (I1, I2)) 2041s assert (isequal (m1, double(m2))) 2041s [m1, I1] = max(A); 2041s [m2, I2] = max(B); 2041s assert (isequal (I1, I2)) 2041s assert (isequal (m1, double(m2))) 2042s ***** test 2042s % index output, with dim 2042s A = [0 1 9; 10 7 4]; 2042s B = sym(A); 2042s [m1, I1] = min(A, [], 1); 2042s [m2, I2] = min(B, [], 1); 2042s assert (isequal (I1, I2)) 2042s assert (isequal (m1, double(m2))) 2042s [m1, I1] = min(A, [], 2); 2042s [m2, I2] = min(B, [], 2); 2042s assert (isequal (I1, I2)) 2042s assert (isequal (m1, double(m2))) 2042s [m1, I1] = max(A, [], 1); 2042s [m2, I2] = max(B, [], 1); 2042s assert (isequal (I1, I2)) 2042s assert (isequal (m1, double(m2))) 2042s [m1, I1] = max(A, [], 2); 2042s [m2, I2] = max(B, [], 2); 2042s assert (isequal (I1, I2)) 2042s assert (isequal (m1, double(m2))) 2042s ***** test 2042s % empty columns 2042s A = sym(zeros(0, 4)); 2042s [m, I] = min(A, [], 1); 2042s assert (isequal (size(m), [0 4])) 2042s assert (isequal (size(I), [0 4])) 2042s [m, I] = max(A, [], 1); 2042s assert (isequal (size(m), [0 4])) 2042s assert (isequal (size(I), [0 4])) 2042s ***** test 2042s % empty rows 2042s A = sym(zeros(3, 0)); 2042s [m, I] = min(A, [], 2); 2042s assert (isequal (size(m), [3 0])) 2042s assert (isequal (size(I), [3 0])) 2042s [m, I] = max(A, [], 2); 2042s assert (isequal (size(m), [3 0])) 2042s assert (isequal (size(I), [3 0])) 2042s ***** test 2042s % another empty case 2042s % we differ slightly from double which gives 1x0/0x1 2042s A = sym(zeros(3, 0)); 2042s [m, I] = min(A, [], 1); 2042s assert (isempty (m)) 2042s assert (isempty (I)) 2042s A = sym(zeros(0, 3)); 2042s [m, I] = min(A, [], 2); 2042s assert (isempty (m)) 2042s assert (isempty (I)) 2043s ***** test 2043s % empty without index output 2043s A = sym(zeros(3, 0)); 2043s assert (isempty (min (A, [], 1))) 2043s assert (isempty (max (A, [], 1))) 2043s assert (isempty (min (A, [], 2))) 2043s assert (isempty (max (A, [], 2))) 2043s A = sym(zeros(0, 3)); 2043s assert (isempty (min (A, [], 1))) 2043s assert (isempty (max (A, [], 1))) 2043s assert (isempty (min (A, [], 2))) 2043s assert (isempty (max (A, [], 2))) 2043s ***** test 2043s % binary op form, one a scalar 2043s A = sym([3 1 9]); 2043s m = min(A, sym(2)); 2043s M = max(A, sym(2)); 2043s assert (isequal (m, sym([2 1 2]))) 2043s assert (isequal (M, sym([3 2 9]))) 2043s m = min(sym(2), A); 2043s M = max(sym(2), A); 2043s assert (isequal (m, sym([2 1 2]))) 2043s assert (isequal (M, sym([3 2 9]))) 2043s ***** test 2043s % binary op form, both scalar 2043s m = min(sym(1), sym(2)); 2043s M = max(sym(2), sym(2)); 2043s assert (isequal (m, sym(1))) 2043s assert (isequal (M, sym(2))) 2043s ***** test 2043s syms x y 2043s assert (isequal (children (min (x, y)), [x y])) 2043s ***** test 2043s syms x y z 2043s A = [x 1; y z]; 2043s assert (isequal (min (A, [], 1), [min(x, y) min(1, z)])) 2043s assert (isequal (max (A, [], 1), [max(x, y) max(1, z)])) 2043s assert (isequal (min (A, [], 2), [min(x, 1); min(y, z)])) 2043s assert (isequal (max (A, [], 2), [max(x, 1); max(y, z)])) 2043s ***** test 2043s syms x y positive 2043s a = min([x 2 y -6]); 2043s assert (isequal (a, -6)) 2043s a = max([x y -6]); 2043s assert (isequal (a, max(x, y))) 2044s ***** test 2044s syms x negative 2044s a = min([x 6 10]); 2044s assert (isequal (a, x)) 2044s a = max([x -2 6]); 2044s assert (isequal (a, 6)) 2044s 21 tests, 21 passed, 0 known failure, 0 skipped 2044s [inst/@sym/beta.m] 2044s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/beta.m 2044s ***** error beta (sym(1), 2, 3) 2044s ***** assert (isequal (double (beta (sym(1), 2)), 1/2)) 2044s ***** assert (isinf (double (beta (sym(1), 0)))) 2044s ***** test 2044s % round trip 2044s syms x y 2044s f = beta (x, y); 2044s h = function_handle (f); 2044s A = h (1.1, 2.2); 2044s B = beta (1.1, 2.2); 2044s assert (A, B) 2044s 4 tests, 4 passed, 0 known failure, 0 skipped 2044s [inst/@sym/ipermute.m] 2044s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/ipermute.m 2044s ***** error permute (sym(1)) 2045s ***** error permute (sym(1), 2, 3) 2045s ***** test 2045s syms x 2045s A = [1 x]; 2045s perm = [2 1]; 2045s B = permute(A, perm); 2045s C = ipermute(B, perm); 2045s assert (isequal(C, A)) 2045s 3 tests, 3 passed, 0 known failure, 0 skipped 2045s [inst/@sym/asinh.m] 2045s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/asinh.m 2045s ***** error asinh (sym(1), 2) 2045s ***** assert (isequaln (asinh (sym(nan)), sym(nan))) 2045s ***** shared x, d 2045s d = 1; 2045s x = sym('1'); 2045s ***** test 2045s f1 = asinh(x); 2045s f2 = asinh(d); 2045s assert( abs(double(f1) - f2) < 1e-15 ) 2045s ***** test 2045s D = [d d; d d]; 2045s A = [x x; x x]; 2045s f1 = asinh(A); 2045s f2 = asinh(D); 2045s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2045s ***** test 2045s % round trip 2045s y = sym('y'); 2045s A = asinh (d); 2045s f = asinh (y); 2045s h = function_handle (f); 2045s B = h (d); 2045s assert (A, B, -eps) 2046s 5 tests, 5 passed, 0 known failure, 0 skipped 2046s [inst/@sym/real.m] 2046s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/real.m 2046s ***** assert (isequal (real (sym (4) + 3i),4)) 2046s ***** test 2046s syms x y real 2046s z = x + 1i*y; 2046s assert (isequal (real (z),x)) 2046s ***** test 2046s syms x y real 2046s Z = [4 x + 1i*y; x 4 + 3i]; 2046s assert (isequal (real (Z),[4 x; x 4])) 2046s ***** test 2046s syms x real 2046s d = exp (x*i); 2046s assert (isequal (real (d), cos (x))) 2046s ***** test 2046s % round trip 2046s syms x 2046s d = 3 - 5i; 2046s f = real (x); 2046s A = real (d); 2046s h = function_handle (f); 2046s B = h (d); 2046s assert (A, B) 2046s 5 tests, 5 passed, 0 known failure, 0 skipped 2046s [inst/@sym/asec.m] 2046s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/asec.m 2046s ***** error asec (sym(1), 2) 2046s ***** assert (isequaln (asec (sym(nan)), sym(nan))) 2046s ***** shared x, d 2046s d = 2; 2046s x = sym('2'); 2046s ***** test 2046s f1 = asec(x); 2046s f2 = asec(d); 2046s assert( abs(double(f1) - f2) < 1e-15 ) 2046s ***** test 2046s D = [d d; d d]; 2046s A = [x x; x x]; 2046s f1 = asec(A); 2046s f2 = asec(D); 2046s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2046s ***** test 2046s % round trip 2046s y = sym('y'); 2046s A = asec (d); 2046s f = asec (y); 2046s h = function_handle (f); 2046s B = h (d); 2046s assert (A, B, -eps) 2046s 5 tests, 5 passed, 0 known failure, 0 skipped 2046s [inst/@sym/nchoosek.m] 2046s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/nchoosek.m 2046s ***** assert (isequal (nchoosek(sym(5), sym(2)), sym(10))) 2046s ***** assert (isequal (nchoosek(sym(5), 2), sym(10))) 2046s ***** assert (isequal (nchoosek(5, sym(2)), sym(10))) 2046s ***** assert (isequal (nchoosek(sym(10), 0), 1)) 2047s ***** assert (isequal (nchoosek(sym(10), -1), 0)) 2047s ***** test 2047s n = sym('n', 'nonnegative', 'integer'); 2047s assert (isequal (nchoosek (n, n), sym(1))) 2047s ***** test 2047s n = sym('n', 'integer'); 2047s q = nchoosek(n, 2); 2047s w = subs(q, n, 5); 2047s assert (isequal (w, 10)) 2047s ***** test 2047s n = sym('n', 'integer'); 2047s k = sym('k', 'integer'); 2047s q = nchoosek(n, k); 2047s w = subs(q, {n k}, {5 2}); 2047s assert (isequal (w, 10)) 2047s ***** test 2047s % negative input 2047s assert (isequal (nchoosek (sym(-2), sym(5)), sym(-6))) 2047s ***** test 2047s % complex input 2047s n = sym(1 + 3i); 2047s k = sym(5); 2047s A = nchoosek (n, k); 2047s B = gamma (n + 1) / (gamma (k + 1) * gamma (n - k + 1)); 2047s assert (double (A), double (B), -2*eps) 2047s ***** test 2047s % complex input 2047s n = sym(-2 + 3i); 2047s k = sym(1 + i); 2047s A = nchoosek (n, k); 2047s B = gamma (n + 1) / (gamma (k + 1) * gamma (n - k + 1)); 2047s assert (double (A), double (B), -2*eps) 2047s 11 tests, 11 passed, 0 known failure, 0 skipped 2047s [inst/@sym/frac.m] 2047s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/frac.m 2047s ***** test 2047s f1 = frac(sym(11)/10); 2047s f2 = sym(1)/10; 2047s assert (isequal (f1, f2)) 2048s ***** test 2048s d = sym(-11)/10; 2048s c = sym(9)/10; 2048s assert (isequal (frac (d), c)) 2048s ***** test 2048s d = sym(-19)/10; 2048s c = sym(1)/10; 2048s assert (isequal (frac (d), c)) 2048s 3 tests, 3 passed, 0 known failure, 0 skipped 2048s [inst/@sym/transpose.m] 2048s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/transpose.m 2048s ***** test 2048s x = sym(1); 2048s assert (isequal (x.', x)) 2048s ***** assert (isempty (sym([]).')) 2048s ***** test 2048s syms x; 2048s assert (isequal (x.', x)) 2048s ***** test 2048s A = [1 2; 3 4]; 2048s assert(isequal( sym(A).' , sym(A.') )) 2048s ***** test 2048s A = [1 2] + 1i; 2048s assert(isequal( sym(A).' , sym(A.') )) 2049s 5 tests, 5 passed, 0 known failure, 0 skipped 2049s [inst/@sym/minus.m] 2049s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/minus.m 2049s ***** test 2049s % scalar 2049s syms x 2049s assert (isa (x-1, 'sym')) 2049s assert (isa (x-x, 'sym')) 2049s assert (isequal (x-x, sym(0))) 2049s ***** test 2049s % matrices 2049s D = [0 1; 2 3]; 2049s A = sym(D); 2049s DZ = D - D; 2049s assert (isequal ( A - D , DZ )) 2049s assert (isequal ( A - A , DZ )) 2049s assert (isequal ( D - A , DZ )) 2049s assert (isequal ( A - 2 , D - 2 )) 2049s assert (isequal ( 4 - A , 4 - D )) 2050s 2 tests, 2 passed, 0 known failure, 0 skipped 2050s [inst/@sym/permute.m] 2050s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/permute.m 2050s ***** error permute (sym(1)) 2050s ***** error permute (sym(1), 2, 3) 2051s ***** test 2051s D = round(10*rand(5,3)); 2051s A = sym(D); 2051s B = permute(A, [1 2]); 2051s assert (isequal(B, A)) 2051s B = permute(A, [2 1]); 2051s assert (isequal(B, A.')) 2051s ***** test 2051s syms x 2051s A = [1 x]; 2051s B = permute(A, [2 1]); 2051s assert (isequal(B, [1; x])) 2051s 4 tests, 4 passed, 0 known failure, 0 skipped 2051s [inst/@sym/kron.m] 2051s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/kron.m 2051s ***** error kron (sym (2)) 2053s ***** test 2053s syms x y 2053s A = [sin(x), sin(y); x, y]; 2053s B = ones(2); 2053s 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]); 2053s assert (isequal (kron(A, B), expected)) 2054s ***** test 2054s syms x y 2054s A = [sin(x), sin(y); x, y]; 2054s B = 2; 2054s assert (isequal (kron(A, B), 2*A)) 2054s ***** test 2054s syms x y 2054s A = [sin(x), sin(y)]; 2054s B = 2; 2054s assert (isequal( kron(B, A), 2*A)) 2054s ***** test 2054s syms x y; 2054s X = [tan(x), tan(x)]; 2054s Y = [cot(x); cot(x)]; 2054s expected = sym(ones(2)); 2054s assert (isequal (simplify(kron(X, Y)), expected)) 2054s ***** test 2054s syms x y z 2054s X = [x, y, z]; 2054s Y = [y, y; x, x]; 2054s 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]; 2054s assert (isequal (kron(X, Y), expected)) 2055s ***** test 2055s syms x y 2055s X = [x, x^2; y, y^2]; 2055s Y = [1, 0; 0, 1]; 2055s expected = [x, x^2, 0, 0; y, y^2, 0, 0; 0, 0, x, x^2; 0, 0, y, y^2]; 2055s assert (isequal (kron(Y, X), expected)) 2055s ***** test 2055s syms x y z 2055s assert (isequal (kron (x, y, z), x*y*z)) 2055s assert (isequal (kron (x, y, z, 4), 4*x*y*z)) 2055s assert (isequal (kron ([2 3], y, z), [2 3]*y*z)) 2055s assert (isequal (kron ([2 3], [4; 5], y), [8 12; 10 15]*y)) 2055s ***** test 2055s syms x y 2055s A = kron ([x y], [1, -1; -1, 1], [2 3; 4 5]); 2055s D = kron ([7 9], [1, -1; -1, 1], [2 3; 4 5]); 2055s A = double (subs (A, [x y], [7 9])); 2055s assert (isequal (A, D)) 2057s 9 tests, 9 passed, 0 known failure, 0 skipped 2057s [inst/@sym/all.m] 2057s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/all.m 2057s ***** test 2057s % matrix 2057s a = [0 3; 1 2]; 2057s s = sym (a); 2057s assert (isequal (all (s), all (a))) 2057s assert (isequal (all (s,1), all (a,1))) 2057s assert (isequal (all (s,2), all (a,2))) 2057s ***** test 2057s % vector 2057s a = [1 2 3]; 2057s s = sym (a); 2057s assert (isequal (all (s), all (a))) 2057s assert (isequal (all (s,1), all (a,1))) 2057s assert (isequal (all (s,2), all (a,2))) 2057s ***** test 2057s % should fail on symbols 2057s syms x 2057s s = [1 2 x]; 2057s try 2057s all (s) 2057s waserr = false; 2057s catch 2057s waserr = true; 2057s end 2057s assert (waserr) 2057s 3 tests, 3 passed, 0 known failure, 0 skipped 2057s [inst/@sym/has.m] 2057s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/has.m 2057s ***** shared A, x, y 2057s syms x y 2057s A = [sym(pi) 2*sym(pi); x*y x+y]; 2057s ***** assert (isequal (has(A, x), [false false; true true])); 2057s ***** assert (isequal (has(A, x+y), [false false; false true])); 2057s ***** assert (isequal (has(A, 2), [false true; false false])); 2057s ***** assert (isequal (has(A, sym(pi)), [true true; false false])); 2057s 4 tests, 4 passed, 0 known failure, 0 skipped 2057s [inst/@sym/ezmesh.m] 2057s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/ezmesh.m 2057s ***** error 2057s syms u v t 2057s ezmesh(u*v, 2*u*v, 3*v*t) 2057s ***** error 2057s syms u v t 2057s ezmesh(u*v, 2*u*v, u*v*t) 2058s 2 tests, 2 passed, 0 known failure, 0 skipped 2058s [inst/@sym/ellipticPi.m] 2058s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/ellipticPi.m 2058s ***** error ellipticPi (sym (1)) 2058s ***** error ellipticPi (sym (1), 2, 3, 4) 2058s ***** assert (double (ellipticPi (sym (-23)/10, sym (pi)/4, 0)), 0.5876852228, 10e-11) 2058s ***** assert (double (ellipticPi (sym (1)/3, sym (pi)/3, sym (1)/2)), 1.285032276, 10e-11) 2059s ***** assert (double (ellipticPi (sym (2), sym (pi)/6, sym (2))), 0.7507322117, 10e-11) 2059s ***** xtest 2059s % FIXME: search/report upstream 2059s assert (double (ellipticPi (sym (-1), 0, sym (1))), 0) 2059s !!!!! known failure 2059s ASSERT errors for: assert (double (ellipticPi (sym (-1), 0, sym (1))),0) 2059s 2059s Location | Observed | Expected | Reason 2059s () NaN 0 'NaN' mismatch 2059s ***** xtest 2059s % FIXME: this is a regression somewhere: loss of precision: Issue #1064 2059s % compare to Maple, complete 2059s us = vpa (ellipticPi (sym(1)/6, sym(4)/3), 40); 2059s % > evalf(EllipticPi(sin(1/6), sqrt(4/3)), 40); 2059s maple = vpa ('2.019271696236161760696477679310987869058', 40) - ... 2059s vpa ('1.708165765120289929280805062355360570830j', 40); 2059s assert (abs (double (maple - us)), 0, 2e-39) 2066s !!!!! known failure 2066s ASSERT errors for: assert (abs (double (maple - us)),0,2e-39) 2066s 2066s Location | Observed | Expected | Reason 2066s () 5.7666e-32 0 Abs err 5.7666e-32 exceeds tol 2e-39 by 6e-32 2066s ***** test 2066s % compare to Maple, complete 2066s us = vpa (ellipticPi (sym(1)/6, sym(4)/3), 40); 2066s % > evalf(EllipticPi(sin(1/6), sqrt(4/3)), 40); 2066s maple = vpa ('2.019271696236161760696477679310987869058', 40) - ... 2066s vpa ('1.708165765120289929280805062355360570830j', 40); 2066s assert (abs (double (maple - us)), 0, 2e-30) 2067s ***** test 2067s % compare to Maple, incomplete 2067s us = vpa (ellipticPi (sym(8)/7, sym(4)/3, sym(2)/7), 40); 2067s % > evalf(EllipticPi(sin(4/3), 8/7, sqrt(2/7)), 40); 2067s maple = vpa ('2.089415796799294830305265090302275542033', 40) - ... 2067s vpa ('4.798862045930802761256228043192491271947j', 40); 2067s assert (abs (double (maple - us)), 0, 6e-39) 2068s 9 tests, 7 passed, 2 known failures, 0 skipped 2068s [inst/@sym/lgamma.m] 2068s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/lgamma.m 2068s ***** test 2068s % tested by gammaln 2068s assert (isequal (lgamma (sym ('x')), gammaln (sym ('x')))) 2069s 1 test, 1 passed, 0 known failure, 0 skipped 2069s [inst/@sym/diff.m] 2069s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/diff.m 2069s ***** shared x,y,z 2069s syms x y z 2069s ***** test 2069s % basic 2069s assert(logical( diff(sin(x)) - cos(x) == 0 )) 2069s assert(logical( diff(sin(x),x) - cos(x) == 0 )) 2069s assert(logical( diff(sin(x),x,x) + sin(x) == 0 )) 2069s ***** test 2069s % these fail when doubles are not converted to sym 2069s assert(logical( diff(sin(x),x,2) + sin(x) == 0 )) 2069s assert(logical( diff(sym(1),x) == 0 )) 2069s assert(logical( diff(1,x) == 0 )) 2069s assert(logical( diff(pi,x) == 0 )) 2069s ***** test 2069s % symbolic diff of const (w/o variable) fails in sympy, but we work around 2069s assert (isequal (diff(sym(1)), sym(0))) 2070s ***** test 2070s % nth symbolic diff of const 2070s assert (isequal (diff(sym(1), 2), sym(0))) 2070s assert (isequal (diff(sym(1), sym(1)), sym(0))) 2070s ***** test 2070s % octave's vector difference still works 2070s assert(isempty(diff(1))) 2070s assert((diff([2 6]) == 4)) 2070s ***** test 2070s % other forms 2070s f = sin(x); 2070s g = diff(f,x,2); 2070s assert (isequal (diff(f,2), g)) 2070s assert (isequal (diff(f,sym(2)), g)) 2070s g = diff(f,x); 2070s assert (isequal (diff(f), g)) 2070s assert (isequal (diff(f,1), g)) 2070s ***** test 2070s % old SMT supported (still does?) the 'n' before the 'x' 2070s % we might remove this someday, no longer seems documented in SMT 2070s f = sin(x); 2070s g = diff(f,x,2); 2070s assert (isequal (diff(f,2,x), g)) 2070s assert (isequal (diff(f,sym(2),x), g)) 2070s g = diff(f,x); 2070s assert (isequal (diff(f,1,x), g)) 2070s ***** test 2070s % matrix 2070s A = [x sin(x); x*y 10]; 2070s B = [1 cos(x); y 0]; 2070s assert(isequal(diff(A,x),B)) 2070s ***** test 2070s % bug: use symvar 2070s a = x*y; 2070s b = diff(a); 2070s assert (isequal (b, y)) 2070s ***** test 2070s % bug: symvar should be used on the matrix, not comp-by-comp 2070s a = [x y x*x]; 2070s b = diff(a); 2070s assert (~isequal (b(2), 1)) 2070s assert (isequal (b, [1 0 2*x])) 2070s b = diff(a,1); 2070s assert (~isequal (b(2), 1)) 2070s assert (isequal (b, [1 0 2*x])) 2071s 10 tests, 10 passed, 0 known failure, 0 skipped 2071s [inst/@sym/acos.m] 2071s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/acos.m 2071s ***** error acos (sym(1), 2) 2071s ***** assert (isequaln (acos (sym(nan)), sym(nan))) 2071s ***** shared x, d 2071s d = 1; 2071s x = sym('1'); 2071s ***** test 2071s f1 = acos(x); 2071s f2 = acos(d); 2071s assert( abs(double(f1) - f2) < 1e-15 ) 2071s ***** test 2071s D = [d d; d d]; 2071s A = [x x; x x]; 2071s f1 = acos(A); 2071s f2 = acos(D); 2071s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2071s ***** test 2071s % round trip 2071s y = sym('y'); 2071s A = acos (d); 2071s f = acos (y); 2071s h = function_handle (f); 2071s B = h (d); 2071s assert (A, B, -eps) 2071s 5 tests, 5 passed, 0 known failure, 0 skipped 2071s [inst/@sym/acosh.m] 2071s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/acosh.m 2071s ***** error acosh (sym(1), 2) 2071s ***** assert (isequaln (acosh (sym(nan)), sym(nan))) 2071s ***** shared x, d 2071s d = 1; 2071s x = sym('1'); 2071s ***** test 2071s f1 = acosh(x); 2071s f2 = acosh(d); 2071s assert( abs(double(f1) - f2) < 1e-15 ) 2071s ***** test 2071s D = [d d; d d]; 2071s A = [x x; x x]; 2071s f1 = acosh(A); 2071s f2 = acosh(D); 2071s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2071s ***** test 2071s % round trip 2071s y = sym('y'); 2071s A = acosh (d); 2071s f = acosh (y); 2071s h = function_handle (f); 2071s B = h (d); 2071s assert (A, B, -eps) 2071s 5 tests, 5 passed, 0 known failure, 0 skipped 2071s [inst/@sym/ge.m] 2071s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/ge.m 2071s ***** test 2071s % simple 2071s x = sym(1); y = sym(1); e = x >= y; 2071s assert (logical (e)) 2071s x = sym(1); y = sym(2); e = x >= y; 2071s assert (~logical(e)) 2071s ***** test 2071s % array -- array 2071s syms x 2071s a = sym([1 3 3 2*x]); 2071s b = sym([2 x 3 10]); 2071s e = a >= b; 2071s assert (isa (e, 'sym')) 2071s assert (~logical (e(1))) 2071s assert (isa (e(2), 'sym')) 2071s assert (isequal (e(2), 3 >= x)) 2071s assert (logical (e(3))) 2071s assert (isa (e(4), 'sym')) 2071s assert (isequal (e(4), 2*x >= 10)) 2072s 2 tests, 2 passed, 0 known failure, 0 skipped 2072s [inst/@sym/or.m] 2072s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/or.m 2072s ***** shared t, f 2072s t = sym(true); 2072s f = sym(false); 2072s ***** test 2072s % simple 2072s assert (isequal (t | f, t)) 2072s assert (isequal (t | t, t)) 2072s assert (isequal (f | f, f)) 2072s ***** test 2072s % array 2072s w = [t t f f]; 2072s z = [t f t f]; 2072s assert (isequal (w | z, [t t t f])) 2072s ***** test 2072s % output is sym even for scalar t/f 2072s assert (isa (t | f, 'sym')) 2072s ***** test 2072s % eqns 2072s syms x 2072s e = or(x == 4, x == 5); 2072s assert (isequal (subs(e, x, [3 4 5 6]), [f t t f])) 2072s ***** error or (sym(1), 2, 3) 2072s 5 tests, 5 passed, 0 known failure, 0 skipped 2072s [inst/@sym/char.m] 2072s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/char.m 2072s ***** test 2072s % issue #91: expose as string 2072s a = sym(pi); 2072s assert (strcmp (char (a), 'pi')) 2072s ***** shared x 2072s x = sym('x'); 2072s ***** assert (strcmp (char (x), 'x')) 2072s ***** assert (strcmp (char (2*x), '2*x')) 2072s ***** assert (strcmp (char ([2*x x]), 'Matrix([[2*x, x]])')) 2072s ***** assert (strcmp (char ([2*x 2; 1 x]), 'Matrix([[2*x, 2], [1, x]])')) 2072s 5 tests, 5 passed, 0 known failure, 0 skipped 2072s [inst/@sym/gt.m] 2072s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/gt.m 2072s ***** test 2072s % simple 2072s x = sym(1); y = sym(1); e = x > y; 2072s assert (~logical (e)) 2072s x = sym(1); y = sym(2); e = x > y; 2072s assert (~logical (e)) 2072s ***** test 2072s % array -- array 2072s syms x 2072s a = sym([1 3 3 2*x]); 2072s b = sym([2 x 3 10]); 2072s e = a > b; 2072s assert (isa (e, 'sym')) 2072s assert (~logical (e(1))) 2072s assert (isa (e(2), 'sym')) 2072s assert (isequal (e(2), 3 > x)) 2072s assert (~logical (e(3))) 2072s assert (isa (e(4), 'sym')) 2072s assert (isequal (e(4), 2*x > 10)) 2073s 2 tests, 2 passed, 0 known failure, 0 skipped 2073s [inst/@sym/sinh.m] 2073s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/sinh.m 2073s ***** error sinh (sym(1), 2) 2073s ***** assert (isequaln (sinh (sym(nan)), sym(nan))) 2073s ***** shared x, d 2073s d = 1; 2073s x = sym('1'); 2073s ***** test 2073s f1 = sinh(x); 2073s f2 = sinh(d); 2073s assert( abs(double(f1) - f2) < 1e-15 ) 2073s ***** test 2073s D = [d d; d d]; 2073s A = [x x; x x]; 2073s f1 = sinh(A); 2073s f2 = sinh(D); 2073s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2073s ***** test 2073s % round trip 2073s y = sym('y'); 2073s A = sinh (d); 2073s f = sinh (y); 2073s h = function_handle (f); 2073s B = h (d); 2073s assert (A, B, -eps) 2073s 5 tests, 5 passed, 0 known failure, 0 skipped 2073s [inst/@sym/invhilb.m] 2073s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/invhilb.m 2073s ***** test 2073s A = invhilb(sym(3)); 2073s B = sym([9 -36 30;-36 192 -180;30 -180 180]); 2073s assert( isequal( A, B)) 2073s 1 test, 1 passed, 0 known failure, 0 skipped 2073s [inst/@sym/coshint.m] 2073s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/coshint.m 2073s ***** error coshint (sym(1), 2) 2073s ***** xtest 2073s assert (isequaln (coshint (sym(nan)), sym(nan))) 2073s !!!!! known failure 2073s assert (isequaln (coshint (sym (nan)), sym (nan))) failed 2073s ***** shared x, d 2073s d = 1; 2073s x = sym('1'); 2073s ***** test 2073s f1 = coshint(x); 2073s f2 = 0.8378669409802082408947; 2073s assert( abs(double(f1) - f2) < 1e-15 ) 2073s ***** test 2073s D = [d d; d d]; 2073s A = [x x; x x]; 2073s f1 = coshint(A); 2073s f2 = 0.8378669409802082408947; 2073s f2 = [f2 f2; f2 f2]; 2073s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2073s ***** test 2073s % round trip 2073s y = sym('y'); 2073s A = coshint (d); 2073s f = coshint (y); 2073s h = function_handle (f); 2073s B = h (d); 2073s assert (A, B, -eps) 2073s 5 tests, 4 passed, 1 known failure, 0 skipped 2073s [inst/@sym/degree.m] 2073s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/degree.m 2073s ***** error degree (sym(1), 2, 3) 2073s ***** test 2073s syms x 2073s assert (isequal (degree(x^3), 3)) 2073s assert (isequal (degree(x^3 + 6), 3)) 2073s ***** test 2073s % specify variable 2073s syms x y 2073s p = x^2 + y*x + 1; 2073s assert (isequal (degree(p), 2)) 2073s assert (isequal (degree(p, x), 2)) 2073s assert (isequal (degree(p, y), 1)) 2074s ***** test 2074s syms x a oo 2074s assert (isequal (degree(x^3, a), 0)) 2074s assert (isequal (degree(sym(1), a), 0)) 2074s assert (isequal (degree(sym(0), a), -oo)) 2074s ***** xtest 2074s % constant inputs 2074s syms oo 2074s assert (isequal (degree(sym(1)), 0)) 2074s assert (isequal (degree(sym(0)), -oo)) 2074s 5 tests, 5 passed, 0 known failure, 0 skipped 2074s [inst/@sym/csc.m] 2074s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/csc.m 2074s ***** error csc (sym(1), 2) 2074s ***** assert (isequaln (csc (sym(nan)), sym(nan))) 2074s ***** shared x, d 2074s d = 1; 2074s x = sym('1'); 2074s ***** test 2074s f1 = csc(x); 2074s f2 = csc(d); 2074s assert( abs(double(f1) - f2) < 1e-15 ) 2074s ***** test 2074s D = [d d; d d]; 2074s A = [x x; x x]; 2074s f1 = csc(A); 2074s f2 = csc(D); 2074s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2074s ***** test 2074s % round trip 2074s y = sym('y'); 2074s A = csc (d); 2074s f = csc (y); 2074s h = function_handle (f); 2074s B = h (d); 2074s assert (A, B, -eps) 2074s 5 tests, 5 passed, 0 known failure, 0 skipped 2074s [inst/@sym/solve.m] 2074s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/solve.m 2074s ***** test 2074s % Simple, single variable, single solution 2074s syms x 2074s d = solve(10*x == 50); 2074s assert (isequal (d, 5)) 2074s ***** test 2074s % Single variable, multiple solutions 2074s syms x 2074s d = solve(x^2 == 4); 2074s assert (length(d) == 2); 2074s assert (isequal (d, [2; -2]) || isequal (d, [-2; 2])) 2074s ***** shared x,y,eq 2074s syms x y 2074s eq = 10*x == 20*y; 2074s ***** test 2074s d = solve(eq, x); 2074s assert (isequal (d, 2*y)) 2074s ***** test 2074s d = solve(eq, y); 2074s assert (isequal (d, x/2)) 2074s ***** test 2074s d = solve(eq); 2074s assert (isequal (d, 2*y)) 2075s ***** shared x,y 2075s syms x y 2075s ***** test 2075s d = solve(2*x - 3*y == 0, x + y == 1); 2075s assert (isequal (d.x, sym(3)/5) && isequal(d.y, sym(2)/5)) 2075s ***** test 2075s d = solve(2*x - 3*y == 0, x + y == 1, x, y); 2075s assert (isequal (d.x, sym(3)/5) && isequal(d.y, sym(2)/5)) 2075s ***** test 2075s % Multiple solutions, multiple variables 2075s d = solve(x^2 == 4, x + y == 1); 2075s assert (length(d) == 2); 2075s % FIXME: SMT has d.x gives vector and d.y giving vector, what is 2075s % more intuitive? 2075s for i = 1:2 2075s assert (isequal (d{i}.x + d{i}.y, 1)) 2075s assert (isequal ((d{i}.x)^2, 4)) 2075s end 2075s ***** test 2075s % No solutions 2075s syms x y z 2075s d = solve(x == y, z); 2075s assert (isempty (d)); 2075s ***** test 2075s % Multiple outputs with single solution 2075s [X, Y] = solve(2*x + y == 5, x + y == 3); 2075s assert (isequal (X, 2)) 2075s assert (isequal (Y, 1)) 2079s ***** test 2079s % system: vector of equations, vector of vars 2079s [X, Y] = solve([2*x + y == 5, x + y == 3], [x y]); 2079s assert (isequal (X, 2)) 2079s assert (isequal (Y, 1)) 2079s ***** test 2079s % system: vector of equations, individual vars 2079s [X, Y] = solve([2*x + y == 5, x + y == 3], x, y); 2079s assert (isequal (X, 2)) 2079s assert (isequal (Y, 1)) 2079s ***** test 2079s % system: individual equations, vector of vars 2079s [X, Y] = solve(2*x + y == 5, x + y == 3, [x y]); 2079s assert (isequal (X, 2)) 2079s assert (isequal (Y, 1)) 2079s ***** test 2079s % Multiple outputs with multiple solns 2079s [X, Y] = solve(x*x == 4, x == 2*y); 2079s assert ((isequal (X, [2; -2]) && isequal (Y, [1; -1])) || ... 2079s (isequal (X, [-2; 2]) && isequal (Y, [-1; 1]))) 2079s ***** test 2079s % Multiple outputs with multiple solns, specify vars 2079s [X, Y] = solve(x*x == 4, x == 2*y, x, y); 2079s assert ((isequal (X, [2; -2]) && isequal (Y, [1; -1])) || ... 2079s (isequal (X, [-2; 2]) && isequal (Y, [-1; 1]))) 2080s ***** error 2080s % mult outputs not allowed for scalar equation, even with mult soln (?) 2080s [s1, s2] = solve(x^2 == 4, x); 2080s ***** test 2080s % overdetermined 2080s X = solve(2*x - 10 == 0, 3*x - 15 == 0, x); 2080s assert (isequal (X, sym(5))) 2080s ***** test 2080s a = solve(2*x >= 10, 10*x <= 50); 2080s assert (isequal( a, x==sym(5))) 2080s ***** test 2080s A = solve([2*x == 4*y, 2 == 3], x); 2080s assert (isempty (A)) 2080s ***** test 2080s % Issue #850 2080s A = solve (sym(pi)^2*x + y == 0); 2080s assert (isequal (A, -y/sym(pi)^2)) 2080s ***** test 2080s % https://github.com/sympy/sympy/issues/14632 2080s A = solve([2*x == 4*y, sym(2) == 2], x); 2080s assert (isequal (A, 2*y)) 2080s ***** test 2080s % https://github.com/sympy/sympy/issues/14632 2080s A = solve([2*x^2 == 32*y^2, sym(2) == 2], x); 2080s B = solve([2*x^2 == 32*y^2], x); 2080s assert (isequal (A, B) || isequal (A, flip (B))) 2080s ***** test 2080s A = solve ([x+1 0], x); 2080s assert (isequal (A, sym (-1))) 2080s ***** test 2080s A = solve (x + 1, x); 2080s assert (isequal (A, sym (-1))) 2080s A = solve (x, x); 2080s assert (isequal (A, sym (0))) 2081s 24 tests, 24 passed, 0 known failure, 0 skipped 2081s [inst/@sym/factor.m] 2081s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/factor.m 2081s ***** test 2081s % n = 152862; 2081s % [p,m] = factor(n); % only works on Octave, no Matlab as of 2014a 2081s n = 330; % so we use an output without repeated factors 2081s p = factor(n); m = ones(size(p)); 2081s [ps,ms] = factor(sym(n)); 2081s assert (isequal (p, ps)) 2081s assert (isequal (m, ms)) 2081s ***** test 2081s n = sym(2)^4*13; 2081s [p,m] = factor(n); 2081s assert (isequal (p, [2 13])) 2081s assert (isequal (m, [4 1])) 2081s ***** test syms x 2081s assert( logical (factor(x^2 + 6*x + 5) == (x+5)*(x+1))) 2082s ***** test 2082s syms x 2082s f = [ x^4/2 + 5*x^3/12 - x^2/3 x^2 - 1 10]; 2082s g = [ x^2*(2*x - 1)*(3*x + 4)/12 (x+1)*(x-1) 10]; 2082s assert (isequal (factor(f), g)) 2082s ***** test 2082s % "fragile form" works 2082s A = factor(sym(124)); 2082s B = strtrim(disp(A, 'flat')); 2082s assert (strcmp (B, '2**2*31**1')) 2082s ***** error [p, m] = factor(sym('x')); 2085s ***** error [p, m] = factor(sym(42), sym('x')); 2087s ***** test 2087s % if polynomial happens to be a constant, don't attempt integer 2087s % factorization if a variable is specified 2087s f = sym(42); 2087s q = factor(f, sym('x')); 2087s assert (isequal (f, q)); 2088s 8 tests, 8 passed, 0 known failure, 0 skipped 2088s [inst/@sym/ldivide.m] 2088s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/ldivide.m 2088s ***** test 2088s % scalar 2088s syms x 2088s assert (isa (x .\ 1, 'sym')) 2088s assert (isa (x .\ x, 'sym')) 2088s assert (isequal (x .\ 1, 1/x)) 2088s assert (isequal (x .\ x, sym(1))) 2088s ***** test 2088s % matrix-scalar 2088s D = [1 1; 2 3]; 2088s A = sym(D); 2088s assert (isequal ( A .\ 6 , D .\ 6 )) 2088s assert (isequal ( A .\ sym(6) , D .\ 6 )) 2088s assert (isequal ( D .\ sym(6) , D .\ 6 )) 2089s ***** test 2089s % matrix-matrix 2089s D = [1 2; 3 4]; 2089s A = sym(D); 2089s assert (isequal ( A .\ A , D .\ D )) 2089s assert (isequal ( A .\ D , D .\ D )) 2089s assert (isequal ( D .\ A , D .\ D )) 2089s ***** test 2089s % matrix .\ matrix with symbols 2089s syms x y 2089s A = [x y; x^2 2*y]; 2089s B = [y x; x y]; 2089s assert (isequal ( A .\ A , sym(ones(2, 2)) )) 2089s assert (isequal ( B .\ A , [x/y y/x; x 2] )) 2089s ***** test 2089s % scalar .\ matrix 2089s D = 3*[1 2; 3 4]; 2089s A = sym(D); 2089s assert (isequal ( 3 .\ A , 3 .\ D )) 2090s 5 tests, 5 passed, 0 known failure, 0 skipped 2090s [inst/@sym/conj.m] 2090s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/conj.m 2090s ***** test 2090s a = sym(6); 2090s b = sym(5i); 2090s assert (isequal (conj(a), a)) 2090s assert (isequal (conj(b), -b)) 2090s assert (isequal (conj(a+b), a-b)) 2090s ***** test 2090s syms x 2090s assert (isequal (conj(conj(x)), x)) 2090s ***** test 2090s syms x real 2090s assert (isequal (conj(x), x)) 2090s ***** test 2090s % array 2090s syms x 2090s A = [x 6+1i; sym(1) x+2i]; 2090s B = [conj(x) 6-1i; sym(1) conj(x)-2i]; 2090s assert (isequal (conj(A), B)) 2090s ***** test 2090s % true/false 2090s t = sym(true); 2090s f = sym(false); 2090s assert (isequal ( conj(t), t)) 2090s assert (isequal ( conj(f), f)) 2090s ***** test 2090s % round trip 2090s syms x 2090s d = 3 - 5i; 2090s f = conj (x); 2090s A = conj (d); 2090s h = function_handle (f); 2090s B = h (d); 2090s assert (A, B) 2090s 6 tests, 6 passed, 0 known failure, 0 skipped 2090s [inst/@sym/ellipticE.m] 2090s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/ellipticE.m 2090s ***** error ellipticE (sym(1), 2, 3) 2091s ***** assert (double (ellipticE (sym (-105)/10)), 3.70961391, 10e-9) 2091s ***** assert (double (ellipticE (sym (-pi)/4)), 1.844349247, 10e-10) 2091s ***** assert (double (ellipticE (sym (0))), 1.570796327, 10e-10) 2091s ***** assert (double (ellipticE (sym (1))), 1, 10e-1) 2091s ***** test 2091s % compare to Maple 2091s us = vpa (ellipticE (sym(7)/6, sym(13)/7), 40); 2091s % > evalf(EllipticE(sin(7/6), sqrt(13/7)), 40); 2091s maple = vpa ('0.6263078268598504591831743625971763209496', 40) + ... 2091s vpa ('0.1775496232203171126975790989055865596501j', 40); 2091s assert (abs (double (maple - us)), 0, 2e-39) 2091s ***** test 2091s % compare to Maple 2091s us = vpa (ellipticE (sym(8)/7), 40); 2091s % > evalf(EllipticE(sqrt(8/7)), 40); 2091s maple = vpa ('0.8717182992576322508542205614105802333270', 40) + ... 2091s vpa ('0.1066754320328976949531350910798010526685j', 40); 2091s assert (abs (double (maple - us)), 0, 2e-39) 2091s 7 tests, 7 passed, 0 known failure, 0 skipped 2091s [inst/@sym/polylog.m] 2091s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/polylog.m 2091s ***** assert (isequal (polylog (sym('s'), 0), sym(0))) 2091s ***** assert (isequal (double (polylog (1, sym(-1))), -log(2))) 2091s ***** assert (isequal (double (polylog (0, sym(2))), -2)) 2091s ***** assert (isequal (double (polylog (-1, sym(2))), 2)) 2091s ***** assert (isequal (double (polylog (-2, sym(3))), -1.5)) 2091s ***** assert (isequal (double (polylog (-3, sym(2))), 26)) 2091s ***** assert (isequal (double (polylog (-4, sym(3))), -15)) 2091s ***** assert (isequal (double (polylog (1, sym(1)/2)), log(2))) 2092s ***** test 2092s % round trip 2092s syms s z 2092s f = polylog (s, z); 2092s h = function_handle (f, 'vars', [s z]); 2092s A = h (1.1, 2.2); 2092s B = polylog (1.1, 2.2); 2092s assert (A, B) 2092s 9 tests, 9 passed, 0 known failure, 0 skipped 2092s [inst/@sym/power.m] 2092s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/power.m 2092s ***** test 2092s % scalar .^ scalar 2092s syms x 2092s assert (isa (x.^2, 'sym')) 2092s assert (isa (2.^x, 'sym')) 2092s assert (isa (x.^x, 'sym')) 2092s assert (isequal (x.^2, x^2)) 2092s assert (isequal (2.^x, 2^x)) 2092s assert (isequal (x.^x, x^x)) 2092s ***** test 2092s % scalar .^ matrix 2092s D = [0 1; 2 3]; 2092s A = sym(D); 2092s assert (isequal ( sym(2).^D , 2.^D )) 2092s assert (isequal ( sym(2).^A , 2.^A )) 2092s assert (isequal ( 2.^D , 2.^A )) 2092s assert (isequal ( 2.^A , 2.^A )) 2092s ***** test 2092s % matrix .^ matrix 2092s syms x 2092s A = [x 2*x; 3*x 4*x]; 2092s D = [0 1; 2 3]; 2092s B = sym(D); 2092s assert (isequal ( A.^D, [1 2*x; 9*x^2 64*x^3] )) 2092s assert (isequal ( A.^B, [1 2*x; 9*x^2 64*x^3] )) 2093s ***** test 2093s % matrix .^ scalar 2093s syms x 2093s A = [x 2*x]; 2093s assert (isequal ( A.^2, [x^2 4*x^2] )) 2093s assert (isequal ( A.^sym(2), [x^2 4*x^2] )) 2093s ***** test 2093s % 1^oo 2093s % (sympy >= 0.7.5 gives NaN, SMT R2013b: gives 1) 2093s oo = sym(inf); 2093s assert (isnan (1^oo)) 2093s ***** test 2093s % 1^zoo 2093s % (1 on sympy 0.7.4--0.7.6, but nan in git (2014-12-12, a210908d4)) 2093s zoo = sym('zoo'); 2093s assert (isnan (1^zoo)) 2093s ***** test 2093s % immutable test 2093s A = sym([1 2]); 2093s B = sym('ImmutableDenseMatrix([[Integer(1), Integer(2)]])'); 2093s assert (isequal (A.^A, B.^B)) 2093s :18: SyntaxWarning: invalid escape sequence '\(' 2093s 7 tests, 7 passed, 0 known failure, 0 skipped 2093s [inst/@sym/det.m] 2093s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/det.m 2093s ***** assert (isequal (det(sym([])), 1)) 2094s ***** test 2094s syms x y real 2094s assert (isequal (det([x 5; 7 y]), x*y-35)) 2094s ***** test 2094s syms x 2094s assert (isequal (det(x), x)) 2094s assert (isequal (det(sym(-6)), sym(-6))) 2094s 3 tests, 3 passed, 0 known failure, 0 skipped 2094s [inst/@sym/piecewise.m] 2094s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/piecewise.m 2094s ***** test 2094s % basic 2094s syms x real 2094s f = piecewise (abs (x) < 1, 1); 2094s assert (isnan (subs (f, -1))); 2094s assert (isequal (subs (f, 0), 1)); 2094s assert (isnan (subs (f, 1))); 2094s ***** test 2094s % heaviside 2094s syms x real 2094s f = rewrite (heaviside (x, 1 / sym (2)), 'Piecewise'); 2094s g = piecewise (x < 0, 0, x == 0, 1 / sym (2), x > 0, 1); 2094s assert (logical (simplify (f == g))); 2094s 2 tests, 2 passed, 0 known failure, 0 skipped 2094s [inst/@sym/mrdivide.m] 2094s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/mrdivide.m 2094s ***** test 2094s % scalar 2094s syms x 2094s assert (isa( x/x, 'sym')) 2094s assert (isequal( x/x, sym(1))) 2094s assert (isa( 2/x, 'sym')) 2094s assert (isa( x/2, 'sym')) 2095s ***** test 2095s % matrix / scalar 2095s D = 2*[0 1; 2 3]; 2095s A = sym(D); 2095s assert (isequal ( A/2 , D/2 )) 2095s assert (isequal ( A/sym(2) , D/2 )) 2095s ***** test 2095s % I/A: either invert A or leave unevaluated: not bothered which 2095s A = sym([1 2; 3 4]); 2095s B = sym(eye(2)) / A; 2095s assert (isequal (B, inv(A)) || strncmpi (sympy (B), 'MatPow', 6)) 2095s ***** xtest 2095s % immutable test, upstream: TODO 2095s A = sym([1 2; 3 4]); 2095s B = sym('ImmutableDenseMatrix([[Integer(1), Integer(2)], [Integer(3), Integer(4)]])'); 2095s assert (isequal (A/A, B/B)) 2095s :18: SyntaxWarning: invalid escape sequence '\(' 2095s ***** test 2095s % A = C/B is C = A*B 2095s A = sym([1 2; 3 4]); 2095s B = sym([1 3; 4 8]); 2095s C = A*B; 2095s A2 = C / B; 2095s assert (isequal (A, A2)) 2095s ***** test 2095s A = [1 2; 3 4]; 2095s B = A / A; 2095s % assert (isequal (B, sym(eye(2)) 2095s assert (isequal (B(1,1), 1)) 2095s assert (isequal (B(2,2), 1)) 2095s assert (isequal (B(2,1), 0)) 2095s assert (isequal (B(1,2), 0)) 2095s ***** test 2095s A = sym([5 6]); 2095s B = sym([1 2; 3 4]); 2095s C = A*B; 2095s A2 = C / B; 2095s assert (isequal (A, A2)) 2095s 7 tests, 7 passed, 0 known failure, 0 skipped 2095s [inst/@sym/sinint.m] 2095s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/sinint.m 2095s ***** error sinint (sym(1), 2) 2096s ***** xtest 2096s assert (isequaln (sinint (sym(nan)), sym(nan))) 2096s !!!!! known failure 2096s assert (isequaln (sinint (sym (nan)), sym (nan))) failed 2096s ***** shared x, d 2096s d = 1; 2096s x = sym('1'); 2096s ***** test 2096s f1 = sinint(x); 2096s f2 = 0.9460830703671830149414; 2096s assert( abs(double(f1) - f2) < 1e-15 ) 2096s ***** test 2096s D = [d d; d d]; 2096s A = [x x; x x]; 2096s f1 = sinint(A); 2096s f2 = 0.9460830703671830149414; 2096s f2 = [f2 f2; f2 f2]; 2096s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2096s ***** test 2096s % round trip 2096s y = sym('y'); 2096s A = sinint (d); 2096s f = sinint (y); 2096s h = function_handle (f); 2096s B = h (d); 2096s assert (A, B, -eps) 2096s 5 tests, 4 passed, 1 known failure, 0 skipped 2096s [inst/@sym/atanh.m] 2096s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/atanh.m 2096s ***** error atanh (sym(1), 2) 2096s ***** assert (isequaln (atanh (sym(nan)), sym(nan))) 2096s ***** shared x, d 2096s d = 1/2; 2096s x = sym('1/2'); 2096s ***** test 2096s f1 = atanh(x); 2096s f2 = atanh(d); 2096s assert( abs(double(f1) - f2) < 1e-15 ) 2096s ***** test 2096s D = [d d; d d]; 2096s A = [x x; x x]; 2096s f1 = atanh(A); 2096s f2 = atanh(D); 2096s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2096s ***** test 2096s % round trip 2096s y = sym('y'); 2096s A = atanh (d); 2096s f = atanh (y); 2096s h = function_handle (f); 2096s B = h (d); 2096s assert (A, B, -eps) 2096s 5 tests, 5 passed, 0 known failure, 0 skipped 2096s [inst/@sym/curl.m] 2096s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/curl.m 2096s ***** error curl([sym(1) 2 3], 42, 42) 2096s ***** shared x,y,z 2096s syms x y z 2096s ***** test 2096s % double const 2096s f = [1 2 3]; 2096s g = [sym(0); 0; 0]; 2096s assert (isequal (curl(f, [x y z]), g)) 2096s % should fail, calls @double: curl(f, {x y z}), g)) 2096s ***** test 2096s % div curl always 0 2096s v = [exp(x); x*y; sin(z)]; 2096s g = curl(v); 2096s a = divergence(g, [x y z]); 2096s assert (isAlways (a == sym(0))) 2096s assert (isa (a, 'sym')) 2096s g = curl(v, [x y z]); 2096s a = divergence(g, [x y z]); 2096s assert (isAlways (a == sym(0))) 2096s assert (isa (a, 'sym')) 2097s ***** test 2097s % div curl always 0 2097s v = [exp(x); erfc(x*y); sin(exp(x)*y+sinh(z))]; 2097s g = curl(v, [x y z]); 2097s a = divergence(g, [x y z]); 2097s assert (isAlways (a == sym(0))) 2097s assert (isa (a, 'sym')) 2098s ***** test 2098s % curl grad is vec zero 2098s f = sin(exp(x)*y+sinh(z)); 2098s g = curl(gradient(f, [x,y,z])); 2098s assert (isequal (g, sym([0;0;0]))) 2100s ***** test 2100s % 2d fcn in 2d/3d 2100s u = sin(exp(x)*y); 2100s v = x^2*y^3; 2100s vorticity2d = diff(v,x) - diff(u,y); 2100s omega = curl([u; v; 0], [x y z]); 2100s assert (isequal (omega, [0; 0; vorticity2d])) 2101s ***** error <3D vector> curl([sym(1) 2 3 4]) 2101s ***** error curl([sym(1) 2 3], {sym('x') sym('y') sym('z') sym('t')}) 2101s 8 tests, 8 passed, 0 known failure, 0 skipped 2101s [inst/@sym/mpower.m] 2101s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/mpower.m 2101s ***** test 2101s syms x 2101s assert(isequal(x^(sym(4)/5), x.^(sym(4)/5))) 2101s ***** test 2101s % integer powers of scalars 2101s syms x 2101s assert (isequal (x^2, x*x)) 2101s assert (isequal (x^sym(3), x*x*x)) 2101s ***** test 2101s % array ^ integer 2101s syms x y 2101s A = [x 2; y 4]; 2101s assert (isequal (A^2, A*A)) 2101s assert (isequal (simplify(A^3 - A*A*A), [0 0; 0 0])) 2101s ***** test 2101s % array ^ rational 2101s Ad = [1 2; 0 3]; 2101s A = sym(Ad); 2101s B = A^(sym(1)/3); 2101s Bd = Ad^(1/3); 2101s assert (max(max(abs(double(B) - Bd))) < 1e-14) 2102s ***** test 2102s % non-integer power 2102s A = sym([1 2; 0 3]); 2102s B = A^pi; 2102s C = [1 -1+3^sym(pi); 0 sym(3)^pi]; 2102s assert (isequal (B, C)) 2102s ***** test 2102s % matpow 2102s syms n 2102s A = sym([1 2; 3 4]); 2102s B = A^n; 2102s C = 10 + B + B^2; 2102s D = subs(C, n, 1); 2102s E = 10 + A + A^2; 2102s assert (isequal (simplify(D), simplify(E))) 2106s ***** test 2106s % matpow, sub in zero gives identity 2106s A = sym([1 2; 0 3]); 2106s syms n; 2106s B = A^n; 2106s C = subs(B, n, 1); 2106s assert (isequal (C, A)) 2106s C = subs(B, n, 0); 2106s assert (isequal (C, sym(eye(2)))) 2106s ***** xtest 2106s % scalar^array (e.g., defined by matrix exponential) not implemented in SymPy? 2106s % on 1.0 < SymPy <= 1.5.1, you can form the expression but still cannot eval 2106s syms x 2106s A = [1 2; 3 4]; 2106s B = x^A; 2106s assert (strcmp (regexprep (disp (B, 'flat'), '\s+', ''), 'x**Matrix([[1,2],[3,4]])')) 2106s % sub in and compare to double 2106s Bs = subs(B, x, sym(3)/2); 2106s D1 = double(Bs); 2106s D2 = (3/2)^[1 2; 3 4]; 2106s assert (max(max(abs(D1 - D2))) < 1e-14) 2106s !!!!! known failure 2106s Python exception: TypeError: unsupported operand type(s) for ** or pow(): 'Symbol' and 'MutableDenseMatrix' 2106s occurred at line 2 of the Python code block: 2106s return x**y 2106s ***** error 2106s A = sym([1 2; 3 4]); 2106s B = A^A; 2106s 9 tests, 8 passed, 1 known failure, 0 skipped 2106s [inst/@sym/rows.m] 2106s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/rows.m 2106s ***** test 2106s a = sym([1 2 3]); 2106s assert (rows(a) == 1) 2106s ***** test 2106s a = sym([1 2 3; 4 5 6]); 2106s assert (rows(a) == 2) 2106s 2 tests, 2 passed, 0 known failure, 0 skipped 2106s [inst/@sym/ztrans.m] 2106s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/ztrans.m 2106s ***** test 2106s % basic Z-transform table checks 2106s % X1, ..., X4 must have inner radius of convergence 1 2106s syms n z 2106s % trick to extract the closed form formula using the fact that inner roc = 1 2106s closed_form = @(X) subs (X, abs (1 / z), 1 / sym (2)); 2106s % check if ztrans(f) == X 2106s check_ztrans = @(f, X) logical (simplify (closed_form (ztrans (f)) == X)); 2106s f1 = sym (1); 2106s X1 = 1 / (1 - 1 / z); 2106s assert (check_ztrans (f1, X1)); 2106s f2 = n; 2106s X2 = (1 / z) / (1 - 1 / z)^2; 2106s assert (check_ztrans (f2, X2)); 2106s f3 = n^2; 2106s X3 = (1 / z) * (1 + 1 / z) / (1 - 1 / z)^3; 2106s assert (check_ztrans (f3, X3)); 2106s f4 = n^3; 2106s X4 = (1 / z) * (1 + 4 / z + 1 / z^2) / (1 - 1 / z)^4; 2106s assert (check_ztrans (f4, X4)); 2106s % basic matrix checks 2106s A1 = ztrans ([f1 f2; f3 f4]); 2106s B1 = [ztrans(f1) ztrans(f2); ztrans(f3) ztrans(f4)]; 2106s assert (isequal (A1, B1)); 2106s A2 = ztrans ([f1 f2; f3 f4], z); 2106s B2 = [ztrans(f1, z) ztrans(f2, z); ztrans(f3, z) ztrans(f4, z)]; 2106s assert (isequal (A2, B2)); 2106s A3 = ztrans ([f1 f2; f3 f4], n, z); 2106s B3 = [ztrans(f1, n, z) ztrans(f2, n, z); ztrans(f3, n, z) ztrans(f4, n, z)]; 2106s assert (isequal (A3, B3)); 2115s ***** test 2115s % additional Z-transform table checks 2115s % X1, ..., X4 must have inner radius of convergence a 2115s syms n nonnegative integer 2115s syms m positive integer 2115s syms a 2115s syms z 2115s % trick to extract the closed form formula using the fact that inner roc = a 2115s closed_form = @(X) subs (X, abs (a / z), 1 / sym (2)); 2115s % check if ztrans(f) == X 2115s check_ztrans = @(f, X) logical (simplify (closed_form (ztrans (f)) == X)); 2115s f1 = a^n; 2115s X1 = 1 / (1 - a / z); 2115s assert (check_ztrans (f1, X1)); 2115s f2 = n * a^n; 2115s X2 = (a / z) / (1 - a / z)^2; 2115s assert (check_ztrans (f2, X2)); 2115s f3 = n^2 * a^n; 2115s X3 = (a / z) * (1 + a / z) / (1 - a / z)^3; 2115s assert (check_ztrans (f3, X3)); 2115s f4 = nchoosek(n + m - 1, m - 1) * a^n; 2115s X4 = 1 / (1 - a / z)^m; 2115s assert (check_ztrans (f4, X4)); 2115s % additional matrix checks 2115s A1 = ztrans (f1, [n m; m n], [z a; a z]); 2115s B1 = [ztrans(f1, n, z) ztrans(f1, m, a); ztrans(f1, m, a) ztrans(f1, n, z)]; 2115s assert (isequal (A1, B1)); 2115s A2 = ztrans (f1, m, [z a; a z]); 2115s B2 = [ztrans(f1, m, z) ztrans(f1, m, a); ztrans(f1, m, a) ztrans(f1, m, z)]; 2115s assert (isequal (A2, B2)); 2115s A3 = ztrans (f1, [n m; m n], a); 2115s B3 = [ztrans(f1, n, a) ztrans(f1, m, a); ztrans(f1, m, a) ztrans(f1, n, a)]; 2115s assert (isequal (A3, B3)); 2121s ***** test 2121s % Kronecker delta checks 2121s syms n n0 nonnegative integer 2121s syms z 2121s assert (isequal (ztrans (kroneckerDelta (n)), 1)); 2121s assert (isequal (ztrans (kroneckerDelta (n - n0)), 1 / z^n0)); 2121s ***** test 2121s % basic var selection checks 2121s syms n m z w 2121s assert (isequal (ztrans (1 / factorial (n)), exp (1 / z))); 2121s assert (isequal (ztrans (1 / factorial (z)), exp (1 / w))); 2121s assert (isequal (ztrans (1 / factorial (m), w), exp (1 / w))); 2121s assert (isequal (ztrans (1 / factorial (m), m, w), exp (1 / w))); 2122s ***** test 2122s % additional var selection checks 2122s syms n m z 2122s f = kroneckerDelta(m) / factorial (n); 2122s assert (isequal (ztrans (f, z), exp (1 / z) * kroneckerDelta (m))); 2122s assert (isequal (ztrans (f, n, z), exp (1 / z) * kroneckerDelta (m))); 2122s assert (isequal (ztrans (f, m, z), 1 / factorial (n))); 2123s ***** test 2123s % if no t, use symvar: take x before a 2123s syms a x z 2123s assert (isequal (ztrans (a / factorial (x)), a * exp (1 / z))); 2123s ***** error ztrans (sym ('n')^sym ('n', 'nonnegative', 'integer')) 2123s 7 tests, 7 passed, 0 known failure, 0 skipped 2123s [inst/@sym/chebyshevU.m] 2123s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/chebyshevU.m 2123s ***** error chebyshevU (sym(1)) 2124s ***** error chebyshevU (sym(1), 2, 3) 2124s ***** assert (isequaln (chebyshevU (2, sym(nan)), sym(nan))) 2124s ***** shared x 2124s syms x 2124s ***** assert(isequal(chebyshevU(0, x), sym(1))) 2125s ***** assert(isequal(chebyshevU(1, x), 2*x)) 2125s ***** assert(isequal(chebyshevU(2, x), 4*x*x - 1)) 2125s ***** assert(isequal(chebyshevU([0 1 2], x), [sym(1) 2*x (4*x*x-1)])) 2125s ***** test 2125s % round trip 2125s syms n z 2125s f = chebyshevU (n, z); 2125s h = function_handle (f, 'vars', [n z]); 2125s A = h (1.1, 2.2); 2125s B = chebyshevU (1.1, 2.2); 2125s assert (A, B) 2125s 8 tests, 8 passed, 0 known failure, 0 skipped 2125s [inst/@sym/isprime.m] 2125s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/isprime.m 2125s ***** assert (isprime (sym(5))) 2125s ***** assert (~isprime (sym(4))) 2125s ***** assert (~isprime (sym(0))) 2125s ***** assert (~isprime (sym(1))) 2125s ***** test 2125s a = [5 7 6; 1 2 337]; 2125s assert (isequal (isprime (a), [true true false; false true true])) 2125s ***** assert (~isprime(sym(-4))) 2125s ***** assert (~isprime(sym(4i))) 2125s ***** assert (~isprime(sym(3)/5)) 2125s ***** error 2125s isprime(sym('x')); 2125s 9 tests, 9 passed, 0 known failure, 0 skipped 2125s [inst/@sym/sym2poly.m] 2125s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/sym2poly.m 2125s ***** shared x,y,a,b,c 2125s syms x y a b c 2125s ***** assert (isequal (sym2poly (x^2 + 3*x - 4), [1 3 -4])) 2126s ***** assert (isequal (sym2poly (x^6 - x^3), [1 0 0 -1 0 0 0])) 2127s ***** assert (isequal (sym2poly (x^2 + 3*x - 4, x), [1 3 -4])) 2127s ***** assert (norm (sym2poly (pi*x^2 + exp(sym(1))) - [pi 0 exp(1)]) < 10*eps) 2127s ***** assert (isa (sym2poly (x^2 + 3*x - 4), 'double')) 2127s ***** assert (isa (sym2poly (x^2 + 3*x - 4, x), 'sym')) 2127s ***** assert (isequal (sym2poly (x^2+y*x, x), [sym(1) y sym(0)])) 2128s ***** assert (isequal (sym2poly (x^2+y*x, y), [x x^2])) 2128s ***** assert (isequal (sym2poly (poly2sym ([a b c], x), x), [a b c])) 2128s ***** assert (isequal (poly2sym (sym2poly(a*x^2 + c, x), x), a*x^2 + c)) 2128s ***** assert (isequal (sym2poly (poly2sym ([1 2 3])), [1 2 3])) 2129s ***** error 2129s % too many symbols for single-input 2129s p = a*x^2 + 2; 2129s c = sym2poly (p); 2129s ***** assert (isequal (sym2poly (sym(5)), sym(5))) 2129s 13 tests, 13 passed, 0 known failure, 0 skipped 2129s [inst/@sym/setxor.m] 2129s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/setxor.m 2129s ***** test 2129s A = sym([1 2 3]); 2129s B = sym([1 2 4]); 2129s C = setxor(A, B); 2129s D1 = sym([3 4]); 2129s D2 = sym([4 3]); 2129s assert (isequal (C, D1) || isequal (C, D2)) 2129s ***** test 2129s % one nonsym 2129s A = sym([1 2 3]); 2129s B = [1 2 4]; 2129s C = setxor(A, B); 2129s D1 = sym([3 4]); 2129s D2 = sym([4 3]); 2129s assert (isequal (C, D1) || isequal (C, D2)) 2129s ***** test 2129s % empty 2129s A = sym([1 2 3]); 2129s C = setxor(A, A); 2129s assert (isempty (C)) 2129s ***** test 2129s % empty input 2129s A = sym([1 2]); 2129s C = setxor(A, []); 2129s assert (isequal (C, A) || isequal (C, sym([2 1]))) 2129s ***** test 2129s % scalar 2129s syms x 2129s assert (isequal (setxor([x 1], x), sym(1))) 2129s assert (isempty (setxor(x, x))) 2129s ***** test 2129s A = interval(sym(1), 3); 2129s B = interval(sym(2), 5); 2129s C = setxor(A, B); 2129s D = union (interval (sym(1), 2, false, true), interval (sym(3), 5, true, false)); 2129s assert( isequal( C, D)) 2130s 6 tests, 6 passed, 0 known failure, 0 skipped 2130s [inst/@sym/partfrac.m] 2130s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/partfrac.m 2130s ***** test 2130s % basic 2130s syms x y z 2130s assert(logical( partfrac(y/(x + 2)/(x + 1),x) == -y/(x + 2) + y/(x + 1) )) 2130s assert(logical( factor(partfrac(x^2/(x^2 - y^2),y)) == factor(x/(2*(x + y)) + x/(2*(x - y)) ))) 2130s assert(logical( factor(partfrac(x^2/(x^2 - y^2),x)) == factor(-y/(2*(x + y)) + y/(2*(x - y)) + 1 ))) 2131s 1 test, 1 passed, 0 known failure, 0 skipped 2131s [inst/@sym/eye.m] 2131s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/eye.m 2131s ***** test 2131s y = eye(sym(2)); 2131s x = [1 0; 0 1]; 2131s assert( isequal( y, sym(x))) 2131s ***** test 2131s y = eye(sym(2), 1); 2131s x = [1; 0]; 2131s assert( isequal( y, sym(x))) 2131s ***** test 2131s y = eye(sym(1), 2); 2131s x = [1 0]; 2131s assert( isequal( y, sym(x))) 2131s ***** test 2131s y = eye (sym([2 3])); 2131s x = sym (eye ([2 3])); 2131s assert (isequal (y, x)) 2131s ***** assert( isa( eye(sym(2), 'double'), 'double')) 2131s ***** assert( isa( eye(3, sym(3), 'single') , 'single')) 2131s ***** assert( isa( eye(3, sym(3)), 'sym')) 2131s ***** assert( isa( eye(3, sym(3), 'sym'), 'sym')) 2131s ***** xtest 2131s % Issue #13 2131s assert( isa( eye(3, 3, 'sym'), 'sym')) 2131s !!!!! known failure 2131s invalid data type specified 2131s 9 tests, 8 passed, 1 known failure, 0 skipped 2131s [inst/@sym/gammaln.m] 2131s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/gammaln.m 2131s ***** assert (isequal (gammaln (sym (3)), log (sym (2)))) 2131s ***** assert (isequal (gammaln (sym (10)), log (gamma (sym (10))))) 2131s ***** test 2131s % compare to Maple: evalf(lnGAMMA(Pi)); 2131s maple = vpa ('0.827694592323437101529578558452359951153502', 40); 2131s us = vpa (gammaln (sym(pi)), 40); 2131s assert (abs(double(maple-us)) < 1e-39) 2131s ***** test 2131s % compare to Maple: evalf(lnGAMMA(3+2*I)); 2131s maple = vpa ('-0.0316390593739611898037677296008797172022603', 40) + ... 2131s vpa ('2.02219319750132712401643376238334982100512j', 40); 2131s us = vpa (gammaln (sym(3) + 2i), 40); 2131s assert (abs(double(maple-us)) < 1e-39) 2132s ***** test 2132s % compare to Maple: evalf(lnGAMMA(-1.5)); 2132s % notably, @double/gammaln has zero imag part 2132s maple = vpa ('0.8600470153764810145109326816703567873271571', 40) - ... 2132s vpa ('6.2831853071795864769252867665590057683943388j', 40); 2132s us = vpa (gammaln (-sym(3)/2), 40); 2132s assert (abs(double(maple-us)) < 1e-39) 2132s ***** assert (gammaln (pi), double (gammaln (sym (pi))), -3*eps) 2132s ***** assert (gammaln (100), double (gammaln (sym (100))), -3*eps) 2132s ***** assert (gammaln (1e-3), double (gammaln (1/sym (1e3))), -100*eps) 2132s ***** test 2132s % round trip 2132s syms x 2132s f = gammaln (x); 2132s h = function_handle (f); 2132s A = h (1.1); 2132s B = gammaln (1.1); 2132s assert (A, B) 2132s 9 tests, 9 passed, 0 known failure, 0 skipped 2132s [inst/@sym/subsindex.m] 2132s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/subsindex.m 2132s ***** test 2132s i = sym(1); 2132s a = 7; 2132s assert(a(i)==a); 2132s i = sym(2); 2132s a = 2:2:10; 2132s assert(a(i)==4); 2132s ***** test 2132s i = sym([1 3 5]); 2132s a = 1:10; 2132s assert( isequal (a(i), [1 3 5])) 2132s ***** test 2132s i = sym([1 3 5]); 2132s a = sym(1:10); 2132s assert( isequal (a(i), sym([1 3 5]))); 2132s ***** test 2132s % should be an error if it doesn't convert to double 2132s syms x 2132s a = 1:10; 2132s try 2132s a(x) 2132s waserr = false; 2132s catch 2132s waserr = true; 2132s end 2132s assert(waserr) 2132s ***** test 2132s syms x 2132s assert (isequal (x(sym (true)), x)) 2132s assert (isequal (x(sym (false)), sym ([]))) 2132s ***** test 2132s x = 6; 2132s assert (isequal (x(sym (true)), 6)) 2132s assert (isequal (x(sym (false)), [])) 2133s ***** test 2133s a = sym([10 12 14]); 2133s assert (isequal (a(sym ([true false true])), a([1 3]))) 2133s assert (isequal (a(sym ([false false false])), sym (ones(1,0)))) 2133s ***** test 2133s a = [10 11; 12 13]; 2133s p = [true false; true true]; 2133s assert (isequal (a(sym (p)), a(p))) 2133s p = [false false false]; 2133s assert (isequal (a(sym (p)), a(p))) 2133s ***** error 2133s a = [10 12]; 2133s I = [sym(true) 2]; 2133s b = a(I); 2133s 9 tests, 9 passed, 0 known failure, 0 skipped 2133s [inst/@sym/ifourier.m] 2133s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/ifourier.m 2133s ***** error ifourier (sym(1), 2, 3, 4) 2134s ***** test 2134s % matlab SMT compat 2134s syms t r u x w 2134s Pi=sym('pi'); 2134s assert(logical( ifourier(exp(-abs(w))) == 1/(Pi*(x^2 + 1)) )) 2134s assert(logical( ifourier(exp(-abs(x))) == 1/(Pi*(t^2 + 1)) )) 2134s assert(logical( ifourier(exp(-abs(r)),u) == 1/(Pi*(u^2 + 1)) )) 2134s assert(logical( ifourier(exp(-abs(r)),r,u) == 1/(Pi*(u^2 + 1)) )) 2137s ***** test 2137s % basic 2137s syms x w 2137s Pi=sym('pi'); 2137s assert(logical( ifourier(exp(-w^2/4)) == 1/(sqrt(Pi)*exp(x^2)) )) 2137s assert(logical( ifourier(sqrt(Pi)/exp(w^2/4)) == exp(-x^2) )) 2138s ***** test 2138s % Dirac delta tests 2138s syms x w 2138s Pi=sym('pi'); 2138s assert(logical( ifourier(dirac(w-2)) == exp(2*1i*x)/(2*Pi) )) 2138s assert (logical( ifourier(sym(2), w, x) == 2*dirac(x) )) 2138s ***** test 2138s % advanced test 2138s syms x w c d 2138s Pi=sym('pi'); 2138s 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); 2138s assert(logical( simplify(ifourier(cos(c*w)+2*sin(3*d*w)+exp(-abs(w)))-f) == 0 )) 2141s ***** xtest 2141s % Inverse Fourier transform cannot recover non-smooth functions 2141s % SymPy cannot evaluate correctly?? 2141s syms x w 2141s assert(logical( ifourier(2/(w^2 + 1)) == exp(-abs(x)) )) 2141s assert(logical( ifourier(2/(w^2 + 1)) == heaviside(x)/exp(x) + heaviside(-x)*exp(x) )) 2141s assert(logical( ifourier(-(w*4)/(w^4 + 2*w^2 + 1) )== -x*exp(-abs(x))*1i )) 2141s assert(logical( ifourier(-(w*4)/(w^4 + 2*w^2 + 1) )== -x*(heaviside(x)/exp(x) + heaviside(-x)*exp(x))*1i )) 2142s !!!!! known failure 2142s assert (logical (ifourier (2 / (w ^ 2 + 1)) == exp (-abs (x)))) failed 2142s ***** error ifourier (sym('k', 'positive')*sym('k')) 2142s ***** test 2142s % SMT compact, prefers k over symvar 2142s syms k x y 2142s assert (isequal (ifourier(y*exp(-k^2/4)), y/sqrt(sym(pi))*exp(-x^2))) 2142s 8 tests, 7 passed, 1 known failure, 0 skipped 2142s [inst/@sym/dot.m] 2142s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/dot.m 2142s ***** error dot (sym(1), 2, 3) 2142s ***** test 2142s a = sym([1; 1; 0]); 2142s b = sym([1; 2; 4]); 2142s c = dot(a, b); 2142s assert (isequal (c, sym(3))) 2142s ***** test 2142s syms x 2142s a = sym([x; 0; 0]); 2142s b = sym([0; 1; 0]); 2142s c = dot(a, b); 2142s assert (isequal (c, sym(0))) 2142s ***** test 2142s assert (isequal (dot (sym([1 i]), sym([i 2])), sym(-i))) 2143s 4 tests, 4 passed, 0 known failure, 0 skipped 2143s [inst/@sym/dsolve.m] 2143s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/dsolve.m 2143s ***** error dsolve (1, sym('x')) 2143s ***** test 2143s syms y(x) 2143s de = diff(y, 2) - 4*y == 0; 2143s f = dsolve(de); 2143s syms C1 C2 2143s g1 = C1*exp(-2*x) + C2*exp(2*x); 2143s g2 = C2*exp(-2*x) + C1*exp(2*x); 2143s assert (isequal (f, g1) || isequal (f, g2)) 2143s ***** test 2143s % Not enough initial conditions 2143s syms y(x) C1 2143s de = diff(y, 2) + 4*y == 0; 2143s g = 3*cos(2*x) + C1*sin(2*x); 2143s try 2143s f = dsolve(de, y(0) == 3); 2143s waserr = false; 2143s catch 2143s waserr = true; 2143s expectederr = regexp (lasterr (), 'Perhaps.*under-specified'); 2143s f = 42; 2143s end 2143s assert ((waserr && expectederr) || isequal (f, g)) 2144s ***** test 2144s % Solution in implicit form 2144s syms y(x) C1 2144s de = (2*x*y(x) - exp(-2*y(x)))*diff(y(x), x) + y(x) == 0; 2144s sol = dsolve (de); 2144s eqn = x*exp(2*y(x)) - log(y(x)) == C1; 2144s % could differ by signs 2144s sol = lhs (sol) - rhs (sol); 2144s eqn = lhs (eqn) - rhs (eqn); 2144s sol2 = subs (sol, C1, -C1); 2144s assert (isequal (sol, eqn) || isequal (sol2, eqn)) 2146s ***** test 2146s % Compute solution and classification 2146s syms y(x) C1 2146s de = (2*x*y(x) - exp(-2*y(x)))*diff(y(x), x) + y(x) == 0; 2146s [sol, classy] = dsolve (de); 2146s assert (any (strcmp (classy, '1st_exact'))) 2149s ***** test 2149s % initial conditions (first order ode) 2149s syms y(x) 2149s de = diff(y, x) + 4*y == 0; 2149s f = dsolve(de, y(0) == 3); 2149s g = 3*exp(-4*x); 2149s assert (isequal (f, g)) 2149s ***** test 2149s % initial conditions (second order ode) 2149s syms y(x) 2149s de = diff(y, 2) + 4*y == 0; 2149s f = dsolve(de, y(0) == 3, subs(diff(y,x),x,0)==0); 2149s g = 3*cos(2*x); 2149s assert (isequal (f, g)) 2149s ***** test 2149s % Dirichlet boundary conditions (second order ode) 2149s syms y(x) 2149s de = diff(y, 2) + 4*y == 0; 2149s f = dsolve(de, y(0) == 2, y(1) == 0); 2149s g = -2*sin(2*x)/tan(sym('2'))+2*cos(2*x); 2149s assert (isequal (simplify (f - g), 0)) 2150s ***** test 2150s % Neumann boundary conditions (second order ode) 2150s syms y(x) 2150s de = diff(y, 2) + 4*y == 0; 2150s f = dsolve(de, subs(diff(y,x),x,0)==1, subs(diff(y,x),x,1)==0); 2150s g = sin(2*x)/2+cos(2*x)/(2*tan(sym('2'))); 2150s assert (isequal (simplify (f - g), 0)) 2151s ***** test 2151s % Dirichlet-Neumann boundary conditions (second order ode) 2151s syms y(x) 2151s de = diff(y, 2) + 4*y == 0; 2151s f = dsolve(de, y(0) == 3, subs(diff(y,x),x,1)==0); 2151s g = 3*sin(2*x)*tan(sym('2'))+3*cos(2*x); 2151s assert (isequal (simplify (f - g), 0)) 2151s ***** test 2151s % System of ODEs gives struct, Issue #1003. 2151s syms x(t) y(t) 2151s ode1 = diff(x(t),t) == 2*y(t); 2151s ode2 = diff(y(t),t) == 2*x(t); 2151s soln = dsolve([ode1, ode2]); 2151s assert (isstruct (soln)) 2151s assert (numfields (soln) == 2) 2151s assert (isequal (sort (fieldnames (soln)), {'x'; 'y'})) 2151s ***** test 2151s % System of ODEs 2151s syms x(t) y(t) C1 C2 2151s ode1 = diff(x(t),t) == 2*y(t); 2151s ode2 = diff(y(t),t) == 2*x(t); 2151s soln = dsolve([ode1, ode2]); 2151s soln = [soln.x, soln.y]; 2151s g1 = [C1*exp(-2*t) + C2*exp(2*t), -C1*exp(-2*t) + C2*exp(2*t)]; 2151s g2 = [C1*exp(2*t) + C2*exp(-2*t), C1*exp(2*t) - C2*exp(-2*t)]; 2151s g3 = [-C1*exp(-2*t) + C2*exp(2*t), C1*exp(-2*t) + C2*exp(2*t)]; 2151s g4 = [C1*exp(2*t) - C2*exp(-2*t), C1*exp(2*t) + C2*exp(-2*t)]; 2151s % old SymPy <= 1.5.1 had some extra twos 2151s g5 = [2*C1*exp(-2*t) + 2*C2*exp(2*t), -2*C1*exp(-2*t) + 2*C2*exp(2*t)]; 2151s g6 = [2*C1*exp(2*t) + 2*C2*exp(-2*t), 2*C1*exp(2*t) - 2*C2*exp(-2*t)]; 2151s assert (isequal (soln, g1) || isequal (soln, g2) || ... 2151s isequal (soln, g3) || isequal (soln, g4) || ... 2151s isequal (soln, g5) || isequal (soln, g6)) 2153s ***** test 2153s % System of ODEs (initial-value problem) 2153s syms x(t) y(t) 2153s ode_1=diff(x(t),t) == 2*y(t); 2153s ode_2=diff(y(t),t) == 2*x(t); 2153s sol_ivp=dsolve([ode_1,ode_2],x(0)==1,y(0)==0); 2153s g_ivp=[exp(-2*t)/2+exp(2*t)/2,-exp(-2*t)/2+exp(2*t)/2]; 2153s assert (isequal ([sol_ivp.x, sol_ivp.y], g_ivp)) 2154s ***** test 2154s syms y(x) 2154s de = diff(y, 2) + 4*y == 0; 2154s f = dsolve(de, y(0) == 0, y(sym(pi)/4) == 1); 2154s g = sin(2*x); 2154s assert (isequal (f, g)) 2154s ***** test 2154s % Nonlinear example 2154s syms y(x) C1 2154s e = diff(y, x) == y^2; 2154s g = -1 / (C1 + x); 2154s soln = dsolve(e); 2154s assert (isequal (soln, g)) 2154s ***** test 2154s % Nonlinear example with initial condition 2154s syms y(x) 2154s e = diff(y, x) == y^2; 2154s g = -1 / (x - 1); 2154s soln = dsolve(e, y(0) == 1); 2154s assert (isequal (soln, g)) 2155s ***** test 2155s % forcing, Issue #183, broken in older sympy 2155s if (pycall_sympy__ ('return Version(spver) >= Version("1.7.1")')) 2155s syms x(t) y(t) 2155s ode1 = diff(x) == x + sin(t) + 2; 2155s ode2 = diff(y) == y - t - 3; 2155s soln = dsolve([ode1 ode2], x(0) == 1, y(0) == 2); 2155s X = soln.x; 2155s Y = soln.y; 2155s assert (isequal (diff(X) - (X + sin(t) + 2), 0)) 2155s assert (isequal (diff(Y) - (Y - t - 3), 0)) 2155s end 2156s ***** test 2156s syms f(x) a b 2156s de = diff(f, x) == 4*f; 2156s s = dsolve(de, f(a) == b); 2156s assert (isequal (subs(s, x, a), b)) 2156s ***** test 2156s % array of ICs 2156s syms x(t) y(t) 2156s ode_1 = diff (x(t), t) == 2*y(t); 2156s ode_2 = diff (y(t), t) == 2*x(t); 2156s sol = dsolve([ode_1, ode_2], [x(0)==1 y(0)==0]); 2156s g = [exp(-2*t)/2+exp(2*t)/2, -exp(-2*t)/2+exp(2*t)/2]; 2156s assert (isequal ([sol.x, sol.y], g)) 2157s ***** test 2157s % cell-array of ICs or ODEs, but not both 2157s % Note: to support both we'd need a wrapper outside of @sym 2157s syms x(t) y(t) 2157s ode_1 = diff (x(t), t) == 2*y(t); 2157s ode_2 = diff (y(t), t) == 2*x(t); 2157s sol = dsolve([ode_1, ode_2], {x(0)==1 y(0)==0}); 2157s g = [exp(-2*t)/2+exp(2*t)/2, -exp(-2*t)/2+exp(2*t)/2]; 2157s assert (isequal ([sol.x, sol.y], g)) 2157s sol = dsolve({ode_1, ode_2}, [x(0)==1 y(0)==0]); 2157s g = [exp(-2*t)/2+exp(2*t)/2, -exp(-2*t)/2+exp(2*t)/2]; 2157s assert (isequal ([sol.x, sol.y], g)) 2158s ***** test 2158s % array of ICs, Issue #1040. 2158s if (pycall_sympy__ ('return Version(spver) >= Version("1.7.1")')) 2158s syms x(t) y(t) z(t) 2158s syms x_0 y_0 z_0 2158s diffEqns = [diff(x, t) == -x + 1, diff(y, t) == -y, diff(z, t) == -z]; 2158s initCond = [x(0) == x_0, y(0) == y_0, z(0) == z_0]; 2158s soln = dsolve (diffEqns, initCond); 2158s soln = [soln.x, soln.y, soln.z]; 2158s exact_soln = [(x_0 - 1)*exp(-t) + 1 y_0*exp(-t) z_0*exp(-t)]; 2158s assert (isequal (soln, exact_soln)) 2158s end 2159s 21 tests, 21 passed, 0 known failure, 0 skipped 2159s [inst/@sym/interval.m] 2159s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/interval.m 2159s ***** test 2159s a = interval(sym(1), 2); 2159s assert (isa (a, 'sym')) 2159s ***** test 2159s % some set subtraction 2159s a = interval(sym(0), 4); 2159s b = interval(sym(0), 1); 2159s c = interval(sym(1), 4, true); 2159s q = a - b; 2159s assert (isequal( q, c)) 2159s 2 tests, 2 passed, 0 known failure, 0 skipped 2159s [inst/@sym/symvar.m] 2159s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/symvar.m 2159s ***** error symvar (sym(1), 2, 3) 2159s ***** test 2159s %% some empty cases 2159s assert (isempty (symvar (sym(1)))); 2159s assert (isempty (symvar (sym(1),1))); 2159s assert (isempty (symvar (sym(1),0))); 2159s assert (isempty (symvar (sym('x'),0))); 2159s ***** shared x,y,f 2159s x=sym('x'); y=sym('y'); f=x^2+3*x*y-y^2; 2159s ***** assert (isequal (symvar (f), [x y])); 2159s ***** assert (isequal (symvar (f, 1), x)); 2159s ***** test 2159s %% closest to x 2159s syms x y a b c xx 2159s alpha = sym('alpha'); 2159s % https://www.mathworks.com/matlabcentral/newsreader/view_thread/237730 2159s assert( isequal (symvar (b*xx*exp(alpha) + c*sin(a*y), 2), [xx y])) 2159s %% tests to match Matlab R2013b 2159s ***** shared x,y,z,a,b,c,X,Y,Z 2159s syms x y z a b c X Y Z 2160s ***** test 2160s %% X,Y,Z first if no 2nd argument 2160s s = prod([x y z a b c X Y Z]); 2160s assert (isequal( symvar (s), [X Y Z a b c x y z] )) 2160s ***** test 2160s %% uppercase have *low* priority with argument? 2160s s = prod([x y z a b c X Y Z]); 2160s assert (isequal (symvar (s,4), [x, y, z, c] )) 2160s ***** test 2160s %% closest to x 2160s s = prod([y z a b c Y Z]); 2160s assert (isequal( symvar (s,6), [ y, z, c, b, a, Y] )) 2160s s = prod([a b c Y Z]); 2160s assert (isequal( symvar (s,4), [ c, b, a, Y] )) 2162s ***** test 2162s %% upper case letters in correct order 2162s s = X*Y*Z; 2162s assert (isequal( symvar (s,3), [X Y Z] )) 2162s ***** test 2162s % diff. assumptions make diff. symbols 2162s x1 = sym('x'); 2162s x2 = sym('x', 'positive'); 2162s f = x1*x2; 2162s assert (length (symvar (f)) == 2) 2162s z = symvar (f, 1); 2162s assert (xor (isequal (z, x1), isequal (z, x2))) 2162s 10 tests, 10 passed, 0 known failure, 0 skipped 2162s [inst/@sym/airy.m] 2162s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/airy.m 2162s ***** test 2162s syms z 2162s a = airy(0, z); 2162s ap = airy(1, z); 2162s assert (isequal (diff (a), ap)) 2162s assert (isequal (diff (ap), z*a)) 2162s ***** test 2162s syms z 2162s b = airy(2, z); 2162s bp = airy(3, z); 2162s assert (isequal (diff (b), bp)) 2162s assert (isequal (diff (bp), z*b)) 2162s ***** test 2162s % default to k=0 2162s syms z 2162s a = airy(0, z); 2162s a2 = airy(z); 2162s assert (isequal (a, a2)) 2162s ***** error airy(0, sym('x'), 2) 2162s ***** error airy(4, sym('z')) 2162s ***** error airy(-1, sym('z')) 2162s ***** test 2162s % symbolic k 2162s syms z 2162s b1 = airy(2, z); 2162s b2 = airy(sym(2), z); 2162s assert (isequal (b1, b2)) 2163s ***** test 2163s % doubles, relative error 2163s X = [1 2 pi; 4i 5 6+6i]; 2163s Xs = sym(X); 2163s for k = 0:3 2163s A = double(airy(k, Xs)); 2163s B = airy(k, X); 2163s assert (all (all (abs(A - B) < 500*eps*abs(A)))) 2163s end 2164s ***** test 2164s % round-trip 2164s syms x 2164s for k = 0:3 2164s A = airy(k, 10); 2164s q = airy(k, x); 2164s h = function_handle(q); 2164s B = h(10); 2164s assert (abs(A-B) < 500*eps*abs(A)) 2164s end 2164s 9 tests, 9 passed, 0 known failure, 0 skipped 2164s [inst/@sym/divisors.m] 2164s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/divisors.m 2164s ***** test 2164s assert( isequal( divisors(sym(150)), divisors(sym(-150)) )) 2164s 1 test, 1 passed, 0 known failure, 0 skipped 2164s [inst/@sym/asin.m] 2164s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/asin.m 2164s ***** error asin (sym(1), 2) 2164s ***** assert (isequaln (asin (sym(nan)), sym(nan))) 2164s ***** shared x, d 2164s d = 1; 2164s x = sym('1'); 2164s ***** test 2164s f1 = asin(x); 2164s f2 = asin(d); 2164s assert( abs(double(f1) - f2) < 1e-15 ) 2164s ***** test 2164s D = [d d; d d]; 2164s A = [x x; x x]; 2164s f1 = asin(A); 2164s f2 = asin(D); 2164s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2164s ***** test 2164s % round trip 2164s y = sym('y'); 2164s A = asin (d); 2164s f = asin (y); 2164s h = function_handle (f); 2164s B = h (d); 2164s assert (A, B, -eps) 2164s 5 tests, 5 passed, 0 known failure, 0 skipped 2164s [inst/@sym/asind.m] 2164s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/asind.m 2164s ***** error asind (sym(1), 2) 2164s ***** assert (isequaln (asind (sym(nan)), sym(nan))) 2164s ***** test 2164s f1 = asind (sym(1)/2); 2164s f2 = asind (1/2); 2164s assert (double (f1), f2, -eps) 2165s ***** test 2165s D = [1 2; 3 4]/4; 2165s A = sym([1 2; 3 4])/4; 2165s f1 = asind (A); 2165s f2 = asind (D); 2165s assert (double (f1), f2, -eps) 2165s 4 tests, 4 passed, 0 known failure, 0 skipped 2165s [inst/@sym/union.m] 2165s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/union.m 2165s ***** test 2165s A = sym([1 2 3]); 2165s B = sym([1 2 4]); 2165s C = union(A, B); 2165s D = sym([1 2 3 4]); 2165s assert (isequal (C, D)) 2165s ***** test 2165s % one nonsym 2165s A = sym([1 2 3]); 2165s B = [1 2 4]; 2165s C = union(A, B); 2165s D = sym([1 2 3 4]); 2165s assert (isequal (C, D)) 2165s ***** test 2165s % empty 2165s A = sym([1 2 3]); 2165s C = union(A, A); 2165s assert (isequal(C, A)) 2165s ***** test 2165s % empty input 2165s A = sym([1 2]); 2165s C = union(A, []); 2165s assert (isequal (C, sym([1 2]))) 2165s ***** test 2165s % scalar 2165s syms x 2165s assert (isequal (union([x 1], x), [1 x])) 2165s assert (isequal (union(x, x), x)) 2165s ***** test 2165s A = interval(sym(1), 3); 2165s B = interval(sym(2), 5); 2165s C = union(A, B); 2165s assert( isequal( C, interval(sym(1), 5))) 2165s 6 tests, 6 passed, 0 known failure, 0 skipped 2165s [inst/@sym/max.m] 2165s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/max.m 2165s ***** test 2165s % simple 2165s assert (isequal (max([sym(10) sym(11)]), sym(11))) 2165s ***** test 2165s syms x y 2165s assert (isequal (children (max (x, y)), [x y])) 2166s 2 tests, 2 passed, 0 known failure, 0 skipped 2166s [inst/@sym/rref.m] 2166s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/rref.m 2166s ***** test 2166s A = sym([1 2; 3 4]); 2166s [r, k] = rref(A); 2166s assert (isequal (r, eye(2))) 2166s assert (isequal (k, [1 2])) 2167s ***** assert (isequal (rref(sym([2 1])), [1 sym(1)/2])) 2167s ***** assert (isequal (rref(sym([1 2; 2 4])), [1 2; 0 0])) 2168s ***** assert (isequal (rref(sym([0 0; 2 4])), [1 2; 0 0])) 2168s ***** test 2168s A = sym([1 2 3; 2 3 4]); 2168s [r, k] = rref(A); 2168s assert (isequal (r, [1 0 -1; 0 1 2])) 2168s assert (isequal (k, [1 2])); 2168s 5 tests, 5 passed, 0 known failure, 0 skipped 2168s [inst/@sym/argnames.m] 2168s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/argnames.m 2168s ***** test 2168s % basic tests 2168s syms x 2168s f = 2*x; 2168s assert (isempty (argnames(x))) 2168s assert (isempty (argnames(f))) 2168s 1 test, 1 passed, 0 known failure, 0 skipped 2168s [inst/@sym/jordan.m] 2168s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/jordan.m 2168s ***** test 2168s % basic 2168s A = sym ([2 1 0 0; 0 2 1 0; 0 0 3 0; 0 1 -1 3]); 2168s [V, J] = jordan (A); 2168s assert (isequal (inv (V) * A * V, J)); 2168s assert (isequal (J, sym ([2 1 0 0; 0 2 0 0; 0 0 3 0; 0 0 0 3]))) 2168s % the first 2 generalized eigenvectors form a cycle 2168s assert (isequal ((A - J(1, 1) * eye (4)) * V(:, 1), zeros (4, 1))); 2168s assert (isequal ((A - J(2, 2) * eye (4)) * V(:, 2), V(:, 1))); 2168s % the last 2 generalized eigenvectors are eigenvectors 2168s assert (isequal ((A - J(3, 3) * eye (4)) * V(:, 3), zeros (4, 1))); 2168s assert (isequal ((A - J(4, 4) * eye (4)) * V(:, 4), zeros (4, 1))); 2169s ***** test 2169s % scalars 2169s assert (isequal (jordan (sym (-10)), sym (-10))); 2169s assert (isequal (jordan (sym ('x')), sym ('x'))); 2170s ***** test 2170s % diagonal matrices 2170s A = diag (sym ([6 6 7])); 2170s [V1, D] = eig (A); 2170s [V2, J] = jordan (A); 2170s assert (isequal (V1, V2)); 2170s assert (isequal (D, J)); 2170s ***** test 2170s % matrices of unknown entries 2170s A = [sym('a') sym('b'); sym('c') sym('d')]; 2170s [V, D] = eig (A); 2170s J = jordan (A); 2170s assert (isequal (simplify (D), simplify (J))); 2170s ***** test 2170s % matrices of mixed entries 2170s A = [sym('x')+9 sym('y'); sym(0) 6]; 2170s [V, D] = eig (A); 2170s J = jordan (A); 2170s assert (isequal (simplify (D), simplify (J))); 2170s 5 tests, 5 passed, 0 known failure, 0 skipped 2170s [inst/@sym/simplify.m] 2170s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/simplify.m 2170s ***** shared x,p,q 2170s syms x 2170s p = x^2 + x + 1; 2170s q = horner (p); 2170s ***** assert(~isequal( p - q, 0)) 2170s ***** assert(isequal( simplify(p - q), 0)) 2170s 2 tests, 2 passed, 0 known failure, 0 skipped 2170s [inst/@sym/size.m] 2170s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/size.m 2170s ***** test 2170s a = sym([1 2 3]); 2170s [n,m] = size(a); 2170s assert (n == 1 && m == 3) 2170s ***** test 2170s a = sym([1 2 3]); 2170s n = size(a); 2170s assert (isequal (n, [1 3])) 2171s ***** test 2171s %% size, numel, length 2171s a = sym([1 2 3; 4 5 6]); 2171s assert (isa (size(a), 'double')) 2171s assert (isa (numel(a), 'double')) 2171s assert (isa (length(a), 'double')) 2171s assert (isequal (size(a), [2 3])) 2171s assert (length(a) == 3) 2171s assert (numel(a) == 6) 2171s a = sym([1; 2; 3]); 2171s assert (isequal (size(a), [3 1])) 2171s assert (length(a) == 3) 2171s assert (numel(a) == 3) 2171s ***** test 2171s %% size by dim 2171s a = sym([1 2 3; 4 5 6]); 2171s n = size(a, 1); 2171s assert (n == 2) 2171s m = size(a, 2); 2171s assert (m == 3) 2171s a = sym([1 2 3]'); 2171s n = size(a, 1); 2171s assert (n == 3) 2171s m = size(a, 2); 2171s assert (m == 1) 2171s ***** xtest 2171s % symbolic-size matrices 2171s syms n m integer 2171s A = sym('A', [n m]); 2171s d = size(A); 2171s assert (~isa(d, 'sym')) 2171s assert (isnumeric(d)) 2171s assert (isequaln (d, [NaN NaN])) 2171s !!!!! known failure 2171s assert (isequaln (d, [NaN, NaN])) failed 2171s ***** xtest 2171s % half-symbolic-size matrices 2171s % FIXME: will fail until size stop lying by saying 1x1 2171s syms n integer 2171s A = sym('A', [n 3]); 2171s assert (isequaln (size(A), [NaN 3])) 2171s A = sym('A', [4 n]); 2171s assert (isequaln (size(A), [4 NaN])) 2171s !!!!! known failure 2171s assert (isequaln (size (A), [NaN, 3])) failed 2171s ***** xtest 2171s % half-symbolic-size empty matrices 2171s % FIXME: will fail until size stop lying by saying 1x1 2171s syms n integer 2171s A = sym('A', [n 0]); 2171s assert (isequaln (size(A), [NaN 0])) 2171s !!!!! known failure 2171s assert (isequaln (size (A), [NaN, 0])) failed 2171s 7 tests, 4 passed, 3 known failures, 0 skipped 2171s [inst/@sym/coth.m] 2171s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/coth.m 2171s ***** error coth (sym(1), 2) 2171s ***** assert (isequaln (coth (sym(nan)), sym(nan))) 2171s ***** shared x, d 2171s d = 1; 2171s x = sym('1'); 2171s ***** test 2171s f1 = coth(x); 2171s f2 = coth(d); 2171s assert( abs(double(f1) - f2) < 1e-15 ) 2171s ***** test 2171s D = [d d; d d]; 2171s A = [x x; x x]; 2171s f1 = coth(A); 2171s f2 = coth(D); 2171s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2171s ***** test 2171s % round trip 2171s y = sym('y'); 2171s A = coth (d); 2171s f = coth (y); 2171s h = function_handle (f); 2171s B = h (d); 2171s assert (A, B, -eps) 2171s 5 tests, 5 passed, 0 known failure, 0 skipped 2171s [inst/@sym/asech.m] 2171s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/asech.m 2171s ***** error asech (sym(1), 2) 2171s ***** assert (isequaln (asech (sym(nan)), sym(nan))) 2171s ***** shared x, d 2171s d = 1/2; 2171s x = sym('1/2'); 2171s ***** test 2171s f1 = asech(x); 2171s f2 = asech(d); 2171s assert( abs(double(f1) - f2) < 1e-15 ) 2171s ***** test 2171s D = [d d; d d]; 2171s A = [x x; x x]; 2171s f1 = asech(A); 2171s f2 = asech(D); 2171s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2171s ***** test 2171s % round trip 2171s y = sym('y'); 2171s A = asech (d); 2171s f = asech (y); 2171s h = function_handle (f); 2171s B = h (d); 2171s assert (A, B, -eps) 2171s 5 tests, 5 passed, 0 known failure, 0 skipped 2171s [inst/@sym/potential.m] 2171s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/potential.m 2171s ***** error potential (sym(1), 2, 3, 4) 2171s ***** shared x,y,z 2171s syms x y z 2171s ***** test 2171s % 1D 2171s f = 3*x^2; 2171s F = x^3; 2171s assert (isequal (potential(f), F)) 2171s assert (isequal (potential(f, x), F)) 2171s assert (isequal (potential(f, x, 0), F)) 2171s assert (isequal (potential(f, x, 2), F - 8)) 2172s ***** test 2172s F = x*exp(y) + (z-1)^2; 2172s f = gradient(F); 2172s G = potential(f, [x;y;z], [0;1;1]); 2172s assert (isAlways (G == F)) 2172s ***** test 2172s F = x*exp(y); 2172s f = gradient(F); 2172s G = potential(f); 2172s assert (isAlways (G == F)) 2172s ***** test 2172s % no potential exists 2172s syms x y 2172s a = [x; x*y^2]; 2172s assert (isnan (potential (a))) 2173s ***** shared 2173s ***** xtest 2173s % fails b/c of sympy #8458 (piecewise expr that should simplify) 2173s syms x 2173s f = cos(x); 2173s assert (isequal (potential(f, x), sin(x))) 2173s !!!!! known failure 2173s assert (isequal (potential (f, x), sin (x))) failed 2173s 6 tests, 5 passed, 1 known failure, 0 skipped 2173s [inst/@sym/atan.m] 2173s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/atan.m 2173s ***** error atan (sym(1), 2) 2173s ***** assert (isequaln (atan (sym(nan)), sym(nan))) 2173s ***** shared x, d 2173s d = 1; 2173s x = sym('1'); 2173s ***** test 2173s f1 = atan(x); 2173s f2 = atan(d); 2173s assert( abs(double(f1) - f2) < 1e-15 ) 2173s ***** test 2173s D = [d d; d d]; 2173s A = [x x; x x]; 2173s f1 = atan(A); 2173s f2 = atan(D); 2173s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2173s ***** test 2173s % round trip 2173s y = sym('y'); 2173s A = atan (d); 2173s f = atan (y); 2173s h = function_handle (f); 2173s B = h (d); 2173s assert (A, B, -eps) 2173s 5 tests, 5 passed, 0 known failure, 0 skipped 2173s [inst/@sym/not.m] 2173s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/not.m 2173s ***** shared t, f 2173s t = sym(true); 2173s f = sym(false); 2173s ***** test 2173s % simple 2173s assert (isequal( ~t, f)) 2173s assert (isequal( ~t, f)) 2173s ***** test 2173s % array 2173s w = [t t f t]; 2173s z = [f f t f]; 2173s assert (isequal( ~w, z)) 2173s ***** test 2173s % number 2173s assert (isequal( ~sym(5), f)) 2173s assert (isequal( ~sym(0), t)) 2173s ***** test 2173s % output is sym 2173s syms x 2173s e = ~(x == 4); 2173s assert (isa (e, 'sym')) 2173s assert (strncmp (sympy(e), 'Unequality', 10)) 2173s ***** test 2173s % output is sym even for scalar t/f (should match other bool fcns) 2173s assert (isa (~t, 'sym')) 2173s ***** test 2173s % symbol ineq 2173s syms x 2173s a = [t f x == 1 x ~= 2 x < 3 x <= 4 x > 5 x >= 6]; 2173s b = [f t x ~= 1 x == 2 x >= 3 x > 4 x <= 5 x < 6]; 2173s assert (isequal( ~a, b)) 2173s ***** test 2173s syms x 2173s y = ~x; 2173s s = disp(y, 'flat'); 2173s assert (strcmp (strtrim (s), '~x') || strcmpi (strtrim (s), 'Not(x)')) 2174s ***** error not (sym(1), 2) 2174s 8 tests, 8 passed, 0 known failure, 0 skipped 2174s [inst/@sym/sqrt.m] 2174s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/sqrt.m 2174s ***** error sqrt (sym(1), 2) 2174s ***** assert (isequaln (sqrt (sym(nan)), sym(nan))) 2174s ***** shared x, d 2174s d = 1; 2174s x = sym('1'); 2174s ***** test 2174s f1 = sqrt(x); 2174s f2 = sqrt(d); 2174s assert( abs(double(f1) - f2) < 1e-15 ) 2174s ***** test 2174s D = [d d; d d]; 2174s A = [x x; x x]; 2174s f1 = sqrt(A); 2174s f2 = sqrt(D); 2174s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2174s ***** test 2174s % round trip 2174s y = sym('y'); 2174s A = sqrt (d); 2174s f = sqrt (y); 2174s h = function_handle (f); 2174s B = h (d); 2174s assert (A, B, -eps) 2174s 5 tests, 5 passed, 0 known failure, 0 skipped 2174s [inst/@sym/hypergeom.m] 2174s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/hypergeom.m 2174s ***** assert (isequal (double (hypergeom ([1, 2], [2, 3], sym(0))), 1)) 2174s ***** test 2174s % matrix input 2174s syms z 2174s a = sym([1 2]); 2174s b = sym([3 4]); 2174s A = hypergeom (a, b, [0 sym(1); 2 z]); 2174s B = [hypergeom(a,b,0) hypergeom(a,b,1); hypergeom(a,b,2) hypergeom(a,b,z)]; 2174s assert (isequal (A, B)) 2174s ***** test 2174s % scalars for a and/or b 2174s syms z 2174s assert (isequal (hypergeom(1, 2, z), hypergeom({sym(1)}, {sym(2)}, z))) 2174s assert (isequal (hypergeom([1 2], 3, z), hypergeom([1 2], {sym(3)}, z))) 2174s assert (isequal (hypergeom(1, [2 3], z), hypergeom({sym(1)}, [2 3], z))) 2175s 3 tests, 3 passed, 0 known failure, 0 skipped 2175s [inst/@sym/matlabFunction.m] 2175s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/matlabFunction.m 2175s ***** test 2175s % autodetect inputs 2175s syms x y 2175s s = warning('off', 'OctSymPy:function_handle:nocodegen'); 2175s h = matlabFunction(2*x*y, x+y); 2175s warning(s) 2175s [t1, t2] = h(3,5); 2175s assert(t1 == 30 && t2 == 8) 2175s 1 test, 1 passed, 0 known failure, 0 skipped 2175s [inst/@sym/isfinite.m] 2175s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/isfinite.m 2175s ***** assert (isfinite(sym(1))) 2175s ***** assert (isfinite(sym(-10))) 2175s ***** assert (~isfinite(sym('oo'))) 2175s ***** assert (~isfinite(sym('-oo'))) 2175s ***** assert (~isfinite(sym(1)/0)) 2175s ***** assert (~isfinite(sym(nan))) 2175s ***** assert (isequal (isfinite (sym ([1 inf])), [true false])) 2175s ***** test 2175s % finite-by-assumption 2175s syms x finite 2175s assert (isfinite (x)) 2175s 8 tests, 8 passed, 0 known failure, 0 skipped 2175s [inst/@sym/cross.m] 2175s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/cross.m 2175s ***** error cross (sym(1), 2, 3) 2175s ***** test 2175s a = sym([1; 0; 0]); 2175s b = sym([0; 1; 0]); 2175s c = cross(a, b); 2175s assert (isequal (c, sym([0; 0; 1]))) 2175s ***** test 2175s syms x 2175s a = sym([x; 0; 0]); 2175s b = sym([0; 1; 0]); 2175s c = cross(a, b); 2175s assert (isequal (c, sym([0; 0; x]))) 2175s 3 tests, 3 passed, 0 known failure, 0 skipped 2175s [inst/@sym/function_handle.m] 2175s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/function_handle.m 2175s ***** shared x,y,z 2175s syms x y z 2175s ***** test 2175s % basic test 2175s h = function_handle(2*x); 2175s assert(isa(h, 'function_handle')) 2175s assert(h(3)==6) 2175s ***** test 2175s % autodetect inputs 2175s h = function_handle(2*x*y, x+y); 2175s [t1, t2] = h(3,5); 2175s assert(t1 == 30 && t2 == 8) 2175s ***** test 2175s % specified inputs 2175s h = function_handle(2*x*y, 'vars', [x y]); 2175s assert(h(3,5)==30) 2175s h = function_handle(2*x*y, x+y, 'vars', [x y]); 2175s [t1, t2] = h(3,5); 2175s assert(t1 == 30 && t2 == 8) 2176s ***** test 2176s % cell arrays for vars list 2176s h = function_handle(2*x*y, x+y, 'vars', {x y}); 2176s [t1, t2] = h(3,5); 2176s assert(t1 == 30 && t2 == 8) 2176s h = function_handle(2*x*y, x+y, 'vars', {'x' 'y'}); 2176s [t1, t2] = h(3,5); 2176s assert(t1 == 30 && t2 == 8) 2176s ***** test 2176s % cell arrays specfies order, overriding symvar order 2176s h = function_handle(x*y, 12/y, 'vars', {y x}); 2176s [t1, t2] = h(3, 6); 2176s assert(t1 == 18 && t2 == 4) 2176s h = function_handle(x*y, 12/y, 'vars', [y x]); 2176s [t1, t2] = h(3, 6); 2176s assert(t1 == 18 && t2 == 4) 2176s ***** test 2176s % cell arrays specfies order, overriding symvar order 2176s h = function_handle(x*y, 12/y, 'vars', {y x}); 2176s [t1, t2] = h(3, 6); 2176s assert(t1 == 18 && t2 == 4) 2176s h = function_handle(x*y, 12/y, 'vars', [y x]); 2176s [t1, t2] = h(3, 6); 2176s assert(t1 == 18 && t2 == 4) 2176s ***** test 2176s % Functions with different names in Sympy. 2176s f = abs(x); % becomes Abs(x) 2176s h = function_handle(f); 2176s assert(h(-10) == 10) 2176s f = ceil(x); 2176s h = function_handle(f); 2176s assert(h(10.1) == 11) 2176s ***** test 2176s % 'file' with empty filename returns handle 2176s h = function_handle(2*x*y, 'file', ''); 2176s assert(isa(h, 'function_handle')) 2176s assert(h(3,5)==30) 2176s h = function_handle(2*x*y, 'vars', {x y}, 'file', ''); 2176s assert(isa(h, 'function_handle')) 2176s assert(h(3,5)==30) 2176s ***** test 2176s % output to disk 2176s fprintf('\n') 2176s if (exist ('OCTAVE_VERSION', 'builtin')) 2176s temp_file = tempname('', 'oct_'); 2176s else 2176s temp_file = tempname(); 2176s end 2176s % allow loading function from temp_file 2176s [temp_path, ans, ans] = fileparts(temp_file); 2176s addpath(temp_path); 2176s f = function_handle(2*x*y, 2^x, 'vars', {x y z}, 'file', temp_file); 2176s assert( isa(f, 'function_handle')) 2176s addpath(temp_path); % Matlab 2014a needs this? 2176s [a,b] = f(10,20,30); 2176s assert (isnumeric (a) && isnumeric (b)) 2176s assert (a == 400) 2176s assert (b == 1024) 2176s if (exist ('OCTAVE_VERSION', 'builtin')) 2176s assert (unlink([temp_file '.m']) == 0) 2176s else 2176s delete ([temp_file '.m']) 2176s end 2176s % remove temp_path from load path 2176s rmpath(temp_path); 2176s 2176s Wrote file /tmp/oct_lMiHNw.m. 2176s ***** test 2176s % output to disk: also works with .m specified 2176s if (exist ('OCTAVE_VERSION', 'builtin')) 2176s temp_file = [tempname('', 'oct_') '.m']; 2176s else 2176s temp_file = [tempname() '.m']; 2176s end 2176s % allow loading function from temp_file 2176s [temp_path, ans, ans] = fileparts(temp_file); 2176s addpath(temp_path); 2176s f = function_handle(2*x*y, 2^x, 'vars', {x y z}, 'file', temp_file); 2176s assert( isa(f, 'function_handle')) 2176s addpath(temp_path); % Matlab 2014a needs this? 2176s [a,b] = f(10,20,30); 2176s assert (isnumeric (a) && isnumeric (b)) 2176s assert (a == 400) 2176s assert (b == 1024) 2176s if (exist ('OCTAVE_VERSION', 'builtin')) 2176s assert (unlink(temp_file) == 0) 2176s else 2176s delete (temp_file) 2176s end 2176s % remove temp_path from load path 2176s rmpath(temp_path); 2176s Wrote file /tmp/oct_ODWaBu.m. 2176s ***** test 2176s % non-scalar outputs 2176s H = [x y z]; 2176s M = [x y; z 16]; 2176s V = [x;y;z]; 2176s h = function_handle(H, M, V); 2176s [t1,t2,t3] = h(1,2,3); 2176s assert(isequal(t1, [1 2 3])) 2176s assert(isequal(t2, [1 2; 3 16])) 2176s assert(isequal(t3, [1;2;3])) 2177s ***** test 2177s % non-scalar outputs in .m files 2177s H = [x y z]; 2177s M = [x y; z 16]; 2177s V = [x;y;z]; 2177s if (exist ('OCTAVE_VERSION', 'builtin')) 2177s temp_file = tempname('', 'oct_'); 2177s else 2177s temp_file = tempname(); 2177s end 2177s % allow loading function from temp_file 2177s [temp_path, ans, ans] = fileparts(temp_file); 2177s addpath(temp_path); 2177s h = function_handle(H, M, V, 'vars', {x y z}, 'file', temp_file); 2177s assert( isa(h, 'function_handle')) 2177s addpath(temp_path); % Matlab 2014a needs this? 2177s [t1,t2,t3] = h(1,2,3); 2177s assert(isequal(t1, [1 2 3])) 2177s assert(isequal(t2, [1 2; 3 16])) 2177s assert(isequal(t3, [1;2;3])) 2177s if (exist ('OCTAVE_VERSION', 'builtin')) 2177s assert (unlink([temp_file '.m']) == 0) 2177s else 2177s delete ([temp_file '.m']) 2177s end 2177s % remove temp_path from load path 2177s rmpath(temp_path); 2177s Wrote file /tmp/oct_YcRVgI.m. 2177s ***** test 2177s % order of outputs is lexiographic 2177s syms a A x y 2177s f = y + 10*a + 100*x + 1000*A; 2177s h = function_handle(f); 2177s assert (h(1, 2, 3, 4) == 1000 + 20 + 300 + 4) 2177s ***** test 2177s % https://github.com/cbm755/octsympy/issues/854 2177s f = function_handle (x + 1i*sqrt (sym(3))); 2177s assert (f (1), complex (1, sqrt (3)), -eps) 2177s 14 tests, 14 passed, 0 known failure, 0 skipped 2177s [inst/@sym/isvector.m] 2177s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/isvector.m 2177s ***** assert(isvector(sym('x'))) 2177s ***** assert(isvector(sym([1 2 3]))) 2177s ***** assert(isvector(sym([1; 2]))) 2177s ***** assert(~isvector(sym([1 2; 3 4]))) 2177s ***** assert(~isvector(sym([]))) 2177s ***** assert(isvector(sym(ones(1,0)))) 2177s ***** assert(~isvector(sym(ones(0,3)))) 2177s 7 tests, 7 passed, 0 known failure, 0 skipped 2177s [inst/@sym/psi.m] 2177s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/psi.m 2177s ***** assert (isequal (psi (sym (1)), -eulergamma)) 2177s ***** assert (isequal (psi (1, sym (1)), sym (pi)^2/6)) 2177s ***** assert (isinf (psi (sym ('inf')))) 2177s ***** test 2177s % compare to Maple: evalf(Psi(-101/100)); 2177s maple = vpa ('100.3963127058453949545769053445198842332424', 40); 2177s us = vpa (psi (sym (-101)/100), 40); 2177s assert (abs(double(maple-us)) < 1e-39) 2177s ***** test 2177s % compare to Maple: evalf(Psi(1, 3*I-2)); 2177s maple = vpa ('-0.1651414829219882371561038184133243839778799', 40) - ... 2177s vpa ('0.1960040752985823275302034466611711263617296j', 40); 2177s us = vpa (psi (1, sym (-2) + sym(3i)), 40); 2177s assert (abs(double(maple-us)) < 1e-39) 2178s ***** test 2178s % should match @double/psi 2178s if (exist ('psi','builtin')) 2178s assert (psi (pi), double (psi (sym (pi))), -3*eps) 2178s assert (psi (100), double (psi (sym (100))), -3*eps) 2178s assert (psi (1e-3), double (psi (1/sym (1e3))), -3*eps) 2178s if (exist ('OCTAVE_VERSION', 'builtin')) 2178s % 2014a doesn't support negative or complex arguments 2178s assert (psi (-1.5), double (psi (sym (-3)/2)), -3*eps) 2178s assert (psi (-8.3), double (psi (sym (-83)/10)),-4*eps) 2178s assert (psi (2i), double (psi (sym (2i))), -3*eps) 2178s assert (psi (10i+3), double (psi (sym (10i)+3)), -3*eps) 2178s end 2178s end 2178s ***** test 2178s % @double/psi loses accuracy near the poles: note higher rel tol 2178s if (exist ('psi','builtin')) 2178s if (exist ('OCTAVE_VERSION', 'builtin')) 2178s assert (psi (-1.1), double (psi (sym (-11)/10)), -6*eps) 2178s assert (psi (-1.01), double (psi (sym (-101)/100)), -50*eps) 2178s end 2178s end 2178s ***** test 2178s if (exist ('psi','builtin')) 2178s assert (psi (1, pi), double (psi (1, sym (pi))), -3*eps) 2178s assert (psi (1, 100), double (psi (1, sym (100))), -3*eps) 2178s assert (psi (1, 1e-4), double (psi (1, 1/sym (1e4))), -3*eps) 2178s end 2178s ***** test 2178s if (exist ('psi','builtin')) 2178s assert (psi (2, pi), double (psi (2, sym (pi))), -3*eps) 2178s assert (psi (2, 1000), double (psi (2, sym (1000))), -3*eps) 2178s assert (psi (2, 1e-4), double (psi (2, 1/sym (1e4))), -3*eps) 2178s end 2179s ***** test 2179s % round trip 2179s if (exist ('psi','builtin')) 2179s syms x 2179s f = psi (x); 2179s h = function_handle (f); 2179s A = h (1.1); 2179s B = psi (1.1); 2179s assert (A, B) 2179s end 2179s 10 tests, 10 passed, 0 known failure, 0 skipped 2179s [inst/@sym/cumsum.m] 2179s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/cumsum.m 2179s ***** shared x, y 2179s x = sym ('x'); 2179s y = sym ('y'); 2179s ***** error cumsum (x, 1, 2) 2179s ***** assert (isequal (cumsum ([-x; -2*x; -3*x]), [-x; -3*x; -6*x])) 2179s ***** assert (isequal (cumsum ([x + 2i*y, 2*x + i*y]), [x + 2i*y, 3*x + 3i*y])) 2180s ***** assert (isequal (cumsum ([x, 2*x; 3*x, 4*x], 1), [1*x, 2*x; 4*x, 6*x] )) 2180s ***** assert (isequal (cumsum ([x, 2*x; 3*x, 4*x], 2), [1*x, 3*x; 3*x, 7*x] )) 2182s ***** test cumsum ([x, x], [2, 1]); # ensure behaves like builtin cumsum 2182s ***** test cumsum ([x, x], [1, -2]); # ensure behaves like builtin cumsum 2182s ***** error cumsum (x, []) 2182s ***** error cumsum (x, {1}) 2182s ***** error cumsum (x, struct('a', 1)) 2182s ***** error cumsum (x, x) 2182s ***** error cumsum (x, 0) 2182s ***** error cumsum (x, -1) 2182s 13 tests, 13 passed, 0 known failure, 0 skipped 2182s [inst/@sym/erfi.m] 2182s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/erfi.m 2182s ***** error erfi (sym(1), 2) 2182s ***** assert (isequaln (erfi (sym(nan)), sym(nan))) 2182s ***** shared x, d 2182s d = 0; 2182s x = sym('0'); 2182s ***** test 2182s f1 = erfi(x); 2182s f2 = 0; 2182s assert( abs(double(f1) - f2) < 1e-15 ) 2182s ***** test 2182s D = [d d; d d]; 2182s A = [x x; x x]; 2182s f1 = erfi(A); 2182s f2 = 0; 2182s f2 = [f2 f2; f2 f2]; 2182s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2183s ***** test 2183s % round trip 2183s y = sym('y'); 2183s A = erfi (d); 2183s f = erfi (y); 2183s h = function_handle (f); 2183s B = h (d); 2183s assert (A, B, -eps) 2183s 5 tests, 5 passed, 0 known failure, 0 skipped 2183s [inst/@sym/jacobian.m] 2183s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/jacobian.m 2183s ***** error jacobian (sym(1), 2, 3) 2183s ***** error jacobian ([sym(1) 2; sym(3) 4]) 2183s ***** shared x,y,z 2183s syms x y z 2183s ***** test 2183s % 1D 2183s f = x^2; 2183s assert (isequal (jacobian(f), diff(f,x))) 2183s assert (isequal (jacobian(f,{x}), diff(f,x))) 2183s assert (isequal (jacobian(f,x), diff(f,x))) 2183s ***** test 2183s % const 2183s f = sym(1); 2183s g = sym(0); 2183s assert (isequal (jacobian(f), g)) 2183s assert (isequal (jacobian(f,x), g)) 2183s ***** test 2183s % double const 2183s f = 1; 2183s g = sym(0); 2183s assert (isequal (jacobian(f,x), g)) 2183s ***** test 2183s % diag 2183s f = [x y^2]; 2183s g = [sym(1) 0; 0 2*y]; 2183s assert (isequal (jacobian(f), g)) 2183s assert (isequal (jacobian(f, [x y]), g)) 2183s assert (isequal (jacobian(f, {x y}), g)) 2184s ***** test 2184s % anti-diag 2184s f = [y^2 x]; 2184s g = [0 2*y; sym(1) 0]; 2184s assert (isequal (jacobian(f), g)) 2184s assert (isequal (jacobian(f, {x y}), g)) 2184s ***** test 2184s % shape 2184s f = [x y^2]; 2184s assert (isequal (size(jacobian(f, {x y z})), [2 3])) 2184s assert (isequal (size(jacobian(f, [x y z])), [2 3])) 2184s assert (isequal (size(jacobian(f, [x; y; z])), [2 3])) 2184s assert (isequal (size(jacobian(f.', {x y z})), [2 3])) 2184s ***** test 2184s % scalar f 2184s f = x*y; 2184s assert (isequal (size(jacobian(f, {x y})), [1 2])) 2184s g = gradient(f, {x y}); 2184s assert (isequal (jacobian(f, {x y}), g.')) 2184s ***** test 2184s % vect f wrt 1 var 2184s f = [x x^2]; 2184s assert (isequal (size(jacobian(f, x)), [2 1])) 2184s f = f.'; % same shape output 2184s assert (isequal (size(jacobian(f, x)), [2 1])) 2184s 10 tests, 10 passed, 0 known failure, 0 skipped 2184s [inst/@sym/columns.m] 2184s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/columns.m 2184s ***** test 2184s a = sym([1 2 3]); 2184s assert (columns(a) == 3) 2184s ***** test 2184s a = sym([1; 2]); 2184s assert (columns(a) == 1) 2184s 2 tests, 2 passed, 0 known failure, 0 skipped 2184s [inst/@sym/linspace.m] 2184s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/linspace.m 2184s ***** test 2184s a = linspace(sym(3), 5, 5); 2184s b = [sym(6) 7 8 9 10]/2; 2184s assert (isequal (a, b)) 2184s ***** test 2184s % non-integers 2184s A = linspace(0, sym(pi), 10); 2184s assert (length (A) == 10); 2184s assert (isequal (A(6), 5*sym(pi)/9)); 2185s ***** test 2185s % default argument for N 2185s A = linspace(1, 100); 2185s assert (length (A) == 100); 2185s ***** test 2185s % special case for just N = 1 2185s A = linspace(sym(2), 3, 1); 2185s assert (isequal (A, 3)) 2185s A = linspace(sym(2), 3, 0); 2185s assert (isequal (A, 3)) 2185s A = linspace(sym(2), 3, sym(3)/2); 2185s assert (isequal (A, 3)) 2185s 4 tests, 4 passed, 0 known failure, 0 skipped 2185s [inst/@sym/ccode.m] 2185s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/ccode.m 2185s ***** shared x,y,z 2185s syms x y z 2185s ***** test 2185s % basic test 2185s f = x*sin(y) + abs(z); 2185s source = ccode(f); 2185s expected = 'x*sin(y) + fabs(z)'; 2185s assert(strcmp(source, expected)) 2185s ***** test 2185s % output test 2185s f = x*sin(y) + abs(z); 2185s [C, H] = ccode(f, 'file', '', 'show_header', false); 2185s 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'); 2185s 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'); 2185s assert(strcmp(C.name, 'file.c')) 2185s assert(strcmp(H.name, 'file.h')) 2185s hwin = strrep(expected_h_code, sprintf('\n'), sprintf('\r\n')); 2185s assert (strcmp (H.code, expected_h_code) || strcmp (H.code, hwin)) 2185s s1 = expected_c_code; 2185s s2 = strrep(expected_c_code, sprintf('\n'), sprintf('\r\n')); 2185s assert (strcmp (C.code, s1) || strcmp (C.code, s2)) 2185s 2 tests, 2 passed, 0 known failure, 0 skipped 2185s [inst/@sym/acot.m] 2185s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/acot.m 2185s ***** error acot (sym(1), 2) 2185s ***** assert (isequaln (acot (sym(nan)), sym(nan))) 2185s ***** shared x, d 2185s d = 1; 2185s x = sym('1'); 2185s ***** test 2185s f1 = acot(x); 2185s f2 = acot(d); 2185s assert( abs(double(f1) - f2) < 1e-15 ) 2185s ***** test 2185s D = [d d; d d]; 2185s A = [x x; x x]; 2185s f1 = acot(A); 2185s f2 = acot(D); 2185s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2185s ***** test 2185s % round trip 2185s y = sym('y'); 2185s A = acot (d); 2185s f = acot (y); 2185s h = function_handle (f); 2185s B = h (d); 2185s assert (A, B, -eps) 2185s 5 tests, 5 passed, 0 known failure, 0 skipped 2185s [inst/@sym/log.m] 2185s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/log.m 2185s ***** error log (sym(1), 2) 2185s ***** assert (isequaln (log (sym(nan)), sym(nan))) 2185s ***** shared x, d 2185s d = 1; 2185s x = sym('1'); 2185s ***** test 2185s f1 = log(x); 2185s f2 = log(d); 2185s assert( abs(double(f1) - f2) < 1e-15 ) 2185s ***** test 2185s D = [d d; d d]; 2185s A = [x x; x x]; 2185s f1 = log(A); 2185s f2 = log(D); 2185s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2185s ***** test 2185s % round trip 2185s y = sym('y'); 2185s A = log (d); 2185s f = log (y); 2185s h = function_handle (f); 2185s B = h (d); 2185s assert (A, B, -eps) 2185s 5 tests, 5 passed, 0 known failure, 0 skipped 2185s [inst/@sym/uminus.m] 2185s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/uminus.m 2185s ***** test 2185s % scalar 2185s syms x 2185s assert (isa (-x, 'sym')) 2185s assert (isequal (-(-x), x)) 2185s ***** test 2185s % matrix 2185s D = [0 1; 2 3]; 2185s A = sym(D); 2185s assert( isequal( -A, -D )) 2186s 2 tests, 2 passed, 0 known failure, 0 skipped 2186s [inst/@sym/horzcat.m] 2186s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/horzcat.m 2186s ***** test 2186s % basic 2186s syms x 2186s A = [x x]; 2186s B = horzcat(x, x); 2186s C = horzcat(x, x, x); 2186s assert (isa (A, 'sym')) 2186s assert (isa (B, 'sym')) 2186s assert (isa (C, 'sym')) 2186s assert (isequal (size(A), [1 2])) 2186s assert (isequal (size(B), [1 2])) 2186s assert (isequal (size(C), [1 3])) 2186s ***** test 2186s % basic, part 2 2186s syms x 2186s A = [x 1]; 2186s B = [1 x]; 2186s C = [1 2 x]; 2186s assert (isa (A, 'sym')) 2186s assert (isa (B, 'sym')) 2186s assert (isa (C, 'sym')) 2186s assert (isequal (size(A), [1 2])) 2186s assert (isequal (size(B), [1 2])) 2186s assert (isequal (size(C), [1 3])) 2186s ***** test 2186s % row vectors 2186s a = [sym(1) 2]; 2186s b = [sym(3) 4]; 2186s assert (isequal ( [a b] , [1 2 3 4] )) 2186s assert (isequal ( [a 3 4] , [1 2 3 4] )) 2186s assert (isequal ( [3 4 a] , [3 4 1 2] )) 2186s assert (isequal ( [a [3 4]] , [1 2 3 4] )) 2186s assert (isequal ( [a sym(3) 4] , [1 2 3 4] )) 2186s assert (isequal ( [a [sym(3) 4]] , [1 2 3 4] )) 2186s ***** test 2186s % col vectors 2186s a = [sym(1); 2]; 2186s b = [sym(3); 4]; 2186s assert (isequal ( [a b] , [1 3; 2 4] )) 2186s assert (isequal ( [a b a] , [1 3 1; 2 4 2] )) 2187s ***** test 2187s % empty vectors 2187s v = sym(1); 2187s a = [v []]; 2187s assert (isequal (a, v)) 2187s a = [[] v []]; 2187s assert (isequal (a, v)) 2187s a = [v [] []]; 2187s assert (isequal (a, v)) 2187s ***** test 2187s % more empty vectors 2187s v = [sym(1) sym(2)]; 2187s q = sym(ones(1, 0)); 2187s assert (isequal ([v q], v)) 2187s ***** error 2187s v = [sym(1) sym(2)]; 2187s q = sym(ones(3, 0)); 2187s w = horzcat(v, q); 2187s ***** test 2187s % issue #700 2187s A = sym ([1 2]); 2187s B = simplify (A); 2187s assert (isequal ([B A], [A B])) 2187s 8 tests, 8 passed, 0 known failure, 0 skipped 2187s [inst/@sym/besselh.m] 2187s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/besselh.m 2187s ***** test 2187s % default to k=1 2187s syms z a 2187s A = besselh(a, z); 2187s B = besselh(a, 1, z); 2187s assert (isequal (A, B)) 2187s ***** error besselh(sym('z')) 2188s ***** error besselh(2, 0, sym('z')) 2188s ***** error besselh(2, 3, sym('z')) 2188s ***** test 2188s % doubles, relative error 2188s X = [1 2 pi; 4i 5 6+6i]; 2188s Xs = sym(X); 2188s Alpha = [pi 3 1; 3 2 0]; 2188s Alphas = sym(Alpha); 2188s for k = 1:2 2188s A = double(besselh(Alphas, k, Xs)); 2188s B = besselh(Alpha, k, X); 2188s assert (all (all (abs(A - B) < 10*eps*abs(A)))) 2188s end 2189s ***** test 2189s % round-trip 2189s syms x 2189s for k = 1:2 2189s A = besselh(4, k, 10); 2189s q = besselh(4, k, x); 2189s h = function_handle(q); 2189s B = h(10); 2189s assert (abs(A - B) <= eps*abs(A)) 2189s end 2190s 6 tests, 6 passed, 0 known failure, 0 skipped 2190s [inst/@sym/zeros.m] 2190s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/zeros.m 2190s ***** test 2190s y = zeros(sym(2)); 2190s x = [0 0; 0 0]; 2190s assert( isequal( y, sym(x))) 2190s ***** test 2190s y = zeros(sym(2), 1); 2190s x = [0; 0]; 2190s assert( isequal( y, sym(x))) 2190s ***** test 2190s y = zeros(sym(1), 2); 2190s x = [0 0]; 2190s assert( isequal( y, sym(x))) 2190s ***** test 2190s y = zeros (sym([2 3])); 2190s x = sym (zeros ([2 3])); 2190s assert (isequal (y, x)) 2190s ***** assert( isa( zeros(sym(2), 'double'), 'double')) 2190s ***** assert( isa( zeros(3, sym(3), 'single') , 'single')) 2190s ***** assert( isa( zeros(3, sym(3)), 'sym')) 2190s ***** assert( isa( zeros(3, sym(3), 'sym'), 'sym')) 2190s ***** xtest 2190s % Issue #13 2190s assert( isa( zeros(3, 3, 'sym'), 'sym')) 2190s !!!!! known failure 2190s invalid data type specified 2190s 9 tests, 8 passed, 1 known failure, 0 skipped 2190s [inst/@sym/fourier.m] 2190s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/fourier.m 2190s ***** test 2190s % matlab SMT compatibiliy for arguments 2190s syms r x u w v 2190s Pi=sym('pi'); 2190s assert(logical( fourier(exp(-x^2)) == sqrt(Pi)/exp(w^2/4) )) 2190s assert(logical( fourier(exp(-w^2)) == sqrt(Pi)/exp(v^2/4) )) 2190s assert(logical( fourier(exp(-r^2),u) == sqrt(Pi)/exp(u^2/4) )) 2190s assert(logical( fourier(exp(-r^2),r,u) == sqrt(Pi)/exp(u^2/4) )) 2193s ***** test 2193s % basic tests 2193s syms x w 2193s assert(logical( fourier(exp(-abs(x))) == 2/(w^2 + 1) )) 2193s assert(logical( fourier(x*exp(-abs(x))) == -(w*4*1i)/(w^4 + 2*w^2 + 1) )) 2194s ***** test 2194s % Dirac delta tests 2194s syms x w 2194s Pi=sym('pi'); 2194s assert(logical( fourier(dirac(x-2)) == exp(-2*1i*w) )) 2194s assert (logical( fourier(sym(2), x, w) == 4*Pi*dirac(w) )) 2194s ***** test 2194s % advanced test 2194s syms x w c d 2194s Pi=sym('pi'); 2194s F=Pi*(dirac(w-c)+dirac(w+c))+2*Pi*1i*(dirac(w+3*d)-dirac(w-3*d))+2/(w^2+1); 2194s assert(logical( fourier(cos(c*x)+2*sin(3*d*x)+exp(-abs(x))) == expand(F) )) 2195s ***** xtest 2195s % Differential operator to algebraic 2195s % SymPy cannot evaluate? (Issue #170) 2195s syms x w f(x) 2195s assert(logical( fourier(diff(f(x),x),x,w) == -1i*w*fourier(f(x),x,w) )) 2197s !!!!! known failure 2197s assert (logical (fourier (diff (f (x), x), x, w) == -1i * w * fourier (f (x), x, w))) failed 2197s 5 tests, 4 passed, 1 known failure, 0 skipped 2197s [inst/@sym/isNone.m] 2197s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/isNone.m 2197s ***** test 2197s None = pycall_sympy__ ('return None'); 2197s ***** shared None 2197s None = pycall_sympy__ ('return None'); 2197s ***** assert (isNone(None)) 2197s ***** assert (~isNone(sym('x'))) 2197s ***** assert (islogical(isNone(None))) 2197s ***** test 2197s a = [1 None]; 2197s a = [None None]; 2197s a = [None; 1]; 2197s a = [None; None]; 2197s a = [None 2; 3 None]; 2197s ***** test 2197s a = sym([1 2]); 2197s a(1,2) = None; 2197s assert (isequal (a, [sym(1) None])); 2197s ***** assert (isequal (None(1), None)); 2197s ***** error None(None); 2197s ***** error x=sym('x'); x(None); 2197s ***** error x=1; x(None); 2197s ***** error None(None); 2197s ***** error 1 + None; 2197s ***** error None - 1; 2197s ***** error 6*None; 2197s ***** error 2^None; 2197s ***** error [1 2].*None; 2197s ***** error isconstant(None); 2197s ***** error nnz(None); 2197s ***** error logical(None); 2197s ***** error isAlways(None); 2197s ***** error logical([sym(true) None]); 2197s ***** error isAlways([sym(true) None]); 2197s ***** assert (isequal (children(None), None)) 2197s ***** assert (isequal (repmat(None, 1, 2), [None None])) 2197s ***** assert (isequal (fliplr(None), None)) 2197s ***** assert (isequal (flipud(None), None)) 2197s 26 tests, 26 passed, 0 known failure, 0 skipped 2197s [inst/@sym/kroneckerDelta.m] 2197s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/kroneckerDelta.m 2197s ***** error kroneckerDelta (sym(1), 2, 3) 2197s ***** test 2197s syms x 2197s assert (isequal (kroneckerDelta (x, x), sym(1))) 2197s ***** assert (isequal (kroneckerDelta ([sym(1) 2 3], [1 2 0]), sym([1 1 0]))) 2197s ***** test 2197s % round trip 2197s syms x y 2197s f = kroneckerDelta (x, y); 2197s h = function_handle (f); 2197s assert (h (1, 2), 0) 2197s assert (h (2, 2), 1) 2198s 4 tests, 4 passed, 0 known failure, 0 skipped 2198s [inst/@sym/assumeAlso.m] 2198s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/assumeAlso.m 2198s ***** test 2198s syms x 2198s x = assumeAlso(x, 'positive'); 2198s a = assumptions(x); 2198s assert(strcmp(a, 'x: positive')) 2198s ***** error 2198s syms x 2198s x = assumeAlso (x, x); 2198s ***** test 2198s syms x positive 2198s x = assumeAlso(x, 'integer'); 2198s [tilde, a] = assumptions(x, 'dict'); 2198s assert(a{1}.integer) 2198s assert(a{1}.positive) 2198s ***** test 2198s % multiple assumptions 2198s syms x positive 2198s x = assumeAlso(x, 'integer', 'even'); 2198s [tilde, a] = assumptions(x, 'dict'); 2198s assert(a{1}.integer) 2198s assert(a{1}.positive) 2198s assert(a{1}.even) 2198s ***** test 2198s % multiple assumptions 2198s syms x integer 2198s x = assumeAlso (x, 'even', 'positive'); 2198s [tilde, a] = assumptions (x, 'dict'); 2198s assert (a{1}.integer) 2198s assert (a{1}.even) 2198s assert (a{1}.positive) 2198s ***** test 2198s % has output so avoids workspace 2198s syms x positive 2198s x2 = x; 2198s f = sin(x); 2198s assumeAlso(x, 'integer'); 2198s a = assumptions(x); 2198s assert(strcmp(a, 'x: positive, integer') || strcmp(a, 'x: integer, positive')) 2198s a = assumptions(x2); 2198s assert(strcmp(a, 'x: positive, integer') || strcmp(a, 'x: integer, positive')) 2198s a = assumptions(f); 2198s assert(strcmp(a, 'x: positive, integer') || strcmp(a, 'x: integer, positive')) 2198s ***** test 2198s % has no output so does workspace 2198s syms x positive 2198s x2 = x; 2198s f = sin(x); 2198s assumeAlso(x, 'integer'); 2198s a = assumptions(x); 2198s assert(strcmp(a, 'x: positive, integer') || strcmp(a, 'x: integer, positive')) 2198s a = assumptions(x2); 2198s assert(strcmp(a, 'x: positive, integer') || strcmp(a, 'x: integer, positive')) 2198s a = assumptions(f); 2198s assert(strcmp(a, 'x: positive, integer') || strcmp(a, 'x: integer, positive')) 2198s ***** error 2198s syms a 2198s assumeAlso (a > 0) 2198s ***** test 2198s syms x y 2198s assumeAlso ([x y], 'even') 2198s assert (strcmp (assumptions (x), 'x: even')) 2198s assert (strcmp (assumptions (y), 'y: even')) 2199s ***** test 2199s syms x y positive 2199s f = sin (2*x); 2199s assumeAlso ([x y], 'even') 2199s assert (strcmp (assumptions (x), 'x: even, positive') || strcmp (assumptions (x), 'x: positive, even')) 2199s assert (strcmp (assumptions (y), 'y: even, positive') || strcmp (assumptions (y), 'y: positive, even')) 2199s assert (strcmp (assumptions (f), 'x: even, positive') || strcmp (assumptions (f), 'x: positive, even')) 2199s ***** test 2199s % with output, original x and y are unchanged 2199s syms x y positive 2199s f = sin (2*x); 2199s [p, q] = assumeAlso ([x y], 'even'); 2199s assert (strcmp (assumptions (x), 'x: positive')) 2199s assert (strcmp (assumptions (y), 'y: positive')) 2199s assert (strcmp (assumptions (f), 'x: positive')) 2199s assert (strcmp (assumptions (p), 'x: even, positive') || strcmp (assumptions (p), 'x: positive, even')) 2199s assert (strcmp (assumptions (q), 'y: even, positive') || strcmp (assumptions (q), 'y: positive, even')) 2199s 11 tests, 11 passed, 0 known failure, 0 skipped 2199s [inst/@sym/sinhint.m] 2199s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/sinhint.m 2199s ***** error sinhint (sym(1), 2) 2199s ***** xtest 2199s assert (isequaln (sinhint (sym(nan)), sym(nan))) 2199s !!!!! known failure 2199s assert (isequaln (sinhint (sym (nan)), sym (nan))) failed 2199s ***** shared x, d 2199s d = 1; 2199s x = sym('1'); 2199s ***** test 2199s f1 = sinhint(x); 2199s f2 = 1.057250875375728514572; 2199s assert( abs(double(f1) - f2) < 1e-15 ) 2199s ***** test 2199s D = [d d; d d]; 2199s A = [x x; x x]; 2199s f1 = sinhint(A); 2199s f2 = 1.057250875375728514572; 2199s f2 = [f2 f2; f2 f2]; 2199s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2200s ***** test 2200s % round trip 2200s y = sym('y'); 2200s A = sinhint (d); 2200s f = sinhint (y); 2200s h = function_handle (f); 2200s B = h (d); 2200s assert (A, B, -eps) 2200s 5 tests, 4 passed, 1 known failure, 0 skipped 2200s [inst/@sym/double.m] 2200s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/double.m 2200s ***** test 2200s % numeric scalar 2200s a = double(sym(10)); 2200s assert (a == 10) 2200s assert (isa (a, 'double')) 2200s ***** test 2200s % numeric vectors 2200s a = double(sym([10 12])); 2200s assert (isequal (a, [10 12])) 2200s assert (isa (a, 'double')) 2200s ***** test 2200s % complex 2200s a = 3 + 4i; 2200s b = sym(a); 2200s assert (isequal (double (b), a)) 2200s ***** xtest 2200s % unexpected, precisely same floating point 2200s a = 3 + 4i; 2200s b = sym(a); 2200s assert (isequal (double (b/pi), a/pi)) 2200s ***** test 2200s % floating point 2200s x = sqrt(sym(2)); 2200s assert( abs(double(x) - sqrt(2)) < 2*eps) 2200s x = sym(pi); 2200s assert( abs(double(x) - pi) < 2*eps) 2200s ***** test 2200s oo = sym(inf); 2200s assert( double(oo) == inf ) 2200s assert( double(-oo) == -inf ) 2200s assert( isnan(double(0*oo)) ) 2200s ***** test 2200s zoo = sym('zoo'); 2200s assert (double(zoo) == complex(inf, inf)) 2200s ***** test 2200s zoo = sym('zoo'); 2200s assert (double(-zoo) == double(zoo) ) 2200s assert( isnan(double(0*zoo)) ) 2200s ***** test 2200s % nan 2200s snan = sym(nan); 2200s assert( isnan(double(snan))) 2200s ***** test 2200s % don't want NaN+NaNi 2200s snan = sym(nan); 2200s assert (isreal (double (snan))) 2200s ***** test 2200s % arrays 2200s a = [1 2; 3 4]; 2200s assert( isequal( double(sym(a)), a )) 2200s assert( isequal( double(sym(a)), a )) 2200s % should fail with error for non-double 2200s ***** error syms x; double(x) 2200s ***** error syms x; double([1 2 x]) 2200s 13 tests, 13 passed, 0 known failure, 0 skipped 2200s [inst/@sym/sin.m] 2200s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/sin.m 2200s ***** error sin (sym(1), 2) 2201s ***** assert (isequaln (sin (sym(nan)), sym(nan))) 2201s ***** shared x, d 2201s d = 1; 2201s x = sym('1'); 2201s ***** test 2201s f1 = sin(x); 2201s f2 = sin(d); 2201s assert( abs(double(f1) - f2) < 1e-15 ) 2201s ***** test 2201s D = [d d; d d]; 2201s A = [x x; x x]; 2201s f1 = sin(A); 2201s f2 = sin(D); 2201s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2201s ***** test 2201s % round trip 2201s y = sym('y'); 2201s A = sin (d); 2201s f = sin (y); 2201s h = function_handle (f); 2201s B = h (d); 2201s assert (A, B, -eps) 2201s 5 tests, 5 passed, 0 known failure, 0 skipped 2201s [inst/@sym/sind.m] 2201s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/sind.m 2201s ***** error sind (sym(1), 2) 2201s ***** assert (isequaln (sind (sym(nan)), sym(nan))) 2201s ***** test 2201s f1 = sind (sym(1)); 2201s f2 = sind (1); 2201s assert (double (f1), f2, -eps) 2201s ***** test 2201s D = [10 30; 110 -45]; 2201s A = sym(D); 2201s f1 = sind (A); 2201s f2 = sind (D); 2201s assert (double (f1), f2, -eps) 2201s 4 tests, 4 passed, 0 known failure, 0 skipped 2201s [inst/@sym/logical.m] 2201s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/logical.m 2201s ***** test 2201s % basics, many others in isAlways.m 2201s assert (logical(true)) 2201s assert (~(logical(false))) 2201s ***** test 2201s % numbers to logic? 2201s assert (logical(sym(1))) 2201s assert (logical(sym(-1))) 2201s assert (~logical(sym(0))) 2201s ***** test 2201s % eqns, "structurally equivalent" 2201s syms x 2201s e = logical(x == x); 2201s assert ( islogical (e)) 2201s assert (e) 2201s e = logical(x == 1); 2201s assert ( islogical (e)) 2201s assert (~e) 2201s ***** test 2201s % eqn could have solutions but are false in general 2201s syms x 2201s e = logical(x^2 == x); 2201s assert ( islogical (e)) 2201s assert (~e) 2201s e = logical(2*x == x); 2201s assert ( islogical (e)) 2201s assert (~e) 2201s ***** test 2201s % FIXME: (not sure yet) T/F matrices should stay sym until logical() 2201s a = sym(1); 2201s e = a == a; 2201s assert (isa (e, 'sym')) 2201s assert (islogical (logical (e))) 2201s e = [a == a a == 0 a == a]; 2201s assert (isa (e, 'sym')) 2201s assert (islogical (logical (e))) 2202s ***** test 2202s % sym vectors of T/F to logical 2202s a = sym(1); 2202s e = [a == a a == 0 a == a]; 2202s w = logical(e); 2202s assert (islogical (w)) 2202s assert (isequal (w, [true false true])) 2202s e = e'; 2202s w = logical(e); 2202s assert (islogical (w)) 2202s assert (isequal (w, [true; false; true])) 2202s ***** test 2202s % sym matrix of T/F to logical 2202s a = sym([1 2 3; 4 5 6]); 2202s b = sym([1 2 0; 4 0 6]); 2202s e = a == b; 2202s w = logical(e); 2202s assert (islogical (w)) 2202s assert (isequal (w, [true true false; true false true])) 2202s ***** error 2202s syms x 2202s logical(x); 2202s ***** error 2202s logical(sym(nan)) 2202s ***** test 2202s % but oo and zoo are non-zero so we call those true 2202s % (SMT errors on these) FIXME 2202s syms oo zoo 2202s assert (logical (oo)) 2202s % assert (logical (zoo)) 2202s ***** test 2202s % older Octave (< 4.2) didn't automatically do "if (logical(obj))" 2202s e = sym(true); 2202s if (e) 2202s assert(true); 2202s else 2202s assert(false); 2202s end 2202s ***** test 2202s % more of above 2202s e2 = sym(1) == sym(1); 2202s if (e2) 2202s assert(true); 2202s else 2202s assert(false); 2202s end 2202s e3 = sym([1 2]) == sym([1 1]); 2202s if (e3(1)) 2202s assert(true); 2202s else 2202s assert(false); 2202s end 2202s 12 tests, 12 passed, 0 known failure, 0 skipped 2202s [inst/@sym/orth.m] 2202s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/orth.m 2202s ***** test 2202s A = [1 2; 3 6]; 2202s K = orth(A); 2202s L = orth(sym(A)); 2202s assert (isequal (size(L), [2 1])) 2202s dif1 = abs (double(L) - K); 2202s dif2 = abs (double(L) + K); 2202s assert (all (dif1 < 1e-15) || all (dif2 < 1e-15)) 2202s ***** test 2202s A = [1; 3]; 2202s K = orth(A); 2202s L = orth(sym(A)); 2202s assert (isequal (size(L), [2 1])) 2202s dif1 = abs (double(L) - K); 2202s dif2 = abs (double(L) + K); 2202s assert (all (dif1 < 1e-16) || all (dif2 < 1e-16)) 2202s ***** test 2202s A = sym([1 2; 3 4]); 2202s L = orth(sym(A)); 2202s assert (isequal (size(L), [2 2])) 2202s v = L(:, 1); 2202s w = L(:, 2); 2202s assert (isAlways (v' * v == 1)) 2202s assert (isAlways (w' * w == 1)) 2202s assert (isAlways (v' * w == 0)) 2203s ***** test 2203s A = sym([1 1; 1 0; 1 0]); 2203s L = orth(sym(A)); 2203s assert (isequal (size(L), [3 2])) 2203s v = L(:, 1); 2203s w = L(:, 2); 2203s assert (isAlways (v' * v == 1)) 2203s assert (isAlways (w' * w == 1)) 2203s assert (isAlways (v' * w == 0)) 2203s % y and z components must be equal 2203s assert (isAlways (v(2) == v(3))) 2203s assert (isAlways (w(2) == w(3))) 2203s 4 tests, 4 passed, 0 known failure, 0 skipped 2203s [inst/@sym/ones.m] 2203s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/ones.m 2203s ***** test 2203s y = ones(sym(2)); 2203s x = [1 1; 1 1]; 2203s assert( isequal( y, sym(x))) 2203s ***** test 2203s y = ones(sym(2), 1); 2203s x = [1; 1]; 2203s assert( isequal( y, sym(x))) 2203s ***** test 2203s y = ones(sym(1), 2); 2203s x = [1 1]; 2203s assert( isequal( y, sym(x))) 2203s ***** test 2203s y = ones (sym([2 3])); 2203s x = sym (ones ([2 3])); 2203s assert (isequal (y, x)) 2203s ***** assert( isa( ones(sym(2), 'double'), 'double')) 2203s ***** assert( isa( ones(3, sym(3), 'single') , 'single')) 2203s ***** assert( isa( ones(3, sym(3)), 'sym')) 2204s ***** assert( isa( ones(3, sym(3), 'sym'), 'sym')) 2204s ***** xtest 2204s % Issue #13 2204s assert( isa( ones(3, 3, 'sym'), 'sym')) 2204s !!!!! known failure 2204s invalid data type specified 2204s 9 tests, 8 passed, 1 known failure, 0 skipped 2204s [inst/@sym/ellipke.m] 2204s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/ellipke.m 2204s ***** error ellipke (sym(1), 2) 2204s ***** test 2204s for i = 2:10 2204s [K E] = ellipke (sym (1)/i); 2204s [k e] = ellipke (1/i); 2204s assert (double ([K E]), [k e], 2*eps) 2204s end 2208s 2 tests, 2 passed, 0 known failure, 0 skipped 2208s [inst/@sym/ezcontour.m] 2208s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/ezcontour.m 2208s ***** error 2208s syms x y z 2208s ezcontour (x*y*z) 2208s 1 test, 1 passed, 0 known failure, 0 skipped 2208s [inst/@sym/cond.m] 2208s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/cond.m 2208s ***** test 2208s A = [1 2; 3 4]; 2208s B = sym(A); 2208s k1 = cond(A); 2208s k2 = cond(B); 2208s k3 = double(k2); 2208s assert (k1 - k3 <= 100*eps) 2208s ***** test 2208s % matrix with symbols 2208s syms x positive 2208s A = [x 0; sym(0) 2*x]; 2208s k1 = cond(A); 2208s assert (isequal (k1, sym(2))) 2208s 2 tests, 2 passed, 0 known failure, 0 skipped 2208s [inst/@sym/zeta.m] 2208s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/zeta.m 2208s ***** error zeta (sym(1), 2, 3) 2208s ***** assert (isequaln (zeta (sym(nan)), sym(nan))) 2208s ***** test 2208s f1 = zeta (sym(2)); 2208s f2 = pi^2/6; 2208s assert (double (f1), f2, -1e-15) 2208s ***** test 2208s A = sym([0 2; 4 6]); 2208s f1 = zeta (A); 2208s f2 = [-1/2 pi^2/6; pi^4/90 pi^6/945]; 2208s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2208s ***** test 2208s % round trip 2208s y = sym('y'); 2208s f = zeta (y); 2208s h = function_handle (f); 2208s A = zeta (2); 2208s B = h (2); 2208s assert (A, B, -eps) 2209s ***** test 2209s syms x 2209s assert (isequal (zeta (0, x), zeta(x))) 2209s ***** test 2209s % ensure its the nth deriv wrt x, not the n deriv 2209s syms x n 2209s F = zeta (n, x); 2209s F = subs(F, n, 3); 2209s assert (isequal (F, diff (zeta (x), x, x, x))) 2209s 7 tests, 7 passed, 0 known failure, 0 skipped 2209s [inst/@sym/round.m] 2209s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/round.m 2209s ***** test 2209s d = 3/2; 2209s x = sym('3/2'); 2209s f1 = round(x); 2209s f2 = round(d); 2209s assert (isequal (f1, f2)) 2209s ***** xtest 2209s % ideally rounding direction would match Octave 2209s d = 5/2; 2209s x = sym('5/2'); 2209s f1 = round(x); 2209s f2 = round(d); 2209s assert (isequal (f1, f2)) 2209s !!!!! known failure 2209s assert (isequal (f1, f2)) failed 2209s ***** test 2209s D = [1.1 4.6; -3.4 -8.9]; 2209s A = [sym(11)/10 sym(46)/10; sym(-34)/10 sym(-89)/10]; 2209s f1 = round(A); 2209s f2 = round(D); 2209s assert( isequal (f1, f2)) 2209s ***** test 2209s d = sym(-11)/10; 2209s c = -1; 2209s assert (isequal (round (d), c)) 2209s ***** test 2209s d = sym(-19)/10; 2209s c = -2; 2209s assert (isequal (round (d), c)) 2209s ***** test 2209s d = 7j/2; 2209s x = sym(7j)/2; 2209s f1 = round (x); 2209s f2 = round (d); 2209s assert (isequal (f1, f2)) 2209s ***** test 2209s d = 5/3 - 4j/7; 2209s x = sym(5)/3 - sym(4j)/7; 2209s f1 = round (x); 2209s f2 = round (d); 2209s assert (isequal (f1, f2)) 2210s 7 tests, 6 passed, 1 known failure, 0 skipped 2210s [inst/@sym/xor.m] 2210s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/xor.m 2210s ***** shared t, f 2210s t = sym(true); 2210s f = sym(false); 2210s ***** test 2210s % simple 2210s assert (isequal (xor(t, f), t)) 2210s assert (isequal (xor(t, t), f)) 2210s ***** test 2210s % array 2210s w = [t t f f]; 2210s z = [t f t f]; 2210s assert (isequal (xor(w, z), [f t t f])) 2210s ***** xtest 2210s % output is sym even for scalar t/f 2210s % ₣IXME: should match other bool fcns 2210s assert (isa (xor(t, f), 'sym')) 2210s ***** test 2210s % eqns 2210s syms x 2210s e = xor(x == 4, x == 5); 2210s assert (isequal (subs(e, x, [3 4 5 6]), [f t t f])) 2210s ***** test 2210s % eqns, exclusive 2210s syms x 2210s e = xor(x == 3, x^2 == 9); 2210s assert (isequal (subs(e, x, [-3 0 3]), [t f f])) 2210s ***** error xor (sym('x'), 1, 2) 2210s 6 tests, 6 passed, 0 known failure, 0 skipped 2210s [inst/@sym/bessely.m] 2210s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/bessely.m 2210s ***** test 2210s X = [1 2 3; 4 5 6]; 2210s ns = [sym(0) 1 -2; sym(1)/2 -sym(3)/2 pi]; 2210s n = double(ns); 2210s A = double(bessely(ns, X)); 2210s B = bessely(n, X); 2210s assert (all (all (abs (A - B) < 50*eps*abs(A)))) 2211s ***** test 2211s % roundtrip 2211s syms x 2211s A = bessely(2, 10); 2211s q = bessely(2, x); 2211s h = function_handle(q); 2211s B = h(10); 2211s assert (abs (A - B) <= eps*abs(A)) 2211s ***** error bessely(sym('x')) 2213s 3 tests, 3 passed, 0 known failure, 0 skipped 2213s [inst/@sym/rank.m] 2214s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/rank.m 2214s ***** test 2214s A = sym([1 2; 3 4]); 2214s assert (rank(A) == 2); 2215s ***** test 2215s A = sym([1 2 3; 3 4 5]); 2215s assert (rank(A) == 2); 2215s ***** test 2215s A = sym([1 2; 1 2]); 2215s assert (rank(A) == 1); 2215s ***** test 2215s A = sym([1 2; 3 4]); 2215s assert (rank(A) == 2); 2215s ***** assert (rank(sym(1)) == 1); 2215s ***** assert (rank(sym(0)) == 0); 2215s ***** assert (rank(sym('x', 'positive')) == 1); 2215s 7 tests, 7 passed, 0 known failure, 0 skipped 2215s [inst/@sym/equationsToMatrix.m] 2215s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/equationsToMatrix.m 2215s ***** test 2215s syms x y z 2215s [A, B] = equationsToMatrix ([x + y - z == 1, 3*x - 2*y + z == 3, 4*x - 2*y + z + 9 == 0], [x, y, z]); 2215s a = sym ([1 1 -1; 3 -2 1; 4 -2 1]); 2215s b = sym ([1; 3; -9]); 2215s assert (isequal (A, a)) 2215s assert (isequal (B, b)) 2216s ***** test 2216s syms x y z 2216s 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]); 2216s a = sym ([3 -3 -5; 4 -7 -3; 4 -9 -3]); 2216s assert (isequal (A, a)) 2217s ***** test 2217s syms x y 2217s [A, B] = equationsToMatrix ([3*x + 9*y - 5 == 0, -8*x - 3*y == -2]); 2217s a = sym ([3 9; -8 -3]); 2217s b = sym ([5; -2]); 2217s assert (isequal (A, a)) 2217s assert (isequal (B, b)) 2217s ***** test 2217s % override symvar order 2217s syms x y 2217s [A, B] = equationsToMatrix ([3*x + 9*y - 5 == 0, -8*x - 3*y == -2], [y x]); 2217s a = sym ([9 3; -3 -8]); 2217s b = sym ([5; -2]); 2217s assert (isequal (A, a)) 2217s assert (isequal (B, b)) 2217s ***** test 2217s syms x y z 2217s [A, B] = equationsToMatrix ([x - 9*y + z == -5, -9*y*z == -5], [y, x]); 2217s a = sym ([[-9 1]; -9*z 0]); 2217s b = sym ([-5 - z; -5]); 2217s assert (isequal (A, a)) 2217s assert (isequal (B, b)) 2218s ***** test 2218s syms x y 2218s [A, B] = equationsToMatrix (-6*x + 4*y == 5, 4*x - 4*y - 5, x, y); 2218s a = sym ([-6 4; 4 -4]); 2218s b = sym ([5; 5]); 2218s assert (isequal (A, a)) 2218s assert (isequal (B, b)) 2218s ***** test 2218s % vertical list of equations 2218s syms x y 2218s [A, B] = equationsToMatrix ([-6*x + 4*y == 5; 4*x - 4*y - 5], [x y]); 2218s a = sym ([-6 4; 4 -4]); 2218s b = sym ([5; 5]); 2218s assert (isequal (A, a)) 2218s assert (isequal (B, b)) 2218s ***** test 2218s syms x y 2218s [A, B] = equationsToMatrix (5*x == 1, y, x - 6*y - 7, y); 2218s a = sym ([0; 1; -6]); 2218s b = sym ([1 - 5*x; 0; -x + 7]); 2218s assert (isequal (A, a)) 2218s assert (isequal (B, b)) 2219s ***** error 2219s syms x y 2219s [A, B] = equationsToMatrix (x^2 + y^2 == 1, x - y + 1, x, y); 2219s ***** test 2219s % single equation 2219s syms x 2219s [A, B] = equationsToMatrix (3*x == 2, x); 2219s a = sym (3); 2219s b = sym (2); 2219s assert (isequal (A, a)) 2219s assert (isequal (B, b)) 2219s ***** test 2219s % single equation w/ symvar 2219s syms x 2219s [A, B] = equationsToMatrix (3*x == 2); 2219s a = sym (3); 2219s b = sym (2); 2219s assert (isequal (A, a)) 2219s assert (isequal (B, b)) 2219s ***** error 2219s syms x 2219s equationsToMatrix (3*x == 2, [x x]) 2219s 12 tests, 12 passed, 0 known failure, 0 skipped 2219s [inst/@sym/end.m] 2219s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/end.m 2219s ***** test 2219s % scalar 2219s syms x 2219s y = x(1:end); 2219s assert (isequal (x, y)) 2219s ***** test 2219s % vector 2219s syms x 2219s A = [1 2 x 4]; 2219s y = A(end-1:end); 2219s assert (isequal (y, [x 4])) 2219s ***** test 2219s % subset of matrix 2219s syms x 2219s A = [1 2 x; x 3 9; 4 x*x 6]; 2219s y = A(end,1:end-1); 2219s assert (isequal (y, [4 x*x])) 2220s ***** test 2220s % linear index of matrix 2220s syms x 2220s A = [1 2 x; x 3 9]; 2220s y = A(end); 2220s assert (isequal (y, sym(9))) 2220s 4 tests, 4 passed, 0 known failure, 0 skipped 2220s [inst/@sym/sign.m] 2220s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/sign.m 2220s ***** error sign (sym(1), 2) 2220s ***** assert (isequaln (sign (sym(nan)), sym(nan))) 2220s ***** shared x, d 2220s d = 1; 2220s x = sym('1'); 2220s ***** test 2220s f1 = sign(x); 2220s f2 = sign(d); 2220s assert( abs(double(f1) - f2) < 1e-15 ) 2220s ***** test 2220s D = [d d; d d]; 2220s A = [x x; x x]; 2220s f1 = sign(A); 2220s f2 = sign(D); 2220s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2220s ***** test 2220s % round trip 2220s y = sym('y'); 2220s A = sign (d); 2220s f = sign (y); 2220s h = function_handle (f); 2220s B = h (d); 2220s assert (A, B, -eps) 2220s 5 tests, 5 passed, 0 known failure, 0 skipped 2220s [inst/@sym/gamma.m] 2220s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/gamma.m 2220s ***** error gamma (sym(1), 2) 2220s ***** assert (isequaln (gamma (sym(nan)), sym(nan))) 2220s ***** shared x, d 2220s d = 1; 2220s x = sym('1'); 2220s ***** test 2220s f1 = gamma(x); 2220s f2 = gamma(d); 2220s assert( abs(double(f1) - f2) < 1e-15 ) 2220s ***** test 2220s D = [d d; d d]; 2220s A = [x x; x x]; 2220s f1 = gamma(A); 2220s f2 = gamma(D); 2220s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2220s ***** test 2220s % round trip 2220s y = sym('y'); 2220s A = gamma (d); 2220s f = gamma (y); 2220s h = function_handle (f); 2220s B = h (d); 2220s assert (A, B, -eps) 2220s 5 tests, 5 passed, 0 known failure, 0 skipped 2220s [inst/@sym/ellipticCK.m] 2220s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/ellipticCK.m 2220s ***** error ellipticCK (sym (1), 2) 2220s ***** assert (double (ellipticCK (sym (1)/2)), 1.8541, 10e-5) 2221s ***** assert (double (ellipticCK (sym (101)/10)), 0.812691836806976, -3*eps) 2221s ***** assert (isequal (ellipticCK (sym (1)), sym(pi)/2)) 2221s 4 tests, 4 passed, 0 known failure, 0 skipped 2221s [inst/@sym/dilog.m] 2221s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/dilog.m 2221s ***** assert (isequal (dilog (sym(1)), sym(0))) 2221s ***** assert (isequal (dilog (sym(0)), sym(pi)^2/6)) 2221s ***** assert (isequal (dilog (sym(2)), -sym(pi)^2/12)) 2221s ***** assert (double(dilog(sym(-1))), pi^2/4 - pi*1i*log(2), eps) 2221s ***** test 2221s % round-trip 2221s syms x 2221s f = dilog (x); 2221s h = function_handle (f); 2221s A = h (1.1); 2221s B = dilog (1.1); 2221s assert (A, B, -eps) 2222s 5 tests, 5 passed, 0 known failure, 0 skipped 2222s [inst/@sym/diag.m] 2222s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/diag.m 2222s ***** test 2222s % scalar 2222s syms x 2222s assert (isequal (diag(x), x)) 2222s ***** test 2222s % row,col vec input 2222s syms x 2222s r = [1 x 2]; 2222s c = [sym(1); x]; 2222s assert (isequal (diag(diag(c)), c)) 2222s assert (isequal (diag(c), [sym(1) 0; 0 x])) 2222s assert (isequal (diag(diag(r)), r.')) 2222s assert (isequal (diag(r), [sym(1) 0 0; 0 x 0; sym(0) 0 2])) 2222s ***** test 2222s % create matrix, kth diag 2222s syms x 2222s r = [1 x]; 2222s z = sym(0); 2222s assert (isequal (diag (x, 0), x)) 2222s assert (isequal (diag (x, 1), [z x; z z])) 2222s assert (isequal (diag (x, -1), [z z; x z])) 2222s assert (isequal (diag (x, 2), [z z x; z z z; z z z])) 2222s assert (isequal (diag (r, 1), [z 1 z; z z x; z z z])) 2222s ***** test 2222s % extract kth diag 2222s A = sym([1 2 3; 4 5 6]); 2222s assert (isequal (diag(A), sym([1; 5]))) 2222s assert (isequal (diag(A, 0), sym([1; 5]))) 2222s assert (isequal (diag(A, 1), sym([2; 6]))) 2222s assert (isequal (diag(A, 2), sym(3))) 2222s assert (isequal (diag(A, -1), sym(4))) 2222s assert (isempty (diag(A, -2))) 2222s assert (isempty (diag(A, 3))) 2223s 4 tests, 4 passed, 0 known failure, 0 skipped 2223s [inst/@sym/prevprime.m] 2223s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/prevprime.m 2223s ***** assert (isequal (prevprime(sym(3)), 2)); 2223s ***** assert (isequal (prevprime(sym(20)), 19)); 2223s ***** assert (isequal (prevprime(sym([3 5 10])), [2 3 7])); 2223s ***** error prevprime(sym(2)) 2223s ***** error prevprime(sym(-2)) 2223s ***** test 2223s % result is a sym 2223s p = prevprime(sym(3)); 2223s assert (isa (p, 'sym')) 2223s 6 tests, 6 passed, 0 known failure, 0 skipped 2223s [inst/@sym/sinc.m] 2223s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/sinc.m 2223s ***** error sinc (sym(1), 2) 2223s ***** assert (isequaln (sinc (sym(nan)), sym(nan))) 2223s ***** assert (isequal (sinc (sym(0)), sym(1))) 2223s ***** assert (isequal (sinc (sym(1)), sym(0))) 2223s ***** assert (isequal (sinc (-sym(1)), sym(0))) 2223s ***** assert (double (sinc (sym(pi))), sinc (pi), -10*eps) 2223s ***** test 2223s A = [-sym(1)/2 sym(1)/2 pi; -sym(7)/2 sym(71)/2 sym(101)/3]; 2223s D = double (A); 2223s assert (sinc (D), double (sinc (A)), -200*eps) 2224s ***** test 2224s A = [sym(51)/2 sym(1001)/3 sym(10001)/3 sym(100001)/3]; 2224s D = double (A); 2224s assert (sinc (D), double (sinc (A)), 1e-10) 2224s ***** test 2224s % round trip 2224s syms x 2224s A = sinc (1); 2224s f = sinc (x); 2224s h = function_handle (f); 2224s B = h (1); 2224s assert (A, B, -eps) 2224s ***** test 2224s % round trip 2224s syms x 2224s f = sinc (x); 2224s h = function_handle (f); 2224s A = sinc (1.5); 2224s B = h (1.5); 2224s assert (A, B, -eps) 2224s ***** test 2224s syms x 2224s h = function_handle (sinc (x)); 2224s A = double (sinc (sym (12)/10)); 2224s B = h (1.2); 2224s C = sinc (1.2); 2224s assert (A, B, -eps) 2224s assert (A, C, -eps) 2225s 11 tests, 11 passed, 0 known failure, 0 skipped 2225s [inst/@sym/logint.m] 2225s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/logint.m 2225s ***** error logint (sym(1), 2) 2225s ***** xtest 2225s assert (isequaln (logint (sym(nan)), sym(nan))) 2225s !!!!! known failure 2225s assert (isequaln (logint (sym (nan)), sym (nan))) failed 2225s ***** shared x, d 2225s d = 2; 2225s x = sym('2'); 2225s ***** test 2225s f1 = logint(x); 2225s f2 = 1.045163780117492784845; 2225s assert( abs(double(f1) - f2) < 1e-15 ) 2225s ***** test 2225s D = [d d; d d]; 2225s A = [x x; x x]; 2225s f1 = logint(A); 2225s f2 = 1.045163780117492784845; 2225s f2 = [f2 f2; f2 f2]; 2225s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2225s ***** test 2225s % round trip 2225s y = sym('y'); 2225s A = logint (d); 2225s f = logint (y); 2225s h = function_handle (f); 2225s B = h (d); 2225s assert (A, B, -eps) 2225s 5 tests, 4 passed, 1 known failure, 0 skipped 2225s [inst/@sym/colon.m] 2225s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/colon.m 2225s ***** test 2225s a = sym(1):5; 2225s b = sym(1:5); 2225s assert(isequal(a,b)); 2225s a = 1:sym(5); 2225s b = sym(1:5); 2225s assert(isequal(a,b)); 2225s ***** test 2225s a = 2:sym(2):8; 2225s b = sym(2:2:8); 2225s assert(isequal(a,b)); 2225s ***** test 2225s a = sym(10):-2:-4; 2225s b = sym(10:-2:-4); 2225s assert(isequal(a,b)); 2225s ***** test 2225s % symbolic intervals 2225s p = sym(pi); 2225s L = 0:p/4:p; 2225s assert(isa(L,'sym')); 2225s assert(isequal(L, [0 p/4 p/2 3*p/4 p])); 2226s ***** test 2226s % mixed symbolic and double intervals 2226s p = sym(pi); 2226s s = warning ('off', 'OctSymPy:sym:rationalapprox'); 2226s L = 0.1:(sym(pi)/3):2.3; 2226s warning(s) 2226s assert(isa(L,'sym')); 2226s t = sym(1)/10; 2226s assert(isequal(L, [t p/3+t 2*p/3+t])); 2226s ***** error syms x; a = 0:x; 2226s ***** error syms x; a = 1:x; 2226s 7 tests, 7 passed, 0 known failure, 0 skipped 2226s [inst/@sym/mtimes.m] 2226s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/mtimes.m 2226s ***** test 2226s % scalar 2226s syms x 2226s assert (isa (x*2, 'sym')) 2226s assert (isequal (2*sym(3), sym(6))) 2226s assert (isequal (sym(2)*3, sym(6))) 2226s ***** test 2226s % matrix-scalar 2226s D = [0 1; 2 3]; 2226s A = sym(D); 2226s assert (isa (2*A, 'sym')) 2226s assert (isequal ( 2*A , 2*D )) 2226s assert (isequal ( A*2 , 2*D )) 2226s ***** test 2226s % matrix-matrix 2226s D = [0 1; 2 3]; 2226s A = sym(D); 2226s assert (isa (A*A, 'sym')) 2226s assert (isequal ( A*A , D*D )) 2226s 3 tests, 3 passed, 0 known failure, 0 skipped 2226s [inst/@sym/le.m] 2226s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/le.m 2226s ***** test 2226s % simple 2226s x = sym(1); y = sym(1); e = x <= y; 2226s assert (logical (e)) 2226s x = sym(1); y = sym(2); e = x <= y; 2226s assert (logical (e)) 2226s ***** test 2226s % array -- array 2226s syms x 2226s a = sym([1 3 3 2*x]); 2226s b = sym([2 x 3 10]); 2226s e = a <= b; 2226s assert (isa (e, 'sym')) 2226s assert (logical (e(1))) 2226s assert (isa (e(2), 'sym')) 2226s assert (isequal (e(2), 3 <= x)) 2226s assert (logical (e(3))) 2226s assert (isa (e(4), 'sym')) 2226s assert (isequal (e(4), 2*x <= 10)) 2227s 2 tests, 2 passed, 0 known failure, 0 skipped 2227s [inst/@sym/laplacian.m] 2227s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/laplacian.m 2227s ***** shared x,y,z 2227s syms x y z 2227s ***** test 2227s % 1D 2227s f = x^2; 2227s g = diff(f,x,x); 2227s assert (isequal (laplacian(f), g)) 2227s assert (isequal (laplacian(f,{x}), g)) 2227s assert (isequal (laplacian(f,[x]), g)) 2227s assert (isequal (laplacian(f,x), g)) 2227s ***** test 2227s % const 2227s f = sym(1); 2227s g = sym(0); 2227s assert (isequal (laplacian(f), g)) 2227s assert (isequal (laplacian(f,x), g)) 2227s f = sym('c'); 2227s assert (isequal (laplacian(f,x), g)) 2227s ***** test 2227s % double const 2227s f = 1; 2227s g = sym(0); 2227s assert (isequal (laplacian(f,x), g)) 2227s ***** test 2227s % 1D fcn in 2d/3d 2227s f = sin(2*y); 2227s g = -4*f; 2227s assert (isequal (laplacian(f), g)) 2227s assert (isequal (laplacian(f, {x,y}), g)) 2227s assert (isequal (laplacian(f, {x,y,z}), g)) 2227s ***** test 2227s % 2d fcn in 2d/3d 2227s f = sin(exp(x)*y); 2227s g = diff(f,x,x) + diff(f,y,y); 2227s assert (isequal (laplacian(f), g)) 2227s assert (isequal (laplacian(f, {x,y}), g)) 2228s ***** test 2228s % 2d fcn in 2d/3d 2228s f = sin(exp(x)*y+sinh(z)); 2228s gr2 = gradient(f, {x,y}); 2228s divgr2 = divergence(gr2, {x,y}); 2228s l2 = laplacian(f,{x,y}); 2228s gr3 = gradient(f, {x,y,z}); 2228s divgr3 = divergence(gr3, {x,y,z}); 2228s l3 = laplacian(f,{x,y,z}); 2228s assert (isAlways (l2 == divgr2)) 2228s assert (isAlways (l3 == divgr3)) 2232s ***** error laplacian(sym('x'), sym('x'), 42) 2232s ***** error laplacian([sym('x'), sym('x')]) 2232s 8 tests, 8 passed, 0 known failure, 0 skipped 2232s [inst/@sym/harmonic.m] 2232s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/harmonic.m 2232s ***** error harmonic (sym(1), 2) 2232s ***** xtest 2232s assert (isequaln (harmonic (sym(nan)), sym(nan))) 2232s !!!!! known failure 2232s assert (isequaln (harmonic (sym (nan)), sym (nan))) failed 2232s ***** assert (isequal (harmonic (sym(0)), sym(0))) 2232s ***** assert (isinf (harmonic (sym(inf)))) 2232s ***** assert (isequal (harmonic (sym([9 10])), [sym(7129)/2520 sym(7381)/2520])) 2233s ***** test 2233s % round trip 2233s y = sym('y'); 2233s A = harmonic (7); 2233s f = harmonic (y); 2233s h = function_handle (f); 2233s B = h (7); 2233s assert (A, B, -eps) 2233s 6 tests, 5 passed, 1 known failure, 0 skipped 2233s [inst/@sym/ellipticK.m] 2233s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/ellipticK.m 2233s ***** error ellipticK (sym(1), 2) 2233s ***** assert (isequal (ellipticK (sym (0)), sym (pi)/2)) 2233s ***** assert (isequal (ellipticK (sym (-inf)), sym (0))) 2233s ***** assert (double (ellipticK (sym (1)/2)), 1.854074677, 10e-10) 2233s ***** assert (double (ellipticK (sym (pi)/4)), 2.225253684, 10e-10) 2233s ***** assert (double (ellipticK (sym (-55)/10)), 0.9324665884, 10e-11) 2233s ***** test 2233s % compare to double ellipke 2233s m = 1/5; 2233s ms = sym(1)/5; 2233s [K, E] = ellipke (m); 2233s assert (double (ellipticK (ms)), K, -1e-15) 2233s assert (double (ellipticE (ms)), E, -1e-15) 2233s ***** test 2233s % compare to double ellipke 2233s if (exist ('OCTAVE_VERSION', 'builtin')) 2233s m = -10.3; 2233s ms = -sym(103)/10; 2233s [K, E] = ellipke (m); 2233s assert (double (ellipticK (ms)), K, -1e-15) 2233s assert (double (ellipticE (ms)), E, -1e-15) 2233s end 2233s ***** test 2233s % compare to Maple 2233s us = vpa (ellipticK (sym (7)), 40); 2233s % > evalf(EllipticK(sqrt(7)), 40); 2233s maple = vpa ('0.6168027921799632674669917683443602673441', 40) - ... 2233s vpa ('0.9114898734184488922164103102629560336918j', 40); 2233s assert (abs (double (maple - us)), 0, 1e-39) 2233s 9 tests, 9 passed, 0 known failure, 0 skipped 2233s [inst/@sym/isrow.m] 2233s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/isrow.m 2233s ***** assert (isrow (sym ([1]))) 2233s ***** assert (isrow (sym ([1 2 3]))) 2233s ***** assert (~isrow (sym ([]))) 2233s ***** assert (~isrow (sym ([1 2 3]'))) 2233s ***** assert (~isrow (sym ([1 2; 3 4]))) 2233s 5 tests, 5 passed, 0 known failure, 0 skipped 2233s [inst/@sym/gradient.m] 2233s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/gradient.m 2233s ***** shared x,y,z 2233s syms x y z 2234s ***** test 2234s % 1D 2234s f = x^2; 2234s assert (isequal (gradient(f), diff(f,x))) 2234s assert (isequal (gradient(f,{x}), diff(f,x))) 2234s assert (isequal (gradient(f,[x]), diff(f,x))) 2234s assert (isequal (gradient(f,x), diff(f,x))) 2234s ***** test 2234s % const 2234s f = sym(1); 2234s g = sym(0); 2234s assert (isequal (gradient(f), g)) 2234s assert (isequal (gradient(f,x), g)) 2234s ***** test 2234s % double const 2234s f = 1; 2234s g = sym(0); 2234s assert (isequal (gradient(f,x), g)) 2234s ***** test 2234s % 1D fcn in 2d/3d 2234s f = sin(y); 2234s assert (isequal (gradient(f), diff(f,y))) 2234s assert (isequal (gradient(f, {x,y}), [sym(0); diff(f,y)])) 2234s assert (isequal (gradient(f, [x y]), [sym(0); diff(f,y)])) 2234s assert (isequal (size (gradient(f, {x,y})), [2 1])) 2234s assert (isequal (gradient(f, {x,y,z}), [0; diff(f,y); 0])) 2234s assert (isequal (gradient(f, [x y z]), [0; diff(f,y); 0])) 2234s assert (isequal (size (gradient(f, {x,y,z})), [3 1])) 2234s ***** test 2234s % grad is column vector 2234s f = sin(y); 2234s assert (isequal (size (gradient(f, {x,y})), [2 1])) 2234s assert (isequal (size (gradient(f, {x,y,z})), [3 1])) 2234s assert (isequal (size (gradient(f, [x y])), [2 1])) 2234s assert (isequal (size (gradient(f, [x;y])), [2 1])) 2234s ***** test 2234s % 2d fcn in 2d/3d 2234s f = sin(exp(x)*y); 2234s g2 = [diff(f,x); diff(f,y)]; 2234s g3 = [diff(f,x); diff(f,y); diff(f,z)]; 2234s assert (isequal (gradient(f), g2)) 2234s assert (isequal (gradient(f, {x,y}), g2)) 2234s assert (isequal (gradient(f, {x,y,z}), g3)) 2234s ***** test 2234s % 2d fcn in 2d/3d 2234s f = sin(exp(x)*y+sinh(z)); 2234s g2 = [diff(f,x); diff(f,y)]; 2234s g3 = [diff(f,x); diff(f,y); diff(f,z)]; 2234s assert (isequal (gradient(f), g3)) 2234s assert (isequal (gradient(f, {x,y}), g2)) 2234s assert (isequal (gradient(f, {x,y,z}), g3)) 2235s ***** error gradient(sym('x'), 42, 42) 2235s ***** error gradient([sym('x') sym('x')]) 2235s 9 tests, 9 passed, 0 known failure, 0 skipped 2235s [inst/@sym/eval.m] 2235s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/eval.m 2235s ***** error eval (sym(1), 2) 2235s ***** assert (isnumeric (eval (sym(3)))) 2235s ***** assert (isnumeric (eval (sin (sym(3))))) 2235s ***** test 2235s syms x y 2235s f = 2*x*y; 2235s x = 3; 2235s y = 4; 2235s g = eval (f); 2235s assert (isequal (g, 24)) 2235s ***** test 2235s syms x y 2235s f = 2*x*y; 2235s clear y 2235s x = 3; 2235s g = eval (f); 2235s assert (isequal (g, 6*sym('y'))) 2237s ***** test 2237s % do not convert inputs to sym, for SMT compat 2237s nearpi = pi + 1e-14; % sym could make this pi 2237s x = sym('x'); 2237s f = 2*x; 2237s x = nearpi; 2237s d = eval (f); 2237s assert (abs (d - 2*pi) > 1e-15) 2237s 6 tests, 6 passed, 0 known failure, 0 skipped 2237s [inst/@sym/fresnels.m] 2237s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/fresnels.m 2237s ***** error fresnels (sym(1), 2) 2237s ***** test 2237s a = fresnels(sym(0)); 2237s assert (isequal (a, sym(0))) 2237s ***** test 2237s b = fresnels(sym('oo')); 2237s assert (isequal (b, sym(1)/2)) 2237s ***** test 2237s % values in a matrix 2237s syms x 2237s a = fresnels([sym(0) sym('oo') x 1]); 2237s b = [sym(0) sym(1)/2 fresnels(x) fresnels(sym(1))]; 2237s assert (isequal (a, b)) 2237s ***** test 2237s % round trip 2237s syms x 2237s f = fresnels (x); 2237s h = function_handle (f); 2237s A = h (1.1); 2237s B = fresnels (1.1); 2237s assert (A, B) 2237s 5 tests, 5 passed, 0 known failure, 0 skipped 2237s [inst/@sym/ctranspose.m] 2237s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/ctranspose.m 2237s ***** test 2237s x = sym(1); 2237s assert (isequal (x', x)) 2237s ***** assert (isempty (sym([])')) 2237s ***** test 2237s % conjugate does nothing to real x 2237s syms x real 2237s assert (isequal (x', x)) 2237s ***** test 2237s % complex 2237s syms x 2237s assert (isequal (x', conj(x))) 2237s ***** test 2237s % complex array 2237s syms x 2237s A = [x 2*x]; 2237s B = [conj(x); 2*conj(x)]; 2237s assert(isequal(A', B)) 2237s ***** test 2237s A = [1 2; 3 4]; 2237s assert(isequal( sym(A)' , sym(A') )) 2237s ***** test 2237s A = [1 2] + 1i; 2237s assert(isequal( sym(A)' , sym(A') )) 2238s ***** test 2238s % true/false 2238s t = sym(true); 2238s f = sym(false); 2238s assert (isequal ( t', t)) 2238s assert (isequal ( f', f)) 2238s ***** test 2238s % more true/false 2238s syms x 2238s A = [x true 1i]; 2238s B = [conj(x); true; -sym(1i)]; 2238s assert (isequal ( A', B)) 2238s 9 tests, 9 passed, 0 known failure, 0 skipped 2238s [inst/@sym/length.m] 2238s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/length.m 2238s ***** test 2238s a = sym([1 2 3]); 2238s assert(length(a) == 3); 2238s ***** test 2238s % 2D array 2238s a = sym([1 2 3; 4 5 6]); 2238s assert(length(a) == 3); 2238s ***** test 2238s % empty 2238s a = sym([]); 2238s assert(length(a) == 0); 2238s 3 tests, 3 passed, 0 known failure, 0 skipped 2238s [inst/@sym/ellipticCPi.m] 2238s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/ellipticCPi.m 2238s ***** error ellipticCPi (sym (1)) 2239s ***** error ellipticCPi (sym (1), 2, 3) 2240s ***** assert (double (ellipticCPi (0, sym (1)/2)), 1.854074677, 10e-10) 2240s ***** assert (double (ellipticCPi (sym (6)/10, sym(71)/10)), 1.29469534336658, -20*eps) 2241s 4 tests, 4 passed, 0 known failure, 0 skipped 2241s [inst/@sym/numden.m] 2241s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/numden.m 2241s ***** error numden (sym(1), 2) 2241s ***** test 2241s syms x 2241s [n, d] = numden (1/x); 2241s assert (isequal (n, sym(1)) && isequal (d, x)) 2241s ***** test 2241s syms x y 2241s n1 = [sym(1); x]; 2241s d1 = [x; y]; 2241s [n, d] = numden (n1 ./ d1); 2241s assert (isequal (n, n1) && isequal (d, d1)) 2241s ***** test 2241s [n, d] = numden (sym(2)); 2241s assert (isequal (n, 2)); 2241s assert (isequal (d, 1)); 2241s ***** test 2241s syms x y 2241s [n, d] = numden ((x + pi)/(y + 6)); 2241s assert (isequal (n, x + pi)); 2241s assert (isequal (d, y + 6)); 2241s ***** test 2241s syms x y 2241s [n, d] = numden ((x^2 + y^2)/(x*y)); 2241s assert (isequal (n, x^2 + y^2)); 2241s assert (isequal (d, x*y)); 2241s 6 tests, 6 passed, 0 known failure, 0 skipped 2241s [inst/@sym/rdivide.m] 2241s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/rdivide.m 2241s ***** test 2241s % scalar 2241s syms x 2241s assert (isa (x ./ 1, 'sym')) 2241s assert (isa (x ./ x, 'sym')) 2241s assert (isequal (x ./ 1, x)) 2241s assert (isequal (x ./ x, sym(1))) 2242s ***** test 2242s % matrix-scalar 2242s D = 2*[0 1; 2 3]; 2242s A = sym(D); 2242s assert (isequal ( A./2 , D/2 )) 2242s assert (isequal ( A./sym(2) , D/2 )) 2242s assert (isequal ( D./sym(2) , D/2 )) 2242s ***** test 2242s % matrix ./ matrix 2242s D = [1 2; 3 4]; 2242s A = sym(D); 2242s assert (isequal ( A./A , D./D )) 2242s assert (isequal ( A./D , D./D )) 2242s assert (isequal ( D./A , D./D )) 2242s ***** test 2242s % matrix ./ matrix with symbols 2242s syms x y 2242s A = [x y; x^2 2*y]; 2242s B = [y x; x y]; 2242s assert (isequal ( A./A , sym(ones(2,2)) )) 2242s assert (isequal ( A./B , [x/y y/x; x 2] )) 2243s ***** test 2243s % scalar ./ matrix 2243s D = [1 2; 3 4]; 2243s A = sym(D); 2243s assert (isequal ( 12./A , 12./D )) 2243s 5 tests, 5 passed, 0 known failure, 0 skipped 2243s [inst/@sym/chol.m] 2243s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/chol.m 2243s ***** error chol (sym ([1 2; 3 4])); 2243s ***** error chol (sym ([1 2; 3 4; 5 6])); 2243s ***** test 2243s A = chol(hilb(sym(2))); 2243s B = [[1 0]; sym(1)/2 sqrt(sym(3))/6]; 2243s assert( isequal( A, B )) 2243s 3 tests, 3 passed, 0 known failure, 0 skipped 2243s [inst/@sym/nextprime.m] 2243s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/nextprime.m 2243s ***** assert (isequal (nextprime(sym(2)), 3)); 2243s ***** assert (isequal (nextprime(sym(18)), 19)); 2243s ***** assert (isequal (nextprime(sym([1 2 3])), [2 3 5])); 2243s ***** assert (isequal (nextprime(sym([-1 0])), [2 2])); 2243s ***** test 2243s % result is a sym 2243s p = nextprime(sym(2)); 2243s assert (isa (p, 'sym')) 2243s 5 tests, 5 passed, 0 known failure, 0 skipped 2243s [inst/@sym/triu.m] 2243s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/triu.m 2243s ***** test 2243s % scalar 2243s syms x 2243s assert (isequal (triu(x), x)) 2243s assert (isequal (triu(x,0), x)) 2243s assert (isequal (triu(x,1), 0)) 2243s assert (isequal (triu(x,-1), 0)) 2243s ***** test 2243s % with symbols 2243s syms x 2243s A = [x 2*x; 3*x 4*x]; 2243s assert (isequal (triu(A), [x 2*x; 0 4*x])) 2244s ***** test 2244s % diagonal shifts 2244s B = round(10*rand(3,4)); 2244s A = sym(B); 2244s assert (isequal (triu(A), triu(B))) 2244s assert (isequal (triu(A,0), triu(B,0))) 2244s assert (isequal (triu(A,1), triu(B,1))) 2244s assert (isequal (triu(A,-1), triu(B,-1))) 2244s ***** test 2244s % double array pass through 2244s B = round(10*rand(3,4)); 2244s assert (isequal (triu(B,sym(1)), triu(B,1))) 2244s assert (isa (triu(B,sym(1)), 'double')) 2244s ***** test 2244s % immutable test 2244s A = sym('ImmutableDenseMatrix([[Integer(1), Integer(2)], [Integer(3), Integer(4)]])'); 2244s assert (isequal (triu (A), sym ([1 2; 0 4]))) 2244s assert (isequal (tril (A), sym ([1 0; 3 4]))) 2244s :18: SyntaxWarning: invalid escape sequence '\(' 2245s 5 tests, 5 passed, 0 known failure, 0 skipped 2245s [inst/@sym/mod.m] 2245s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/mod.m 2245s ***** error mod (sym(1), 2, 3 ,4) 2245s ***** assert (isequal (mod (sym(5), 4), sym(1))) 2245s ***** assert (isequal (mod ([sym(5) 8], 4), [1 0] )) 2245s ***** assert (isequal (mod (sym(5), [2 3]), [1 2] )) 2245s ***** assert (isequal (mod ([sym(5) sym(6)], [2 3]), [1 0] )) 2245s ***** test 2245s syms x 2245s assert (isequal ( mod (5*x, 3), 2*x )) 2245s ***** test 2245s syms x 2245s a = [7*x^2 + 3*x + 3 3*x; 13*x^4 6*x]; 2245s assert (isequal ( mod (a,3), [x^2 0; x^4 0] )) 2246s ***** test 2246s % vector of polys with mix of vars: symvar on each 2246s syms x y 2246s a = [6*x 7*y]; 2246s b = mod(a, 4); 2246s c = [2*x 3*y]; 2246s assert (isequal (b, c)) 2246s ***** test 2246s % coeff has variable 2246s syms x 2246s n = sym('n', 'integer'); 2246s p = (3*n + 2)*x; 2246s q = mod(p, 3); 2246s assert (isequal (q, 2*x)) 2247s ***** test 2247s % coeff has variable 2247s syms x a 2247s p = a*x; 2247s q = mod(p, 3); 2247s q = children(q); 2247s q = q(2); % order might be fragile! 2247s w = subs(q, a, 5); 2247s assert (isequal (w, 2)) 2247s ***** test 2247s % different modulo 2247s syms x y 2247s q = mod([5*x + 10 5*y + 10], [2 3]); 2247s assert (isequal (q, [x 2*y + 1])) 2247s 11 tests, 11 passed, 0 known failure, 0 skipped 2247s [inst/@sym/int.m] 2247s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/int.m 2247s ***** shared x,y,a 2247s syms x y a 2247s ***** assert(logical(int(cos(x)) - sin(x) == 0)) 2247s ***** assert(logical(int(cos(x),x) - sin(x) == 0)) 2247s ***** assert(logical(int(cos(x),x,0,1) - sin(sym(1)) == 0)) 2248s ***** test 2248s %% limits might be syms 2248s assert( isequal (int(cos(x),x,sym(0),sym(1)), sin(sym(1)))) 2248s assert( isequal (int(cos(x),x,0,a), sin(a))) 2248s ***** test 2248s %% other variables present 2248s assert( isequal (int(y*cos(x),x), y*sin(x))) 2248s ***** test 2248s %% limits as array 2248s assert( isequal (int(cos(x),x,[0 1]), sin(sym(1)))) 2248s assert( isequal (int(cos(x),x,sym([0 1])), sin(sym(1)))) 2248s assert( isequal (int(cos(x),x,[0 a]), sin(a))) 2248s ***** test 2248s %% no x given 2248s assert( isequal (int(cos(x),[0 1]), sin(sym(1)))) 2248s assert( isequal (int(cos(x),sym([0 1])), sin(sym(1)))) 2248s assert( isequal (int(cos(x),[0 a]), sin(a))) 2248s assert( isequal (int(cos(x),0,a), sin(a))) 2248s ***** test 2248s %% integration of const 2248s assert( isequal (int(sym(2),y), 2*y)) 2248s assert( isequal (int(sym(2)), 2*x)) 2248s assert( isequal (int(sym(2),[0 a]), 2*a)) 2248s assert( isequal (int(sym(2),0,a), 2*a)) 2249s ***** test 2249s % componentwise int of array 2249s A = [x x*x]; 2249s assert (isequal (int(A, x), [x^2/2 x^3/3])) 2249s ***** test 2249s % NonElementaryIntegral bug 2249s % https://savannah.gnu.org/bugs/index.php?46831 2249s f = int(exp(exp(x))); 2249s f = f + 2; 2249s g = diff(f); 2249s assert (isequal (g, exp(exp(x)))) 2249s 10 tests, 10 passed, 0 known failure, 0 skipped 2249s [inst/@sym/qr.m] 2249s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/qr.m 2249s ***** error qr (sym(1), 2, 3) 2249s ***** error [Q, R, P] = qr (sym(1)) 2249s ***** error qr (sym(1), 1) 2249s ***** test 2249s % scalar 2249s [q, r] = qr(sym(6)); 2249s assert (isequal (q, sym(1))) 2249s assert (isequal (r, sym(6))) 2249s ***** test 2249s syms x positive 2249s [q, r] = qr(x); 2249s assert (isequal (q*r, x)) 2249s assert (isequal (q, sym(1))) 2249s assert (isequal (r, x)) 2250s ***** test 2250s % trickier if x could be zero, fails on 1.8 <= SymPy <= 1.10.1 2250s syms x 2250s [q, r] = qr(x); 2250s if (pycall_sympy__ ('return Version(spver) > Version("1.10.1")')) 2250s assert (isequal (q*r, x)) 2250s end 2250s ***** test 2250s A = [1 2; 3 4]; 2250s B = sym(A); 2250s [Q, R] = qr(B); 2250s assert (isequal (Q*R, B)) 2250s assert (isequal (R(2,1), sym(0))) 2250s assert (isequal (Q(:,1)'*Q(:,2), sym(0))) 2250s %[QA, RA] = qr(A) 2250s %assert ( max(max(double(Q)-QA)) <= 10*eps) 2250s %assert ( max(max(double(Q)-QA)) <= 10*eps) 2250s ***** test 2250s % non square: tall skinny 2250s A = sym([1 2; 3 4; 5 6]); 2250s [Q, R] = qr (A, 0); 2250s assert (size (Q), [3 2]) 2250s assert (size (R), [2 2]) 2250s assert (isequal (Q*R, A)) 2250s ***** test 2250s % non square: short fat 2250s A = sym([1 2 3; 4 5 6]); 2250s [Q, R] = qr (A); 2250s assert (isequal (Q*R, A)) 2250s ***** test 2250s % non square: short fat, rank deficient 2250s A = sym([1 2 3; 2 4 6]); 2250s [Q, R] = qr (A); 2250s assert (isequal (Q*R, A)) 2250s A = sym([1 2 3; 2 4 6; 0 0 0]); 2250s [Q, R] = qr (A); 2250s assert (isequal (Q*R, A)) 2250s ***** test 2250s % rank deficient 2250s A = sym([1 2 3; 2 4 6; 0 0 0]); 2250s [Q, R] = qr (A); 2250s assert (isequal (Q*R, A)) 2250s A = sym([1 2 3; 2 5 6; 0 0 0]); 2250s [Q, R] = qr (A); 2250s assert (isequal (Q*R, A)) 2251s ***** test 2251s % single return value R not Q 2251s assert (isequal (qr (sym(4)), sym(4))) 2251s 12 tests, 12 passed, 0 known failure, 0 skipped 2251s [inst/@sym/ismatrix.m] 2251s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/ismatrix.m 2251s ***** assert(ismatrix(sym('x'))) 2251s ***** assert(ismatrix(sym([1 2 3]))) 2251s ***** assert(ismatrix(sym([1; 2]))) 2251s ***** assert(ismatrix(sym([1 2; 3 4]))) 2251s ***** assert(ismatrix(sym([]))) 2251s ***** assert(ismatrix(sym(ones(1,0)))) 2251s ***** assert(ismatrix(sym(ones(0,3)))) 2251s 7 tests, 7 passed, 0 known failure, 0 skipped 2251s [inst/@sym/mldivide.m] 2251s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/mldivide.m 2251s ***** test 2251s % scalar 2251s syms x 2251s assert (isa( x\x, 'sym')) 2251s assert (isequal( x\x, sym(1))) 2251s assert (isa( 2\x, 'sym')) 2251s assert (isa( x\2, 'sym')) 2251s ***** test 2251s % scalar \ matrix: easy, no system 2251s D = 2*[0 1; 2 3]; 2251s A = sym(D); 2251s assert (isequal ( 2 \ A , D/2 )) 2251s assert (isequal ( sym(2) \ A , D/2 )) 2251s ***** test 2251s % singular matrix 2251s A = sym([1 2; 2 4]); 2251s b = sym([5; 10]); 2251s x = A \ b; 2251s syms c1 2251s y = [-2*c1 + 5; c1]; 2251s assert (isequal (x, y)) 2251s ***** test 2251s % singular matrix, mult RHS 2251s A = sym([1 2; 2 4]); 2251s B = sym([[5; 10] [0; 2] [0; 0]]); 2251s x = A \ B; 2251s syms c1 c5 2251s y = [-2*c1 + 5 nan -2*c5; c1 nan c5]; 2251s assert (isequaln (x, y)) 2251s ***** warning 2251s % vpa, nearly singular matrix 2251s A = sym([1 2; 2 4]); 2251s A(1,1) = vpa('1.001'); 2251s b = sym([1; 2]); 2251s x = A \ b; 2251s y = [sym(0); vpa('0.5')]; 2251s assert (isequal (x, y)) 2252s ***** warning 2252s % vpa, singular rhs 2252s A = sym([1 2; 2 4]); 2252s b = [vpa('1.01'); vpa('2')]; 2252s x = A \ b; 2252s assert (all(isnan(x))) 2252s 6 tests, 6 passed, 0 known failure, 0 skipped 2252s [inst/@sym/acsch.m] 2252s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/acsch.m 2252s ***** error acsch (sym(1), 2) 2252s ***** assert (isequaln (acsch (sym(nan)), sym(nan))) 2252s ***** shared x, d 2252s d = 1; 2252s x = sym('1'); 2252s ***** test 2252s f1 = acsch(x); 2252s f2 = acsch(d); 2252s assert( abs(double(f1) - f2) < 1e-15 ) 2252s ***** test 2252s D = [d d; d d]; 2252s A = [x x; x x]; 2252s f1 = acsch(A); 2252s f2 = acsch(D); 2252s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2252s ***** test 2252s % round trip 2252s y = sym('y'); 2252s A = acsch (d); 2252s f = acsch (y); 2252s h = function_handle (f); 2252s B = h (d); 2252s assert (A, B, -eps) 2252s 5 tests, 5 passed, 0 known failure, 0 skipped 2252s [inst/@sym/adjoint.m] 2252s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/adjoint.m 2252s ***** test 2252s syms x 2252s A = [x x^2; x^3 x^4]; 2252s B = [x^4 -x^2; -x^3 x]; 2252s assert( isequal( adjoint(A), B )) 2252s ***** test syms x 2252s assert( isequal( adjoint(x), 1)) 2252s 2 tests, 2 passed, 0 known failure, 0 skipped 2252s [inst/@sym/bernoulli.m] 2252s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/bernoulli.m 2252s ***** error bernoulli (sym(1), 2, 3) 2254s ***** assert (isequal (bernoulli (sym(8)), -sym(1)/30)) 2256s ***** assert (isequal (bernoulli (sym(9)), sym(0))) 2256s ***** test syms x 2256s assert (isequal (bernoulli(3,x), x^3 - 3*x^2/2 + x/2)) 2257s ***** test 2257s % two different definitions in literature 2257s assert (isequal (abs (bernoulli (sym(1))), sym(1)/2)) 2257s ***** test 2257s % we use B_1 = 1/2 2257s if (pycall_sympy__ ('return Version(spver) >= Version("1.12.dev")')) 2257s assert (isequal (bernoulli (sym(1)), sym(1)/2)) 2257s end 2257s !!!!! test failed 2257s Python exception: TypeError: '>=' not supported between instances of 'int' and 'str' 2257s occurred at line 1 of the Python code block: 2257s return Version(spver) >= Version("1.12.dev") 2257s ***** test 2257s m = sym([0 2; 8 888889]); 2257s A = bernoulli (m); 2257s B = [1 sym(1)/6; -sym(1)/30 0]; 2257s assert (isequal (A, B)) 2257s ***** test 2257s syms x 2257s A = bernoulli ([0; 1], x); 2257s B = [sym(1); x - sym(1)/2]; 2257s assert (isequal (A, B)) 2257s ***** test 2257s % round trip 2257s syms n x 2257s f = bernoulli (n, x); 2257s h = function_handle (f, 'vars', [n x]); 2257s A = h (2, 2.2); 2257s B = bernoulli (2, 2.2); 2257s assert (A, B) 2257s 9 tests, 8 passed, 0 known failure, 0 skipped 2257s [inst/@sym/signIm.m] 2258s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/signIm.m 2258s ***** assert (isequal (signIm (sym(1)), sym(0))) 2258s ***** assert (isequal (signIm (sym(1) + 2i), sym(1))) 2258s ***** assert (isequal (signIm (sym(1) - 2i), sym(-1))) 2258s ***** test 2258s % intermediate A looks bit weird, but it works 2258s syms z 2258s A = signIm (z); 2258s assert (isequal (subs(A, z, 3+sym(4i)), sym(1))) 2258s assert (isequal (subs(A, z, 3-sym(4i)), sym(-1))) 2258s ***** test 2258s % really a @sym/sign test, but that one is autogen 2258s z = 3 + sym(4i); 2258s A = sign (z); 2258s B = z / abs(z); 2258s assert (double (A), double (B), eps) 2258s 5 tests, 5 passed, 0 known failure, 0 skipped 2258s [inst/@sym/fix.m] 2258s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/fix.m 2258s ***** test 2258s d = 3/2; 2258s x = sym('3/2'); 2258s f1 = fix(x); 2258s f2 = fix(d); 2258s assert (isequal (f1, f2)) 2258s ***** test 2258s D = [1.1 4.6; -3.4 -8.9]; 2258s A = [sym(11)/10 sym(46)/10; sym(-34)/10 sym(-89)/10]; 2258s f1 = fix(A); 2258s f2 = fix(D); 2258s assert( isequal (f1, f2)) 2258s ***** test 2258s d = sym(-11)/10; 2258s c = -1; 2258s assert (isequal (fix (d), c)) 2259s ***** test 2259s d = sym(-19)/10; 2259s c = -1; 2259s assert (isequal (fix (d), c)) 2259s 4 tests, 4 passed, 0 known failure, 0 skipped 2259s [inst/@sym/log10.m] 2259s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/log10.m 2259s ***** assert (isequal (log10 (sym (1000)), sym (3))) 2259s ***** assert (isequal (log10 (sym ([10 100])), sym ([1 2]))) 2259s ***** test 2259s % round-trip 2259s syms x 2259s f = log10 (x); 2259s h = function_handle (f); 2259s A = h (1.1); 2259s B = log10 (1.1); 2259s assert (A, B, -eps) 2259s 3 tests, 3 passed, 0 known failure, 0 skipped 2259s [inst/@sym/cosint.m] 2259s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/cosint.m 2259s ***** error cosint (sym(1), 2) 2259s ***** xtest 2259s assert (isequaln (cosint (sym(nan)), sym(nan))) 2259s !!!!! known failure 2259s assert (isequaln (cosint (sym (nan)), sym (nan))) failed 2259s ***** shared x, d 2259s d = 1; 2259s x = sym('1'); 2259s ***** test 2259s f1 = cosint(x); 2259s f2 = 0.3374039229009681346626; 2259s assert( abs(double(f1) - f2) < 1e-15 ) 2259s ***** test 2259s D = [d d; d d]; 2259s A = [x x; x x]; 2259s f1 = cosint(A); 2259s f2 = 0.3374039229009681346626; 2259s f2 = [f2 f2; f2 f2]; 2259s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2259s ***** test 2259s % round trip 2259s y = sym('y'); 2259s A = cosint (d); 2259s f = cosint (y); 2259s h = function_handle (f); 2259s B = h (d); 2259s assert (A, B, -eps) 2259s 5 tests, 4 passed, 1 known failure, 0 skipped 2259s [inst/@sym/dirac.m] 2259s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/dirac.m 2259s ***** error dirac (sym(1), 2) 2259s ***** assert (isequaln (dirac (sym(nan)), sym(nan))) 2259s ***** shared x, d 2259s d = 1; 2259s x = sym('1'); 2259s ***** test 2259s f1 = dirac(x); 2259s f2 = dirac(d); 2259s assert( abs(double(f1) - f2) < 1e-15 ) 2259s ***** test 2259s D = [d d; d d]; 2259s A = [x x; x x]; 2259s f1 = dirac(A); 2259s f2 = dirac(D); 2259s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2259s ***** test 2259s % round trip 2259s y = sym('y'); 2259s A = dirac (d); 2259s f = dirac (y); 2259s h = function_handle (f); 2259s B = h (d); 2259s assert (A, B, -eps) 2260s 5 tests, 5 passed, 0 known failure, 0 skipped 2260s [inst/@sym/cbrt.m] 2260s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/cbrt.m 2260s ***** error cbrt (sym(1), 2) 2260s ***** assert (isequaln (cbrt (sym(nan)), sym(nan))) 2260s ***** shared x, d 2260s d = 2; 2260s x = sym('2'); 2260s ***** test 2260s f1 = cbrt(x); 2260s f2 = 1.2599210498948731647; 2260s assert( abs(double(f1) - f2) < 1e-15 ) 2260s ***** test 2260s D = [d d; d d]; 2260s A = [x x; x x]; 2260s f1 = cbrt(A); 2260s f2 = 1.2599210498948731647; 2260s f2 = [f2 f2; f2 f2]; 2260s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2260s ***** test 2260s % round trip 2260s y = sym('y'); 2260s if (exist ('OCTAVE_VERSION', 'builtin')) 2260s A = cbrt (d); 2260s else 2260s % Issue #742 2260s A = d^(1/3); 2260s end 2260s f = cbrt (y); 2260s h = function_handle (f); 2260s B = h (d); 2260s assert (A, B, -eps) 2260s 5 tests, 5 passed, 0 known failure, 0 skipped 2260s [inst/@sym/tan.m] 2260s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/tan.m 2260s ***** error tan (sym(1), 2) 2260s ***** assert (isequaln (tan (sym(nan)), sym(nan))) 2260s ***** shared x, d 2260s d = 1; 2260s x = sym('1'); 2260s ***** test 2260s f1 = tan(x); 2260s f2 = tan(d); 2260s assert( abs(double(f1) - f2) < 1e-15 ) 2260s ***** test 2260s D = [d d; d d]; 2260s A = [x x; x x]; 2260s f1 = tan(A); 2260s f2 = tan(D); 2260s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2260s ***** test 2260s % round trip 2260s y = sym('y'); 2260s A = tan (d); 2260s f = tan (y); 2260s h = function_handle (f); 2260s B = h (d); 2260s assert (A, B, -eps) 2260s 5 tests, 5 passed, 0 known failure, 0 skipped 2260s [inst/@sym/sec.m] 2260s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/sec.m 2260s ***** error sec (sym(1), 2) 2260s ***** assert (isequaln (sec (sym(nan)), sym(nan))) 2261s ***** shared x, d 2261s d = 1; 2261s x = sym('1'); 2261s ***** test 2261s f1 = sec(x); 2261s f2 = sec(d); 2261s assert( abs(double(f1) - f2) < 1e-15 ) 2261s ***** test 2261s D = [d d; d d]; 2261s A = [x x; x x]; 2261s f1 = sec(A); 2261s f2 = sec(D); 2261s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2261s ***** test 2261s % round trip 2261s y = sym('y'); 2261s A = sec (d); 2261s f = sec (y); 2261s h = function_handle (f); 2261s B = h (d); 2261s assert (A, B, -eps) 2261s 5 tests, 5 passed, 0 known failure, 0 skipped 2261s [inst/@sym/lu.m] 2261s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/lu.m 2261s ***** test 2261s % scalar 2261s [l, u, p] = lu(sym(6)); 2261s assert (isequal (l, sym(1))) 2261s assert (isequal (u, sym(6))) 2261s assert (isequal (p, sym(1))) 2261s syms x 2261s [l, u, p] = lu(x); 2261s assert (isequal (l*u, p*x)) 2261s [l, u] = lu(x); 2261s assert (isequal (l*u, x)) 2261s ***** test 2261s % perm 2261s A = sym(fliplr(2*eye(3))); 2261s [L, U, P] = lu(A); 2261s assert (isequal (L*U, P*A)) 2261s [L, U, P] = lu(A, 'matrix'); 2261s assert (isequal (L*U, P*A)) 2261s [L, U, p] = lu(A, 'vector'); 2261s assert (isequal (L*U, A(p,:))) 2261s [L, U] = lu(A); 2261s assert (isequal (L*U, A)) 2261s ***** test 2261s % p is col vectpr 2261s A = sym([0 2; 3 4]); 2261s [L, U, p] = lu(A, 'vector'); 2261s assert(iscolumn(p)) 2261s ***** test 2261s % simple matrix 2261s A = [1 2; 3 4]; 2261s B = sym(A); 2261s [L, U, P] = lu(B); 2261s assert (isequal (L*U, P*B)) 2261s assert (isequal (U(2,1), sym(0))) 2261s % needs pivot 2261s A = [0 2; 3 4]; 2261s B = sym(A); 2261s [L, U, P] = lu(B); 2261s [Ld, Ud, Pd] = lu(A); 2261s assert (isequal (L*U, P*A)) 2261s assert (isequal (U(2,1), sym(0))) 2261s % matches regular LU 2261s assert ( max(max(double(L)-Ld)) <= 10*eps) 2261s assert ( max(max(double(U)-Ud)) <= 10*eps) 2261s assert ( isequal (P, Pd)) 2262s ***** test 2262s % rectangular 2262s A = sym([1 2; 3 4; 5 6]); 2262s [L, U] = lu (A); 2262s assert (isequal (L*U, A)) 2262s ***** test 2262s % rectangular 2262s A = sym([1 2 3; 4 5 6]); 2262s [L, U] = lu (A); 2262s assert (isequal (L*U, A)) 2262s ***** test 2262s % rectangular, repeated row 2262s A = sym([1 2 3; 2 4 6]); 2262s [L, U] = lu (A); 2262s assert (isequal (L*U, A)) 2263s ***** test 2263s % rectangular, needs permutation 2263s A = sym([0 0 0; 1 2 3]); 2263s [L, U] = lu (A); 2263s assert (isequal (L*U, A)) 2263s assert (~isequal (tril (L), L)) 2263s [L, U, P] = lu (A); 2263s assert (isequal (L*U, P*A)) 2263s assert (isequal (tril (L), L)) 2263s 8 tests, 8 passed, 0 known failure, 0 skipped 2263s [inst/@sym/atan2.m] 2263s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/atan2.m 2263s ***** error atan2 (1) 2263s ***** error atan2 (1, 2, 3) 2264s ***** test 2264s % some angles 2264s e = sym(1); 2264s a = atan2(0, e); 2264s assert (isequal (a, sym(0))) 2264s a = atan2(e, 0); 2264s assert (isequal (a, sym(pi)/2)) 2264s ***** test 2264s % symbols can give numerical answer 2264s syms x positive 2264s a = atan2(0, x); 2264s assert (isequal (a, sym(0))) 2264s a = atan2(x, 0); 2264s assert (isequal (a, sym(pi)/2)) 2264s a = atan2(-x, 0); 2264s assert (isequal (a, -sym(pi)/2)) 2265s ***** test 2265s % matrices 2265s x = sym([1 -2; 0 0]); 2265s y = sym([0 0; 8 -3]); 2265s a = atan2(y, x); 2265s sp = sym(pi); 2265s aex = [0 sp; sp/2 -sp/2]; 2265s assert (isequal (a, aex)) 2265s ***** test 2265s % round trip 2265s syms x y 2265s xd = -2; yd = -3; 2265s f = atan2 (x, y); 2265s A = atan2 (xd, yd); 2265s h = function_handle (f); 2265s B = h (xd, yd); 2265s assert (A, B, -eps) 2266s 6 tests, 6 passed, 0 known failure, 0 skipped 2266s [inst/@sym/besselyn.m] 2266s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/besselyn.m 2266s ***** test 2266s % roundtrip 2266s syms x 2266s A = double(besselyn(sym(2), sym(10))); 2266s q = besselyn(sym(2), x); 2266s h = function_handle(q); 2266s B = h(10); 2266s assert (abs (A - B) <= eps) 2266s ***** error yn(sym('x')) 2267s 2 tests, 2 passed, 0 known failure, 0 skipped 2267s [inst/@sym/ellipticCE.m] 2267s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/ellipticCE.m 2267s ***** error ellipticCE (sym (1), 2) 2267s ***** assert (isequal (ellipticCE (sym (0)), sym (1))) 2267s ***** assert (isequal (ellipticCE (sym (1)), sym (pi)/2)) 2267s ***** assert (double (ellipticCE (sym (pi)/4)), 1.482786927, 10e-10) 2267s ***** assert (double (ellipticCE (sym (pi)/2)), 1.775344699, 10e-10) 2267s 5 tests, 5 passed, 0 known failure, 0 skipped 2267s [inst/@sym/lt.m] 2267s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/lt.m 2267s ***** test 2267s % simple 2267s x = sym(1); y = sym(1); e = x < y; 2267s assert (~logical (e)) 2267s x = sym(1); y = sym(2); e = x < y; 2267s assert (logical (e)) 2267s ***** test 2267s % mix sym and double 2267s x = sym(1); y = 1; e = x < y; 2267s assert (~logical (e)) 2267s x = sym(1); y = 2; e = x < y; 2267s assert (logical (e)) 2267s x = 1; y = sym(1); e = x < y; 2267s assert (~logical (e)) 2267s x = 1; y = sym(2); e = x < y; 2267s assert (logical (e)) 2267s ***** test 2267s % Type of the output is sym or logical? 2267s % FIXME: in current version, they are sym 2267s x = sym(1); y = sym(1); e1 = x < y; 2267s x = sym(1); y = sym(2); e2 = x < y; 2267s %assert (islogical (e1)) 2267s %assert (islogical (e2)) 2267s assert (isa (e1, 'sym')) 2267s assert (isa (e2, 'sym')) 2267s ***** test 2267s % ineq w/ symbols 2267s syms x y 2267s e = x < y; 2267s assert (~islogical (e)) 2267s assert (isa (e, 'sym')) 2267s ***** test 2267s % array -- array 2267s syms x 2267s a = sym([1 3 3 2*x]); 2267s b = sym([2 x 3 10]); 2267s e = a < b; 2267s assert (isa (e, 'sym')) 2267s assert (logical (e(1))) 2267s assert (isa (e(2), 'sym')) 2267s assert (isequal (e(2), 3 < x)) 2267s assert (~logical (e(3))) 2267s assert (isa (e(4), 'sym')) 2267s assert (isequal (e(4), 2*x < 10)) 2268s ***** test 2268s % array -- scalar 2268s syms x oo 2268s a = sym([1 x oo]); 2268s b = sym(3); 2268s e = a < b; 2268s assert (isa (e, 'sym')) 2268s assert (logical (e(1))) 2268s assert (isa (e(2), 'sym')) 2268s assert (isequal (e(2), x < 3)) 2268s assert (~logical (e(3))) 2268s ***** test 2268s % scalar -- array 2268s syms x oo 2268s a = sym(1); 2268s b = sym([2 x -oo]); 2268s e = a < b; 2268s assert (isa (e, 'sym')) 2268s assert (logical (e(1))) 2268s assert (isa (e(2), 'sym')) 2268s assert (isequal (e(2), 1 < x)) 2268s assert (~logical (e(3))) 2268s ***** test 2268s % ineq w/ nan 2268s syms x 2268s snan = sym(nan); 2268s e = x < snan; 2268s assert (~logical (e)) 2268s e = snan < x; 2268s assert (~logical (e)) 2268s b = [sym(0) x]; 2268s e = b < snan; 2268s assert (isequal (e, [false false])) 2268s ***** test 2268s % oo 2268s syms oo x 2268s e = oo < x; 2268s assert (isa (e, 'sym')) 2268s assert (strcmp (strtrim (disp (e, 'flat')), 'oo < x')) 2268s ***** test 2268s % sympy true matrix 2268s a = sym([1 3 3]); 2268s b = sym([2 4 1]); 2268s e = a < b; 2268s %assert (~isa (e, 'sym')) 2268s %assert (islogical (e)) 2268s assert (isequal (e, [true true false])) 2268s ***** test 2268s % oo, finite real variables 2268s syms oo 2268s syms z real 2268s assumeAlso(z, 'finite') 2268s e = -oo < z; 2268s assert (isequal (e, sym(true))) 2268s e = z < oo; 2268s assert (isequal (e, sym(true))) 2269s ***** test 2269s % -oo, positive var (known failure w/ sympy 0.7.6.x) 2269s syms oo 2269s syms z positive 2269s e = -oo < z; 2269s assert (logical (e)) 2269s assert (isequal (e, sym(true))) 2269s ***** test 2269s % positive 2269s syms z positive 2269s e = -1 < z; 2269s assert (isequal (e, sym(true))) 2269s ***** test 2269s syms oo 2269s z = sym('z', 'negative'); 2269s e = z < oo; 2269s assert (isequal (e, sym(true))) 2269s 14 tests, 14 passed, 0 known failure, 0 skipped 2269s [inst/@sym/latex.m] 2269s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/latex.m 2269s ***** test 2269s syms x 2269s y = sin(x); 2269s assert (strcmp (latex (y), '\sin{\left(x \right)}')) 2269s ***** assert (strcmp (latex (exp (sym('x'))), 'e^{x}')) 2269s 2 tests, 2 passed, 0 known failure, 0 skipped 2269s [inst/@sym/symprod.m] 2269s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/symprod.m 2269s ***** error symprod (sym(1), 2, 3, 4, 5) 2269s ***** test 2269s % simple 2269s syms n 2269s assert (isequal (symprod(n, n, 1, 10), factorial(sym(10)))) 2269s assert (isequal (symprod(n, n, sym(1), sym(10)), factorial(10))) 2269s ***** test 2269s % one input 2269s syms n 2269s f = symprod (n); 2269s g = factorial (n); 2269s assert (isequal (f, g)) 2269s f = symprod (2*n); 2269s g = 2^n * factorial (n); 2269s assert (isequal (f, g)) 2269s ***** test 2269s % constant input 2269s f = symprod (sym(2)); 2269s syms x 2269s g = 2^x; 2269s assert (isequal (f, g)) 2269s ***** test 2269s % two inputs 2269s syms n 2269s f = symprod (2*n, n); 2269s g = 2^n * factorial (n); 2269s assert (isequal (f, g)) 2269s ***** test 2269s % two inputs, second is range 2269s syms n 2269s f = symprod (n, [1 6]); 2269s g = 720; 2269s assert (isequal (f, g)) 2269s f = symprod (n, [sym(1) 6]); 2269s g = 720; 2269s assert (isequal (f, g)) 2269s f = symprod (2*n, [1 6]); 2269s g = sym(2)^6*720; 2269s assert (isequal (f, g)) 2270s ***** test 2270s % three inputs, last is range 2270s syms n 2270s f = symprod (2*n, n, [1 4]); 2270s g = sym(384); 2270s assert (isequal (f, g)) 2270s f = symprod (2*n, n, [sym(1) 4]); 2270s g = sym(384); 2270s assert (isequal (f, g)) 2270s f = symprod (2, n, [sym(1) 4]); 2270s g = sym(16); 2270s assert (isequal (f, g)) 2270s ***** test 2270s % three inputs, no range 2270s syms n 2270s f = symprod (2*n, 1, 4); 2270s g = sym(384); 2270s assert (isequal (f, g)) 2270s f = symprod (5, sym(1), 3); 2270s g = sym(125); 2270s assert (isequal (f, g)) 2270s ***** test 2270s % infinite product 2270s syms a n oo 2270s zoo = sym('zoo'); 2270s assert (isequal (symprod(a, n, 1, oo), a^oo)) 2270s assert (isequal (symprod(a, n, 1, inf), a^oo)) 2270s 9 tests, 9 passed, 0 known failure, 0 skipped 2270s [inst/@sym/euler.m] 2270s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/euler.m 2270s ***** error euler (sym(1), 2, 3) 2271s ***** assert (isequal (euler (sym(0)), sym(1))) 2271s ***** test 2271s m = sym([0 1 2; 8 10 888889]); 2271s A = euler (m); 2271s B = sym([1 0 -1; 1385 -50521 0]); 2271s assert (isequal (A, B)) 2271s ***** test 2271s syms x 2271s assert (isequal (euler(6, x), x^6 - 3*x^5 + 5*x^3 - 3*x)) 2272s ***** assert (isnan (euler (3, sym(nan)))) 2272s ***** test 2272s syms m x 2272s em = euler (m, x); 2272s A = subs(em, [m x], [2 sym(pi)]); 2272s assert (isequal (A, sym(pi)^2 - sym(pi))) 2272s ***** test 2272s % vectorized 2272s syms x y 2272s A = euler([1; 2], [x; y]); 2272s B = [x - sym(1)/2; y^2 - y]; 2272s assert (isequal (A, B)) 2272s ***** test 2272s % round trip 2272s syms m z 2272s f = euler (m, z); 2272s h = function_handle (f, 'vars', [m z]); 2272s A = h (2, 2.2); 2272s B = euler (2, 2.2); 2272s assert (A, B) 2273s ***** test 2273s % compare vpa to maple: Digits:=34; evalf(euler(13, exp(1)+Pi*I/13)); 2273s A = vpa('1623.14184180556920918624604530515') + ... 2273s vpa('4270.98066989140286451493108809574')*1i; 2273s z = vpa (exp(1), 32) + vpa(pi, 32)/13*1i; 2273s B = euler (13, z); 2273s relerr = abs(double(abs((B - A)/A))); 2273s assert (relerr < 20*eps); 2275s ***** xtest 2275s % as above, high-prec result broken in 1.12: https://github.com/sympy/sympy/issues/24156 2275s A = vpa('1623.14184180556920918624604530515') + ... 2275s vpa('4270.98066989140286451493108809574')*1i; 2275s z = vpa (exp(1), 32) + vpa(pi, 32)/13*1i; 2275s B = euler (13, z); 2275s relerr = abs(double(abs((B - A)/A))); 2275s assert (relerr < 2e-31); 2277s !!!!! known failure 2277s assert (relerr < 2e-31) failed 2277s 10 tests, 9 passed, 1 known failure, 0 skipped 2277s [inst/@sym/and.m] 2277s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/and.m 2277s ***** shared t, f 2277s t = sym(true); 2277s f = sym(false); 2277s ***** test 2277s % simple 2277s assert (isequal (t & f, f)) 2277s assert (isequal (t & t, t)) 2277s ***** test 2277s % mix wih nonsym 2277s assert (isequal (t & false, f)) 2277s assert (isequal (t & true, t)) 2277s assert (isequal (t & 0, f)) 2277s assert (isequal (t & 1, t)) 2277s assert (isa (t & false, 'sym')) 2277s assert (isa (t & 1, 'sym')) 2277s ***** test 2277s % array 2277s w = [t t f f]; 2277s z = [t f t f]; 2277s assert (isequal (w & z, [t f f f])) 2277s ***** test 2277s % number 2277s assert (isequal( sym(1) & t, t)) 2277s assert (isequal( sym(0) & t, f)) 2277s ***** test 2277s % output is sym even for scalar t/f 2277s assert (isa (t & f, 'sym')) 2277s ***** test 2277s % eqns, exclusive 2277s syms x 2277s e = (x == 3) & (x^2 == 9); 2277s assert (isequal (subs(e, x, [-3 0 3]), [f f t])) 2277s ***** error and (sym('x'), 2, 3) 2277s 7 tests, 7 passed, 0 known failure, 0 skipped 2277s [inst/@sym/heaviside.m] 2277s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/heaviside.m 2277s ***** error heaviside (sym(1), 2, 3) 2277s ***** assert (isequal (heaviside (sym(1)), sym(1))) 2277s ***** assert (isequal (heaviside (-sym(1)), sym(0))) 2277s ***** assert (double (heaviside (1)), heaviside (1)) 2277s ***** test 2277s D = [1 -1; -10 20]; 2277s A = sym(D); 2277s assert (double (heaviside (A)), heaviside (D)) 2278s ***** test 2278s H0 = sym([1 -2 0; 3 0 pi]); 2278s A = heaviside (sym(0), H0); 2278s assert (isequal (A, H0)) 2278s ***** test 2278s A = heaviside ([-1 0 1], sym(1)/2); 2278s assert (isequal (A, [0 sym(1)/2 1])) 2278s ***** test 2278s A = heaviside ([-1 0 1], sym(1)/2); 2278s assert (isequal (A, [0 sym(1)/2 1])) 2278s ***** assert (isequaln (heaviside (sym(nan)), sym(nan))) 2278s ***** test 2278s assert (isequaln (heaviside (sym(nan), sym(nan)), sym(nan))) 2278s assert (isequaln (heaviside (0, sym(nan)), sym(nan))) 2278s assert (isequaln (heaviside (2, sym(nan)), sym(1))) 2278s assert (isequaln (heaviside (-2, sym(nan)), sym(0))) 2278s ***** test 2278s % round trip 2278s syms x 2278s A = heaviside (1); 2278s f = heaviside (x); 2278s h = function_handle (f); 2278s B = h (1); 2278s assert (A, B, -eps) 2278s ***** test 2278s % round trip 2278s syms x h0 2278s f = heaviside (x, h0); 2278s h = function_handle (f, 'vars', {x h0}); 2278s A = heaviside (1, 1/2); 2278s B = h (1, 1/2); 2278s assert (A, B, -eps) 2278s A = heaviside (0, 1/2); 2278s B = h (0, 1/2); 2278s assert (A, B, -eps) 2278s 12 tests, 12 passed, 0 known failure, 0 skipped 2278s [inst/@sym/lhs.m] 2278s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/lhs.m 2278s ***** test 2278s syms x y 2278s f = x + 1 == 2*y; 2278s assert (isequal (lhs(f), x + 1)) 2278s assert (isequal (rhs(f), 2*y)) 2279s ***** test 2279s syms x y 2279s f = x + 1 < 2*y; 2279s assert (isequal (lhs(f), x + 1)) 2279s assert (isequal (rhs(f), 2*y)) 2279s ***** test 2279s syms x y 2279s f = x + 1 >= 2*y; 2279s assert (isequal (lhs(f), x + 1)) 2279s assert (isequal (rhs(f), 2*y)) 2279s ***** test 2279s syms x y 2279s A = [x == y 2*x < 2*y; 3*x > 3*y 4*x <= 4*y; 5*x >= 5*y x < 0]; 2279s L = [x 2*x; 3*x 4*x; 5*x x]; 2279s R = [y 2*y; 3*y 4*y; 5*y 0]; 2279s assert (isequal( lhs(A), L)) 2279s assert (isequal( rhs(A), R)) 2279s ***** error 2279s syms x 2279s lhs(x) 2279s ***** error 2279s lhs(sym(true)) 2279s ***** error 2279s syms x 2279s A = [1 + x == 2*x sym(6)]; 2279s lhs(A) 2280s 7 tests, 7 passed, 0 known failure, 0 skipped 2280s [inst/@sym/setdiff.m] 2280s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/setdiff.m 2280s ***** test 2280s A = sym([1 2 3]); 2280s B = sym([1 2 4]); 2280s C = setdiff(A, B); 2280s D = sym([3]); 2280s assert (isequal (C, D)) 2280s ***** test 2280s % one nonsym 2280s A = sym([1 2 3]); 2280s B = [1 2 4]; 2280s C = setdiff(A, B); 2280s D = sym([3]); 2280s assert (isequal (C, D)) 2280s ***** test 2280s % empty 2280s A = sym([1 2 3]); 2280s C = setdiff(A, A); 2280s assert (isempty (C)) 2280s ***** test 2280s % empty input 2280s A = sym([1 2]); 2280s C = setdiff(A, []); 2280s assert (isequal (C, A) || isequal (C, sym([2 1]))) 2280s ***** test 2280s % scalar 2280s syms x 2280s assert (isequal (setdiff([x 1], x), sym(1))) 2280s assert (isempty (setdiff(x, x))) 2280s ***** test 2280s A = interval(sym(1), 3); 2280s B = interval(sym(2), 5); 2280s C = setdiff(A, B); 2280s assert( isequal( C, interval(sym(1), 2, false, true))) 2280s 6 tests, 6 passed, 0 known failure, 0 skipped 2280s [inst/@sym/besseljn.m] 2280s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/besseljn.m 2280s ***** test 2280s % roundtrip 2280s syms x 2280s A = double(besseljn(sym(2), sym(9))); 2280s q = besseljn(sym(2), x); 2280s h = function_handle(q); 2280s B = h(9); 2280s assert (abs (A - B) <= eps) 2280s ***** error jn(sym('x')) 2280s 2 tests, 2 passed, 0 known failure, 0 skipped 2280s [inst/@sym/cosd.m] 2280s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/cosd.m 2280s ***** error cosd (sym(1), 2) 2280s ***** assert (isequaln (cosd (sym(nan)), sym(nan))) 2280s ***** test 2280s f1 = cosd (sym(1)); 2280s f2 = cosd (1); 2280s assert (double (f1), f2, -eps) 2280s ***** test 2280s D = [10 30; 110 -45]; 2280s A = sym(D); 2280s f1 = cosd (A); 2280s f2 = cosd (D); 2280s assert (double (f1), f2, -4*eps) 2281s 4 tests, 4 passed, 0 known failure, 0 skipped 2281s [inst/@sym/besseli.m] 2281s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/besseli.m 2281s ***** test 2281s X = [1 2 3; 4 5 6]; 2281s ns = [sym(0) 1 -2; sym(1)/2 -sym(3)/2 pi]; 2281s n = double(ns); 2281s A = double(besseli(ns, X)); 2281s B = besseli(n, X); 2281s assert (all (all (abs (A - B) < 100*eps*abs(A)))) 2281s ***** test 2281s % roundtrip 2281s syms x 2281s A = besseli(2, 10); 2281s q = besseli(2, x); 2281s h = function_handle(q); 2281s B = h(10); 2281s assert (abs (A - B) <= eps*abs(A)) 2281s ***** error besseli(sym('x')) 2281s 3 tests, 3 passed, 0 known failure, 0 skipped 2281s [inst/@sym/csch.m] 2281s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/csch.m 2282s ***** error csch (sym(1), 2) 2282s ***** assert (isequaln (csch (sym(nan)), sym(nan))) 2282s ***** shared x, d 2282s d = 1; 2282s x = sym('1'); 2282s ***** test 2282s f1 = csch(x); 2282s f2 = csch(d); 2282s assert( abs(double(f1) - f2) < 1e-15 ) 2282s ***** test 2282s D = [d d; d d]; 2282s A = [x x; x x]; 2282s f1 = csch(A); 2282s f2 = csch(D); 2282s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2282s ***** test 2282s % round trip 2282s y = sym('y'); 2282s A = csch (d); 2282s f = csch (y); 2282s h = function_handle (f); 2282s B = h (d); 2282s assert (A, B, -eps) 2282s 5 tests, 5 passed, 0 known failure, 0 skipped 2282s [inst/@sym/reshape.m] 2282s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/reshape.m 2282s ***** test 2282s d = [2 4 6; 8 10 12]; 2282s a = sym(d); 2282s assert (isequal (reshape(a, [1 6]), reshape(d, [1 6]))) 2282s assert (isequal (reshape(a, 1, 6), reshape(d, 1, 6))) 2282s assert (isequal (reshape(a, 2, 3), reshape(d, 2, 3))) 2282s assert (isequal (reshape(a, 3, 2), reshape(d, 3, 2))) 2282s assert (isequal (reshape(a, 6, 1), reshape(d, 6, 1))) 2283s ***** shared x, a, d 2283s syms x 2283s a = [1 x^2 x^4; x x^3 x^5]; 2283s d = [0 2 4; 1 3 5]; 2283s 2283s ***** test 2283s b = reshape(a, [1 6]); 2283s assert (isequal (size(b), [1 6])) 2283s assert (isequal (b, x.^reshape(d,1,6))) 2283s 2283s ***** test 2283s b = reshape(a, [6 1]); 2283s assert (isequal (size(b), [6 1])) 2283s assert (isequal (b, x.^reshape(d,6,1))) 2283s b = reshape(b, size(a)); 2283s assert (isequal (size(b), [2 3])) 2283s assert (isequal (b, a)) 2283s 2283s ***** test 2283s b = a(:); 2283s assert( isequal (size(b), [6 1])) 2283s assert( isequal (b, x.^(d(:)))) 2283s 2283s ***** test 2283s % reshape scalar 2283s assert (logical( reshape(x, 1, 1) == x )) 2283s assert (logical( reshape(x, [1 1]) == x )) 2283s ***** shared a 2283s syms a 2283s ***** error reshape(a, 2, 1) 2283s ***** error reshape(a, 1, 2) 2283s ***** error reshape(a, 1, 1, 1) 2283s ***** error reshape(a, [1, 1, 1]) 2284s 9 tests, 9 passed, 0 known failure, 0 skipped 2284s [inst/@sym/divergence.m] 2284s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/divergence.m 2284s ***** shared x,y,z 2284s syms x y z 2285s ***** test 2285s % 1D 2285s f = x^2; 2285s assert (isequal (divergence(f), diff(f,x))) 2285s assert (isequal (divergence(f,{x}), diff(f,x))) 2285s assert (isequal (divergence(f,[x]), diff(f,x))) 2285s assert (isequal (divergence(f,x), diff(f,x))) 2286s ***** test 2286s % const 2286s f = [sym(1); 2; exp(sym(3))]; 2286s assert (isequal (divergence(f,{x,y,z}), 0)) 2286s f = [sym(1); 2; exp(sym('c'))]; 2286s assert (isequal (divergence(f,{x,y,z}), 0)) 2286s ***** test 2286s % double const 2286s f = [1 2]; 2286s g = sym(0); 2286s assert (isequal (divergence(f, [x y]), g)) 2286s % should fail, calls @double: divergence(f, {x y}), g)) 2286s ***** test 2286s % 1D fcn in 2d/3d 2286s f = [x y z]; 2286s assert (isequal (divergence(f), 3)) 2286s assert (isequal (divergence(f, {x,y,z}), 3)) 2286s assert (isequal (divergence(f, [x,y,z]), 3)) 2287s ***** test 2287s % 2d fcn in 2d/3d 2287s f = sin(exp(x)*y+sinh(z)); 2287s g2 = [diff(f,x); diff(f,y)]; 2287s l2 = diff(g2(1),x) + diff(g2(2),y); 2287s g3 = [diff(f,x); diff(f,y); diff(f,z)]; 2287s l3 = diff(g3(1),x) + diff(g3(2),y) + diff(g3(3),z); 2287s assert (isequal (divergence(g2, {x,y}), l2)) 2287s assert (isequal (divergence(g3, {x,y,z}), l3)) 2287s ***** error divergence ([1 2], [sym('x')]) 2287s ***** error divergence ([1 2], sym('x'), 42) 2287s 7 tests, 7 passed, 0 known failure, 0 skipped 2287s [inst/@sym/igamma.m] 2287s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/igamma.m 2287s ***** test 2287s % mostly tested in @sym/gammainc 2287s syms x 2287s assert (isequal (igamma (2, x), gammainc(x, 2, 'upper'))) 2288s ***** test 2288s % unregularized 2288s B = double (igamma (sym(3), 1)); 2288s A = gammainc (1, 3, 'upper')*gamma (3); 2288s assert (A, B, -2*eps) 2288s ***** test 2288s % something like a round trip: no igamma() 2288s syms x a 2288s f = igamma (a, x); 2288s h = function_handle (f, 'vars', [a x]); 2288s A = h (1.1, 2.2); 2288s B = double (igamma (sym(11)/10, sym(22)/10)); 2288s C = gammainc (2.2, 1.1, 'upper')*gamma(1.1); 2288s assert (A, B, -10*eps) 2288s assert (A, C, -10*eps) 2288s 3 tests, 3 passed, 0 known failure, 0 skipped 2288s [inst/@sym/isnan.m] 2288s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/isnan.m 2288s ***** shared x,zoo,oo,snan 2288s oo = sym(inf); 2288s zoo = sym('zoo'); 2288s x = sym('x'); 2288s snan = sym(nan); 2288s ***** test 2288s % various ops that give nan 2288s assert (isnan(0*oo)) 2288s assert (isnan(0*zoo)) 2288s assert (isnan(snan)) 2288s assert (isnan(snan-snan)) 2288s assert (isnan(oo+snan)) 2288s assert (isnan(oo-oo)) 2288s assert (isnan(oo-zoo)) 2288s assert (isnan(oo+zoo)) 2288s assert (~isnan(oo)) 2288s assert (~isnan(zoo)) 2288s assert (~isnan(oo+oo)) 2288s ***** test 2288s % more ops give nan 2288s assert(isnan(x+snan)) 2288s assert(isnan(x*snan)) 2288s assert(isnan(0*snan)) 2288s assert(isnan(x+nan)) 2288s assert(isnan(x*nan)) 2288s assert(isnan(sym(0)*nan)) 2288s ***** test 2288s % array 2288s assert (isequal( isnan([oo zoo]), [0 0] )) 2288s assert (isequal( isnan([10 snan]), [0 1] )) 2288s assert (isequal( isnan([snan snan]), [1 1] )) 2288s assert (isequal( isnan([snan x]), [1 0] )) 2288s ***** test 2288s % sub in to algebraic expression gives nan 2288s y = x - oo; 2288s y = subs(y, x, oo); 2288s assert(isnan(y)) 2288s ***** test 2288s % Must not contain string 'symbol'; these all should make an 2288s % actual nan. Actually a ctor test, not isnan. 2288s y = sym(nan); 2288s assert (isempty (strfind (sympy (y), 'Symbol'))) 2288s y = sym('nan'); 2288s assert (isempty (strfind (sympy (y), 'Symbol'))) 2288s y = sym('NaN'); 2288s assert (isempty( strfind (sympy (y), 'Symbol'))) 2288s 5 tests, 5 passed, 0 known failure, 0 skipped 2288s [inst/@sym/resize.m] 2288s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/resize.m 2288s ***** test 2288s B = sym([1 0 0; 0 0 0]); 2288s assert (isequal (resize (sym(1), 2, 3), B)) 2288s assert (isequal (resize (sym(1), [2 3]), B)) 2289s ***** test 2289s B = sym([1 0; 0 0]); 2289s assert (isequal (resize (sym(1), 2), B)) 2289s ***** test 2289s A = sym([pi 2; 3 4]); 2289s assert (isequal (resize (A, 1), sym(pi))) 2289s ***** assert (isequal (size (resize (sym(1), 0, 0)), [0 0])) 2289s ***** assert (isequal (size (resize (sym(1), 6, 0)), [6 0])) 2289s ***** assert (isequal (size (resize (sym(1), 0, 3)), [0 3])) 2289s ***** error resize (sym(1)) 2290s ***** error resize (sym(1), 2, 3, 4) 2290s ***** error resize (sym(1), [2 3 4]) 2291s 9 tests, 9 passed, 0 known failure, 0 skipped 2291s [inst/@sym/limit.m] 2291s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/limit.m 2291s ***** error limit (sym(1), 2, 3, 4, 5) 2291s ***** shared x, oo 2291s syms x 2291s oo = sym(inf); 2291s ***** assert (isa (limit(x, x, pi), 'sym')) 2291s ***** assert (isequal (limit(x, x, pi), sym(pi))) 2291s ***** assert (isequal (limit(sin(x)/x, x, 0), 1)) 2291s ***** test 2291s % left/right-hand limit 2291s assert (isequal (limit(1/x, x, 0, 'right'), oo)) 2291s assert (isequal (limit(1/x, x, 0), oo)) 2291s assert (isequal (limit(1/x, x, 0, 'left'), -oo)) 2291s assert (isequal (limit(1/x, x, oo), 0)) 2291s assert (isequal (limit(sign(x), x, 0, 'left'), -1)) 2291s assert (isequal (limit(sign(x), x, 0, 'right'), 1)) 2291s assert (isequal (limit(sign(x), x, 0, '-'), -1)) 2291s assert (isequal (limit(sign(x), x, 0, '+'), 1)) 2292s ***** test 2292s % matrix 2292s syms y 2292s A = [x 1/x x*y]; 2292s B = sym([3 sym(1)/3 3*y]); 2292s assert (isequal (limit(A, x, 3), B)) 2292s ***** test 2292s % omitting arguments 2292s syms a 2292s assert (isequal (limit(a), 0)) 2292s assert (isequal (limit(a*x+a+2), a+2)) 2292s assert (isequal (limit(a*x+a+2, 6), 7*a+2)) 2292s ***** test 2292s % constants 2292s assert (isequal (limit(sym(6)), 6)) 2292s assert (isequal (limit(sym(6), 7), 6)) 2292s assert (isequal (limit([sym(6) sym(2)], 7), [6 2])) 2293s ***** test 2293s % double constant, with sym limit 2293s a = limit (6, sym(0)); 2293s assert (isa (a, 'sym')) 2293s assert (isequal (a, sym(6))) 2293s 9 tests, 9 passed, 0 known failure, 0 skipped 2293s [inst/@sym/rewrite.m] 2293s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/rewrite.m 2293s ***** test 2293s syms x 2293s assert (isequal (rewrite(x, 'exp'), x)) 2293s ***** test 2293s % empty 2293s e = sym([]); 2293s assert (isequal (rewrite(e, 'sin'), e)) 2293s ***** test 2293s syms x 2293s A = [exp(x) exp(2*x)]; 2293s B = [sinh(x) + cosh(x) sinh(2*x) + cosh(2*x)]; 2293s assert (isequal (rewrite(A, 'sin'), B)) 2293s 3 tests, 3 passed, 0 known failure, 0 skipped 2293s [inst/@sym/atand.m] 2293s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/atand.m 2293s ***** error atand (sym(1), 2) 2293s ***** assert (isequaln (atand (sym(nan)), sym(nan))) 2293s ***** test 2293s f1 = atand (sym(1)/2); 2293s f2 = atand (1/2); 2293s assert (double (f1), f2, -eps) 2293s ***** test 2293s D = [1 2; 3 4]/4; 2293s A = sym([1 2; 3 4])/4; 2293s f1 = atand (A); 2293s f2 = atand (D); 2293s assert (double (f1), f2, -eps) 2293s 4 tests, 4 passed, 0 known failure, 0 skipped 2293s [inst/@sym/norm.m] 2293s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/norm.m 2293s ***** assert (isequal (norm(sym(-6)), 6)) 2293s ***** test 2293s % 2-norm default 2293s A = [1 2; 3 4]; 2293s n1 = norm (sym (A)); 2293s assert (isequal (n1, sqrt (sqrt (sym(221)) + 15))) 2293s assert (norm (A), double (n1), -eps) 2294s ***** test 2294s syms x y real 2294s assert (isequal (norm([x 1; 3 y], 'fro'), sqrt(x^2 + y^2 + 10))) 2294s ***** test 2294s syms x real 2294s assert (isequal (norm([x 1], 2), sqrt(x^2 + 1))) 2294s ***** test 2294s % test sym vs double ord 2294s syms x 2294s assert (isequal (norm([x 2 1], 1), abs(x) + 3)) 2294s assert (isequal (norm([x 2 1], sym(1)), abs(x) + 3)) 2294s assert (isequal (norm([sym(-3) 2 1], inf), sym(3))) 2294s assert (isequal (norm([sym(-3) 2 1], sym(inf)), sym(3))) 2294s 5 tests, 5 passed, 0 known failure, 0 skipped 2294s [inst/@sym/gammainc.m] 2294s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/gammainc.m 2294s ***** assert (isequal (gammainc (sym(0), 1), sym(0))) 2294s ***** assert (isequal (gammainc (sym(0), 2), sym(0))) 2294s ***** assert (isequal (gammainc (sym('oo'), 1), sym(1))) 2294s ***** assert (isequal (gammainc (sym(0), 1, 'upper'), sym(1))) 2294s ***** assert (isequal (gammainc (sym(0), 2, 'upper'), sym(1))) 2295s ***** assert (isequal (gammainc (sym('oo'), 1, 'upper'), sym(0))) 2295s ***** test 2295s % default is lower 2295s syms x a 2295s assert (isequal (gammainc (x, a), gammainc(x, a, 'lower'))) 2295s ***** test 2295s % compare to double 2295s x = 5; a = 1; 2295s A = gammainc (x, a); 2295s B = double (gammainc (sym(x), a)); 2295s assert(A, B, -eps) 2295s ***** test 2295s % compare to double where gamma(a) != 1 2295s x = 5; a = 3; 2295s A = gammainc (x, a); 2295s B = double (gammainc (sym(x), a)); 2295s assert(A, B, -eps) 2295s ***** test 2295s % compare to double 2295s x = 100; a = 1; 2295s A = gammainc (x, a); 2295s B = double (gammainc (sym(x), a)); 2295s assert(A, B, -eps) 2295s ***** test 2295s % compare to double 2295s xs = sym(1)/1000; x = 1/1000; a = 1; 2295s A = gammainc (x, a); 2295s B = double (gammainc (xs, a)); 2295s assert(A, B, -eps) 2295s ***** test 2295s % compare to double 2295s x = 5; a = 1; 2295s A = gammainc (x, a, 'upper'); 2295s B = double (gammainc (sym(x), a, 'upper')); 2295s assert(A, B, -10*eps) 2295s ***** test 2295s % compare to double 2295s x = 10; a = 1; 2295s A = gammainc (x, a, 'upper'); 2295s B = double (gammainc (sym(x), a, 'upper')); 2295s assert(A, B, -10*eps) 2295s ***** test 2295s % compare to double 2295s x = 40; a = 1; 2295s A = gammainc (x, a, 'upper'); 2295s B = double (gammainc (sym(x), a, 'upper')); 2295s assert(A, B, -10*eps) 2295s ***** test 2295s % compare to double 2295s xs = sym(1)/1000; x = 1/1000; a = 1; 2295s A = gammainc (x, a, 'upper'); 2295s B = double (gammainc (xs, a, 'upper')); 2295s assert(A, B, -eps) 2295s ***** test 2295s % vectorized 2295s P = gammainc([sym(pi) 2], [1 3]); 2295s expected = [gammainc(pi, sym(1)) gammainc(2, sym(3))]; 2295s assert (isequal (P, expected)) 2295s ***** test 2295s % vectorized 2295s P = gammainc(sym(pi), [1 3]); 2295s expected = [gammainc(sym(pi), 1) gammainc(sym(pi), 3)]; 2295s assert (isequal (P, expected)) 2296s ***** test 2296s % vectorized 2296s P = gammainc([sym(pi) 2], 1); 2296s expected = [gammainc(pi, sym(1)) gammainc(2, sym(1))]; 2296s assert (isequal (P, expected)) 2296s ***** test 2296s % round trip 2296s syms x a 2296s f = gammainc (x, a, 'upper'); 2296s h = function_handle (f, 'vars', [x a]); 2296s A = h (1.1, 2); 2296s B = gammainc (1.1, 2, 'upper'); 2296s assert (A, B) 2296s ***** test 2296s % round trip 2296s syms x a 2296s f = gammainc (x, a, 'lower'); 2296s h = function_handle (f, 'vars', [x a]); 2296s A = h (1.1, 2); 2296s B = gammainc (1.1, 2, 'lower'); 2296s assert (A, B) 2296s ***** test 2296s % round trip 2296s syms x a 2296s f = gammainc (x, a, 'upper'); 2296s h = function_handle (f, 'vars', [x a]); 2296s A = h (1.1, 2.2); 2296s B = gammainc (1.1, 2.2, 'upper'); 2296s assert (A, B) 2296s ***** test 2296s % round trip 2296s syms x a 2296s f = gammainc (x, a, 'lower'); 2296s h = function_handle (f, 'vars', [x a]); 2296s A = h (1.1, 2.2); 2296s B = gammainc (1.1, 2.2, 'lower'); 2296s assert (A, B) 2296s 22 tests, 22 passed, 0 known failure, 0 skipped 2296s [inst/@sym/isallconstant.m] 2296s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/isallconstant.m 2296s ***** assert (isallconstant([sym(1) 2 3])) 2296s ***** test 2296s syms x 2296s assert (~isallconstant([sym(1) x 3])) 2296s ***** test 2296s syms x 2296s assert (~isallconstant([sym(1) x; sym(2) 3])) 2297s 3 tests, 3 passed, 0 known failure, 0 skipped 2297s [inst/@sym/taylor.m] 2297s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/taylor.m 2297s ***** test 2297s syms x 2297s f = exp(x); 2297s expected = 1 + x + x^2/2 + x^3/6 + x^4/24 + x^5/120; 2297s assert (isequal (taylor(f), expected)) 2297s assert (isequal (taylor(f,x), expected)) 2297s assert (isequal (taylor(f,x,0), expected)) 2297s ***** test 2297s syms x 2297s f = exp(x); 2297s expected = 1 + x + x^2/2 + x^3/6 + x^4/24; 2297s assert (isequal (taylor(f,'order',5), expected)) 2297s assert (isequal (taylor(f,x,'order',5), expected)) 2297s assert (isequal (taylor(f,x,0,'order',5), expected)) 2298s ***** test 2298s % key/value ordering doesn't matter 2298s syms x 2298s f = exp(x); 2298s g1 = taylor(f, 'expansionPoint', 1, 'order', 3); 2298s g2 = taylor(f, 'order', 3, 'expansionPoint', 1); 2298s assert (isequal (g1, g2)) 2298s ***** test 2298s syms x 2298s f = x^2; 2298s assert (isequal (taylor(f,x,0,'order',0), 0)) 2298s assert (isequal (taylor(f,x,0,'order',1), 0)) 2298s assert (isequal (taylor(f,x,0,'order',2), 0)) 2298s assert (isequal (taylor(f,x,0,'order',3), x^2)) 2298s assert (isequal (taylor(f,x,0,'order',4), x^2)) 2299s ***** test 2299s syms x y 2299s f = exp(x)+exp(y); 2299s expected = 2 + x + x^2/2 + x^3/6 + x^4/24 + y + y^2/2 + y^3/6 + y^4/24; 2299s assert (isAlways(taylor(f,[x,y],'order',5)== expected)) 2299s assert (isAlways(taylor(f,[x,y],[0,0],'order',5) == expected)) 2300s ***** test 2300s % key/value ordering doesn't matter 2300s syms x 2300s f = exp(x); 2300s g1 = taylor(f, 'expansionPoint', 1, 'order', 3); 2300s g2 = taylor(f, 'order', 3, 'expansionPoint', 1); 2300s assert (isequal (g1, g2)) 2300s ***** test 2300s syms x 2300s f = x^2; 2300s assert (isequal (taylor(f,x,0,'order',0), 0)) 2300s assert (isequal (taylor(f,x,0,'order',1), 0)) 2300s assert (isequal (taylor(f,x,0,'order',2), 0)) 2300s assert (isequal (taylor(f,x,0,'order',3), x^2)) 2300s assert (isequal (taylor(f,x,0,'order',4), x^2)) 2300s ***** test 2300s % syms for a and order 2300s syms x 2300s f = x^2; 2300s assert (isequal (taylor(f,x,sym(0),'order',sym(2)), 0)) 2300s assert (isequal (taylor(f,x,sym(0),'order',sym(4)), x^2)) 2300s ***** test 2300s syms x y 2300s f = exp (x^2 + y^2); 2300s expected = 1+ x^2 +y^2 + x^4/2 + x^2*y^2 + y^4/2; 2300s assert (isAlways(taylor(f,[x,y],'order',5)== expected)) 2300s assert (isAlways(taylor(f,[x,y],'expansionPoint', [0,0],'order',5) == expected)) 2301s ***** test 2301s syms x y 2301s f = sqrt(1+x^2+y^2); 2301s expected = 1+ x^2/2 +y^2/2 - x^4/8 - x^2*y^2/4 - y^4/8; 2301s assert (isAlways(taylor(f,[x,y],'order',6)== expected)) 2301s assert (isAlways(taylor(f,[x,y],'expansionPoint', [0,0],'order',5) == expected)) 2302s ***** test 2302s syms x y 2302s f = sin (x^2 + y^2); 2302s 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; 2302s assert (isAlways(taylor(f,[x,y],'expansionPoint', [1,0],'order',3) == expected)) 2303s ***** test 2303s % key/value ordering doesn't matter 2303s syms x y 2303s f = exp(x+y); 2303s g1 = taylor(f, 'expansionPoint',1, 'order', 3); 2303s g2 = taylor(f, 'order', 3, 'expansionPoint',1); 2303s assert (isAlways(g1== g2)) 2303s ***** test 2303s syms x y 2303s f = x^2 + y^2; 2303s assert (isAlways(taylor(f,[x,y],[0,0],'order',0)== sym(0) )) 2303s assert (isAlways(taylor(f,[x,y],[0,0],'order',1)== sym(0) )) 2303s assert (isAlways(taylor(f,[x,y],[0,0],'order',2)== sym(0) )) 2303s assert (isAlways(taylor(f,[x,y],[0,0],'order',3)== sym(x^2 + y^2))) 2303s assert (isAlways(taylor(f,[x,y],[0,0],'order',4)== sym(x^2 + y^2))) 2303s ***** test 2303s % expansion point 2303s syms x a 2303s f = x^2; 2303s g = taylor(f,x,2); 2303s assert (isequal (simplify(g), f)) 2303s assert (isequal (g, 4*x+(x-2)^2-4)) 2303s g = taylor(f,x,a); 2303s assert (isequal (simplify(g), f)) 2304s ***** test 2304s % wrong order-1 series with nonzero expansion pt: 2304s % upstream bug https://github.com/sympy/sympy/issues/9351 2304s syms x 2304s g = x^2 + 2*x + 3; 2304s h = taylor (g, x, 4, 'order', 1); 2304s assert (isequal (h, 27)) 2304s ***** test 2304s syms x y z 2304s g = x^2 + 2*y + 3*z; 2304s h = taylor (g, [x,y,z], 'order', 4); 2304s assert (isAlways(h == g)) ; 2304s ***** test 2304s syms x y z 2304s g = sin(x*y*z); 2304s h = taylor (g, [x,y,z], 'order', 4); 2304s assert (isAlways(h == x*y*z)) ; 2304s ***** error 2304s syms x y 2304s taylor(0, [x, y], [1, 2, 3]); 2304s 18 tests, 18 passed, 0 known failure, 0 skipped 2304s [inst/@sym/isinf.m] 2304s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/isinf.m 2304s ***** shared x,zoo,oo,snan 2304s oo = sym(inf); 2304s zoo = sym('zoo'); 2304s x = sym('x'); 2304s snan = sym(nan); 2304s ***** test 2304s % various ops that give inf and nan 2304s assert (isinf(oo)) 2304s assert (isinf(zoo)) 2304s assert (isinf(oo+oo)) 2304s assert (~isinf(oo+zoo)) 2304s assert (~isinf(0*oo)) 2304s assert (~isinf(0*zoo)) 2304s assert (~isinf(snan)) 2304s assert (~isinf(oo-oo)) 2304s assert (~isinf(oo-zoo)) 2305s ***** test 2305s % arrays 2305s assert (isequal( isinf([oo zoo]), [1 1] )) 2305s assert (isequal( isinf([oo 1]), [1 0] )) 2305s assert (isequal( isinf([10 zoo]), [0 1] )) 2305s assert (isequal( isinf([x oo x]), [0 1 0] )) 2305s ***** test 2305s % Must not contain string 'symbol'; these all should make an 2305s % actual infinity. Actually a ctor test, not isinf. 2305s % IIRC, SMT in Matlab 2013b fails. 2305s oo = sym(inf); 2305s assert (isempty (strfind (sympy (oo), 'Symbol'))) 2305s oo = sym(-inf); 2305s assert (isempty (strfind (sympy (oo), 'Symbol'))) 2305s oo = sym('inf'); 2305s assert (isempty (strfind (sympy (oo), 'Symbol'))) 2305s oo = sym('-inf'); 2305s assert (isempty (strfind (sympy (oo), 'Symbol'))) 2305s oo = sym('Inf'); 2305s assert (isempty (strfind (sympy (oo), 'Symbol'))) 2305s ***** test 2305s % ops with infinity shouldn't collapse 2305s syms x oo zoo 2305s y = x + oo; 2305s assert (~isempty (strfind (lower (sympy (y)), 'add') )) 2305s y = x - oo; 2305s assert (~isempty (strfind (lower (sympy (y)), 'add') )) 2305s y = x - zoo; 2305s assert (~isempty (strfind (lower (sympy (y)), 'add') )) 2305s y = x*oo; 2305s assert (~isempty (strfind (lower (sympy (y)), 'mul') )) 2305s ***** test 2305s % ops with infinity are not necessarily infinite 2305s syms x oo zoo 2305s y = x + oo; 2305s assert(~isinf(y)) % SMT 2014a says "true", I disagree 2305s y = x - zoo; 2305s assert(~isinf(y)) 2305s y = x*oo; 2305s assert(~isinf(y)) 2305s 5 tests, 5 passed, 0 known failure, 0 skipped 2305s [inst/@sym/sym.m] 2305s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/sym.m 2305s ***** test 2305s % integers 2305s x = sym ('2'); 2305s y = sym (2); 2305s assert (isa (x, 'sym')) 2305s assert (isa (y, 'sym')) 2305s assert (isequal (x, y)) 2305s ***** test 2305s % infinity 2305s for x = {'inf', '-inf', inf, -inf, 'Inf'} 2305s y = sym (x{1}); 2305s assert (isa (y, 'sym')) 2305s assert (isinf (double (y))) 2305s assert (isinf (y)) 2305s end 2305s ***** test 2305s % pi 2305s x = sym ('pi'); 2305s assert (isa (x, 'sym')) 2305s assert (isequal (sin (x), sym (0))) 2305s assert (abs (double (x) - pi) < 2*eps ) 2305s x = sym (pi); 2305s assert (isa (x, 'sym')) 2305s assert (isequal (sin (x), sym (0))) 2305s assert (abs (double (x) - pi) < 2*eps ) 2305s ***** test 2305s % rationals 2305s x = sym(1) / 3; 2305s assert (isa (x, 'sym')) 2305s assert (isequal (3*x - 1, sym (0))) 2305s x = 1 / sym (3); 2305s assert (isa (x, 'sym')) 2305s assert (isequal (3*x - 1, sym (0))) 2305s x = sym ('1/3'); 2305s assert (isa (x, 'sym')) 2305s assert (isequal (3*x - 1, sym (0))) 2305s ***** test 2305s % passing small rationals 2305s x = sym ('1/2'); 2305s assert (double (x) == 1/2 ) 2305s assert (isequal (2*x, sym (1))) 2305s ***** warning x = sym (1/2); 2305s ***** test 2305s % passing small rationals w/o quotes: despite the warning, 2305s % it should work 2305s s = warning ('off', 'OctSymPy:sym:rationalapprox'); 2305s x = sym (1/2); 2305s warning (s) 2305s assert (double (x) == 1/2 ) 2305s assert (isequal (2*x, sym (1))) 2306s ***** test 2306s assert (isa (sym (pi), 'sym')) 2306s assert (isa (sym ('beta'), 'sym')) 2306s ***** test 2306s % sym from array 2306s D = [0 1; 2 3]; 2306s A = [sym(0) 1; sym(2) 3]; 2306s assert (isa (sym (D), 'sym')) 2306s assert (isequal (size (sym (D)), size (D))) 2306s assert (isequal (sym (D), A)) 2306s ***** test 2306s % more sym from array 2306s syms x 2306s A = [x x]; 2306s assert (isequal (sym (A), A)) 2306s A = [1 x]; 2306s assert (isequal (sym (A), A)) 2306s ***** test 2306s %% assumptions and clearing them 2306s clear variables % for matlab test script 2306s x = sym('x', 'real'); 2306s f = {x {2*x}}; 2306s asm = assumptions(); 2306s assert ( ~isempty(asm)) 2306s s = warning ('off', 'OctSymPy:deprecated'); 2306s x = sym('x', 'clear'); 2306s warning (s) 2306s asm = assumptions(); 2306s assert ( isempty(asm)) 2306s ***** test 2306s %% matlab compat, syms x clear should add x to workspace 2306s x = sym('x', 'real'); 2306s f = 2*x; 2306s clear x 2306s assert (~logical(exist('x', 'var'))) 2306s s = warning ('off', 'OctSymPy:deprecated'); 2306s x = sym('x', 'clear'); 2306s warning (s) 2306s assert (logical(exist('x', 'var'))) 2306s ***** test 2306s %% assumptions should work if x is already a sym 2306s x = sym('x'); 2306s x = sym(x, 'real'); 2306s assert (~isempty(assumptions(x))) 2306s ***** test 2306s %% likewise for clear 2306s x = sym('x', 'real'); 2306s f = 2*x; 2306s s = warning ('off', 'OctSymPy:deprecated'); 2306s x = sym(x, 'clear'); 2306s warning (s) 2306s assert (isempty(assumptions(x))) 2306s assert (isempty(assumptions(f))) 2306s ***** test 2306s % bool 2306s t = sym (false); 2306s t = sym (true); 2306s assert (logical (t)) 2306s ***** test 2306s % bool vec/mat 2306s a = sym (1); 2306s t = sym ([true false]); 2306s assert (isequal (t, [a == 1 a == 0])) 2306s t = sym ([true false; false true]); 2306s assert (isequal (t, [a == 1 a == 0; a == 0 a == 1])) 2307s ***** test 2307s % symbolic matrix 2307s A = sym ('A', [2 3]); 2307s assert (isa (A, 'sym')) 2307s assert (isequal (size (A), [2 3])) 2307s A(1, 1) = 7; 2307s assert (isa (A, 'sym')) 2307s A = A + 1; 2307s assert (isa (A, 'sym')) 2307s ***** test 2307s % symbolic matrix, symbolic but Integer size 2307s A = sym ('A', sym([2 3])); 2307s assert (isa (A, 'sym')) 2307s assert (isequal (size (A), [2 3])) 2307s ***** test 2307s % symbolic matrix, subs in for size 2307s syms n m integer 2307s A = sym ('A', [n m]); 2307s B = subs (A, [n m], [5 6]); 2307s assert (isa (B, 'sym')) 2307s assert (isequal (size (B), [5 6])) 2307s ***** error sym('2*a', [2 3]) 2307s ***** error sym(2*sym('a'), [2 3]) 2307s ***** error sym('1', [2 3]) 2307s ***** error sym(1, [2 3]) 2307s ***** error 2307s % TODO: symbolic tensor, maybe supported someday 2307s sym('a', [2 3 4]) 2307s ***** test 2307s % 50 shapes of empty 2307s a = sym (ones (0, 3)); 2307s assert (isa (a, 'sym')) 2307s assert (isequal (size (a), [0 3])) 2307s a = sym (ones (2, 0)); 2307s assert (isequal (size (a), [2 0])) 2307s a = sym ([]); 2307s assert (isequal (size (a), [0 0])) 2307s ***** test 2307s % moar empty 2307s a = sym ('a', [0 3]); 2307s assert (isa (a, 'sym')) 2307s assert (isequal (size (a), [0 3])) 2307s a = sym ('a', [2 0]); 2307s assert (isa (a, 'sym')) 2307s assert (isequal (size (a), [2 0])) 2307s ***** test 2307s % embedded sympy commands, various quotes, issue #143 2307s a = sym ('a'); 2307s a1 = sym ('Symbol("a")'); 2307s a2 = sym ('Symbol(''a'')'); 2307s assert (isequal (a, a1)) 2307s assert (isequal (a, a2)) 2307s % Octave only, and eval to hide from Matlab parser 2307s if exist ('OCTAVE_VERSION', 'builtin') 2307s eval( 'a3 = sym("Symbol(''a'')");' ); 2307s eval( 'a4 = sym("Symbol(\"a\")");' ); 2307s assert (isequal (a, a3)) 2307s assert (isequal (a, a4)) 2307s end 2307s :18: SyntaxWarning: invalid escape sequence '\(' 2307s :18: SyntaxWarning: invalid escape sequence '\(' 2307s :18: SyntaxWarning: invalid escape sequence '\(' 2307s :18: SyntaxWarning: invalid escape sequence '\(' 2307s ***** test 2307s % complex 2307s x = sym(1 + 2i); 2307s assert (isequal (x, sym(1)+sym(2)*1i)) 2307s ***** test 2307s % doubles bigger than int32 INTMAX should not fail 2307s d = 4294967295; 2307s a = sym (d); 2307s assert (isequal (double (a), d)) 2307s d = d + 123456; 2307s a = sym (d); 2307s assert (isequal (double (a), d)) 2307s ***** test 2307s % int32 integer types 2307s a = sym (100); 2307s b = sym (int32 (100)); 2307s assert (isequal (a, b)) 2307s ***** test 2307s % int32 MAXINT integers 2307s a = sym ('2147483647'); 2307s b = sym (int32 (2147483647)); 2307s assert (isequal (a, b)) 2307s a = sym ('-2147483647'); 2307s b = sym (int32 (-2147483647)); 2307s assert (isequal (a, b)) 2307s a = sym ('4294967295'); 2307s b = sym (uint32 (4294967295)); 2307s assert (isequal (a, b)) 2307s ***** test 2307s % int64 integer types 2307s a = sym ('123456789012345'); 2307s b = sym (int64(123456789012345)); 2307s c = sym (uint64(123456789012345)); 2307s assert (isequal (a, b)) 2307s assert (isequal (a, c)) 2307s ***** test 2307s % integer arrays 2307s a = int64 ([1 2 100]); 2307s s = sym (a); 2307s assert (isequal (double (a), [1 2 100])) 2307s ***** test 2307s % bigger int64 integer types 2307s q = int64 (123456789012345); 2307s w = 10000*q + 123; 2307s a = sym ('1234567890123450123'); 2307s b = sym (w); 2307s assert (isequal (a, b)) 2308s ***** test 2308s % sym(double) heuristic 2308s s = warning ('off', 'OctSymPy:sym:rationalapprox'); 2308s x = sym(2*pi/3); 2308s assert (isequal (x/sym(pi), sym(2)/3)) 2308s x = sym(22*pi); 2308s assert (isequal (x/sym(pi), sym(22))) 2308s x = sym(pi/123); 2308s assert (isequal (x/sym(pi), sym(1)/123)) 2308s warning (s) 2308s ***** test 2308s % sym(double) with 'r': no warning 2308s a = 0.1; 2308s x = sym(a, 'r'); 2308s assert (isequal (x, sym(1)/10)) 2308s ***** test 2308s % sym(double, 'f') 2308s a = 0.1; 2308s x = sym(a, 'f'); 2308s assert (~isequal (x, sym(1)/10)) 2308s assert (isequal (x, sym('3602879701896397')/sym('36028797018963968'))) 2308s ***** test 2308s x = sym(pi, 'f'); 2308s assert (~isequal (x, sym('pi'))) 2308s assert (isequal (x, sym('884279719003555')/sym('281474976710656'))) 2308s ***** test 2308s q = sym('3602879701896397')/sym('36028797018963968'); 2308s x = sym(1 + 0.1i, 'f'); 2308s assert (isequal (x, 1 + 1i*q)) 2308s x = sym(0.1 + 0.1i, 'f'); 2308s assert (isequal (x, q + 1i*q)) 2308s ***** test 2308s assert (isequal (sym(inf, 'f'), sym(inf))) 2308s assert (isequal (sym(-inf, 'f'), sym(-inf))) 2308s assert (isequaln (sym(nan, 'f'), sym(nan))) 2308s assert (isequal (sym(complex(inf, -inf), 'f'), sym(complex(inf, -inf)))) 2308s assert (isequaln (sym(complex(nan, inf), 'f'), sym(complex(nan, inf)))) 2308s assert (isequaln (sym(complex(-inf, nan), 'f'), sym(complex(-inf, nan)))) 2309s ***** test 2309s assert (isequal (sym (sqrt(2), 'r'), sqrt (sym (2)))) 2309s assert (isequal (sym (sqrt(12345), 'r'), sqrt (sym (12345)))) 2309s ***** test 2309s % symbols with special sympy names 2309s syms Ei Eq 2309s assert (~isempty (regexp (sympy (Eq), '^Symbol'))) 2309s assert (~isempty (regexp (sympy (Ei), '^Symbol'))) 2309s ***** test 2309s % more symbols with special sympy names 2309s x = sym('FF'); 2309s assert (~isempty (regexp (x.pickle, '^Symbol'))) 2309s x = sym('ff'); 2309s assert (~isempty (regexp (x.pickle, '^Symbol'))) 2309s ***** test 2309s % E can be a sym not just exp(sym(1)) 2309s syms E 2309s assert (~logical (E == exp(sym(1)))) 2309s ***** test 2309s % e can be a symbol, not exp(sym(1)) 2309s syms e 2309s assert (~ logical (e == exp(sym(1)))) 2309s ***** test 2309s % double e 2309s x = sym (exp (1)); 2309s y = exp (sym (1)); 2309s assert (isequal (x, y)) 2309s if (exist ('OCTAVE_VERSION', 'builtin')) 2309s x = sym (e); 2309s assert (isequal (x, y)) 2309s end 2309s ***** test 2309s x = sym (-exp (1)); 2309s y = -exp (sym (1)); 2309s assert (isequal (x, y)) 2309s ***** assert (~ isequal (sym (exp(1)), sym (exp(1), 'f'))) 2309s ***** warning sym (1e16); 2309s ***** warning sym (-1e16); 2309s ***** warning sym (10.33); 2309s ***** warning sym (-5.23); 2309s ***** warning sym (sqrt (1.4142135623731)); 2309s ***** error 2309s x = sym ('x', 'positive2'); 2309s ***** error 2309s x = sym ('x', 'integer', 'positive2'); 2309s ***** error 2309s x = sym ('x', 'integer2', 'positive'); 2309s ***** error 2309s x = sym ('-pi', 'positive') 2309s ***** error 2309s x = sym ('pi', 'integer') 2309s ***** test 2309s % multiple assumptions 2309s n = sym ('n', 'negative', 'even'); 2309s a = assumptions (n); 2309s assert (strcmp (a, 'n: negative, even') || strcmp (a, 'n: even, negative')) 2309s ***** error 2309s % multiple assumptions as a list 2309s % TODO: should this be allowed? 2309s n = sym ('n', {'negative', 'even'}); 2309s a = assumptions (n); 2309s assert (strcmp (a, 'n: negative, even') || strcmp (a, 'n: even, negative')) 2309s ***** error 2309s n = sym ('n', {{'negative', 'even'}}); 2309s ***** test 2309s % save/load sym objects 2309s syms x 2309s y = 2*x; 2309s a = 42; 2309s myfile = tempname (); 2309s save (myfile, 'x', 'y', 'a') 2309s clear x y a 2309s load (myfile) 2309s assert (isequal (y, 2*x)) 2309s assert (a == 42) 2309s if (exist ('OCTAVE_VERSION', 'builtin')) 2309s assert (unlink (myfile) == 0) 2309s else 2309s delete ([myfile '.mat']) 2309s end 2310s ***** test 2310s a = sym ('2.1'); 2310s b = sym (21) / 10; 2310s %% https://github.com/sympy/sympy/issues/11703 2310s assert (pycall_sympy__ ('return _ins[0] == _ins[1] and hash(_ins[0]) == hash(_ins[1])', a, b)) 2310s ***** test 2310s % issue #706 2310s a = sym('Float("1.23")'); 2310s assert (~ isempty (strfind (char (a), '.'))) 2310s :18: SyntaxWarning: invalid escape sequence '\(' 2310s ***** assert (isequal (sym({1 2 'a'}), [sym(1) sym(2) sym('a')])); 2310s ***** error sym({1 2 'a'}, 'positive'); 2310s ***** error sym({'a' 'b'}, 'positive'); 2310s ***** test 2310s a = sym ('--1'); 2310s b = sym ('---1'); 2310s assert (isequal (a, sym (1))) 2310s assert (isequal (b, sym (-1))) 2310s ***** test 2310s % num2cell works on sym arrays 2310s syms x 2310s C1 = num2cell ([x 2 3; 4 5 6*x]); 2310s assert (iscell (C1)) 2310s assert (isequal (size (C1), [2 3])) 2310s assert (isequal (C1{1,1}, x)) 2310s assert (isequal (C1{2,3}, 6*x)) 2310s assert (isequal (C1{1,3}, sym(3))) 2310s assert (isa (C1{1,3}, 'sym')) 2310s ***** test 2310s % function_handle 2310s f = @(x, y) y*sin(x); 2310s syms x y 2310s assert (isequal (sym (f), y*sin(x))); 2310s f = @(x) 42; 2310s assert (isequal (sym (f), sym (42))); 2310s f = @() 42; 2310s assert (isequal (sym (f), sym (42))); 2310s :18: SyntaxWarning: invalid escape sequence '\(' 2310s :18: SyntaxWarning: invalid escape sequence '\(' 2310s :18: SyntaxWarning: invalid escape sequence '\(' 2310s ***** error 2310s % function_handle 2310s f = @(x) A*sin(x); 2310s sym (f) 2310s :18: SyntaxWarning: invalid escape sequence '\(' 2310s ***** test 2310s % Issue #885 2310s clear f x % if test not isolated (e.g., on matlab) 2310s syms x 2310s f(x) = sym('S(x)'); 2310s f(x) = sym('I(x)'); 2310s f(x) = sym('O(x)'); 2310s :18: SyntaxWarning: invalid escape sequence '\(' 2310s :18: SyntaxWarning: invalid escape sequence '\(' 2310s :18: SyntaxWarning: invalid escape sequence '\(' 2310s ***** test 2310s % sym(sympy(x) == x identity, Issue #890 2310s syms x 2310s f = exp (1i*x); 2310s s = sympy (f); 2310s g = sym (s); 2310s assert (isequal (f, g)) 2311s :18: SyntaxWarning: invalid escape sequence '\(' 2311s ***** test 2311s % sym(sympy(x) == x identity 2311s % Don't mistake "pi" (which is "srepr(S.Pi)") for a symfun variable 2311s f = sym ('ff(pi, pi)'); 2311s s1 = sympy (f); 2311s s2 = 'FallingFactorial(pi, pi)'; 2311s assert (strcmp (s1, s2)) 2311s :18: SyntaxWarning: invalid escape sequence '\(' 2311s ***** test 2311s % sym(sympy(x) == x identity 2311s % Don't mistake "I" (which is "srepr(S.ImaginaryUnit)") for a symfun variable 2311s f = sym ('sin(I)'); 2311s g = 1i*sinh (sym (1)); 2311s assert (isequal (f, g)) 2311s s = sympy (f); 2311s assert (isempty (strfind (s, 'Function'))) 2311s :18: SyntaxWarning: invalid escape sequence '\(' 2311s ***** error 2311s % sym(sympy(x) == x identity 2311s % Don't mistake "true/false" (which is "srepr(S.true)") for a symfun variable 2311s % (Used to print as `S.true` but just `true` in sympy 1.2) 2311s sym ('E(true,false)') 2311s :18: SyntaxWarning: invalid escape sequence '\(' 2311s ***** test 2311s % some variable names that are special to sympy but should not be for us 2311s f = sym ('f(S, Q, C, O, N)'); 2311s s1 = sympy (f); 2311s s2 = 'Function(''f'')(Symbol(''S''), Symbol(''Q''), Symbol(''C''), Symbol(''O''), Symbol(''N''))'; 2311s assert (strcmp (s1, s2)) 2311s :18: SyntaxWarning: invalid escape sequence '\(' 2311s ***** test 2311s % For SMT 2014 compatibilty, I and E would become ImaginaryUnit and Exp(1) 2311s % but I'm not sure this is by design. This test would need to change if 2311s % we want stricter SMT compatibilty. 2311s f = sym ('f(x, I, E)'); 2311s s1 = sympy (f); 2311s s2 = 'Function(''f'')(Symbol(''x''), Symbol(''I''), Symbol(''E''))'; 2311s assert (strcmp (s1, s2)) 2311s :18: SyntaxWarning: invalid escape sequence '\(' 2311s ***** test 2311s % not the identity, force symfun 2311s f = sym ('FF(w)'); 2311s s1 = sympy (f); 2311s s2 = 'Function(''FF'')(Symbol(''w''))'; 2311s assert (strcmp (s1, s2)) 2311s :18: SyntaxWarning: invalid escape sequence '\(' 2311s ***** test 2311s % not the identity, force symfun 2311s f = sym ('FF(w, pi)'); 2311s s1 = sympy (f); 2311s s2 = 'Function(''FF'')(Symbol(''w''), pi)'; 2311s assert (strcmp (s1, s2)) 2311s :18: SyntaxWarning: invalid escape sequence '\(' 2311s ***** test 2311s % not the identity, force symfun 2311s f = sym ('ff(x, y)'); 2311s s1 = sympy (f); 2311s s2 = 'Function(''ff'')(Symbol(''x''), Symbol(''y''))'; 2311s assert (strcmp (s1, s2)) 2311s :18: SyntaxWarning: invalid escape sequence '\(' 2311s ***** test 2311s % But this one should satisfy "sym(sympy(x) == x" identity 2311s % (OOTB, SymPy has ff -> FallingFactorial) 2311s f = sym ('FallingFactorial(x, y)'); 2311s s1 = sympy (f); 2311s s2 = 'FallingFactorial(Symbol(''x''), Symbol(''y''))'; 2311s assert (strcmp (s1, s2)) 2311s :18: SyntaxWarning: invalid escape sequence '\(' 2311s 82 tests, 82 passed, 0 known failure, 0 skipped 2311s [inst/@sym/pochhammer.m] 2311s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/pochhammer.m 2311s ***** error pochhammer (sym(1)) 2311s ***** error pochhammer (sym(1), 2, 3) 2311s ***** assert (isequal (pochhammer (sym(3), 4), sym(360))) 2311s ***** assert (isequal (pochhammer (sym([2 3]), 3), sym([24 60]))) 2311s ***** test 2311s % round trip 2311s syms n z 2311s f = pochhammer (z, n); 2311s h = function_handle (f, 'vars', [z n]); 2311s A = h (1.1, 2.2); 2311s B = pochhammer (1.1, 2.2); 2311s assert (A, B) 2311s 5 tests, 5 passed, 0 known failure, 0 skipped 2311s [inst/@sym/acsc.m] 2311s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/acsc.m 2311s ***** error acsc (sym(1), 2) 2311s ***** assert (isequaln (acsc (sym(nan)), sym(nan))) 2311s ***** shared x, d 2311s d = 1; 2311s x = sym('1'); 2311s ***** test 2311s f1 = acsc(x); 2311s f2 = acsc(d); 2311s assert( abs(double(f1) - f2) < 1e-15 ) 2311s ***** test 2311s D = [d d; d d]; 2311s A = [x x; x x]; 2311s f1 = acsc(A); 2311s f2 = acsc(D); 2311s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2312s ***** test 2312s % round trip 2312s y = sym('y'); 2312s A = acsc (d); 2312s f = acsc (y); 2312s h = function_handle (f); 2312s B = h (d); 2312s assert (A, B, -eps) 2312s 5 tests, 5 passed, 0 known failure, 0 skipped 2312s [inst/@sym/expand.m] 2312s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/expand.m 2312s ***** test 2312s syms x 2312s assert (logical (x^2 + 6*x + 5 == expand ((x+5)*(x+1)))) 2312s assert (isequal (x^2 + 6*x + 5, expand ((x+5)*(x+1)))) 2312s ***** test 2312s % array 2312s syms x 2312s assert (isequal (expand ([x (x+1)*x]), [x x^2+x])) 2312s 2 tests, 2 passed, 0 known failure, 0 skipped 2312s [inst/@sym/laguerreL.m] 2312s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/laguerreL.m 2312s ***** shared x 2312s syms x 2312s ***** assert (isequal (laguerreL(0, x), sym(1))) 2312s ***** assert (isequal (laguerreL(1, x), 1-x)) 2312s ***** assert (isequal (laguerreL(2, x), x^2/2 - 2*x + 1)) 2312s ***** error laguerreL(x) 2313s ***** error laguerreL(1, 2, x, 3) 2313s ***** shared 2313s ***** test 2313s if (pycall_sympy__ ('return Version(spver) > Version("1.4")')) 2313s syms x 2313s assert (isequal (laguerreL (-3, x), exp(x)*(x^2/2 + 2*x + 1))) 2313s end 2313s ***** test 2313s syms x n 2313s L = laguerreL([2 n], x); 2313s expected = [laguerreL(2, x) laguerreL(n, x)]; 2313s assert (isequal (L, expected)) 2313s ***** test 2313s syms x y 2313s L = laguerreL([1; 2], [x; y]); 2313s expected = [laguerreL(1, x); laguerreL(2, y)]; 2313s assert (isequal (L, expected)) 2313s ***** test 2313s syms x n 2313s assert (isequal (laguerreL(n, 0, x), laguerreL(n, x))) 2313s ***** shared x, y, n 2313s syms x y n 2313s ***** assert (isequal (laguerreL([1 n], 0, x), laguerreL([1 n], x))) 2313s ***** test 2313s L = laguerreL([1; n], [pi; 0], [x; y]); 2313s expected = [laguerreL(1, pi, x); laguerreL(n, 0, y)]; 2313s assert (isequal (L, expected)) 2313s ***** test 2313s L = laguerreL([1 n], [pi 0], x); 2313s expected = [laguerreL(1, pi, x) laguerreL(n, 0, x)]; 2313s assert (isequal (L, expected)) 2314s ***** test 2314s L = laguerreL([1 n], pi, [x y]); 2314s expected = [laguerreL(1, pi, x) laguerreL(n, pi, y)]; 2314s assert (isequal (L, expected)) 2314s ***** test 2314s L = laguerreL(1, [pi 0], [x y]); 2314s expected = [laguerreL(1, pi, x) laguerreL(1, 0, y)]; 2314s assert (isequal (L, expected)) 2314s ***** test 2314s L = laguerreL([1 n], pi, x); 2314s expected = [laguerreL(1, pi, x) laguerreL(n, pi, x)]; 2314s assert (isequal (L, expected)) 2314s ***** test 2314s L = laguerreL(1, [pi 0], x); 2314s expected = [laguerreL(1, pi, x) laguerreL(1, 0, x)]; 2314s assert (isequal (L, expected)) 2314s ***** test 2314s L = laguerreL(1, pi, [x y]); 2314s expected = [laguerreL(1, pi, x) laguerreL(1, pi, y)]; 2314s assert (isequal (L, expected)) 2314s ***** test 2314s % round trip 2314s f = laguerreL (n, x); 2314s h = function_handle (f); 2314s A = h (1, 3.2); 2314s B = laguerreL (1, 3.2); 2314s assert (A, B) 2314s A = h ([1 2], [3.3 4.4]); 2314s B = laguerreL ([1 2], [3.3 4.4]); 2314s assert (A, B) 2314s ***** error 2314s % round trip 2314s f = laguerreL (n, y, x); 2314s h = function_handle (f); 2314s 19 tests, 19 passed, 0 known failure, 0 skipped 2314s [inst/@sym/toeplitz.m] 2314s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/toeplitz.m 2314s ***** test 2314s % rect 2314s R = [10 20 40]; C = [10 30]; 2314s A = sym(toeplitz(R,C)); 2314s B = toeplitz(sym(R),sym(C)); 2314s assert (isequal (A, B)) 2314s R = [10 20]; C = [10 30 50]; 2314s A = sym(toeplitz(R,C)); 2314s B = toeplitz(sym(R),sym(C)); 2314s assert (isequal (A, B)) 2315s ***** test 2315s % symbols 2315s syms x y 2315s R = [10 20 40]; C = [10 30]; 2315s Rs = [10 x 40]; Cs = [10 y]; 2315s A = toeplitz(R,C); 2315s B = toeplitz(Rs,Cs); 2315s assert (isequal (A, subs(B,[x,y],[20 30]))) 2315s ***** test 2315s % hermitian 2315s syms a b c 2315s A = [a b c; conj(b) a b; conj(c) conj(b) a]; 2315s B = toeplitz([a,b,c]); 2315s assert (isequal( A, B)) 2315s ***** warning 2315s % mismatch 2315s syms x 2315s B = toeplitz([10 x], [1 3 x]); 2315s ***** warning 2315s % scalar 2315s B = toeplitz(sym(2), 3); 2315s assert (isequal (B, sym(2))) 2316s ***** test 2316s % mismatch 2316s syms x y 2316s fprintf('\n one warning expected\n') % how to quiet this one? 2316s A = toeplitz([10 2], [1 3 5]); 2316s s = warning ('off', 'OctSymPy:toeplitz:diagconflict'); 2316s B = toeplitz([10 x], [1 3 y]); 2316s warning(s) 2316s assert (isequal (A, subs(B, [x,y], [2 5]))) 2316s 2316s one warning expected 2316s warning: toeplitz: column wins diagonal conflict 2316s warning: called from 2316s toeplitz at line 84 column 7 2316s __test__ at line 6 column 4 2316s test at line 682 column 11 2316s /tmp/tmp.uuilcrPSkw at line 2334 column 31 2316s 2316s 6 tests, 6 passed, 0 known failure, 0 skipped 2316s [inst/@sym/trace.m] 2316s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/trace.m 2316s ***** test 2316s % scalar 2316s syms x 2316s assert (isequal (trace(x), x)) 2316s ***** test 2316s syms x 2316s A = [x 3; 2*x 5]; 2316s assert (isequal (trace(A), x + 5)) 2316s 2 tests, 2 passed, 0 known failure, 0 skipped 2316s [inst/@sym/pinv.m] 2316s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/pinv.m 2316s ***** test 2316s % scalar 2316s syms x 2316s assert (isequal (pinv(x), 1/x)) 2316s ***** test 2316s % 2x3 2316s A = [1 2 3; 4 5 6]; 2316s assert (max (max (abs (double (pinv (sym (A))) - pinv(A)))) <= 10*eps) 2316s 2 tests, 2 passed, 0 known failure, 0 skipped 2316s [inst/@sym/log2.m] 2316s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/log2.m 2316s ***** assert (isequal (log2 (sym (1024)), sym (10))) 2316s ***** assert (isequal (log2 (sym ([2 16; 32 1])), sym ([1 4; 5 0]))) 2317s ***** test 2317s % round-trip 2317s syms x 2317s f = log2 (x); 2317s h = function_handle (f); 2317s A = h (1.1); 2317s B = log2 (1.1); 2317s assert (A, B, -5*eps) 2317s 3 tests, 3 passed, 0 known failure, 0 skipped 2317s [inst/@sym/subs.m] 2317s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/subs.m 2317s ***** error subs (sym(1), 2, 3, 4) 2317s ***** shared x,y,t,f 2317s syms x y t 2317s f = x*y; 2317s ***** test 2317s assert( isequal( subs(f, x, y), y^2 )) 2317s assert( isequal( subs(f, y, sin(x)), x*sin(x) )) 2317s assert( isequal( subs(f, x, 16), 16*y )) 2317s ***** test 2317s % multiple subs w/ cells 2317s assert( isequal( subs(f, {x}, {t}), y*t )) 2317s assert( isequal( subs(f, {x y}, {t t}), t*t )) 2317s assert( isequal( subs(f, {x y}, {t 16}), 16*t )) 2317s assert( isequal( subs(f, {x y}, {16 t}), 16*t )) 2317s assert( isequal( subs(f, {x y}, {2 16}), 32 )) 2317s ***** test 2317s % multiple subs w/ vectors 2317s assert( isequal( subs(f, [x y], [t t]), t*t )) 2317s assert( isequal( subs(f, [x y], [t 16]), 16*t )) 2317s assert( isequal( subs(f, [x y], [2 16]), 32 )) 2317s ***** test 2317s % anything you can think of 2317s assert( isequal( subs(f, [x y], {t t}), t*t )) 2317s assert( isequal( subs(f, {x y}, [t t]), t*t )) 2317s assert( isequal( subs(f, {x; y}, [t; t]), t*t )) 2318s ***** test 2318s % sub in doubles gives sym (matches SMT 2013b) 2318s % FIXME: but see 2318s % http://www.mathworks.co.uk/help/symbolic/gradient.html 2318s assert( isequal( subs(f, {x y}, {2 pi}), 2*sym(pi) )) 2318s assert( ~isa(subs(f, {x y}, {2 pi}), 'double')) 2318s assert( isa(subs(f, {x y}, {2 pi}), 'sym')) 2318s assert( isa(subs(f, {x y}, {2 sym(pi)}), 'sym')) 2318s assert( isa(subs(f, {x y}, {sym(2) sym(pi)}), 'sym')) 2318s ***** shared x,y,t,f,F 2318s syms x y t 2318s f = sin(x)*y; 2318s F = [f; 2*f]; 2318s ***** test 2318s % need the simultaneous=True flag in SymPy (matches SMT 2013b) 2318s assert( isequal( subs(f, [x t], [t 6]), y*sin(t) )) 2318s assert( isequal( subs(F, [x t], [t 6]), [y*sin(t); 2*y*sin(t)] )) 2318s ***** test 2318s % swap x and y (also needs simultaneous=True 2318s assert( isequal( subs(f, [x y], [y x]), x*sin(y) )) 2318s ***** test 2318s % but of course both x and y to t still works 2318s assert( isequal( subs(f, [x y], [t t]), t*sin(t) )) 2318s ***** shared 2318s ***** test 2318s % Issue #10, subbing matrices in for scalars 2318s syms y 2318s a = sym([1 2; 3 4]); 2318s f = sin(y); 2318s g = subs(f, y, a); 2318s assert (isequal (g, sin(a))) 2318s ***** test 2318s % Issue #10, subbing matrices in for scalars 2318s syms y 2318s a = sym([1 2]); 2318s g = subs(sin(y), {y}, {a}); 2318s assert (isequal (g, sin(a))) 2318s ***** test 2318s % Issue #10, subbing matrices in for scalars 2318s syms y 2318s a = sym([1; 2]); 2318s g = subs(sin(y), {y}, a); 2318s assert (isequal (g, sin(a))) 2318s ***** test 2318s % Issue #10, subbing matrices in for scalars 2318s syms y 2318s a = [10 20 30]; 2318s f = 2*y; 2318s g = subs(f, y, a); 2318s assert (isequal (g, 2*a)) 2318s assert (isa (g, 'sym')) 2319s ***** test 2319s % Issue #10, sub matrices in for two scalars 2319s syms x y 2319s a = [10 20 30]; 2319s f = x^2*y; 2319s g = subs(f, {x y}, {a a+1}); 2319s h = a.^2.*(a+1); 2319s assert (isequal (g, h)) 2319s ***** test 2319s % Issue #10, sub matrices in for two scalars 2319s syms x y z 2319s a = [10 20 30]; 2319s f = x^2*y; 2319s g = subs(f, {x y}, {a z}); 2319s h = a.^2*z; 2319s assert (isequal (g, h)) 2319s g = subs(f, {x y}, {a 6}); 2319s h = a.^2*6; 2319s assert (isequal (g, h)) 2319s ***** error 2319s syms x y 2319s a = [10 20 30]; 2319s f = x^2*y; 2319s g = subs(f, {x y}, {[10 20 30] [10 20]}); 2319s ***** test 2319s % two inputs 2319s syms x y 2319s assert (isequal (subs (2*x, 6), sym(12))) 2319s assert (isequal (subs (2*x*y^2, 6), 12*y^2)) 2319s assert (isequal (subs (2*y, 6), sym(12))) 2319s assert (isequal (subs (sym(2), 6), sym(2))) 2320s ***** test 2320s % only two inputs, vector 2320s syms x 2320s assert (isequal (subs (2*x, [3 5]), sym([6 10]))) 2320s ***** test 2320s % SMT compat, subbing in vec/mat for nonexist x 2320s syms x y z 2320s % you might think this would be y: 2320s assert (~ isequal (subs (y, x, [1 2]), y)) 2320s % but it gives two y's: 2320s assert (isequal (subs (y, x, [1 2]), [y y])) 2320s assert (isequal (subs (sym(42), [3 5]), sym([42 42]))) 2320s assert (isequal (subs (sym(42), x, []), sym([]))) 2320s assert (isequal (subs (y, {x y}, {[1 2; 3 4], 6}), sym([6 6; 6 6]))) 2320s assert (isequal (subs (y, {x z}, {[1 2; 3 4], 6}), [y y; y y])) 2320s ***** test 2320s syms x y 2320s assert (isequal (subs (sym(42), x, y), sym(42))) 2320s assert (isequal (subs (sym(42), y), sym(42))) 2320s assert (isequal (subs (sym(42)), sym(42))) 2321s ***** test 2321s % empty lists 2321s assert (isequal (subs (sym(42), {}, {}), sym(42))) 2321s assert (isequal (subs (42, sym([]), sym([])), sym(42))) 2321s ***** test 2321s syms x y 2321s f = x*y; 2321s x = 6; y = 7; 2321s g = subs (f); 2321s assert (isequal (g, sym (42))) 2321s assert (isa (g, 'sym')) 2321s ***** test 2321s syms x y 2321s f = x*y; 2321s x = 6; 2321s g = subs (f); 2321s assert (isequal (g, 6*y)) 2321s ***** test 2321s syms x y 2321s f = x*y; 2321s xsave = x; 2321s x = 6; 2321s g = subs (f); 2321s assert (isequal (g, 6*y)) 2321s assert (isequal (f, xsave*y)) 2321s ***** test 2321s syms a x y 2321s f = a*x*y; 2321s a = 6; 2321s clear x 2321s g = subs (f); 2321s syms x 2321s assert (isequal (g, 6*x*y)) 2321s 25 tests, 25 passed, 0 known failure, 0 skipped 2321s [inst/@sym/isequal.m] 2321s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/isequal.m 2321s ***** test 2321s a = sym([1 2]); 2321s b = a; 2321s assert (isequal (a, b)) 2321s b(1) = 42; 2321s assert (~isequal (a, b)) 2321s ***** test 2321s a = sym([1 2; 3 4]); 2321s b = a; 2321s assert (isequal (a, b)) 2321s b(1) = 42; 2321s assert (~isequal (a, b)) 2322s ***** test 2322s a = sym([nan; 2]); 2322s b = a; 2322s assert (~isequal (a, b)) 2322s ***** test 2322s % proper nan treatment 2322s a = sym([nan 2; 3 4]); 2322s b = a; 2322s assert (~isequal (a, b)) 2322s ***** test 2322s % more than two arrays 2322s a = sym([1 2 3]); 2322s b = a; 2322s c = a; 2322s assert (isequal (a, b, c)) 2322s c(1) = 42; 2322s assert (~isequal (a, b, c)) 2322s 5 tests, 5 passed, 0 known failure, 0 skipped 2322s [inst/@sym/isempty.m] 2322s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/isempty.m 2322s ***** shared se, a 2322s se = sym ([]); 2322s a = sym ([1 2]); 2322s ***** assert (~isempty (sym (1))) 2322s ***** assert (isempty (sym (se))) 2322s ***** assert (isempty (se == [])) 2322s ***** test 2322s ***** test se(1) = 10; 2322s ***** test assert ( isa (se, 'sym')) 2322s ***** test assert ( isequal (se, 10)) 2322s ***** shared 2322s ***** test 2322s % empty matrices 2322s A = sym('A', [3 0]); 2322s assert (isempty (A)) 2322s A = sym(ones(3,0)); 2322s assert (isempty (A)) 2322s ***** test 2322s % non-empty symbolic-size matrices 2322s syms n integer 2322s A = sym('A', [3 n]); 2322s assert (~isempty (A)) 2322s ***** xtest 2322s % empty symbolic-size matrices 2322s % FIXME: will fail until size stop lying by saying 1x1 2322s syms n integer 2322s A = sym('A', [0 n]); 2322s assert (isempty (A)) 2322s A = sym('A', [n 0]); 2322s assert (isempty (A)) 2322s !!!!! known failure 2322s assert (isempty (A)) failed 2322s 10 tests, 9 passed, 1 known failure, 0 skipped 2322s [inst/@sym/cat.m] 2322s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/cat.m 2322s ***** test 2322s % mostly tested in horzcat, vertcat: one for good measure 2322s syms x 2322s assert (isequal (cat(1, x, x), [x x])) 2322s assert (isequal (cat(2, x, x), [x; x])) 2322s ***** error cat(3, sym(2), sym(3)) 2322s ***** error cat(0, sym(2), sym(3)) 2323s 3 tests, 3 passed, 0 known failure, 0 skipped 2323s [inst/@sym/private_disp_name.m] 2323s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/private_disp_name.m 2323s ***** test 2323s syms x 2323s s = private_disp_name(x, 'x'); 2323s assert (strcmp (s, 'x')) 2323s 1 test, 1 passed, 0 known failure, 0 skipped 2323s [inst/@sym/eig.m] 2323s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/eig.m 2323s ***** test 2323s % basic 2323s A = [1 2; 3 4]; 2323s B = sym(A); 2323s sd = eig(A); 2323s s = eig(B); 2323s s2 = double(s); 2323s assert (norm(sort(s2) - sort(sd)) <= 10*eps) 2323s ***** test 2323s % scalars 2323s syms x 2323s a = sym(-10); 2323s assert (isequal (eig(a), a)) 2323s assert (isequal (eig(x), x)) 2323s ***** test 2323s % diag, multiplicity 2323s A = diag([6 6 7]); 2323s B = sym(A); 2323s e = eig(B); 2323s assert (isequal (size (e), [3 1])) 2323s assert (sum(logical(e == 6)) == 2) 2323s assert (sum(logical(e == 7)) == 1) 2324s ***** test 2324s % matrix with symbols 2324s syms x y positive 2324s A = [x+9 y; sym(0) 6]; 2324s s = eig(A); 2324s s = simplify(s); 2324s assert (isequal (s, [x+9; 6]) || isequal (s, [6; x+9])) 2324s ***** test 2324s % eigenvects 2324s e = sym([5 5 5 6 7]); 2324s A = diag(e); 2324s [V, D] = eig(A); 2324s assert (isequal (diag(D), e.')) 2324s assert (isequal (V, diag(sym([1 1 1 1 1])))) 2324s ***** test 2324s % alg/geom mult, eigenvects 2324s e = sym([5 5 5 6]); 2324s A = diag(e); 2324s A(1,2) = 1; 2324s [V, D] = eig(A); 2324s assert (isequal (diag(D), e.')) 2324s assert (sum(logical(V(1,:) ~= 0)) == 2) 2324s assert (sum(logical(V(2,:) ~= 0)) == 0) 2324s assert (sum(logical(V(3,:) ~= 0)) == 1) 2324s assert (sum(logical(V(4,:) ~= 0)) == 1) 2324s 6 tests, 6 passed, 0 known failure, 0 skipped 2324s [inst/@sym/besselk.m] 2324s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/besselk.m 2324s ***** test 2324s X = [1 2 3; 4 5 6]; 2324s ns = [sym(0) 1 -2; sym(1)/2 -sym(3)/2 pi]; 2324s n = double(ns); 2324s A = double(besselk(ns, X)); 2324s B = besselk(n, X); 2324s assert (all (all (abs (A - B) < 2*eps*abs(A)))) 2325s ***** test 2325s % roundtrip 2325s syms x 2325s A = besselk(2, 10); 2325s q = besselk(2, x); 2325s h = function_handle(q); 2325s B = h(10); 2325s assert (abs (A - B) <= eps*abs(A)) 2325s ***** error besselk(sym('x')) 2326s 3 tests, 3 passed, 0 known failure, 0 skipped 2326s [inst/@sym/abs.m] 2326s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/abs.m 2326s ***** error abs (sym(1), 2) 2326s ***** assert (isequaln (abs (sym(nan)), sym(nan))) 2326s ***** shared x, d 2326s d = -1; 2326s x = sym('-1'); 2326s ***** test 2326s f1 = abs(x); 2326s f2 = abs(d); 2326s assert( abs(double(f1) - f2) < 1e-15 ) 2326s ***** test 2326s D = [d d; d d]; 2326s A = [x x; x x]; 2326s f1 = abs(A); 2326s f2 = abs(D); 2326s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2326s ***** test 2326s % round trip 2326s y = sym('y'); 2326s A = abs (d); 2326s f = abs (y); 2326s h = function_handle (f); 2326s B = h (d); 2326s assert (A, B, -eps) 2326s 5 tests, 5 passed, 0 known failure, 0 skipped 2326s [inst/@sym/isequaln.m] 2326s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/isequaln.m 2326s ***** test 2326s a = sym([1 2]); 2326s b = a; 2326s assert (isequaln (a, b)) 2326s b(1) = 42; 2326s assert (~isequaln (a, b)) 2326s ***** test 2326s a = sym([1 2; 3 4]); 2326s b = a; 2326s assert (isequaln (a, b)) 2326s b(1) = 42; 2326s assert (~isequaln (a, b)) 2326s ***** test 2326s a = sym([nan; 2]); 2326s b = a; 2326s assert (isequaln (a, b)) 2326s ***** test 2326s a = sym([nan 2; 3 4]); 2326s b = a; 2326s assert (isequaln (a, b)) 2326s ***** test 2326s % more than two arrays 2326s a = sym([nan 2 3]); 2326s b = a; 2326s c = a; 2326s assert (isequaln (a, b, c)) 2326s c(1) = 42; 2326s assert (~isequaln (a, b, c)) 2326s 5 tests, 5 passed, 0 known failure, 0 skipped 2326s [inst/@sym/sech.m] 2326s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/sech.m 2326s ***** error sech (sym(1), 2) 2326s ***** assert (isequaln (sech (sym(nan)), sym(nan))) 2326s ***** shared x, d 2326s d = 1; 2326s x = sym('1'); 2326s ***** test 2326s f1 = sech(x); 2326s f2 = sech(d); 2326s assert( abs(double(f1) - f2) < 1e-15 ) 2326s ***** test 2326s D = [d d; d d]; 2326s A = [x x; x x]; 2326s f1 = sech(A); 2326s f2 = sech(D); 2326s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2327s ***** test 2327s % round trip 2327s y = sym('y'); 2327s A = sech (d); 2327s f = sech (y); 2327s h = function_handle (f); 2327s B = h (d); 2327s assert (A, B, -eps) 2327s 5 tests, 5 passed, 0 known failure, 0 skipped 2327s [inst/@sym/sum.m] 2327s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/sum.m 2327s ***** error sum (sym(1), 2, 3) 2327s ***** error sum (sym(1), 42) 2327s ***** shared x,y,z 2327s syms x y z 2327s ***** assert (isequal (sum (x), x)) 2327s ***** assert (isequal (sum ([x y z]), x+y+z)) 2327s ***** assert (isequal (sum ([x; y; z]), x+y+z)) 2328s ***** assert (isequal (sum ([x y z], 1), [x y z])) 2328s ***** assert (isequal (sum ([x y z], 2), x+y+z)) 2328s ***** shared a,b 2328s b = [1 2; 3 4]; a = sym(b); 2328s ***** assert (isequal (sum(a), sum(b))) 2328s ***** assert (isequal (sum(a,1), sum(b,1))) 2328s ***** assert (isequal (sum(a,2), sum(b,2))) 2328s ***** test 2328s % weird inputs 2328s a = sum('xx', sym(1)); 2328s assert (isequal (a, sym('xx'))) 2328s 11 tests, 11 passed, 0 known failure, 0 skipped 2328s [inst/@sym/isna.m] 2328s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/isna.m 2328s ***** test 2328s % no sym should be NA 2328s syms x oo 2328s assert (~isna(sym(1))) 2328s assert (~isna(x)) 2328s assert (~isna(oo)) 2328s assert (~isna(sym(nan))) 2328s assert (isequal (isna (sym ([1 nan])), [false false])) 2328s 1 test, 1 passed, 0 known failure, 0 skipped 2328s [inst/@sym/laplace.m] 2328s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/laplace.m 2328s ***** test 2328s % basic 2328s syms t s u w 2328s assert(logical( laplace(cos(3*t)) == s/(s^2+9) )) 2328s assert(logical( laplace(t^3) == 6/s^4 )) 2329s ***** test 2329s % matlab SMT compat 2329s syms t s u w z 2329s assert(logical( laplace(exp(2*t)) == 1/(s-2) )) 2329s assert(logical( laplace(exp(2*s)) == 1/(z-2) )) 2329s assert(logical( laplace(exp(2*u),w) == 1/(w-2) )) 2329s assert(logical( laplace(exp(2*u),u,w) == 1/(w-2) )) 2329s ***** test 2329s syms x s t z 2329s % matlab SMT prefers t over x 2329s assert (isequal (laplace (x*exp (t), z), x/(z - 1))) 2329s % as usual, you can just specify: 2329s assert (isequal (laplace(x*exp(t), t, z), x/(z - 1))) % SMT result 2329s assert (isequal (laplace(x*exp(t), x, z), exp(t)/z^2)) 2330s ***** test 2330s syms x a s 2330s % if no t, use symvar: take x before a 2330s assert (isequal (laplace (a*exp (x)), a/(s - 1))) 2330s ***** error laplace (sym('t')*sym('t', 'real')) 2330s ***** test 2330s % constant, issue #250 2330s syms s 2330s f = laplace(2, s); 2330s assert (isequal (f, 2/s)) 2330s ***** test 2330s % Dirac delta and Heaviside tests 2330s syms t s 2330s assert (isequal (laplace(dirac(t-3)), exp(-3*s))) 2330s assert (isequal (laplace((t-3)*heaviside(t-3)), exp(-3*s)/s^2)) 2330s ***** xtest 2330s % Differential operator to algebraic 2330s % SymPy cannot evaluate? (Issue #170) 2330s syms s f(t) 2330s assert(logical( laplace(diff(f(t),t),t,s) == s*laplace(f(t),t,s)-f(0) )) 2331s 8 tests, 8 passed, 0 known failure, 0 skipped 2331s [inst/@sym/horner.m] 2331s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/horner.m 2331s ***** error horner (sym(1), 2, 3) 2331s ***** assert (isAlways (horner(sym(1)) == 1)) 2331s ***** test 2331s syms x 2331s assert (isAlways (horner(x) == x)) 2331s ***** test 2331s syms x a 2331s p = a^2 + a*x + 2*a + 2*x; 2331s assert (isequal (horner (p, a), a*(a+x+2) + 2*x)) 2331s q = a^2 + 2*a + x*(a + 2); 2331s assert (isequal (horner (p, x), q)) 2331s assert (isequal (horner (p), q)) 2331s ***** test 2331s syms x 2331s p = poly2sym ([2 4 6 8], x); 2331s q = horner (p); 2331s assert (isAlways (p == q)) 2331s assert (isAlways (horner(2*x^3 + 4*x^2 + 6*x + 8) == q)) 2332s ***** test 2332s % non-sym input 2332s syms x 2332s assert (isequal (horner(6, x), sym(6))) 2332s 6 tests, 6 passed, 0 known failure, 0 skipped 2332s [inst/@sym/cart2pol.m] 2332s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/cart2pol.m 2332s ***** test 2332s % multiple non-scalar inputs 2332s x = sym ('x', [2 2]); 2332s assume (x, 'real'); 2332s y = sym ('y', [2 2]); 2332s assume (y, 'real'); 2332s [theta, r] = cart2pol (x, y); 2332s assert (isequal (r, sqrt (x.^2 + y.^2))); 2332s assert (isequal (tan (theta), y ./ x)); 2332s % mixing scalar inputs with non-scalar inputs 2332s syms z real 2332s [theta_2, r_2, z_2] = cart2pol (x, y, z); 2332s assert (isequal (r_2, sqrt (x.^2 + y.^2))); 2332s assert (isequal (tan (theta_2), y ./ x)); 2332s assert (isequal (z_2, z * ones (2, 2))); 2333s ***** test 2333s % column vector with 2 entries 2333s syms x y real 2333s [theta, r] = cart2pol ([x; y]); 2333s assert (isequal (r, sqrt (x.^2 + y.^2))); 2333s assert (isequal (tan (theta), y ./ x)); 2333s % column vector with 3 entries 2333s syms z real 2333s [theta_2, r_2, z_2] = cart2pol ([x; y; z]); 2333s assert (isequal (r_2, sqrt (x.^2 + y.^2))); 2333s assert (isequal (tan (theta_2), y ./ x)); 2333s assert (isequal (z_2, z)); 2334s ***** test 2334s % matrix with 2 columns 2334s syms x y u v real 2334s C = [x y; u v]; 2334s [theta, r] = cart2pol (C); 2334s assert (isequal (r, [sqrt(x.^2+y.^2); sqrt(u.^2+v.^2)])); 2334s assert (isequal (tan (theta), [y/x; v/u])); 2334s % matrix with 3 columns 2334s syms z w real 2334s C_2 = [x y z; u v w]; 2334s [theta_2, r_2, z_2] = cart2pol (C_2); 2334s assert (isequal (r, [sqrt(x.^2+y.^2); sqrt(u.^2+v.^2)])); 2334s assert (isequal (tan (theta), [y/x; v/u])); 2334s assert (isequal (z_2, [z; w])); 2335s 3 tests, 3 passed, 0 known failure, 0 skipped 2335s [inst/@sym/arg.m] 2335s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/arg.m 2335s ***** test 2335s syms x 2335s assert (isequal (angle (x), arg (x))); 2335s 1 test, 1 passed, 0 known failure, 0 skipped 2335s [inst/@sym/tand.m] 2335s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/tand.m 2335s ***** error tand (sym(1), 2) 2335s ***** assert (isequaln (tand (sym(nan)), sym(nan))) 2335s ***** test 2335s f1 = tand (sym(1)); 2335s f2 = tand (1); 2335s assert (double (f1), f2, -eps) 2335s ***** test 2335s D = [10 30; 110 -45]; 2335s A = sym(D); 2335s f1 = tand (A); 2335s f2 = tand (D); 2335s assert (double (f1), f2, -eps) 2335s 4 tests, 4 passed, 0 known failure, 0 skipped 2335s [inst/@sym/ismember.m] 2335s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/ismember.m 2335s ***** assert (ismember (2, interval(sym(0),2))) 2336s ***** assert (~ismember (3, interval(sym(0),2))) 2336s ***** test 2336s % something in a matrix 2336s syms x 2336s A = [1 x; sym(pi) 4]; 2336s assert (ismember (sym(pi), A)) 2336s assert (ismember (x, A)) 2336s assert (~ismember (2, A)) 2336s ***** test 2336s % set 2336s syms x 2336s S = finiteset(2, sym(pi), x); 2336s assert (ismember (x, S)) 2336s ***** test 2336s % set with positive symbol 2336s syms p positive 2336s S = finiteset(2, sym(pi), p); 2336s assert (~ismember (-1, S)) 2336s 5 tests, 5 passed, 0 known failure, 0 skipped 2336s [inst/@sym/erf.m] 2336s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/erf.m 2336s ***** error erf (sym(1), 2) 2336s ***** assert (isequaln (erf (sym(nan)), sym(nan))) 2336s ***** shared x, d 2336s d = 1; 2336s x = sym('1'); 2336s ***** test 2336s f1 = erf(x); 2336s f2 = erf(d); 2336s assert( abs(double(f1) - f2) < 1e-15 ) 2336s ***** test 2336s D = [d d; d d]; 2336s A = [x x; x x]; 2336s f1 = erf(A); 2336s f2 = erf(D); 2336s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2336s ***** test 2336s % round trip 2336s y = sym('y'); 2336s A = erf (d); 2336s f = erf (y); 2336s h = function_handle (f); 2336s B = h (d); 2336s assert (A, B, -eps) 2336s 5 tests, 5 passed, 0 known failure, 0 skipped 2336s [inst/@sym/expm.m] 2336s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/expm.m 2336s ***** test 2336s % scalar 2336s syms x 2336s assert (isequal (expm(x), exp(x))) 2336s ***** test 2336s % diagonal 2336s A = [sym(1) 0; 0 sym(3)]; 2336s B = [exp(sym(1)) 0; 0 exp(sym(3))]; 2336s assert (isequal (expm(A), B)) 2336s ***** test 2336s % diagonal w/ x 2336s syms x positive 2336s A = [sym(1) 0; 0 x+2]; 2336s B = [exp(sym(1)) 0; 0 exp(x+2)]; 2336s assert (isequal (expm(A), B)) 2337s ***** test 2337s % non-diagonal 2337s syms x positive 2337s A = [sym(1) 2; 0 x+2]; 2337s B = expm(A); 2337s C = double(subs(B, x, 4)); 2337s D = expm(double(subs(A, x, 4))); 2337s assert (max (max (abs (C - D))) <= 1e-11) 2337s 4 tests, 4 passed, 0 known failure, 0 skipped 2337s [inst/@sym/inv.m] 2337s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/inv.m 2337s ***** test 2337s % scalar 2337s syms x 2337s assert (isequal (inv(x), 1/x)) 2337s ***** test 2337s % diagonal 2337s syms x 2337s A = [sym(1) 0; 0 x]; 2337s B = [sym(1) 0; 0 1/x]; 2337s assert (isequal (inv(A), B)) 2337s ***** test 2337s % 2x2 inverse 2337s A = [1 2; 3 4]; 2337s assert (max (max (abs (double (inv (sym (A))) - inv(A)))) <= 3*eps) 2337s ***** error 2337s syms a; 2337s A = [a a; a a]; 2337s inv(A) 2337s ***** error 2337s syms a; 2337s A = [a a]; 2337s inv(A) 2337s 5 tests, 5 passed, 0 known failure, 0 skipped 2337s [inst/@sym/floor.m] 2338s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/floor.m 2338s ***** error floor (sym(1), 2) 2338s ***** assert (isequaln (floor (sym(nan)), sym(nan))) 2338s ***** shared x, d 2338s d = 1; 2338s x = sym('1'); 2338s ***** test 2338s f1 = floor(x); 2338s f2 = floor(d); 2338s assert( abs(double(f1) - f2) < 1e-15 ) 2338s ***** test 2338s D = [d d; d d]; 2338s A = [x x; x x]; 2338s f1 = floor(A); 2338s f2 = floor(D); 2338s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2338s ***** test 2338s % round trip 2338s y = sym('y'); 2338s A = floor (d); 2338s f = floor (y); 2338s h = function_handle (f); 2338s B = h (d); 2338s assert (A, B, -eps) 2338s 5 tests, 5 passed, 0 known failure, 0 skipped 2338s [inst/@sym/svd.m] 2338s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/svd.m 2338s ***** test 2338s % basic 2338s A = [1 2; 3 4]; 2338s B = sym(A); 2338s sd = svd(A); 2338s s = svd(B); 2338s s2 = double(s); 2338s assert (norm(s2 - sd) <= 10*eps) 2338s ***** test 2338s % scalars 2338s syms x 2338s syms y positive 2338s a = sym(-10); 2338s assert (isequal (svd(a), sym(10))) 2338s assert (isequal (svd(x), sqrt(x*conj(x)))) 2338s assert (isequal (svd(y), y)) 2338s ***** test 2338s % matrix with symbols 2338s syms x positive 2338s A = [x+1 0; sym(0) 2*x+1]; 2338s s = svd(A); 2338s s2 = subs(s, x, 2); 2338s assert (isequal (s2, [sym(5); 3])) 2338s ***** test 2338s % matrix with symbols 2338s syms x positive 2338s A = [x+1 0; sym(0) 2*x+1]; 2338s s = svd(A); 2338s s2 = subs(s, x, 2); 2338s assert (isequal (s2, [sym(5); 3])) 2339s ***** test 2339s % matrix with symbols, nonneg sing values 2339s syms x real 2339s A = [x 0; 0 sym(-5)]; 2339s s = svd(A); 2339s assert (isequal (s, [abs(x); 5])) 2339s 5 tests, 5 passed, 0 known failure, 0 skipped 2339s [inst/@sym/ceil.m] 2339s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/ceil.m 2339s ***** error ceil (sym(1), 2) 2339s ***** assert (isequaln (ceil (sym(nan)), sym(nan))) 2339s ***** shared x, d 2339s d = 3/2; 2339s x = sym('3/2'); 2339s ***** test 2339s f1 = ceil(x); 2339s f2 = ceil(d); 2339s assert( abs(double(f1) - f2) < 1e-15 ) 2339s ***** test 2339s D = [d d; d d]; 2339s A = [x x; x x]; 2339s f1 = ceil(A); 2339s f2 = ceil(D); 2339s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 2339s ***** test 2339s % round trip 2339s y = sym('y'); 2339s A = ceil (d); 2339s f = ceil (y); 2339s h = function_handle (f); 2339s B = h (d); 2339s assert (A, B, -eps) 2339s 5 tests, 5 passed, 0 known failure, 0 skipped 2339s [inst/@sym/dawson.m] 2339s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@sym/dawson.m 2339s ***** test 2339s if (exist ('OCTAVE_VERSION', 'builtin')) 2339s % dawson missing on Matlab, Issue #742 2339s A = dawson([1 2]); 2339s B = double(dawson(sym([1 2]))); 2339s assert(A, B, -eps) 2339s end 2339s 1 test, 1 passed, 0 known failure, 0 skipped 2339s [inst/fibonacci.m] 2339s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/fibonacci.m 2339s ***** assert (isequal ( fibonacci (sym(0)), 0)) 2339s ***** assert (isequal ( fibonacci (sym(14)), sym(377))) 2339s ***** assert (isequal ( fibonacci (14), 377)) 2339s ***** test syms x 2339s assert (isequal (fibonacci (5,x), x^4 + 3*x^2 + 1)) 2339s 4 tests, 4 passed, 0 known failure, 0 skipped 2339s [inst/cell2sym.m] 2339s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/cell2sym.m 2339s ***** test 2339s A = {1 2 3; 4 5 6}; 2339s B = [1 2 3; 4 5 6]; 2339s assert (isequal (cell2sym(A), sym(B))) 2340s ***** test 2340s A = {'a' 'b'; 'c' 10}; 2340s B = [sym('a') sym('b'); sym('c') sym(10)]; 2340s assert (isequal (cell2sym(A), B)) 2340s 2 tests, 2 passed, 0 known failure, 0 skipped 2340s [inst/@double/chebyshevT.m] 2340s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@double/chebyshevT.m 2340s ***** error chebyshevT (1) 2340s ***** error chebyshevT (1, 2, 3) 2340s ***** error chebyshevT ([1 2], [1 2 3]) 2340s ***** error chebyshevT ([1 2], [1; 2]) 2340s ***** test 2340s y = sym(11)/10; 2340s t = sym(2); 2340s x = 1.1; 2340s s = 2; 2340s A = chebyshevT (s, x); 2340s B = double (chebyshevT (t, y)); 2340s assert (A, B, -2*eps); 2340s ***** test 2340s % maple 2340s A = -0.304681164165948269030369; 2340s B = chebyshevT (18.1, 0.9); 2340s assert (A, B, -10*eps) 2340s ***** test 2340s % maple, complex inputs 2340s % ChebyshevT(12.1+3.1*I, 0.5+0.2*I); 2340s A = 0.637229289490379273451 - 0.475324703778957991318*1i; 2340s B = chebyshevT (12.1+3.1*i, 0.5+0.2i); 2340s assert (A, B, -5*eps); 2340s ***** test 2340s % maple, matrix inputs 2340s A = [0.59523064198266880000 0.57727442996887552000]; 2340s B = chebyshevT ([16 17], [0.9 0.7]); 2340s assert (A, B, -10*eps); 2340s ***** test 2340s % x matrix, s scalar 2340s y = [1 2 sym(pi); exp(sym(1)) 5 6]; 2340s t = sym(2); 2340s x = double (y); 2340s s = 2; 2340s A = chebyshevT (s, x); 2340s B = double (chebyshevT (t, y)); 2340s assert (A, B, -eps); 2341s ***** test 2341s % s matrix, x scalar 2341s t = [1 2 sym(pi); exp(sym(1)) 5 6]; 2341s y = sym(2); 2341s s = double (t); 2341s x = 2; 2341s A = chebyshevT (s, x); 2341s B = double (chebyshevT (t, y)); 2341s assert (A, B, -eps); 2341s ***** xtest 2341s % https://github.com/fredrik-johansson/mpmath/issues/469 2341s assert (chebyshevT (4, inf), inf) 2341s assert (chebyshevT (4, -inf), inf) 2341s assert (chebyshevT (3, inf), inf) 2341s assert (chebyshevT (3, -inf), -inf) 2341s !!!!! known failure 2341s ASSERT errors for: assert (chebyshevT (4, inf),inf) 2341s 2341s Location | Observed | Expected | Reason 2341s () 1 Inf 'Inf' mismatch 2341s 11 tests, 10 passed, 1 known failure, 0 skipped 2341s [inst/@double/fresnelc.m] 2341s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@double/fresnelc.m 2341s ***** error fresnelc (1, 2) 2341s ***** test 2341s x = 1.1; 2341s y = sym(11)/10; 2341s A = fresnelc (x); 2341s B = double (fresnelc (y)); 2341s assert (A, B, -4*eps); 2341s ***** test 2341s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 2341s x = double (y); 2341s A = fresnelc (x); 2341s B = double (fresnelc (y)); 2341s assert (A, B, -4*eps); 2342s ***** test 2342s % maple: 2342s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 2342s % > for a in A do evalf(FresnelC(a)) end do; 2342s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 2342s A = [ 16.087871374125480424 - 36.225687992881650217*1i 2342s 0.47688568479874574722e12 + 0.12213736710985573216e13*1i 2342s 0.49999989867881789756 2342s 0.49989869420551572361*1i 2342s -0.000099999999999999997535 + 0.99999999999999987665e-6*1i 2342s 0.15391592966931193100e26 - 0.75738824160998910388e24*1i ]; 2342s B = fresnelc (x); 2342s assert (A, B, -eps) 2342s ***** assert (fresnelc (inf), 0.5) 2342s ***** assert (fresnelc (-inf), -0.5) 2342s 6 tests, 6 passed, 0 known failure, 0 skipped 2342s [inst/@double/coshint.m] 2342s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@double/coshint.m 2342s ***** error coshint (1, 2) 2342s ***** test 2342s x = 1.1; 2342s y = sym(11)/10; 2342s A = coshint (x); 2342s B = double (coshint (y)); 2342s assert (A, B, -4*eps); 2342s ***** test 2342s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 2342s x = double (y); 2342s A = coshint (x); 2342s B = double (coshint (y)); 2342s assert (A, B, -4*eps); 2343s ***** test 2343s % maple: 2343s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 2343s % > for a in A do evalf(Chi(a)) end do; 2343s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 2343s A = [ 0.58447599687824767874 + 1.8682915044330306402*1i 2343s -0.63131069034703116988 + 1.8986171211850702957*1i 2343s 0.13577763724269399110e42 2343s -0.045456433004455372635 + 1.5707963267948966192*1i 2343s -8.6330747070747332203 + 3.1315929868531280002*1i 2343s 0.74701205140887966531e7 + 0.10381444259644068585e8*1i ]; 2343s B = coshint (x); 2343s assert (A, B, -eps) 2343s ***** assert (coshint (inf), inf) 2343s ***** assert (isinf (coshint (-inf))) 2343s ***** assert (imag (coshint (-inf)), pi) 2343s 7 tests, 7 passed, 0 known failure, 0 skipped 2343s [inst/@double/polylog.m] 2343s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@double/polylog.m 2343s ***** error polylog (1) 2343s ***** error polylog (1, 2, 3) 2343s ***** error polylog ([1 2], [1 2 3]) 2343s ***** error polylog ([1 2], [1; 2]) 2343s ***** test 2343s y = sym(11)/10; 2343s t = sym(2); 2343s x = 1.1; 2343s s = 2; 2343s A = polylog (s, x); 2343s B = double (polylog (t, y)); 2343s assert (A, B, -eps); 2343s ***** test 2343s % maple 2343s A = 2.3201804233130983964 - 3.4513922952232026614*1i; 2343s B = polylog (2, 3); 2343s assert (A, B, -eps) 2343s ***** test 2343s % maple, complex inputs 2343s A = -11.381456201167411758 + 6.2696695219721651947*1i; 2343s B = polylog (1+2i, 3+4i); 2343s assert (A, B, -eps); 2343s ***** test 2343s % maple, matrix inputs 2343s A1 = 0.47961557317612748431 - 0.52788287823025778869*1i; 2343s A2 = -0.0049750526563452645369 - 0.024579343612396884851*1i; 2343s B = polylog ([-1-2i -3], [30+40i 40i]); 2343s assert ([A1 A2], B, -eps); 2343s ***** test 2343s % x matrix, s scalar 2343s y = [1 2 sym(pi); exp(sym(1)) 5 6]; 2343s t = sym(2); 2343s x = double (y); 2343s s = 2; 2343s A = polylog (s, x); 2343s B = double (polylog (t, y)); 2343s assert (A, B, -eps); 2344s ***** test 2344s % s matrix, x scalar 2344s t = [1 2 sym(pi); exp(sym(1)) 5 6]; 2344s y = sym(2); 2344s s = double (t); 2344s x = 2; 2344s A = polylog (s, x); 2344s B = double (polylog (t, y)); 2344s assert (A, B, -eps); 2345s 10 tests, 10 passed, 0 known failure, 0 skipped 2345s [inst/@double/sinint.m] 2345s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@double/sinint.m 2345s ***** error sinint (1, 2) 2345s ***** test 2345s x = 1.1; 2345s y = sym(11)/10; 2345s A = sinint (x); 2345s B = double (sinint (y)); 2345s assert (A, B, -4*eps); 2345s ***** test 2345s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 2345s x = double (y); 2345s A = sinint (x); 2345s B = double (sinint (y)); 2345s assert (A, B, -4*eps); 2345s ***** assert (sinint (0), 0) 2345s ***** assert (sinint (inf), pi/2) 2345s ***** assert (sinint (-inf), -pi/2) 2345s ***** assert (sinint (1), 0.9460830703671830149414, -2*eps) 2345s ***** assert (sinint (-1), -0.9460830703671830149414, -2*eps) 2345s ***** assert (sinint (pi), 1.851937051982466170361, -2*eps) 2345s ***** assert (sinint (-pi), -1.851937051982466170361, -2*eps) 2345s ***** assert (sinint (300), 1.5708810882137495193, -2*eps) 2345s ***** assert (sinint (1e4), 1.5708915453859619157, -2*eps) 2345s ***** assert (sinint (20i), 1.2807826332028294459e7*1i, -2*eps) 2345s ***** test 2345s % maple: 2345s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 2345s % > for a in A do evalf(Si(a)) end do; 2345s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 2345s A = [ 1.6782404878293681180 + 2.0396845546022061045*1i 2345s -18.154174221650281533 + 1.6146414539230479060*1i 2345s 1.5622254668890562934 2345s 1246.1144901994233444*1i 2345s -0.000099999999944461111128 + 0.99999999833338888972e-6*1i 2345s -1.5386156269726011209 - 0.053969388020443786229*1i ]; 2345s B = sinint (x); 2345s assert (A, B, -eps) 2345s 14 tests, 14 passed, 0 known failure, 0 skipped 2345s [inst/@double/chebyshevU.m] 2345s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@double/chebyshevU.m 2345s ***** error chebyshevU (1) 2346s ***** error chebyshevU (1, 2, 3) 2346s ***** error chebyshevU ([1 2], [1 2 3]) 2346s ***** error chebyshevU ([1 2], [1; 2]) 2346s ***** test 2346s y = sym(11)/10; 2346s t = sym(2); 2346s x = 1.1; 2346s s = 2; 2346s A = chebyshevU (s, x); 2346s B = double (chebyshevU (t, y)); 2346s assert (A, B, -2*eps); 2346s ***** test 2346s % maple 2346s A = 1.661891066691338157; 2346s B = chebyshevU (18.1, 0.9); 2346s assert (A, B, -3*eps) 2346s ***** test 2346s % maple, complex inputs> 2346s % ChebyshevU(12.1+3.1*I, 0.5+0.2*I); 2346s A = 1.046959313670290818 - 0.03386773634958834846*1i; 2346s B = chebyshevU (12.1+3.1*i, 0.5+0.2i); 2346s assert (A, B, -3*eps); 2346s ***** test 2346s % maple, matrix inputs 2346s A = [2.2543638828875776000 -1.3872651600553574400]; 2346s B = chebyshevU ([16 17], [0.9 0.8]); 2346s assert (A, B, -10*eps); 2346s ***** test 2346s % x matrix, s scalar 2346s y = [1 2 sym(pi); exp(sym(1)) 5 6]; 2346s t = sym(2); 2346s x = double (y); 2346s s = 2; 2346s A = chebyshevU (s, x); 2346s B = double (chebyshevU (t, y)); 2346s assert (A, B, -eps); 2346s ***** test 2346s % s matrix, x scalar 2346s t = [1 2 sym(pi); exp(sym(1)) 5 6]; 2346s y = sym(2); 2346s s = double (t); 2346s x = 2; 2346s A = chebyshevU (s, x); 2346s B = double (chebyshevU (t, y)); 2346s assert (A, B, -2*eps); 2347s ***** xtest 2347s % https://github.com/fredrik-johansson/mpmath/issues/469 2347s assert (chebyshevU (4, inf), inf) 2347s assert (chebyshevU (4, -inf), inf) 2347s assert (chebyshevU (3, inf), inf) 2347s assert (chebyshevU (3, -inf), -inf) 2347s !!!!! known failure 2347s ASSERT errors for: assert (chebyshevU (4, inf),inf) 2347s 2347s Location | Observed | Expected | Reason 2347s () 5 Inf 'Inf' mismatch 2347s 11 tests, 10 passed, 1 known failure, 0 skipped 2347s [inst/@double/sinhint.m] 2347s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@double/sinhint.m 2347s ***** error sinhint (1, 2) 2347s ***** test 2347s x = 1.1; 2347s y = sym(11)/10; 2347s A = sinhint (x); 2347s B = double (sinhint (y)); 2347s assert (A, B, -4*eps); 2347s ***** test 2347s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 2347s x = double (y); 2347s A = sinhint (x); 2347s B = double (sinhint (y)); 2347s assert (A, B, -4*eps); 2347s ***** test 2347s % maple: 2347s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 2347s % > for a in A do evalf(Shi(a)) end do; 2347s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 2347s A = [ 0.45769171128668800567 + 1.8332099215048436239*1i 2347s 0.60888490416819746440 + 1.2482232175376056201*1i 2347s 0.13577763724269399110e42 2347s 1.6583475942188740493*1i 2347s -0.00010000000005553888891 + 0.10000000016666111119e-5*1i 2347s -0.74701205140887967022e7 - 0.10381447401236722090e8*1i ]; 2347s B = sinhint (x); 2347s assert (A, B, -eps) 2347s ***** assert (sinhint (inf), inf) 2347s ***** assert (sinhint (-inf), -inf) 2347s 6 tests, 6 passed, 0 known failure, 0 skipped 2347s [inst/@double/zeta.m] 2347s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@double/zeta.m 2347s ***** error zeta (1, 2, 3) 2347s ***** assert (isnan (zeta (nan))) 2347s ***** test 2347s x = 1.1; 2347s y = sym(11)/10; 2347s A = zeta (x); 2347s B = double (zeta (y)); 2347s assert (A, B, -4*eps); 2347s ***** test 2347s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 2347s x = double (y); 2347s A = zeta (x); 2347s B = double (zeta (y)); 2347s assert (A, B, -4*eps); 2348s ***** test 2348s % maple: 2348s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 2348s % > for a in A do evalf(Zeta(a)) end do; 2348s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 2348s A = [ 0.59816556976238173670 - 0.35185474521784529050*1i 2348s 0.21425967567391921717 + 0.52503846985036050707*1i 2348s 1.0 2348s 1.7564685929749629608 - 0.10151198543617116894*1i 2348s -0.49990811617645824900 - 0.91873792757763831501e-6*1i 2348s 175.09070083717643866 - 71.512541417467273425*1i ]; 2348s B = zeta (x); 2348s assert (A, B, -eps) 2348s ***** assert (zeta (inf), 1.0) 2348s 6 tests, 6 passed, 0 known failure, 0 skipped 2348s [inst/@double/dilog.m] 2348s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@double/dilog.m 2348s ***** test 2348s x = 1.1; 2348s y = sym(11)/10; 2348s A = dilog (x); 2348s B = double (dilog (y)); 2348s assert (A, B, -4*eps); 2348s ***** test 2348s y = [2 2 sym(pi); exp(sym(1)) 5 6]; 2348s x = double (y); 2348s A = dilog (x); 2348s B = double (dilog (y)); 2348s assert (A, B, -eps); 2349s ***** test 2349s % maple: 2349s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 2349s % > for a in A do evalf(dilog(a)) end do; 2349s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 2349s A = [ -0.59248494924959145800 - 1.5760154034463234224*1i 2349s -1.0549087538833908441 - 3.8759788000863368495*1i 2349s -12.192421669033171348 2349s -2.9195729380904939394 - 3.9540920181102973073*1i 2349s 1.6459519160623984119 - 0.00032335296277550987686*1i 2349s -1.5445800511775466879 + 9.4256034277816069684*1i ]; 2349s B = dilog (x); 2349s assert (A, B, -eps) 2349s ***** xtest 2349s % https://github.com/fredrik-johansson/mpmath/issues/473 2349s assert (isinf (dilog (inf))) 2349s !!!!! known failure 2349s assert (isinf (dilog (inf))) failed 2349s ***** assert (isnan (dilog (-inf))) 2349s 5 tests, 4 passed, 1 known failure, 0 skipped 2349s [inst/@double/logint.m] 2349s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@double/logint.m 2349s ***** error logint (1, 2) 2349s ***** test 2349s x = 1.1; 2349s y = sym(11)/10; 2349s A = logint (x); 2349s B = double (logint (y)); 2349s assert (A, B, -4*eps); 2349s ***** test 2349s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 2349s x = double (y); 2349s A = logint (x); 2349s B = double (logint (y)); 2349s assert (A, B, -4*eps); 2349s ***** test 2349s % maple: 2349s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 2349s % > for a in A do evalf(Li(a)) end do; 2349s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 2349s A = [ 1.3876787420229375511 + 2.5087546988592328752*1i 2349s 1.6987684473874802274 + 4.5936366057115204667*1i 2349s 30.126141584079629926 2349s 3.4936715673748995398 + 5.5260023797127391973*1i 2349s 0.90264689772681592152e-5 + 3.1415953634267361942*1i 2349s -2.3996350854560916779 - 7.6971739096353664559*1i ]; 2349s B = logint (x); 2349s assert (A, B, -eps) 2349s ***** assert (logint (inf), inf) 2349s ***** assert (isnan (logint (-inf))) 2349s 6 tests, 6 passed, 0 known failure, 0 skipped 2349s [inst/@double/harmonic.m] 2349s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@double/harmonic.m 2349s ***** error harmonic (1, 2) 2349s ***** test 2349s x = 1.1; 2349s y = sym(11)/10; 2349s A = harmonic (x); 2349s B = double (harmonic (y)); 2349s assert (A, B, -4*eps); 2349s ***** test 2349s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 2349s x = double (y); 2349s A = harmonic (x); 2349s B = double (harmonic (y)); 2349s assert (A, B, -4*eps); 2350s 3 tests, 3 passed, 0 known failure, 0 skipped 2350s [inst/@double/fresnels.m] 2350s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@double/fresnels.m 2350s ***** error fresnels (1, 2) 2350s ***** test 2350s x = 1.1; 2350s y = sym(11)/10; 2350s A = fresnels (x); 2350s B = double (fresnels (y)); 2350s assert (A, B, -4*eps); 2350s ***** test 2350s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 2350s x = double (y); 2350s A = fresnels (x); 2350s B = double (fresnels (y)); 2350s assert (A, B, -4*eps); 2351s ***** test 2351s % maple: 2351s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 2351s % > for a in A do evalf(FresnelS(a)) end do; 2351s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 2351s A = [ 36.725464883991438430 + 15.587751104404587334*1i 2351s 0.12213736710980573217e13 - 0.47688568479924574726e12*1i 2351s 0.49681690114783755327 2351s -0.46816997858488224040*1i 2351s -0.52344169596561937423e-12 + 0.15707439669173367248e-13*1i 2351s 0.75738824160998910399e24 + 0.15391592966931193100e26*1i ]; 2351s B = fresnels (x); 2351s assert (A, B, -eps) 2351s ***** assert (fresnels (inf), 0.5) 2351s ***** assert (fresnels (-inf), -0.5) 2351s 6 tests, 6 passed, 0 known failure, 0 skipped 2351s [inst/@double/adjoint.m] 2351s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@double/adjoint.m 2351s ***** test 2351s M = [1 2; 3 4]; 2351s A = [4 -2; -3 1]; 2351s assert (isequal (adjoint (M), A)); 2351s ***** test 2351s assert (isequal (adjoint (42), 1)); 2351s 2 tests, 2 passed, 0 known failure, 0 skipped 2351s [inst/@double/bernoulli.m] 2351s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@double/bernoulli.m 2351s ***** error bernoulli (1, 2, 3) 2351s ***** error bernoulli ([1 2], [1 2 3]) 2351s ***** error bernoulli ([1 2], [1; 2]) 2351s ***** assert (bernoulli (0), 1) 2351s ***** assert (bernoulli (3), 0) 2351s ***** test 2351s % two different definitions in literature 2351s assert (abs (bernoulli (1)), 0.5, -eps) 2351s ***** xtest 2351s % we want to use B_1 = 1/2, possible with a version-specific filter 2351s assert (bernoulli (1), 0.5, -eps) 2351s !!!!! known failure 2351s ASSERT errors for: assert (bernoulli (1),0.5,-eps) 2351s 2351s Location | Observed | Expected | Reason 2351s () -0.5 0.5 Rel err 2 exceeds tol 2.2204e-16 by 2 2351s ***** test 2351s n = sym(88); 2351s m = 88; 2351s A = bernoulli (m); 2351s B = double (bernoulli (n)); 2351s assert (A, B, -eps); 2351s ***** test 2351s m = [0 2; 3 4]; 2351s n = sym(m); 2351s A = bernoulli (m); 2351s B = double (bernoulli (n)); 2351s assert (isequal (A, B)); 2351s ***** test 2351s y = sym(19)/10; 2351s n = sym(2); 2351s x = 1.9; 2351s m = 2; 2351s A = bernoulli (m, x); 2351s B = double (bernoulli (n, y)); 2351s assert (A, B, -eps); 2351s ***** test 2351s assert (isequal (bernoulli (4, inf), inf)) 2351s assert (isequal (bernoulli (4, -inf), inf)) 2351s ***** xtest 2351s % still broken? 2351s assert (isequal (bernoulli (3, inf), inf)) 2351s assert (isequal (bernoulli (3, -inf), -inf)) 2351s ***** test 2351s assert (isnan (bernoulli(3, nan))) 2351s assert (isnumeric (bernoulli(3, nan))) 2351s ***** test 2351s % maple, complex input 2351s A = 34.21957245745810513 - 130.0046256649829101i; 2351s B = bernoulli(7, 2.123 + 1.234i); 2351s assert (A, B, -5*eps); 2351s ***** test 2351s % x matrix, m scalar 2351s y = [1 2 sym(pi); exp(sym(1)) 5 6]; 2351s n = sym(2); 2351s x = double (y); 2351s m = 2; 2351s A = bernoulli (m, x); 2351s B = double (bernoulli (n, y)); 2351s assert (A, B, -eps); 2352s ***** test 2352s % m matrix, x scalar 2352s m = [1 2 3; 4 5 6]; 2352s n = sym(m); 2352s y = sym(21)/10; 2352s x = 2.1; 2352s A = bernoulli (m, x); 2352s B = double (bernoulli (n, y)); 2352s assert (A, B, -3*eps); 2352s 16 tests, 15 passed, 1 known failure, 0 skipped 2352s [inst/@double/cosint.m] 2352s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@double/cosint.m 2352s ***** error cosint (1, 2) 2352s ***** test 2352s x = 1.1; 2352s y = sym(11)/10; 2352s A = cosint (x); 2352s B = double (cosint (y)); 2352s assert (A, B, -4*eps); 2352s ***** test 2352s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 2352s x = double (y); 2352s A = cosint (x); 2352s B = double (cosint (y)); 2352s assert (A, B, -4*eps); 2353s ***** test 2353s % maple: 2353s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 2353s % > for a in A do evalf(Ci(a)) end do; 2353s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 2353s A = [ 2.0302963932917216378 - 0.15190715517585688438*1i 2353s 1.6153896382910774851 + 19.725754055338264980*1i 2353s -0.0051488251426104921444 2353s 1246.1144860424544147 + 1.5707963267948966192*1i 2353s -8.6330747120742332203 + 3.1315929869531280002*1i 2353s 0.069822228467306149311 - 3.1184744625477294643*1i ]; 2353s B = cosint (x); 2353s assert (A, B, -eps) 2353s ***** xtest 2353s % is it nan or -inf? SymPy says zoo. 2353s assert (isnan (cosint (0))) 2353s !!!!! known failure 2353s assert (isnan (cosint (0))) failed 2353s ***** assert (cosint (inf), 0) 2353s ***** assert (cosint (-inf), pi*1i, -eps) 2353s ***** assert (cosint (1), 0.33740392290096813466, -eps) 2353s ***** assert (cosint (-1), 0.33740392290096813466 + pi*1i, -eps) 2353s ***** assert (cosint (pi), 0.073667912046425485978, -5*eps) 2353s ***** assert (cosint (-pi), 0.07366791204642548597821 + pi*1i, -5*eps) 2353s ***** assert (cosint (300), -3.3321999185921117800e-3, -2*eps) 2353s ***** assert (cosint (1e4), -3.0551916724485212665e-5, -2*eps) 2353s ***** assert (cosint (1 + 1i), 0.8821721805559363250506+0.2872491335199559395273*1i, eps) 2353s ***** assert (cosint (1i), 0.8378669409802082408947 + pi/2*1i, -2*eps) 2353s ***** test 2353s % compare both sinint and cosint to expint 2353s x = pi; 2353s C1 = cosint (x); 2353s S1 = sinint (x); 2353s R = expint (1i*x); 2353s C2 = -real (R); 2353s S2 = imag (R) + pi/2; 2353s assert (C1, C2, -100*eps); 2353s assert (S1, S2, -100*eps); 2353s 16 tests, 15 passed, 1 known failure, 0 skipped 2353s [inst/@double/euler.m] 2353s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@double/euler.m 2353s ***** error euler (1, 2, 3) 2353s ***** error euler ([1 2], [1 2 3]) 2353s ***** error euler ([1 2], [1; 2]) 2353s ***** assert (isequal (euler (0), 1)) 2353s ***** assert (isequal (euler (1), 0)) 2353s ***** assert (isequal (euler (10), -50521)) 2353s ***** test 2353s n = sym(88); 2353s m = 88; 2353s A = euler (m); 2353s B = double (euler (n)); 2353s assert (A, B, -eps); 2353s ***** test 2353s m = [0 1; 2 4]; 2353s n = sym(m); 2353s A = euler (m); 2353s B = double (euler (n)); 2353s assert (isequal (A, B)); 2353s ***** test 2353s y = sym(19)/10; 2353s n = sym(2); 2353s x = 1.9; 2353s m = 2; 2353s A = euler (m, x); 2353s B = double (euler (n, y)); 2353s assert (A, B, -eps); 2353s ***** test 2353s % correct behaviour at floating point infinity 2353s assert (isequal (euler (4, inf), inf)) 2353s assert (isequal (euler (4, -inf), inf)) 2353s assert (isequal (euler (3, inf), inf)) 2353s assert (isequal (euler (3, -inf), -inf)) 2353s ***** test 2353s assert (isnan (euler(3, nan))) 2353s assert (isnumeric (euler(3, nan))) 2353s ***** test 2353s % maple, complex input 2353s A = 113.33970046079423204 - 46.991080726974811540i; 2353s B = euler(7, 2.12345 + 1.23i); 2353s assert (A, B, -eps); 2353s ***** test 2353s % maple, complex input, large m, small x 2353s A = 0.18034673393294025238e276 + 0.27756266681280689172e276*i; 2353s B = euler (200, 0.123+0.234i); 2353s assert (A, B, -eps); 2353s ***** test 2353s % x matrix, m scalar 2353s y = [1 2 sym(pi); exp(sym(1)) 5 6]; 2353s n = sym(2); 2353s x = double (y); 2353s m = 2; 2353s A = euler (m, x); 2353s B = double (euler (n, y)); 2353s assert (A, B, -eps); 2354s ***** test 2354s % m matrix, x scalar 2354s m = [1 2 3; 4 5 6]; 2354s n = sym(m); 2354s y = sym(21)/10; 2354s x = 2.1; 2354s A = euler (m, x); 2354s B = double (euler (n, y)); 2354s assert (A, B, -3*eps); 2354s 15 tests, 15 passed, 0 known failure, 0 skipped 2354s [inst/@double/pochhammer.m] 2354s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@double/pochhammer.m 2354s ***** error pochhammer (1) 2355s ***** error pochhammer (1, 2, 3) 2355s ***** error pochhammer ([1 2], [1 2 3]) 2355s ***** error pochhammer ([1 2], [1; 2]) 2355s ***** test 2355s y = sym(11)/10; 2355s t = sym(3); 2355s x = 1.1; 2355s s = 3; 2355s A = pochhammer (x, s); 2355s B = double (pochhammer (y, t)); 2355s assert (A, B, -2*eps); 2355s ***** test 2355s % maple 2355s A = 256.798558090310131720; 2355s B = pochhammer (18.1, 1.9); 2355s assert (A, B, -20*eps) 2355s ***** test 2355s % maple, complex inputs> 2355s A = 2.67921619474318221972 + 1.96716724764630702653*1i; 2355s B = pochhammer (12.1+3.1*i, 0.5+0.2i); 2355s assert (A, B, -4*eps); 2355s ***** test 2355s % maple, matrix inputs 2355s A = [5.61467232547723663908 20.6144884613920190965]; 2355s B = pochhammer ([0.9 0.8], [3.1 4.2]); 2355s assert (A, B, -3*eps); 2355s ***** test 2355s % x matrix, s scalar 2355s y = [1 2 sym(pi); exp(sym(1)) 5 6]; 2355s t = sym(2); 2355s x = double (y); 2355s s = 2; 2355s A = pochhammer (s, x); 2355s B = double (pochhammer (t, y)); 2355s assert (A, B, -3*eps); 2355s ***** test 2355s % s matrix, x scalar 2355s t = [1 2 sym(pi); exp(sym(1)) 5 6]; 2355s y = sym(2); 2355s s = double (t); 2355s x = 2; 2355s A = pochhammer (s, x); 2355s B = double (pochhammer (t, y)); 2355s assert (A, B, -5*eps); 2356s 10 tests, 10 passed, 0 known failure, 0 skipped 2356s [inst/eulergamma.m] 2356s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/eulergamma.m 2356s ***** error catalan (sym(1)) 2356s ***** assert (double (eulergamma ()) > 0.577215664901) 2356s ***** assert (double (eulergamma ()) < 0.577215664902) 2356s 3 tests, 3 passed, 0 known failure, 0 skipped 2356s [inst/pycall_sympy__.m] 2356s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/pycall_sympy__.m 2356s ***** test 2356s % general test 2356s x = 10; y = 6; 2356s cmd = '(x,y) = _ins; return (x+y,x-y)'; 2356s [a,b] = pycall_sympy__ (cmd, x, y); 2356s assert (a == x + y && b == x - y) 2356s ***** test 2356s % bool 2356s assert (pycall_sympy__ ('return True,')) 2356s assert (~pycall_sympy__ ('return False,')) 2356s ***** test 2356s % float 2356s assert (abs(pycall_sympy__ ('return 1.0/3,') - 1/3) < 1e-15) 2356s ***** test 2356s % int 2356s r = pycall_sympy__ ('return 123456'); 2356s assert (r == 123456) 2356s assert (isinteger (r)) 2356s ***** test 2356s % string 2356s x = 'octave'; 2356s cmd = 's = _ins[0]; return s.capitalize(),'; 2356s y = pycall_sympy__ (cmd, x); 2356s assert (strcmp(y, 'Octave')) 2356s ***** test 2356s % string with escaped newlines, comes back as escaped newlines 2356s x = 'a string\nbroke off\nmy guitar\n'; 2356s y = pycall_sympy__ ('return _ins', x); 2356s assert (strcmp(y, x)) 2356s ***** test 2356s % string with actual newlines, comes back as actual newlines 2356s x = sprintf('a string\nbroke off\nmy guitar\n'); 2356s y = pycall_sympy__ ('return _ins', x); 2356s y2 = strrep(y, sprintf('\n'), sprintf('\r\n')); % windows 2356s assert (strcmp(x, y) || strcmp(x, y2)) 2356s ***** test 2356s % cmd string with newlines, works with cell 2356s y = pycall_sympy__ ('return "string\nbroke",'); 2356s y2 = sprintf('string\nbroke'); 2356s y3 = strrep(y2, sprintf('\n'), sprintf('\r\n')); % windows 2356s assert (strcmp(y, y2) || strcmp(y, y3)) 2356s ***** test 2356s % string with XML escapes 2356s x = '<> >< <<>>'; 2356s y = pycall_sympy__ ('return _ins', x); 2356s assert (strcmp(y, x)) 2356s x = '&'; 2356s y = pycall_sympy__ ('return _ins', x); 2356s assert (strcmp(y, x)) 2356s ***** test 2356s % strings with double quotes 2356s x = 'a\"b\"c'; 2356s y = pycall_sympy__ ('return _ins', x); 2356s assert (strcmp(y, x)) 2356s x = '\"'; 2356s y = pycall_sympy__ ('return _ins', x); 2356s assert (strcmp(y, x)) 2356s ***** test 2356s % cmd has double quotes, these must be escaped by user 2356s % (of course: she is writing python code) 2356s expy = 'a"b"c'; 2356s y = pycall_sympy__ ('return "a\"b\"c",'); 2356s assert (strcmp(y, expy)) 2356s ***** test 2356s % strings with quotes 2356s x = 'a''b'; % this is a single quote 2356s y = pycall_sympy__ ('return _ins', x); 2356s assert (strcmp(y, x)) 2356s ***** test 2356s % strings with quotes 2356s x = '\"a''b\"c''\"d'; 2356s y = pycall_sympy__ ('return _ins[0]', x); 2356s assert (strcmp(y, x)) 2356s ***** test 2356s % strings with quotes 2356s expy = '"a''b"c''"d'; 2356s y = pycall_sympy__ ('s = "\"a''b\"c''\"d"; return s'); 2356s assert (strcmp(y, expy)) 2356s ***** test 2356s % strings with printf escapes 2356s x = '% %% %%% %%%% %s %g %%s'; 2356s y = pycall_sympy__ ('return _ins', x); 2356s assert (strcmp(y, x)) 2356s ***** test 2356s % cmd with printf escapes 2356s x = '% %% %%% %%%% %s %g %%s'; 2356s y = pycall_sympy__ (['return "' x '",']); 2356s assert (strcmp(y, x)) 2356s ***** test 2356s % cmd w/ backslash and \n must be escaped by user 2356s expy = 'a\b\\c\nd\'; 2356s y = pycall_sympy__ ('return "a\\b\\\\c\\nd\\",'); 2356s assert (strcmp(y, expy)) 2356s ***** test 2356s % slashes 2356s x = '/\\ // \\\\ \\/\\/\\'; 2356s z = '/\ // \\ \/\/\'; 2356s y = pycall_sympy__ ('return _ins', x); 2356s assert (strcmp(y, x)) 2356s ***** test 2356s % slashes 2356s z = '/\ // \\ \/\/\'; 2356s y = pycall_sympy__ ('return "/\\ // \\\\ \\/\\/\\"'); 2356s assert (strcmp(y, z)) 2356s ***** test 2356s % strings with special chars 2356s x = '!@#$^&* you!'; 2356s y = pycall_sympy__ ('return _ins', x); 2356s assert (strcmp(y, x)) 2356s x = '~-_=+[{]}|;:,.?'; 2356s y = pycall_sympy__ ('return _ins', x); 2356s assert (strcmp(y, x)) 2356s ***** xtest 2356s % string with backtick trouble for system -c (sysoneline) 2356s x = '`'; 2356s y = pycall_sympy__ ('return _ins', x); 2356s assert (strcmp(y, x)) 2356s ***** test 2356s % unicode 2356s s1 = '我爱你'; 2356s cmd = 'return u"\u6211\u7231\u4f60",'; 2356s s2 = pycall_sympy__ (cmd); 2356s assert (strcmp (s1, s2)) 2356s ***** test 2356s % unicode with \x 2356s s1 = '我'; 2356s cmd = 'return b"\xe6\x88\x91".decode("utf-8")'; 2356s s2 = pycall_sympy__ (cmd); 2356s assert (strcmp (s1, s2)) 2356s ***** test 2356s % unicode with \x and some escaped backslashes 2356s s1 = '\我\'; 2356s cmd = 'return b"\\\xe6\x88\x91\\".decode("utf-8")'; 2356s s2 = pycall_sympy__ (cmd); 2356s assert (strcmp (s1, s2)) 2356s ***** xtest 2356s % unicode passthru 2356s s = '我爱你'; 2356s s2 = pycall_sympy__ ('return _ins', s); 2356s assert (strcmp (s, s2)) 2356s s = '我爱你<>\&//\#%% %\我'; 2356s s2 = pycall_sympy__ ('return _ins', s); 2356s assert (strcmp (s, s2)) 2356s ***** xtest 2356s % unicode w/ slashes, escapes 2356s s = '我<>\&//\#%% %\我'; 2356s s2 = pycall_sympy__ ('return "我<>\\&//\\#%% %\\我"'); 2356s assert (strcmp (s, s2)) 2356s ***** test 2356s % list, tuple 2356s assert (isequal (pycall_sympy__ ('return [1,2,3],'), {1, 2, 3})) 2356s assert (isequal (pycall_sympy__ ('return (4,5),'), {4, 5})) 2356s assert (isequal (pycall_sympy__ ('return (6,),'), {6,})) 2356s assert (isequal (pycall_sympy__ ('return [],'), {})) 2356s ***** test 2356s % dict 2356s cmd = 'd = dict(); d["a"] = 6; d["b"] = 10; return d,'; 2356s d = pycall_sympy__ (cmd); 2356s assert (d.a == 6 && d.b == 10) 2356s ***** test 2356s r = pycall_sympy__ ('return 6'); 2356s assert (isequal (r, 6)) 2356s ***** test 2356s r = pycall_sympy__ ('return "Hi"'); 2356s assert (strcmp (r, 'Hi')) 2356s ***** test 2356s % blank lines, lines with spaces 2356s a = pycall_sympy__ ({ '', '', ' ', 'return 6', ' ', ''}); 2356s assert (isequal (a, 6)) 2356s ***** test 2356s % blank lines, strange comment lines 2356s cmd = {'a = 1', '', '#', '', '# ', ' #', 'a = a + 2', ' #', 'return a'}; 2356s a = pycall_sympy__ (cmd); 2356s assert (isequal (a, 3)) 2356s ***** test 2356s % return empty string (was https://bugs.python.org/issue25270) 2356s assert (isempty (pycall_sympy__ ('return ""'))) 2356s ***** test 2356s % return nothing (via an empty list) 2356s % note distinct from 'return [],' 2356s pycall_sympy__ ('return []') 2356s ***** test 2356s % return nothing (because no return command) 2356s pycall_sympy__ ('dummy = 1') 2356s ***** test 2356s % return nothing (because no command) 2356s pycall_sympy__ ('') 2356s ***** test 2356s % return nothing (because no command) 2356s pycall_sympy__ ({}) 2356s ***** error 2356s % python exception while passing variables to python 2356s % This tests the "INTERNAL_PYTHON_ERROR" path. 2356s % FIXME: this is a very specialized test, relies on internal octsympy 2356s % implementation details, and may need to be adjusted for changes. 2356s disp('') 2356s disp('**********************************************************************') 2356s disp('') 2356s disp(' Some deliberate AttributeError and ValueError may appear next') 2356s disp('') 2356s 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') 2356s b = sym([], 'S.This_is_supposed_to_make_an_exception', [1 1], 'Test', 'Test', 'Test'); 2356s c = b + 1; 2356s 2356s ********************************************************************** 2356s 2356s Some deliberate AttributeError and ValueError may appear next 2356s 2356s v v v v v v v v v v v v v v v v v v v v v v v v 2356s Traceback (most recent call last): 2356s File "", line 4, in 2356s File "/usr/lib/python3/dist-packages/sympy/core/singleton.py", line 118, in __getattr__ 2356s raise AttributeError( 2356s AttributeError: Attribute 'This_is_supposed_to_make_an_exception' was not installed on SymPy registry S 2356s ***** test 2356s % ...and after the above test, the pipe should still work 2356s a = pycall_sympy__ ('return _ins[0]*2', 3); 2356s assert (isequal (a, 6)) 2356s ***** test 2356s % This command does not fail with native interface and '@pyobject' 2356s s = warning ('off', 'OctSymPy:pythonic_no_convert'); 2356s try 2356s q = pycall_sympy__ ({'return type(int)'}); 2356s catch 2356s msg = lasterror.message; 2356s assert (~ isempty (regexp (msg, '.*does not know how to.*'))) 2356s end 2356s warning (s) 2356s disp('^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^') 2356s disp(' End of deliberate errors!') 2356s disp(' You should see "46/46" or "Passes 46 out of 46 tests" below') 2356s disp('**********************************************************************') 2356s % ...and after the above test, the pipe should still work 2356s a = pycall_sympy__ ('return _ins[0]*2', 3); 2356s assert (isequal (a, 6)) 2356s Traceback (most recent call last): 2356s File "", line 2, in 2356s File "", line 12, in octoutput_drv 2356s File "", line 96, in octoutput 2356s ValueError: octoutput does not know how to export type 2356s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2356s End of deliberate errors! 2356s You should see "46/46" or "Passes 46 out of 46 tests" below 2356s ********************************************************************** 2356s ***** test 2356s % complex input 2356s [A, B] = pycall_sympy__ ('z = 2*_ins[0]; return (z.real,z.imag)', 3+4i); 2356s assert (A, 6) 2356s assert (B, 8) 2356s ***** test 2356s % complex output 2356s z = pycall_sympy__ ('return 3+2j'); 2356s assert (z, 3+2i) 2356s ***** error 2356s s = char ('abc', 'defgh', '12345'); 2356s r = pycall_sympy__ ('return _ins[0]', s); 2356s ***** test 2356s r = pycall_sympy__ ('return len(_ins[0])', ''); 2356s assert (r == 0) 2357s ***** test 2357s % ensure the 0x0 matrix in octave gets mapped to the empty list in python 2357s % @sym/subsasgn currently replies on this behaviour 2357s assert (pycall_sympy__ ('return _ins[0] == []', [])); 2357s ***** test 2357s % ensure the empty string gets mapped to the empty string in python 2357s assert (pycall_sympy__ ('return _ins[0] == ""', '')); 2357s 46 tests, 46 passed, 0 known failure, 0 skipped 2357s [inst/@logical/isAlways.m] 2357s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/@logical/isAlways.m 2357s ***** error isAlways (true, false) 2357s ***** assert(isAlways(true)) 2357s ***** assert(~isAlways(false)) 2357s 3 tests, 3 passed, 0 known failure, 0 skipped 2357s [inst/dirac.m] 2357s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/dirac.m 2357s ***** assert (isinf (dirac (0))) 2357s ***** assert (dirac (1) == 0) 2357s ***** assert (isnan (dirac (nan))) 2357s ***** assert (isequaln (dirac ([-1 1 0 eps inf -inf nan]), [0 0 inf 0 0 0 nan])) 2357s ***** error dirac (1i) 2357s ***** assert (isa (dirac (single (0)), 'single')) 2357s 6 tests, 6 passed, 0 known failure, 0 skipped 2357s [inst/heaviside.m] 2357s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/heaviside.m 2357s ***** assert (heaviside (0) == 0.5) 2357s ***** assert (isnan (heaviside (nan))) 2357s ***** assert (isequal (heaviside ([-inf -eps 0 eps inf]), [0 0 0.5 1 1])) 2357s ***** assert (isequaln (heaviside ([-1 1 nan]), [0 1 nan])) 2357s ***** assert (heaviside (0, 1) == 1) 2357s ***** error heaviside (1i) 2357s ***** assert (isa (heaviside (single (0)), 'single')) 2357s 7 tests, 7 passed, 0 known failure, 0 skipped 2357s [inst/laguerreL.m] 2357s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/laguerreL.m 2357s ***** error laguerreL (1) 2357s ***** error laguerreL (1, 2, 3) 2357s ***** assert (isequal (laguerreL (0, rand), 1)) 2357s ***** test 2357s x = rand; 2357s assert (isequal (laguerreL (1, x), 1 - x)) 2357s ***** test 2357s x=rand; 2357s y1=laguerreL(2, x); 2357s p2=[.5 -2 1]; 2357s y2=polyval(p2,x); 2357s assert(y1 - y2, 0, 10*eps); 2357s ***** test 2357s x=rand; 2357s y1=laguerreL(3, x); 2357s p3=[-1/6 9/6 -18/6 1]; 2357s y2=polyval(p3,x); 2357s assert(y1 - y2, 0, 20*eps); 2357s ***** test 2357s x=rand; 2357s y1=laguerreL(4, x); 2357s p4=[1/24 -16/24 72/24 -96/24 1]; 2357s y2=polyval(p4,x); 2357s assert(y1 - y2, 0, 30*eps) 2357s ***** error laguerreL(1.5, 10) 2357s ***** error laguerreL([0 1], [1 2 3]) 2357s ***** error laguerreL([0 1], [1; 2]) 2357s ***** test 2357s % numerically stable implementation (in n) 2357s L = laguerreL (10, 10); 2357s Lex = 1763/63; 2357s assert (L, Lex, -eps) 2357s L = laguerreL (20, 10); 2357s Lex = -177616901779/14849255421; % e.g., laguerreL(sym(20),10) 2357s assert (L, Lex, -eps) 2357s ***** test 2357s % vectorized x 2357s L = laguerreL (2, [5 6 7]); 2357s Lex = [3.5 7 11.5]; 2357s assert (L, Lex, eps) 2357s ***** test 2357s L = laguerreL (0, [4 5]); 2357s assert (L, [1 1], eps) 2357s ***** test 2357s % vector n 2357s L = laguerreL ([0 1 2 3], [4 5 6 9]); 2357s assert (L, [1 -4 7 -26], eps) 2357s ***** test 2357s % vector n, scalar x 2357s L = laguerreL ([0 1 2 3], 6); 2357s assert (L, [1 -5 7 1], eps) 2357s ***** assert (isa (laguerreL (0, single (1)), 'single')) 2357s ***** assert (isa (laguerreL (1, single ([1 2])), 'single')) 2357s ***** assert (isa (laguerreL ([1 2], single ([1 2])), 'single')) 2357s 18 tests, 18 passed, 0 known failure, 0 skipped 2357s [inst/digits.m] 2357s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/digits.m 2357s ***** test 2357s orig = digits(32); % to reset later 2357s m = digits(64); 2357s p = vpa(sym(pi)); 2357s assert (abs (double (sin(p))) < 1e-64) 2357s n = digits(m); 2357s assert (n == 64) 2357s p = vpa(sym(pi)); 2357s assert (abs (double (sin(p))) < 1e-32) 2357s assert (abs (double (sin(p))) > 1e-40) 2357s digits(orig) 2357s 1 test, 1 passed, 0 known failure, 0 skipped 2357s [inst/octsympy_tests.m] 2357s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/octsympy_tests.m 2357s ***** assert(true) 2357s 1 test, 1 passed, 0 known failure, 0 skipped 2357s [inst/catalan.m] 2357s >>>>> /tmp/autopkgtest.mfs7j4/build.OpJ/src/inst/catalan.m 2357s ***** error catalan (sym(1)) 2357s ***** assert (double (catalan ()) > 0.915965594177) 2357s ***** assert (double (catalan ()) < 0.915965594178) 2357s 3 tests, 3 passed, 0 known failure, 0 skipped 2357s Checking C++ files ... 2357s 2359s Done running the unit tests. 2359s Summary: 2401 tests, 2370 passed, 30 known failures, 0 skipped 2359s Some tests failed. Giving up... 2360s autopkgtest [11:00:55]: test command1: -----------------------] 2361s command1 FAIL non-zero exit status 1 2361s autopkgtest [11:00:56]: test command1: - - - - - - - - - - results - - - - - - - - - - 2361s autopkgtest [11:00:56]: @@@@@@@@@@@@@@@@@@@@ summary 2361s command1 FAIL non-zero exit status 1 2407s nova [W] Skipping flock in bos03-arm64 2407s Creating nova instance adt-oracular-arm64-octave-symbolic-20240616-102135-juju-7f2275-prod-proposed-migration-environment-2-4d5748bc-56d2-415e-ba16-ca539839c873 from image adt/ubuntu-oracular-arm64-server-20240615.img (UUID 891f4ace-6bc2-49e5-8107-dfb2761629d0)...