0s autopkgtest [01:17:13]: starting date and time: 2024-06-03 01:17:13+0000 0s autopkgtest [01:17:13]: git checkout: 930f72e5 setup-testbed: don't install 'Recommends' for 'linux-generic' 0s autopkgtest [01:17:13]: host juju-7f2275-prod-proposed-migration-environment-3; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.6jdkxu15/out --timeout-copy=6000 -a i386 --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-3@lcy02-32.secgroup --name adt-oracular-i386-octave-symbolic-20240603-011711-juju-7f2275-prod-proposed-migration-environment-3-a69af571-5ad4-4078-b528-c274ea3944e6 --image adt/ubuntu-oracular-amd64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-3 --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/ 111s autopkgtest [01:19:04]: testbed dpkg architecture: amd64 111s autopkgtest [01:19:04]: testbed apt version: 2.9.3 111s autopkgtest [01:19:04]: test architecture: i386 111s autopkgtest [01:19:04]: @@@@@@@@@@@@@@@@@@@@ test bed setup 112s Get:1 http://ftpmaster.internal/ubuntu oracular-proposed InRelease [110 kB] 112s Get:2 http://ftpmaster.internal/ubuntu oracular-proposed/multiverse Sources [3940 B] 112s Get:3 http://ftpmaster.internal/ubuntu oracular-proposed/main Sources [44.7 kB] 112s Get:4 http://ftpmaster.internal/ubuntu oracular-proposed/restricted Sources [4792 B] 112s Get:5 http://ftpmaster.internal/ubuntu oracular-proposed/universe Sources [384 kB] 112s Get:6 http://ftpmaster.internal/ubuntu oracular-proposed/main i386 Packages [61.7 kB] 112s Get:7 http://ftpmaster.internal/ubuntu oracular-proposed/main amd64 Packages [87.5 kB] 112s Get:8 http://ftpmaster.internal/ubuntu oracular-proposed/restricted i386 Packages [4300 B] 112s Get:9 http://ftpmaster.internal/ubuntu oracular-proposed/restricted amd64 Packages [7700 B] 112s Get:10 http://ftpmaster.internal/ubuntu oracular-proposed/universe i386 Packages [188 kB] 112s Get:11 http://ftpmaster.internal/ubuntu oracular-proposed/universe amd64 Packages [363 kB] 112s Get:12 http://ftpmaster.internal/ubuntu oracular-proposed/multiverse amd64 Packages [2224 B] 112s Get:13 http://ftpmaster.internal/ubuntu oracular-proposed/multiverse i386 Packages [2224 B] 112s Fetched 1264 kB in 0s (5318 kB/s) 112s Reading package lists... 113s Reading package lists... 114s Building dependency tree... 114s Reading state information... 114s Calculating upgrade... 114s The following packages will be upgraded: 114s libsensors-config libsensors5 114s 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 114s Need to get 32.1 kB of archives. 114s After this operation, 0 B of additional disk space will be used. 114s Get:1 http://ftpmaster.internal/ubuntu oracular/main amd64 libsensors-config all 1:3.6.0-10 [5532 B] 114s Get:2 http://ftpmaster.internal/ubuntu oracular/main amd64 libsensors5 amd64 1:3.6.0-10 [26.6 kB] 114s Fetched 32.1 kB in 0s (2087 kB/s) 115s (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 ... 74359 files and directories currently installed.) 115s Preparing to unpack .../libsensors-config_1%3a3.6.0-10_all.deb ... 115s Unpacking libsensors-config (1:3.6.0-10) over (1:3.6.0-9build1) ... 115s Preparing to unpack .../libsensors5_1%3a3.6.0-10_amd64.deb ... 115s Unpacking libsensors5:amd64 (1:3.6.0-10) over (1:3.6.0-9build1) ... 115s Setting up libsensors-config (1:3.6.0-10) ... 115s Setting up libsensors5:amd64 (1:3.6.0-10) ... 115s Processing triggers for libc-bin (2.39-0ubuntu8.1) ... 115s Reading package lists... 115s Building dependency tree... 115s Reading state information... 116s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 116s Hit:1 http://ftpmaster.internal/ubuntu oracular-proposed InRelease 116s Hit:2 http://ftpmaster.internal/ubuntu oracular InRelease 116s Hit:3 http://ftpmaster.internal/ubuntu oracular-updates InRelease 116s Hit:4 http://ftpmaster.internal/ubuntu oracular-security InRelease 117s Reading package lists... 117s Reading package lists... 117s Building dependency tree... 117s Reading state information... 117s Calculating upgrade... 117s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 118s Reading package lists... 118s Building dependency tree... 118s Reading state information... 118s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 119s autopkgtest [01:19:12]: testbed running kernel: Linux 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 119s autopkgtest [01:19:12]: @@@@@@@@@@@@@@@@@@@@ apt-source octave-symbolic 119s Get:1 http://ftpmaster.internal/ubuntu oracular/universe octave-symbolic 3.1.1-2 (dsc) [2289 B] 119s Get:2 http://ftpmaster.internal/ubuntu oracular/universe octave-symbolic 3.1.1-2 (tar) [266 kB] 119s Get:3 http://ftpmaster.internal/ubuntu oracular/universe octave-symbolic 3.1.1-2 (diff) [6096 B] 119s gpgv: Signature made Tue Jun 13 21:02:30 2023 UTC 119s gpgv: using RSA key 3F464391498FE874BDB5D98F2124AA1983785C90 119s gpgv: issuer "rafael@debian.org" 119s gpgv: Can't check signature: No public key 119s dpkg-source: warning: cannot verify inline signature for ./octave-symbolic_3.1.1-2.dsc: no acceptable signature found 119s autopkgtest [01:19:12]: testing package octave-symbolic version 3.1.1-2 120s autopkgtest [01:19:13]: build not needed 120s autopkgtest [01:19:13]: test command1: preparing testbed 126s Note, using file '/tmp/autopkgtest.Hm10sW/1-autopkgtest-satdep.dsc' to get the build dependencies 126s Reading package lists... 126s Building dependency tree... 126s Reading state information... 126s Starting pkgProblemResolver with broken count: 0 126s Starting 2 pkgProblemResolver with broken count: 0 126s Done 127s The following NEW packages will be installed: 127s aglfn autoconf automake autopoint autotools-dev build-essential cme cpp 127s cpp-13 cpp-13-x86-64-linux-gnu cpp-x86-64-linux-gnu debhelper debugedit 127s dh-autoreconf dh-octave dh-octave-autopkgtest dh-strip-nondeterminism 127s diffstat dwz fontconfig fonts-freefont-otf g++ g++-13 127s g++-13-x86-64-linux-gnu g++-x86-64-linux-gnu gcc gcc-13 gcc-13-base 127s gcc-13-x86-64-linux-gnu gcc-x86-64-linux-gnu gettext gfortran gfortran-13 127s gfortran-13-x86-64-linux-gnu gfortran-x86-64-linux-gnu gnuplot-data 127s gnuplot-nox hdf5-helpers intltool-debian libaec-dev libaec0 127s libalgorithm-c3-perl libaliased-perl libamd-comgr2 libamd3 libamdhip64-5 127s libapp-cmd-perl libapt-pkg-perl libarchive-zip-perl libarpack2t64 127s libarray-intspan-perl libasan8 libasound2-data libasound2t64 libatomic1 127s libavahi-client3 libavahi-common-data libavahi-common3 127s libb-hooks-endofscope-perl libb-hooks-op-check-perl libberkeleydb-perl 127s libblas-dev libblas3 libboolean-perl libbtf2 libcairo2 libcamd3 127s libcapture-tiny-perl libcarp-assert-more-perl libcc1-0 libccolamd3 127s libcgi-pm-perl libcholmod5 libclass-c3-perl libclass-data-inheritable-perl 127s libclass-load-perl libclass-method-modifiers-perl libclass-xsaccessor-perl 127s libclone-choose-perl libclone-perl libcolamd3 libcombblas2.0.0t64 127s libconfig-model-backend-yaml-perl libconfig-model-dpkg-perl 127s libconfig-model-perl libconfig-tiny-perl libconst-fast-perl 127s libconvert-binhex-perl libcpanel-json-xs-perl libcups2t64 127s libcurl4-openssl-dev libcxsparse4 libdata-dpath-perl 127s libdata-messagepack-perl libdata-optlist-perl libdata-section-perl 127s libdata-validate-domain-perl libdata-validate-ip-perl 127s libdata-validate-uri-perl libdatrie1 libdebhelper-perl 127s libdevel-callchecker-perl libdevel-size-perl libdevel-stacktrace-perl 127s libdouble-conversion3 libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 127s libdrm-radeon1 libdynaloader-functions-perl libegl-mesa0 libegl1 127s libemail-address-xs-perl libencode-locale-perl liberror-perl 127s libevent-pthreads-2.1-7t64 libexception-class-perl libexporter-lite-perl 127s libexporter-tiny-perl libfabric1 libfftw3-bin libfftw3-dev libfftw3-double3 127s libfftw3-long3 libfftw3-mpi3 libfftw3-quad3 libfftw3-single3 127s libfile-basedir-perl libfile-find-rule-perl libfile-homedir-perl 127s libfile-listing-perl libfile-stripnondeterminism-perl libfile-which-perl 127s libflac12t64 libfltk-gl1.3t64 libfltk1.3t64 libfont-ttf-perl libfontenc1 127s libgbm1 libgcc-13-dev libgetopt-long-descriptive-perl libgfortran-13-dev 127s libgfortran5 libgl-dev libgl1 libgl1-mesa-dri libgl2ps1.4 libglapi-mesa 127s libglpk40 libglu1-mesa libglvnd0 libglx-dev libglx-mesa0 libglx0 libgomp1 127s libgraphicsmagick++-q16-12t64 libgraphicsmagick-q16-3t64 libgraphite2-3 127s libharfbuzz0b libhash-merge-perl libhdf5-103-1t64 libhdf5-cpp-103-1t64 127s libhdf5-dev libhdf5-fortran-102t64 libhdf5-hl-100t64 libhdf5-hl-cpp-100t64 127s libhdf5-hl-fortran-100t64 libhdf5-openmpi-103-1t64 libhsa-runtime64-1 127s libhsakmt1 libhtml-form-perl libhtml-html5-entities-perl libhtml-parser-perl 127s libhtml-tagset-perl libhtml-tokeparser-simple-perl libhtml-tree-perl 127s libhttp-cookies-perl libhttp-date-perl libhttp-message-perl 127s libhttp-negotiate-perl libhwasan0 libhwloc-plugins libhwloc15 libhwy1t64 127s libhypre-2.28.0 libice6 libimport-into-perl libindirect-perl libinput-bin 127s libinput10 libio-html-perl libio-interactive-perl libio-socket-ssl-perl 127s libio-string-perl libio-stringy-perl libio-tiecombine-perl libipc-run3-perl 127s libipc-system-simple-perl libisl23 libiterator-perl libiterator-util-perl 127s libitm1 libjack-jackd2-0 libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev 127s libjson-maybexs-perl libjson-perl libjxl0.8 libklu2 liblapack-dev liblapack3 127s liblcms2-2 liblist-compare-perl liblist-moreutils-perl 127s liblist-moreutils-xs-perl liblist-someutils-perl liblist-utilsby-perl 127s libllvm17t64 liblog-any-adapter-screen-perl liblog-any-perl 127s liblog-log4perl-perl liblsan0 libltdl7 liblua5.4-0 liblwp-mediatypes-perl 127s liblwp-protocol-https-perl libmailtools-perl libmarkdown2 libmd4c0 libmetis5 127s libmime-tools-perl libmldbm-perl libmodule-implementation-perl 127s libmodule-pluggable-perl libmodule-runtime-perl libmoo-perl 127s libmoox-aliases-perl libmouse-perl libmousex-nativetraits-perl 127s libmousex-strictconstructor-perl libmp3lame0 libmpc3 libmpg123-0t64 127s libmro-compat-perl libmtdev1t64 libmumps-5.6t64 libmunge2 127s libnamespace-clean-perl libncurses-dev libnet-domain-tld-perl 127s libnet-http-perl libnet-ipv6addr-perl libnet-netmask-perl 127s libnet-smtp-ssl-perl libnet-ssleay-perl libnetaddr-ip-perl 127s libnumber-compare-perl libobject-pad-perl libogg0 libopengl0 libopenmpi3t64 127s libopus0 libpackage-stash-perl libpango-1.0-0 libpangocairo-1.0-0 127s libpangoft2-1.0-0 libparams-classify-perl libparams-util-perl 127s libparams-validate-perl libparse-debcontrol-perl libparse-recdescent-perl 127s libpath-iterator-rule-perl libpath-tiny-perl libpciaccess0 libpcre2-16-0 127s libperlio-gzip-perl libperlio-utf8-strict-perl libpetsc-real3.19t64 127s libpixman-1-0 libpmix2t64 libpod-constants-perl libpod-parser-perl 127s libpod-pom-perl libportaudio2 libproc-processtable-perl libpsm-infinipath1 127s libpsm2-2 libptscotch-7.0 libqhull-r8.0 libqrupdate1 libqscintilla2-qt5-15 127s libqscintilla2-qt5-l10n libqt5core5t64 libqt5dbus5t64 libqt5gui5t64 127s libqt5help5 libqt5network5t64 libqt5printsupport5t64 libqt5sql5t64 127s libqt5widgets5t64 libqt5xml5t64 libquadmath0 librdmacm1t64 libreadline-dev 127s libregexp-common-perl libregexp-pattern-license-perl libregexp-pattern-perl 127s libregexp-wildcards-perl librole-tiny-perl libsamplerate0 127s libscalapack-openmpi2.2 libscotch-7.0 libsereal-decoder-perl 127s libsereal-encoder-perl libset-intspan-perl libsm6 libsndfile1 127s libsoftware-copyright-perl libsoftware-license-perl 127s libsoftware-licensemoreutils-perl libsort-versions-perl libspqr4 libssl-dev 127s libstdc++-13-dev libstrictures-perl libstring-copyright-perl 127s libstring-escape-perl libstring-license-perl libstring-rewriteprefix-perl 127s libsub-exporter-perl libsub-exporter-progressive-perl libsub-identify-perl 127s libsub-install-perl libsub-name-perl libsub-quote-perl libsub-uplevel-perl 127s libsuitesparseconfig7 libsundials-ida6 libsundials-nvecparallel-petsc6 127s libsundials-sunlinsol3 libsundials-sunmatrix4 libsuperlu-dist8 libsuperlu6 127s libsyntax-keyword-try-perl libsz2 libterm-readkey-perl 127s libtest-exception-perl libtext-autoformat-perl libtext-glob-perl 127s libtext-levenshtein-damerau-perl libtext-levenshteinxs-perl 127s libtext-markdown-discount-perl libtext-reform-perl libtext-template-perl 127s libtext-unidecode-perl libtext-xslate-perl libthai-data libthai0 127s libtime-duration-perl libtime-moment-perl libtimedate-perl libtoml-tiny-perl 127s libtool libtrilinos-amesos-13.2 libtrilinos-aztecoo-13.2 127s libtrilinos-epetra-13.2 libtrilinos-epetraext-13.2 libtrilinos-galeri-13.2 127s libtrilinos-ifpack-13.2 libtrilinos-kokkos-13.2 libtrilinos-ml-13.2 127s libtrilinos-teuchos-13.2 libtrilinos-trilinosss-13.2 127s libtrilinos-triutils-13.2 libtrilinos-zoltan-13.2 libtry-tiny-perl libtsan2 127s libubsan1 libucx0 libumfpack6 libunicode-utf8-perl liburi-perl 127s libvariable-magic-perl libvorbis0a libvorbisenc2 libvulkan1 libwacom-common 127s libwacom9 libwayland-client0 libwayland-server0 libwebpmux3 libwmflite-0.2-7 127s libwww-mechanize-perl libwww-perl libwww-robotrules-perl libx11-dev 127s libx11-xcb1 libxau-dev libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 127s libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-present0 libxcb-randr0 127s libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 127s libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xinput0 libxcb-xkb1 127s libxcb1-dev libxcursor1 libxdmcp-dev libxfixes3 libxfont2 libxft2 127s libxinerama1 libxkbcommon-x11-0 libxkbfile1 libxml-libxml-perl 127s libxml-namespacesupport-perl libxml-sax-base-perl libxml-sax-perl libxmu6 127s libxnvctrl0 libxrandr2 libxrender1 libxs-parse-keyword-perl 127s libxs-parse-sublike-perl libxshmfence1 libxt6t64 libxxf86vm1 127s libyaml-libyaml-perl libyaml-pp-perl libyaml-tiny-perl licensecheck lintian 127s lzip lzop m4 mpi-default-bin ocl-icd-libopencl1 octave octave-common 127s octave-dev octave-symbolic openmpi-bin openmpi-common patchutils 127s perl-openssl-defaults po-debconf python3-mpmath python3-sympy t1utils 127s tex-common texinfo texinfo-lib unzip x11-common x11-xkb-utils x11proto-dev 127s xorg-sgml-doctools xserver-common xtrans-dev xvfb zlib1g-dev 127s 0 upgraded, 474 newly installed, 0 to remove and 0 not upgraded. 127s Need to get 256 MB of archives. 127s After this operation, 962 MB of additional disk space will be used. 127s Get:1 http://ftpmaster.internal/ubuntu oracular/main amd64 m4 amd64 1.4.19-4build1 [244 kB] 127s Get:2 http://ftpmaster.internal/ubuntu oracular/main amd64 autoconf all 2.71-3 [339 kB] 127s Get:3 http://ftpmaster.internal/ubuntu oracular/main amd64 autotools-dev all 20220109.1 [44.9 kB] 127s Get:4 http://ftpmaster.internal/ubuntu oracular/main amd64 automake all 1:1.16.5-1.3ubuntu1 [558 kB] 127s Get:5 http://ftpmaster.internal/ubuntu oracular/main amd64 autopoint all 0.21-14ubuntu2 [422 kB] 127s Get:6 http://ftpmaster.internal/ubuntu oracular/main amd64 gcc-13-base amd64 13.2.0-23ubuntu4 [49.0 kB] 127s Get:7 http://ftpmaster.internal/ubuntu oracular/main amd64 libisl23 amd64 0.26-3build1 [680 kB] 127s Get:8 http://ftpmaster.internal/ubuntu oracular/main amd64 libmpc3 amd64 1.3.1-1build1 [54.5 kB] 127s Get:9 http://ftpmaster.internal/ubuntu oracular/main amd64 cpp-13-x86-64-linux-gnu amd64 13.2.0-23ubuntu4 [11.2 MB] 127s Get:10 http://ftpmaster.internal/ubuntu oracular/main amd64 cpp-13 amd64 13.2.0-23ubuntu4 [1032 B] 127s Get:11 http://ftpmaster.internal/ubuntu oracular/main amd64 cpp-x86-64-linux-gnu amd64 4:13.2.0-7ubuntu1 [5326 B] 127s Get:12 http://ftpmaster.internal/ubuntu oracular/main amd64 cpp amd64 4:13.2.0-7ubuntu1 [22.4 kB] 127s Get:13 http://ftpmaster.internal/ubuntu oracular/main amd64 libcc1-0 amd64 14.1.0-1ubuntu1 [48.0 kB] 127s Get:14 http://ftpmaster.internal/ubuntu oracular/main amd64 libgomp1 amd64 14.1.0-1ubuntu1 [148 kB] 127s Get:15 http://ftpmaster.internal/ubuntu oracular/main amd64 libitm1 amd64 14.1.0-1ubuntu1 [29.1 kB] 127s Get:16 http://ftpmaster.internal/ubuntu oracular/main amd64 libatomic1 amd64 14.1.0-1ubuntu1 [10.4 kB] 127s Get:17 http://ftpmaster.internal/ubuntu oracular/main amd64 libasan8 amd64 14.1.0-1ubuntu1 [3025 kB] 127s Get:18 http://ftpmaster.internal/ubuntu oracular/main amd64 liblsan0 amd64 14.1.0-1ubuntu1 [1313 kB] 127s Get:19 http://ftpmaster.internal/ubuntu oracular/main amd64 libtsan2 amd64 14.1.0-1ubuntu1 [2736 kB] 127s Get:20 http://ftpmaster.internal/ubuntu oracular/main amd64 libubsan1 amd64 14.1.0-1ubuntu1 [1174 kB] 127s Get:21 http://ftpmaster.internal/ubuntu oracular/main amd64 libhwasan0 amd64 14.1.0-1ubuntu1 [1632 kB] 127s Get:22 http://ftpmaster.internal/ubuntu oracular/main amd64 libquadmath0 amd64 14.1.0-1ubuntu1 [153 kB] 127s Get:23 http://ftpmaster.internal/ubuntu oracular/main amd64 libgcc-13-dev amd64 13.2.0-23ubuntu4 [2688 kB] 127s Get:24 http://ftpmaster.internal/ubuntu oracular/main amd64 gcc-13-x86-64-linux-gnu amd64 13.2.0-23ubuntu4 [21.9 MB] 127s Get:25 http://ftpmaster.internal/ubuntu oracular/main amd64 gcc-13 amd64 13.2.0-23ubuntu4 [482 kB] 127s Get:26 http://ftpmaster.internal/ubuntu oracular/main amd64 gcc-x86-64-linux-gnu amd64 4:13.2.0-7ubuntu1 [1212 B] 127s Get:27 http://ftpmaster.internal/ubuntu oracular/main amd64 gcc amd64 4:13.2.0-7ubuntu1 [5018 B] 127s Get:28 http://ftpmaster.internal/ubuntu oracular/main amd64 libstdc++-13-dev amd64 13.2.0-23ubuntu4 [2399 kB] 127s Get:29 http://ftpmaster.internal/ubuntu oracular/main amd64 g++-13-x86-64-linux-gnu amd64 13.2.0-23ubuntu4 [12.5 MB] 128s Get:30 http://ftpmaster.internal/ubuntu oracular/main amd64 g++-13 amd64 13.2.0-23ubuntu4 [14.5 kB] 128s Get:31 http://ftpmaster.internal/ubuntu oracular/main amd64 g++-x86-64-linux-gnu amd64 4:13.2.0-7ubuntu1 [964 B] 128s Get:32 http://ftpmaster.internal/ubuntu oracular/main amd64 g++ amd64 4:13.2.0-7ubuntu1 [1100 B] 128s Get:33 http://ftpmaster.internal/ubuntu oracular/main amd64 build-essential amd64 12.10ubuntu1 [4928 B] 128s Get:34 http://ftpmaster.internal/ubuntu oracular/main amd64 libcapture-tiny-perl all 0.48-2 [20.2 kB] 128s Get:35 http://ftpmaster.internal/ubuntu oracular/main amd64 libparams-util-perl amd64 1.102-3 [21.1 kB] 128s Get:36 http://ftpmaster.internal/ubuntu oracular/main amd64 libsub-install-perl all 0.929-1 [9764 B] 128s Get:37 http://ftpmaster.internal/ubuntu oracular/main amd64 libdata-optlist-perl all 0.114-1 [9708 B] 128s Get:38 http://ftpmaster.internal/ubuntu oracular/main amd64 libb-hooks-op-check-perl amd64 0.22-3build1 [9518 B] 128s Get:39 http://ftpmaster.internal/ubuntu oracular/main amd64 libdynaloader-functions-perl all 0.003-3 [12.1 kB] 128s Get:40 http://ftpmaster.internal/ubuntu oracular/main amd64 libdevel-callchecker-perl amd64 0.009-1 [14.4 kB] 128s Get:41 http://ftpmaster.internal/ubuntu oracular/main amd64 libparams-classify-perl amd64 0.015-2build5 [20.1 kB] 128s Get:42 http://ftpmaster.internal/ubuntu oracular/main amd64 libmodule-runtime-perl all 0.016-2 [16.4 kB] 128s Get:43 http://ftpmaster.internal/ubuntu oracular/main amd64 libtry-tiny-perl all 0.31-2 [20.8 kB] 128s Get:44 http://ftpmaster.internal/ubuntu oracular/main amd64 libmodule-implementation-perl all 0.09-2 [12.0 kB] 128s Get:45 http://ftpmaster.internal/ubuntu oracular/main amd64 libpackage-stash-perl all 0.40-1 [19.5 kB] 128s Get:46 http://ftpmaster.internal/ubuntu oracular/universe amd64 libclass-load-perl all 0.25-2 [12.7 kB] 128s Get:47 http://ftpmaster.internal/ubuntu oracular/main amd64 libio-stringy-perl all 2.111-3 [55.8 kB] 128s Get:48 http://ftpmaster.internal/ubuntu oracular/universe amd64 libparams-validate-perl amd64 1.31-2build3 [53.9 kB] 128s Get:49 http://ftpmaster.internal/ubuntu oracular/main amd64 libsub-exporter-perl all 0.990-1 [49.0 kB] 128s Get:50 http://ftpmaster.internal/ubuntu oracular/universe amd64 libgetopt-long-descriptive-perl all 0.111-1 [25.5 kB] 128s Get:51 http://ftpmaster.internal/ubuntu oracular/universe amd64 libio-tiecombine-perl all 1.005-3 [9464 B] 128s Get:52 http://ftpmaster.internal/ubuntu oracular/universe amd64 libmodule-pluggable-perl all 5.2-5 [19.5 kB] 128s Get:53 http://ftpmaster.internal/ubuntu oracular/universe amd64 libstring-rewriteprefix-perl all 0.009-1 [6310 B] 128s Get:54 http://ftpmaster.internal/ubuntu oracular/universe amd64 libapp-cmd-perl all 0.336-1 [62.1 kB] 128s Get:55 http://ftpmaster.internal/ubuntu oracular/universe amd64 libboolean-perl all 0.46-3 [8430 B] 128s Get:56 http://ftpmaster.internal/ubuntu oracular/universe amd64 libsub-uplevel-perl all 0.2800-3 [11.6 kB] 128s Get:57 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtest-exception-perl all 0.43-3 [13.4 kB] 128s Get:58 http://ftpmaster.internal/ubuntu oracular/universe amd64 libcarp-assert-more-perl all 2.4.0-1 [18.0 kB] 128s Get:59 http://ftpmaster.internal/ubuntu oracular/main amd64 libfile-which-perl all 1.27-2 [12.5 kB] 128s Get:60 http://ftpmaster.internal/ubuntu oracular/main amd64 libfile-homedir-perl all 1.006-2 [37.0 kB] 128s Get:61 http://ftpmaster.internal/ubuntu oracular/universe amd64 libclone-choose-perl all 0.010-2 [7738 B] 128s Get:62 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhash-merge-perl all 0.302-1 [13.0 kB] 128s Get:63 http://ftpmaster.internal/ubuntu oracular/main amd64 libjson-perl all 4.10000-1 [81.9 kB] 128s Get:64 http://ftpmaster.internal/ubuntu oracular/main amd64 libexporter-tiny-perl all 1.006002-1 [36.8 kB] 128s Get:65 http://ftpmaster.internal/ubuntu oracular/universe amd64 liblist-moreutils-xs-perl amd64 0.430-4 [43.8 kB] 128s Get:66 http://ftpmaster.internal/ubuntu oracular/universe amd64 liblist-moreutils-perl all 0.430-2 [38.2 kB] 128s Get:67 http://ftpmaster.internal/ubuntu oracular/universe amd64 liblog-log4perl-perl all 1.57-1 [345 kB] 128s Get:68 http://ftpmaster.internal/ubuntu oracular/main amd64 libmouse-perl amd64 2.5.10-1build8 [133 kB] 128s Get:69 http://ftpmaster.internal/ubuntu oracular/universe amd64 libmousex-nativetraits-perl all 1.09-3 [53.2 kB] 128s Get:70 http://ftpmaster.internal/ubuntu oracular/universe amd64 libmousex-strictconstructor-perl all 0.02-3 [4582 B] 128s Get:71 http://ftpmaster.internal/ubuntu oracular/universe amd64 libparse-recdescent-perl all 1.967015+dfsg-4 [139 kB] 128s Get:72 http://ftpmaster.internal/ubuntu oracular/main amd64 libpath-tiny-perl all 0.144-1 [47.7 kB] 128s Get:73 http://ftpmaster.internal/ubuntu oracular/universe amd64 libpod-pom-perl all 2.01-4 [61.3 kB] 128s Get:74 http://ftpmaster.internal/ubuntu oracular/main amd64 libregexp-common-perl all 2017060201-3 [171 kB] 128s Get:75 http://ftpmaster.internal/ubuntu oracular/main amd64 libyaml-tiny-perl all 1.74-1 [25.3 kB] 128s Get:76 http://ftpmaster.internal/ubuntu oracular/universe amd64 libconfig-model-perl all 2.153-3 [408 kB] 128s Get:77 http://ftpmaster.internal/ubuntu oracular/universe amd64 libyaml-pp-perl all 0.38.0-1 [105 kB] 128s Get:78 http://ftpmaster.internal/ubuntu oracular/universe amd64 cme all 1.040-1 [64.8 kB] 128s Get:79 http://ftpmaster.internal/ubuntu oracular/main amd64 libdebhelper-perl all 13.14.1ubuntu5 [89.8 kB] 128s Get:80 http://ftpmaster.internal/ubuntu oracular/main amd64 libtool all 2.4.7-7build1 [166 kB] 128s Get:81 http://ftpmaster.internal/ubuntu oracular/main amd64 dh-autoreconf all 20 [16.1 kB] 128s Get:82 http://ftpmaster.internal/ubuntu oracular/main amd64 libarchive-zip-perl all 1.68-1 [90.2 kB] 128s Get:83 http://ftpmaster.internal/ubuntu oracular/main amd64 libfile-stripnondeterminism-perl all 1.14.0-1 [20.1 kB] 128s Get:84 http://ftpmaster.internal/ubuntu oracular/main amd64 dh-strip-nondeterminism all 1.14.0-1 [5058 B] 128s Get:85 http://ftpmaster.internal/ubuntu oracular/main amd64 debugedit amd64 1:5.0-5build2 [46.1 kB] 128s Get:86 http://ftpmaster.internal/ubuntu oracular/main amd64 dwz amd64 0.15-1build6 [115 kB] 128s Get:87 http://ftpmaster.internal/ubuntu oracular/main amd64 gettext amd64 0.21-14ubuntu2 [864 kB] 128s Get:88 http://ftpmaster.internal/ubuntu oracular/main amd64 intltool-debian all 0.35.0+20060710.6 [23.2 kB] 128s Get:89 http://ftpmaster.internal/ubuntu oracular/main amd64 po-debconf all 1.0.21+nmu1 [233 kB] 128s Get:90 http://ftpmaster.internal/ubuntu oracular/main amd64 debhelper all 13.14.1ubuntu5 [869 kB] 128s Get:91 http://ftpmaster.internal/ubuntu oracular/universe amd64 aglfn all 1.7+git20191031.4036a9c-2 [30.6 kB] 128s Get:92 http://ftpmaster.internal/ubuntu oracular/universe amd64 gnuplot-data all 6.0.0+dfsg1-1ubuntu3 [75.3 kB] 128s Get:93 http://ftpmaster.internal/ubuntu oracular/main amd64 libpixman-1-0 amd64 0.42.2-1build1 [279 kB] 128s Get:94 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-render0 amd64 1.17.0-2 [16.2 kB] 128s Get:95 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-shm0 amd64 1.17.0-2 [5758 B] 128s Get:96 http://ftpmaster.internal/ubuntu oracular/main amd64 libxrender1 amd64 1:0.9.10-1.1build1 [19.0 kB] 128s Get:97 http://ftpmaster.internal/ubuntu oracular/main amd64 libcairo2 amd64 1.18.0-3build1 [566 kB] 128s Get:98 http://ftpmaster.internal/ubuntu oracular/main amd64 liblua5.4-0 amd64 5.4.6-3build2 [166 kB] 128s Get:99 http://ftpmaster.internal/ubuntu oracular/main amd64 fontconfig amd64 2.15.0-1.1ubuntu2 [180 kB] 128s Get:100 http://ftpmaster.internal/ubuntu oracular/main amd64 libgraphite2-3 amd64 1.3.14-2build1 [73.0 kB] 128s Get:101 http://ftpmaster.internal/ubuntu oracular/main amd64 libharfbuzz0b amd64 8.3.0-2build2 [469 kB] 128s Get:102 http://ftpmaster.internal/ubuntu oracular/main amd64 libthai-data all 0.1.29-2build1 [158 kB] 128s Get:103 http://ftpmaster.internal/ubuntu oracular/main amd64 libdatrie1 amd64 0.2.13-3build1 [19.0 kB] 128s Get:104 http://ftpmaster.internal/ubuntu oracular/main amd64 libthai0 amd64 0.1.29-2build1 [18.9 kB] 128s Get:105 http://ftpmaster.internal/ubuntu oracular/main amd64 libpango-1.0-0 amd64 1.52.2+ds-1 [233 kB] 128s Get:106 http://ftpmaster.internal/ubuntu oracular/main amd64 libpangoft2-1.0-0 amd64 1.52.2+ds-1 [42.6 kB] 128s Get:107 http://ftpmaster.internal/ubuntu oracular/main amd64 libpangocairo-1.0-0 amd64 1.52.2+ds-1 [28.7 kB] 128s Get:108 http://ftpmaster.internal/ubuntu oracular/main amd64 libwebpmux3 amd64 1.4.0-0.1 [25.8 kB] 128s Get:109 http://ftpmaster.internal/ubuntu oracular/universe amd64 gnuplot-nox amd64 6.0.0+dfsg1-1ubuntu3 [989 kB] 128s Get:110 http://ftpmaster.internal/ubuntu oracular/universe amd64 fonts-freefont-otf all 20211204+svn4273-2 [4596 kB] 128s Get:111 http://ftpmaster.internal/ubuntu oracular/universe amd64 dh-octave-autopkgtest all 1.8.0 [10.1 kB] 128s Get:112 http://ftpmaster.internal/ubuntu oracular/main amd64 libapt-pkg-perl amd64 0.1.40build7 [68.4 kB] 128s Get:113 http://ftpmaster.internal/ubuntu oracular/main amd64 libarray-intspan-perl all 2.004-2 [25.0 kB] 128s Get:114 http://ftpmaster.internal/ubuntu oracular/main amd64 libyaml-libyaml-perl amd64 0.89+ds-1build2 [30.5 kB] 128s Get:115 http://ftpmaster.internal/ubuntu oracular/universe amd64 libconfig-model-backend-yaml-perl all 2.134-2 [10.5 kB] 128s Get:116 http://ftpmaster.internal/ubuntu oracular/universe amd64 libexporter-lite-perl all 0.09-2 [9748 B] 128s Get:117 http://ftpmaster.internal/ubuntu oracular/main amd64 libencode-locale-perl all 1.05-3 [11.6 kB] 128s Get:118 http://ftpmaster.internal/ubuntu oracular/main amd64 libtimedate-perl all 2.3300-2 [34.0 kB] 128s Get:119 http://ftpmaster.internal/ubuntu oracular/main amd64 libhttp-date-perl all 6.06-1 [10.2 kB] 128s Get:120 http://ftpmaster.internal/ubuntu oracular/main amd64 libfile-listing-perl all 6.16-1 [11.3 kB] 128s Get:121 http://ftpmaster.internal/ubuntu oracular/main amd64 libhtml-tagset-perl all 3.24-1 [14.1 kB] 128s Get:122 http://ftpmaster.internal/ubuntu oracular/main amd64 liburi-perl all 5.28-1 [88.1 kB] 128s Get:123 http://ftpmaster.internal/ubuntu oracular/main amd64 libhtml-parser-perl amd64 3.82-1 [85.6 kB] 128s Get:124 http://ftpmaster.internal/ubuntu oracular/main amd64 libhtml-tree-perl all 5.07-3 [200 kB] 128s Get:125 http://ftpmaster.internal/ubuntu oracular/main amd64 libclone-perl amd64 0.46-1build3 [10.7 kB] 128s Get:126 http://ftpmaster.internal/ubuntu oracular/main amd64 libio-html-perl all 1.004-3 [15.9 kB] 128s Get:127 http://ftpmaster.internal/ubuntu oracular/main amd64 liblwp-mediatypes-perl all 6.04-2 [20.1 kB] 128s Get:128 http://ftpmaster.internal/ubuntu oracular/main amd64 libhttp-message-perl all 6.45-1ubuntu1 [78.2 kB] 128s Get:129 http://ftpmaster.internal/ubuntu oracular/main amd64 libhttp-cookies-perl all 6.11-1 [18.2 kB] 128s Get:130 http://ftpmaster.internal/ubuntu oracular/main amd64 libhttp-negotiate-perl all 6.01-2 [12.4 kB] 128s Get:131 http://ftpmaster.internal/ubuntu oracular/main amd64 perl-openssl-defaults amd64 7build3 [6626 B] 128s Get:132 http://ftpmaster.internal/ubuntu oracular/main amd64 libnet-ssleay-perl amd64 1.94-1build4 [316 kB] 128s Get:133 http://ftpmaster.internal/ubuntu oracular/main amd64 libio-socket-ssl-perl all 2.085-1 [195 kB] 128s Get:134 http://ftpmaster.internal/ubuntu oracular/main amd64 libnet-http-perl all 6.23-1 [22.3 kB] 128s Get:135 http://ftpmaster.internal/ubuntu oracular/main amd64 liblwp-protocol-https-perl all 6.14-1 [9040 B] 128s Get:136 http://ftpmaster.internal/ubuntu oracular/main amd64 libwww-robotrules-perl all 6.02-1 [12.6 kB] 128s Get:137 http://ftpmaster.internal/ubuntu oracular/main amd64 libwww-perl all 6.77-1 [138 kB] 128s Get:138 http://ftpmaster.internal/ubuntu oracular/main amd64 liberror-perl all 0.17029-2 [25.6 kB] 128s Get:139 http://ftpmaster.internal/ubuntu oracular/universe amd64 libparse-debcontrol-perl all 2.005-6 [20.4 kB] 128s Get:140 http://ftpmaster.internal/ubuntu oracular/universe amd64 libsoftware-copyright-perl all 0.012-2 [17.4 kB] 128s Get:141 http://ftpmaster.internal/ubuntu oracular/universe amd64 libalgorithm-c3-perl all 0.11-2 [10.2 kB] 128s Get:142 http://ftpmaster.internal/ubuntu oracular/universe amd64 libclass-c3-perl all 0.35-2 [18.4 kB] 128s Get:143 http://ftpmaster.internal/ubuntu oracular/universe amd64 libmro-compat-perl all 0.15-2 [10.1 kB] 128s Get:144 http://ftpmaster.internal/ubuntu oracular/universe amd64 libdata-section-perl all 0.200008-1 [11.6 kB] 128s Get:145 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtext-template-perl all 1.61-1 [48.5 kB] 128s Get:146 http://ftpmaster.internal/ubuntu oracular/universe amd64 libsoftware-license-perl all 0.104006-1 [117 kB] 128s Get:147 http://ftpmaster.internal/ubuntu oracular/universe amd64 libsoftware-licensemoreutils-perl all 1.009-1 [21.5 kB] 128s Get:148 http://ftpmaster.internal/ubuntu oracular/main amd64 libsort-versions-perl all 1.62-3 [7378 B] 128s Get:149 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtext-reform-perl all 1.20-5 [35.4 kB] 128s Get:150 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtext-autoformat-perl all 1.750000-2 [29.8 kB] 128s Get:151 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtext-levenshtein-damerau-perl all 0.41-3 [10.8 kB] 128s Get:152 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtoml-tiny-perl all 0.16-1 [22.0 kB] 128s Get:153 http://ftpmaster.internal/ubuntu oracular/main amd64 libindirect-perl amd64 0.39-2build4 [22.1 kB] 128s Get:154 http://ftpmaster.internal/ubuntu oracular/main amd64 libxs-parse-keyword-perl amd64 0.42-1 [56.8 kB] 128s Get:155 http://ftpmaster.internal/ubuntu oracular/main amd64 libxs-parse-sublike-perl amd64 0.21-2build3 [39.9 kB] 128s Get:156 http://ftpmaster.internal/ubuntu oracular/main amd64 libobject-pad-perl amd64 0.808-1build3 [108 kB] 128s Get:157 http://ftpmaster.internal/ubuntu oracular/main amd64 libsyntax-keyword-try-perl amd64 0.29-2 [24.2 kB] 128s Get:158 http://ftpmaster.internal/ubuntu oracular/main amd64 libio-interactive-perl all 1.025-1 [10.4 kB] 128s Get:159 http://ftpmaster.internal/ubuntu oracular/main amd64 liblog-any-perl all 1.717-1 [73.2 kB] 128s Get:160 http://ftpmaster.internal/ubuntu oracular/main amd64 liblog-any-adapter-screen-perl all 0.140-2 [12.4 kB] 128s Get:161 http://ftpmaster.internal/ubuntu oracular/main amd64 libsub-exporter-progressive-perl all 0.001013-3 [6718 B] 128s Get:162 http://ftpmaster.internal/ubuntu oracular/main amd64 libvariable-magic-perl amd64 0.64-1 [36.0 kB] 128s Get:163 http://ftpmaster.internal/ubuntu oracular/main amd64 libb-hooks-endofscope-perl all 0.28-1 [15.8 kB] 128s Get:164 http://ftpmaster.internal/ubuntu oracular/main amd64 libsub-identify-perl amd64 0.14-3build3 [9786 B] 128s Get:165 http://ftpmaster.internal/ubuntu oracular/main amd64 libsub-name-perl amd64 0.27-1build3 [10.8 kB] 128s Get:166 http://ftpmaster.internal/ubuntu oracular/main amd64 libnamespace-clean-perl all 0.27-2 [14.0 kB] 128s Get:167 http://ftpmaster.internal/ubuntu oracular/main amd64 libnumber-compare-perl all 0.03-3 [5974 B] 128s Get:168 http://ftpmaster.internal/ubuntu oracular/main amd64 libtext-glob-perl all 0.11-3 [6780 B] 128s Get:169 http://ftpmaster.internal/ubuntu oracular/main amd64 libpath-iterator-rule-perl all 1.015-2 [39.9 kB] 128s Get:170 http://ftpmaster.internal/ubuntu oracular/main amd64 libpod-parser-perl all 1.67-1 [80.6 kB] 128s Get:171 http://ftpmaster.internal/ubuntu oracular/main amd64 libpod-constants-perl all 0.19-2 [16.3 kB] 128s Get:172 http://ftpmaster.internal/ubuntu oracular/main amd64 libset-intspan-perl all 1.19-3 [24.8 kB] 128s Get:173 http://ftpmaster.internal/ubuntu oracular/main amd64 libstring-copyright-perl all 0.003014-1 [20.5 kB] 128s Get:174 http://ftpmaster.internal/ubuntu oracular/main amd64 libstring-escape-perl all 2010.002-3 [16.1 kB] 128s Get:175 http://ftpmaster.internal/ubuntu oracular/main amd64 libregexp-pattern-license-perl all 3.11.0-1 [85.8 kB] 128s Get:176 http://ftpmaster.internal/ubuntu oracular/main amd64 libregexp-pattern-perl all 0.2.14-2 [17.6 kB] 128s Get:177 http://ftpmaster.internal/ubuntu oracular/main amd64 libstring-license-perl all 0.0.9-2ubuntu1 [35.0 kB] 128s Get:178 http://ftpmaster.internal/ubuntu oracular/main amd64 licensecheck all 3.3.9-1ubuntu1 [37.7 kB] 128s Get:179 http://ftpmaster.internal/ubuntu oracular/main amd64 diffstat amd64 1.66-1build1 [29.7 kB] 128s Get:180 http://ftpmaster.internal/ubuntu oracular/main amd64 libberkeleydb-perl amd64 0.64-2build4 [120 kB] 128s Get:181 http://ftpmaster.internal/ubuntu oracular/main amd64 libclass-xsaccessor-perl amd64 1.19-4build4 [33.1 kB] 128s Get:182 http://ftpmaster.internal/ubuntu oracular/main amd64 libconfig-tiny-perl all 2.30-1 [14.7 kB] 128s Get:183 http://ftpmaster.internal/ubuntu oracular/main amd64 libconst-fast-perl all 0.014-2 [8034 B] 128s Get:184 http://ftpmaster.internal/ubuntu oracular/main amd64 libcpanel-json-xs-perl amd64 4.38-1 [114 kB] 128s Get:185 http://ftpmaster.internal/ubuntu oracular/main amd64 libaliased-perl all 0.34-3 [12.8 kB] 128s Get:186 http://ftpmaster.internal/ubuntu oracular/main amd64 libclass-data-inheritable-perl all 0.08-3 [8084 B] 128s Get:187 http://ftpmaster.internal/ubuntu oracular/main amd64 libdevel-stacktrace-perl all 2.0500-1 [22.1 kB] 128s Get:188 http://ftpmaster.internal/ubuntu oracular/main amd64 libexception-class-perl all 1.45-1 [28.6 kB] 128s Get:189 http://ftpmaster.internal/ubuntu oracular/main amd64 libiterator-perl all 0.03+ds1-2 [18.8 kB] 128s Get:190 http://ftpmaster.internal/ubuntu oracular/main amd64 libiterator-util-perl all 0.02+ds1-2 [14.1 kB] 128s Get:191 http://ftpmaster.internal/ubuntu oracular/main amd64 libdata-dpath-perl all 0.59-1 [39.2 kB] 128s Get:192 http://ftpmaster.internal/ubuntu oracular/main amd64 libnet-domain-tld-perl all 1.75-3 [29.4 kB] 128s Get:193 http://ftpmaster.internal/ubuntu oracular/main amd64 libdata-validate-domain-perl all 0.10-1.1 [9992 B] 128s Get:194 http://ftpmaster.internal/ubuntu oracular/main amd64 libnet-ipv6addr-perl all 1.02-1 [21.0 kB] 128s Get:195 http://ftpmaster.internal/ubuntu oracular/main amd64 libnet-netmask-perl all 2.0002-2 [24.8 kB] 128s Get:196 http://ftpmaster.internal/ubuntu oracular/main amd64 libnetaddr-ip-perl amd64 4.079+dfsg-2build4 [79.9 kB] 128s Get:197 http://ftpmaster.internal/ubuntu oracular/main amd64 libdata-validate-ip-perl all 0.31-1 [17.2 kB] 128s Get:198 http://ftpmaster.internal/ubuntu oracular/main amd64 libdata-validate-uri-perl all 0.07-3 [10.8 kB] 128s Get:199 http://ftpmaster.internal/ubuntu oracular/main amd64 libdevel-size-perl amd64 0.84-1 [19.5 kB] 128s Get:200 http://ftpmaster.internal/ubuntu oracular/main amd64 libemail-address-xs-perl amd64 1.05-1build4 [29.1 kB] 128s Get:201 http://ftpmaster.internal/ubuntu oracular/main amd64 libipc-system-simple-perl all 1.30-2 [22.3 kB] 128s Get:202 http://ftpmaster.internal/ubuntu oracular/main amd64 libfile-basedir-perl all 0.09-2 [14.4 kB] 128s Get:203 http://ftpmaster.internal/ubuntu oracular/main amd64 libfile-find-rule-perl all 0.34-3 [24.4 kB] 128s Get:204 http://ftpmaster.internal/ubuntu oracular/main amd64 libio-string-perl all 1.08-4 [11.1 kB] 128s Get:205 http://ftpmaster.internal/ubuntu oracular/main amd64 libfont-ttf-perl all 1.06-2 [323 kB] 128s Get:206 http://ftpmaster.internal/ubuntu oracular/main amd64 libhtml-html5-entities-perl all 0.004-3 [21.6 kB] 128s Get:207 http://ftpmaster.internal/ubuntu oracular/main amd64 libhtml-tokeparser-simple-perl all 3.16-4 [38.0 kB] 128s Get:208 http://ftpmaster.internal/ubuntu oracular/main amd64 libipc-run3-perl all 0.049-1 [28.8 kB] 128s Get:209 http://ftpmaster.internal/ubuntu oracular/main amd64 libjson-maybexs-perl all 1.004005-1 [11.3 kB] 128s Get:210 http://ftpmaster.internal/ubuntu oracular/main amd64 liblist-compare-perl all 0.55-2 [62.9 kB] 128s Get:211 http://ftpmaster.internal/ubuntu oracular/main amd64 liblist-someutils-perl all 0.59-1 [30.4 kB] 128s Get:212 http://ftpmaster.internal/ubuntu oracular/main amd64 liblist-utilsby-perl all 0.12-2 [14.9 kB] 128s Get:213 http://ftpmaster.internal/ubuntu oracular/main amd64 libmldbm-perl all 2.05-4 [16.0 kB] 128s Get:214 http://ftpmaster.internal/ubuntu oracular/main amd64 libclass-method-modifiers-perl all 2.15-1 [16.1 kB] 128s Get:215 http://ftpmaster.internal/ubuntu oracular/main amd64 libimport-into-perl all 1.002005-2 [10.7 kB] 128s Get:216 http://ftpmaster.internal/ubuntu oracular/main amd64 librole-tiny-perl all 2.002004-1 [16.3 kB] 128s Get:217 http://ftpmaster.internal/ubuntu oracular/main amd64 libsub-quote-perl all 2.006008-1ubuntu1 [20.7 kB] 128s Get:218 http://ftpmaster.internal/ubuntu oracular/main amd64 libmoo-perl all 2.005005-1 [47.4 kB] 128s Get:219 http://ftpmaster.internal/ubuntu oracular/main amd64 libstrictures-perl all 2.000006-1 [16.3 kB] 128s Get:220 http://ftpmaster.internal/ubuntu oracular/main amd64 libmoox-aliases-perl all 0.001006-2 [6796 B] 128s Get:221 http://ftpmaster.internal/ubuntu oracular/main amd64 libperlio-gzip-perl amd64 0.20-1build4 [14.6 kB] 128s Get:222 http://ftpmaster.internal/ubuntu oracular/main amd64 libperlio-utf8-strict-perl amd64 0.010-1build3 [11.1 kB] 128s Get:223 http://ftpmaster.internal/ubuntu oracular/main amd64 libproc-processtable-perl amd64 0.636-1build3 [35.7 kB] 128s Get:224 http://ftpmaster.internal/ubuntu oracular/main amd64 libregexp-wildcards-perl all 1.05-3 [12.9 kB] 128s Get:225 http://ftpmaster.internal/ubuntu oracular/main amd64 libsereal-decoder-perl amd64 5.004+ds-1build3 [99.5 kB] 128s Get:226 http://ftpmaster.internal/ubuntu oracular/main amd64 libsereal-encoder-perl amd64 5.004+ds-1build3 [103 kB] 128s Get:227 http://ftpmaster.internal/ubuntu oracular/main amd64 libterm-readkey-perl amd64 2.38-2build4 [23.1 kB] 128s Get:228 http://ftpmaster.internal/ubuntu oracular/main amd64 libtext-levenshteinxs-perl amd64 0.03-5build4 [7966 B] 128s Get:229 http://ftpmaster.internal/ubuntu oracular/main amd64 libmarkdown2 amd64 2.2.7-2build1 [37.5 kB] 128s Get:230 http://ftpmaster.internal/ubuntu oracular/main amd64 libtext-markdown-discount-perl amd64 0.16-1build3 [12.1 kB] 128s Get:231 http://ftpmaster.internal/ubuntu oracular/main amd64 libdata-messagepack-perl amd64 1.02-1build4 [31.1 kB] 128s Get:232 http://ftpmaster.internal/ubuntu oracular/main amd64 libtext-xslate-perl amd64 3.5.9-2 [161 kB] 128s Get:233 http://ftpmaster.internal/ubuntu oracular/main amd64 libtime-duration-perl all 1.21-2 [12.3 kB] 128s Get:234 http://ftpmaster.internal/ubuntu oracular/main amd64 libtime-moment-perl amd64 0.44-2build4 [70.9 kB] 128s Get:235 http://ftpmaster.internal/ubuntu oracular/main amd64 libunicode-utf8-perl amd64 0.62-2build3 [18.1 kB] 128s Get:236 http://ftpmaster.internal/ubuntu oracular/main amd64 libcgi-pm-perl all 4.64-1 [185 kB] 128s Get:237 http://ftpmaster.internal/ubuntu oracular/main amd64 libhtml-form-perl all 6.11-1 [32.1 kB] 128s Get:238 http://ftpmaster.internal/ubuntu oracular/main amd64 libwww-mechanize-perl all 2.18-1ubuntu1 [93.1 kB] 128s Get:239 http://ftpmaster.internal/ubuntu oracular/main amd64 libxml-namespacesupport-perl all 1.12-2 [13.5 kB] 128s Get:240 http://ftpmaster.internal/ubuntu oracular/main amd64 libxml-sax-base-perl all 1.09-3 [18.9 kB] 128s Get:241 http://ftpmaster.internal/ubuntu oracular/main amd64 libxml-sax-perl all 1.02+dfsg-3 [57.0 kB] 128s Get:242 http://ftpmaster.internal/ubuntu oracular/main amd64 libxml-libxml-perl amd64 2.0207+dfsg+really+2.0134-2 [304 kB] 128s Get:243 http://ftpmaster.internal/ubuntu oracular/main amd64 lzip amd64 1.24.1-1build1 [83.1 kB] 128s Get:244 http://ftpmaster.internal/ubuntu oracular/main amd64 lzop amd64 1.04-2build3 [82.2 kB] 128s Get:245 http://ftpmaster.internal/ubuntu oracular/main amd64 patchutils amd64 0.4.2-1build3 [77.0 kB] 128s Get:246 http://ftpmaster.internal/ubuntu oracular/main amd64 t1utils amd64 1.41-4build3 [61.3 kB] 128s Get:247 http://ftpmaster.internal/ubuntu oracular/main amd64 unzip amd64 6.0-28ubuntu4 [175 kB] 128s Get:248 http://ftpmaster.internal/ubuntu oracular/main amd64 lintian all 2.117.0ubuntu2 [1065 kB] 128s Get:249 http://ftpmaster.internal/ubuntu oracular/universe amd64 libconfig-model-dpkg-perl all 3.004 [174 kB] 128s Get:250 http://ftpmaster.internal/ubuntu oracular/main amd64 libconvert-binhex-perl all 1.125-3 [27.1 kB] 128s Get:251 http://ftpmaster.internal/ubuntu oracular/main amd64 libnet-smtp-ssl-perl all 1.04-2 [6218 B] 128s Get:252 http://ftpmaster.internal/ubuntu oracular/main amd64 libmailtools-perl all 2.21-3 [77.0 kB] 128s Get:253 http://ftpmaster.internal/ubuntu oracular/main amd64 libmime-tools-perl all 5.515-1 [187 kB] 128s Get:254 http://ftpmaster.internal/ubuntu oracular/main amd64 libsuitesparseconfig7 amd64 1:7.7.0+dfsg-2 [12.8 kB] 128s Get:255 http://ftpmaster.internal/ubuntu oracular/universe amd64 libamd3 amd64 1:7.7.0+dfsg-2 [27.1 kB] 128s Get:256 http://ftpmaster.internal/ubuntu oracular/main amd64 libblas3 amd64 3.12.0-3build1 [238 kB] 128s Get:257 http://ftpmaster.internal/ubuntu oracular/main amd64 libgfortran5 amd64 14.1.0-1ubuntu1 [928 kB] 128s Get:258 http://ftpmaster.internal/ubuntu oracular/main amd64 liblapack3 amd64 3.12.0-3build1 [2650 kB] 128s Get:259 http://ftpmaster.internal/ubuntu oracular/universe amd64 libarpack2t64 amd64 3.9.1-1.1build2 [106 kB] 128s Get:260 http://ftpmaster.internal/ubuntu oracular/universe amd64 libccolamd3 amd64 1:7.7.0+dfsg-2 [25.8 kB] 128s Get:261 http://ftpmaster.internal/ubuntu oracular/universe amd64 libcamd3 amd64 1:7.7.0+dfsg-2 [23.7 kB] 128s Get:262 http://ftpmaster.internal/ubuntu oracular/main amd64 libcolamd3 amd64 1:7.7.0+dfsg-2 [19.3 kB] 128s Get:263 http://ftpmaster.internal/ubuntu oracular/universe amd64 libcholmod5 amd64 1:7.7.0+dfsg-2 [666 kB] 128s Get:264 http://ftpmaster.internal/ubuntu oracular/universe amd64 libcxsparse4 amd64 1:7.7.0+dfsg-2 [72.0 kB] 128s Get:265 http://ftpmaster.internal/ubuntu oracular/main amd64 libfftw3-double3 amd64 3.3.10-1ubuntu3 [838 kB] 128s Get:266 http://ftpmaster.internal/ubuntu oracular/main amd64 libfftw3-single3 amd64 3.3.10-1ubuntu3 [868 kB] 128s Get:267 http://ftpmaster.internal/ubuntu oracular/main amd64 libxfixes3 amd64 1:6.0.0-2build1 [10.8 kB] 128s Get:268 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcursor1 amd64 1:1.2.2-1 [20.9 kB] 128s Get:269 http://ftpmaster.internal/ubuntu oracular/main amd64 libxft2 amd64 2.3.6-1build1 [45.3 kB] 128s Get:270 http://ftpmaster.internal/ubuntu oracular/main amd64 libxinerama1 amd64 2:1.1.4-3build1 [6396 B] 128s Get:271 http://ftpmaster.internal/ubuntu oracular/universe amd64 libfltk1.3t64 amd64 1.3.8-6.1build2 [606 kB] 128s Get:272 http://ftpmaster.internal/ubuntu oracular/main amd64 libglvnd0 amd64 1.7.0-1build1 [69.6 kB] 128s Get:273 http://ftpmaster.internal/ubuntu oracular/main amd64 libglapi-mesa amd64 24.0.8-1ubuntu1 [41.1 kB] 128s Get:274 http://ftpmaster.internal/ubuntu oracular/main amd64 libx11-xcb1 amd64 2:1.8.7-1build1 [7800 B] 128s Get:275 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-dri2-0 amd64 1.17.0-2 [7222 B] 128s Get:276 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-dri3-0 amd64 1.17.0-2 [7508 B] 128s Get:277 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-glx0 amd64 1.17.0-2 [24.8 kB] 128s Get:278 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-present0 amd64 1.17.0-2 [6064 B] 128s Get:279 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-randr0 amd64 1.17.0-2 [17.9 kB] 128s Get:280 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-sync1 amd64 1.17.0-2 [9312 B] 128s Get:281 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-xfixes0 amd64 1.17.0-2 [10.2 kB] 128s Get:282 http://ftpmaster.internal/ubuntu oracular/main amd64 libxshmfence1 amd64 1.3-1build5 [4764 B] 128s Get:283 http://ftpmaster.internal/ubuntu oracular/main amd64 libxxf86vm1 amd64 1:1.1.4-1build4 [9282 B] 128s Get:284 http://ftpmaster.internal/ubuntu oracular/main amd64 libvulkan1 amd64 1.3.283.0-1 [143 kB] 128s Get:285 http://ftpmaster.internal/ubuntu oracular/main amd64 libdrm-amdgpu1 amd64 2.4.120-2build1 [20.2 kB] 128s Get:286 http://ftpmaster.internal/ubuntu oracular/main amd64 libpciaccess0 amd64 0.17-3build1 [18.6 kB] 128s Get:287 http://ftpmaster.internal/ubuntu oracular/main amd64 libdrm-intel1 amd64 2.4.120-2build1 [63.8 kB] 128s Get:288 http://ftpmaster.internal/ubuntu oracular/main amd64 libdrm-nouveau2 amd64 2.4.120-2build1 [17.7 kB] 128s Get:289 http://ftpmaster.internal/ubuntu oracular/main amd64 libdrm-radeon1 amd64 2.4.120-2build1 [20.8 kB] 128s Get:290 http://ftpmaster.internal/ubuntu oracular/main amd64 libllvm17t64 amd64 1:17.0.6-12 [26.2 MB] 128s Get:291 http://ftpmaster.internal/ubuntu oracular/main amd64 libgl1-mesa-dri amd64 24.0.8-1ubuntu1 [8948 kB] 129s Get:292 http://ftpmaster.internal/ubuntu oracular/main amd64 libglx-mesa0 amd64 24.0.8-1ubuntu1 [154 kB] 129s Get:293 http://ftpmaster.internal/ubuntu oracular/main amd64 libglx0 amd64 1.7.0-1build1 [38.6 kB] 129s Get:294 http://ftpmaster.internal/ubuntu oracular/main amd64 libgl1 amd64 1.7.0-1build1 [102 kB] 129s Get:295 http://ftpmaster.internal/ubuntu oracular/universe amd64 libfltk-gl1.3t64 amd64 1.3.8-6.1build2 [43.0 kB] 129s Get:296 http://ftpmaster.internal/ubuntu oracular/universe amd64 libgl2ps1.4 amd64 1.4.2+dfsg1-2build1 [41.9 kB] 129s Get:297 http://ftpmaster.internal/ubuntu oracular/main amd64 libltdl7 amd64 2.4.7-7build1 [40.3 kB] 129s Get:298 http://ftpmaster.internal/ubuntu oracular/universe amd64 libglpk40 amd64 5.0-1build2 [369 kB] 129s Get:299 http://ftpmaster.internal/ubuntu oracular/main amd64 libopengl0 amd64 1.7.0-1build1 [32.8 kB] 129s Get:300 http://ftpmaster.internal/ubuntu oracular/main amd64 libglu1-mesa amd64 9.0.2-1.1build1 [152 kB] 129s Get:301 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhwy1t64 amd64 1.1.0-3 [600 kB] 129s Get:302 http://ftpmaster.internal/ubuntu oracular/main amd64 liblcms2-2 amd64 2.14-2build1 [161 kB] 129s Get:303 http://ftpmaster.internal/ubuntu oracular/universe amd64 libjxl0.8 amd64 0.8.2-3ubuntu1 [1156 kB] 129s Get:304 http://ftpmaster.internal/ubuntu oracular/main amd64 libwmflite-0.2-7 amd64 0.2.13-1.1build3 [68.6 kB] 129s Get:305 http://ftpmaster.internal/ubuntu oracular/universe amd64 libgraphicsmagick-q16-3t64 amd64 1.4+really1.3.43-1build1 [1264 kB] 129s Get:306 http://ftpmaster.internal/ubuntu oracular/universe amd64 libgraphicsmagick++-q16-12t64 amd64 1.4+really1.3.43-1build1 [117 kB] 129s Get:307 http://ftpmaster.internal/ubuntu oracular/universe amd64 libaec0 amd64 1.1.3-1 [22.7 kB] 129s Get:308 http://ftpmaster.internal/ubuntu oracular/universe amd64 libsz2 amd64 1.1.3-1 [5456 B] 129s Get:309 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhdf5-103-1t64 amd64 1.10.10+repack-3.1ubuntu4 [1270 kB] 129s Get:310 http://ftpmaster.internal/ubuntu oracular/main amd64 libasound2-data all 1.2.11-1build2 [21.0 kB] 129s Get:311 http://ftpmaster.internal/ubuntu oracular/main amd64 libasound2t64 amd64 1.2.11-1build2 [399 kB] 129s Get:312 http://ftpmaster.internal/ubuntu oracular/main amd64 libopus0 amd64 1.4-1build1 [208 kB] 129s Get:313 http://ftpmaster.internal/ubuntu oracular/main amd64 libsamplerate0 amd64 0.2.2-4build1 [1344 kB] 129s Get:314 http://ftpmaster.internal/ubuntu oracular/main amd64 libjack-jackd2-0 amd64 1.9.21~dfsg-3ubuntu3 [289 kB] 129s Get:315 http://ftpmaster.internal/ubuntu oracular/universe amd64 libportaudio2 amd64 19.6.0-1.2build3 [67.9 kB] 129s Get:316 http://ftpmaster.internal/ubuntu oracular/universe amd64 libqhull-r8.0 amd64 2020.2-6build1 [193 kB] 129s Get:317 http://ftpmaster.internal/ubuntu oracular/universe amd64 libqrupdate1 amd64 1.1.2-4build1 [44.0 kB] 129s Get:318 http://ftpmaster.internal/ubuntu oracular/universe amd64 libqscintilla2-qt5-l10n all 2.14.1+dfsg-1build4 [56.5 kB] 129s Get:319 http://ftpmaster.internal/ubuntu oracular/universe amd64 libdouble-conversion3 amd64 3.3.0-1build1 [40.3 kB] 129s Get:320 http://ftpmaster.internal/ubuntu oracular/main amd64 libpcre2-16-0 amd64 10.42-4ubuntu2 [210 kB] 129s Get:321 http://ftpmaster.internal/ubuntu oracular/universe amd64 libqt5core5t64 amd64 5.15.13+dfsg-1ubuntu1 [2011 kB] 129s Get:322 http://ftpmaster.internal/ubuntu oracular/main amd64 libwayland-server0 amd64 1.22.0-2.1build1 [33.9 kB] 129s Get:323 http://ftpmaster.internal/ubuntu oracular/main amd64 libgbm1 amd64 24.0.8-1ubuntu1 [42.6 kB] 129s Get:324 http://ftpmaster.internal/ubuntu oracular/main amd64 libwayland-client0 amd64 1.22.0-2.1build1 [26.4 kB] 129s Get:325 http://ftpmaster.internal/ubuntu oracular/main amd64 libegl-mesa0 amd64 24.0.8-1ubuntu1 [115 kB] 129s Get:326 http://ftpmaster.internal/ubuntu oracular/main amd64 libegl1 amd64 1.7.0-1build1 [28.7 kB] 129s Get:327 http://ftpmaster.internal/ubuntu oracular/main amd64 x11-common all 1:7.7+23ubuntu3 [21.7 kB] 129s Get:328 http://ftpmaster.internal/ubuntu oracular/main amd64 libice6 amd64 2:1.0.10-1build3 [41.4 kB] 129s Get:329 http://ftpmaster.internal/ubuntu oracular/main amd64 libmtdev1t64 amd64 1.1.6-1.2 [14.4 kB] 129s Get:330 http://ftpmaster.internal/ubuntu oracular/main amd64 libwacom-common all 2.10.0-2 [63.4 kB] 129s Get:331 http://ftpmaster.internal/ubuntu oracular/main amd64 libwacom9 amd64 2.10.0-2 [23.9 kB] 129s Get:332 http://ftpmaster.internal/ubuntu oracular/main amd64 libinput-bin amd64 1.25.0-1ubuntu2 [22.2 kB] 129s Get:333 http://ftpmaster.internal/ubuntu oracular/main amd64 libinput10 amd64 1.25.0-1ubuntu2 [133 kB] 129s Get:334 http://ftpmaster.internal/ubuntu oracular/universe amd64 libmd4c0 amd64 0.4.8-1build1 [42.3 kB] 129s Get:335 http://ftpmaster.internal/ubuntu oracular/universe amd64 libqt5dbus5t64 amd64 5.15.13+dfsg-1ubuntu1 [220 kB] 129s Get:336 http://ftpmaster.internal/ubuntu oracular/universe amd64 libqt5network5t64 amd64 5.15.13+dfsg-1ubuntu1 [723 kB] 129s Get:337 http://ftpmaster.internal/ubuntu oracular/main amd64 libsm6 amd64 2:1.2.3-1build3 [15.7 kB] 129s Get:338 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-icccm4 amd64 0.4.1-1.1build3 [10.8 kB] 129s Get:339 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-util1 amd64 0.4.0-1build3 [10.7 kB] 129s Get:340 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-image0 amd64 0.4.0-2build1 [10.8 kB] 129s Get:341 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-keysyms1 amd64 0.4.0-1build4 [7956 B] 129s Get:342 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-render-util0 amd64 0.3.9-1build4 [9608 B] 129s Get:343 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-shape0 amd64 1.17.0-2 [6092 B] 129s Get:344 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-xinerama0 amd64 1.17.0-2 [5412 B] 129s Get:345 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-xinput0 amd64 1.17.0-2 [33.2 kB] 129s Get:346 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-xkb1 amd64 1.17.0-2 [32.3 kB] 129s Get:347 http://ftpmaster.internal/ubuntu oracular/main amd64 libxkbcommon-x11-0 amd64 1.6.0-1build1 [14.5 kB] 129s Get:348 http://ftpmaster.internal/ubuntu oracular/universe amd64 libqt5gui5t64 amd64 5.15.13+dfsg-1ubuntu1 [3748 kB] 129s Get:349 http://ftpmaster.internal/ubuntu oracular/main amd64 libavahi-common-data amd64 0.8-13ubuntu6 [29.7 kB] 129s Get:350 http://ftpmaster.internal/ubuntu oracular/main amd64 libavahi-common3 amd64 0.8-13ubuntu6 [23.3 kB] 129s Get:351 http://ftpmaster.internal/ubuntu oracular/main amd64 libavahi-client3 amd64 0.8-13ubuntu6 [26.8 kB] 129s Get:352 http://ftpmaster.internal/ubuntu oracular/main amd64 libcups2t64 amd64 2.4.7-1.2ubuntu7 [270 kB] 129s Get:353 http://ftpmaster.internal/ubuntu oracular/universe amd64 libqt5widgets5t64 amd64 5.15.13+dfsg-1ubuntu1 [2561 kB] 129s Get:354 http://ftpmaster.internal/ubuntu oracular/universe amd64 libqt5printsupport5t64 amd64 5.15.13+dfsg-1ubuntu1 [208 kB] 129s Get:355 http://ftpmaster.internal/ubuntu oracular/universe amd64 libqscintilla2-qt5-15 amd64 2.14.1+dfsg-1build4 [1154 kB] 129s Get:356 http://ftpmaster.internal/ubuntu oracular/universe amd64 libqt5sql5t64 amd64 5.15.13+dfsg-1ubuntu1 [122 kB] 129s Get:357 http://ftpmaster.internal/ubuntu oracular/universe amd64 libqt5help5 amd64 5.15.13-3 [161 kB] 129s Get:358 http://ftpmaster.internal/ubuntu oracular/universe amd64 libqt5xml5t64 amd64 5.15.13+dfsg-1ubuntu1 [124 kB] 129s Get:359 http://ftpmaster.internal/ubuntu oracular/main amd64 libogg0 amd64 1.3.5-3build1 [22.7 kB] 129s Get:360 http://ftpmaster.internal/ubuntu oracular/main amd64 libflac12t64 amd64 1.4.3+ds-2.1ubuntu2 [197 kB] 129s Get:361 http://ftpmaster.internal/ubuntu oracular/main amd64 libmp3lame0 amd64 3.100-6build1 [142 kB] 129s Get:362 http://ftpmaster.internal/ubuntu oracular/main amd64 libmpg123-0t64 amd64 1.32.6-3 [169 kB] 129s Get:363 http://ftpmaster.internal/ubuntu oracular/main amd64 libvorbis0a amd64 1.3.7-2 [98.4 kB] 129s Get:364 http://ftpmaster.internal/ubuntu oracular/main amd64 libvorbisenc2 amd64 1.3.7-2 [80.8 kB] 129s Get:365 http://ftpmaster.internal/ubuntu oracular/main amd64 libsndfile1 amd64 1.2.2-1ubuntu5 [208 kB] 129s Get:366 http://ftpmaster.internal/ubuntu oracular/universe amd64 libspqr4 amd64 1:7.7.0+dfsg-2 [135 kB] 129s Get:367 http://ftpmaster.internal/ubuntu oracular/universe amd64 libsundials-ida6 amd64 6.4.1+dfsg1-3build5 [129 kB] 129s Get:368 http://ftpmaster.internal/ubuntu oracular/universe amd64 libbtf2 amd64 1:7.7.0+dfsg-2 [13.5 kB] 129s Get:369 http://ftpmaster.internal/ubuntu oracular/universe amd64 libklu2 amd64 1:7.7.0+dfsg-2 [78.9 kB] 129s Get:370 http://ftpmaster.internal/ubuntu oracular/main amd64 libfftw3-long3 amd64 3.3.10-1ubuntu3 [374 kB] 129s Get:371 http://ftpmaster.internal/ubuntu oracular/main amd64 libevent-pthreads-2.1-7t64 amd64 2.1.12-stable-10 [7966 B] 129s Get:372 http://ftpmaster.internal/ubuntu oracular/universe amd64 libpsm-infinipath1 amd64 3.3+20.604758e7-6.3build1 [178 kB] 129s Get:373 http://ftpmaster.internal/ubuntu oracular/universe amd64 libpsm2-2 amd64 11.2.185-2build1 [194 kB] 129s Get:374 http://ftpmaster.internal/ubuntu oracular/main amd64 librdmacm1t64 amd64 50.0-2build2 [70.7 kB] 129s Get:375 http://ftpmaster.internal/ubuntu oracular/universe amd64 libfabric1 amd64 1.17.0-3build2 [657 kB] 129s Get:376 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhwloc15 amd64 2.10.0-1build1 [172 kB] 129s Get:377 http://ftpmaster.internal/ubuntu oracular/universe amd64 libmunge2 amd64 0.5.15-4build1 [14.7 kB] 129s Get:378 http://ftpmaster.internal/ubuntu oracular/main amd64 libxnvctrl0 amd64 510.47.03-0ubuntu4 [12.6 kB] 129s Get:379 http://ftpmaster.internal/ubuntu oracular/universe amd64 ocl-icd-libopencl1 amd64 2.3.2-1build1 [38.5 kB] 129s Get:380 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhwloc-plugins amd64 2.10.0-1build1 [15.7 kB] 129s Get:381 http://ftpmaster.internal/ubuntu oracular/universe amd64 libpmix2t64 amd64 5.0.1-4.1build1 [697 kB] 129s Get:382 http://ftpmaster.internal/ubuntu oracular/universe amd64 libamd-comgr2 amd64 6.0+git20231212.4510c28+dfsg-3build2 [14.4 MB] 129s Get:383 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhsakmt1 amd64 5.7.0-1build1 [62.9 kB] 129s Get:384 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhsa-runtime64-1 amd64 5.7.1-2build1 [491 kB] 129s Get:385 http://ftpmaster.internal/ubuntu oracular/universe amd64 libamdhip64-5 amd64 5.7.1-3 [9621 kB] 129s Get:386 http://ftpmaster.internal/ubuntu oracular/universe amd64 libucx0 amd64 1.16.0+ds-5ubuntu1 [1140 kB] 129s Get:387 http://ftpmaster.internal/ubuntu oracular/universe amd64 libopenmpi3t64 amd64 4.1.6-7ubuntu2 [2563 kB] 129s Get:388 http://ftpmaster.internal/ubuntu oracular/universe amd64 libfftw3-mpi3 amd64 3.3.10-1ubuntu3 [52.6 kB] 129s Get:389 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhdf5-openmpi-103-1t64 amd64 1.10.10+repack-3.1ubuntu4 [1325 kB] 129s Get:390 http://ftpmaster.internal/ubuntu oracular/universe amd64 libcombblas2.0.0t64 amd64 2.0.0-3.1build2 [267 kB] 129s Get:391 http://ftpmaster.internal/ubuntu oracular/universe amd64 libmetis5 amd64 5.1.0.dfsg-7build3 [181 kB] 129s Get:392 http://ftpmaster.internal/ubuntu oracular/universe amd64 libptscotch-7.0 amd64 7.0.4-1ubuntu2 [729 kB] 129s Get:393 http://ftpmaster.internal/ubuntu oracular/universe amd64 libsuperlu-dist8 amd64 8.2.1+dfsg1-1build2 [632 kB] 129s Get:394 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhypre-2.28.0 amd64 2.28.0-8build2 [1701 kB] 129s Get:395 http://ftpmaster.internal/ubuntu oracular/universe amd64 openmpi-common all 4.1.6-7ubuntu2 [170 kB] 129s Get:396 http://ftpmaster.internal/ubuntu oracular/universe amd64 openmpi-bin amd64 4.1.6-7ubuntu2 [114 kB] 129s Get:397 http://ftpmaster.internal/ubuntu oracular/universe amd64 mpi-default-bin amd64 1.15build1 [2376 B] 129s Get:398 http://ftpmaster.internal/ubuntu oracular/universe amd64 libscalapack-openmpi2.2 amd64 2.2.1-3.1ubuntu1 [1740 kB] 129s Get:399 http://ftpmaster.internal/ubuntu oracular/universe amd64 libmumps-5.6t64 amd64 5.6.2-2.1build2 [1951 kB] 129s Get:400 http://ftpmaster.internal/ubuntu oracular/universe amd64 libsuperlu6 amd64 6.0.1+dfsg1-1build1 [180 kB] 129s Get:401 http://ftpmaster.internal/ubuntu oracular/universe amd64 libscotch-7.0 amd64 7.0.4-1ubuntu2 [449 kB] 129s Get:402 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtrilinos-kokkos-13.2 amd64 13.2.0-5build2 [109 kB] 129s Get:403 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtrilinos-teuchos-13.2 amd64 13.2.0-5build2 [1207 kB] 129s Get:404 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtrilinos-epetra-13.2 amd64 13.2.0-5build2 [452 kB] 129s Get:405 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtrilinos-triutils-13.2 amd64 13.2.0-5build2 [126 kB] 129s Get:406 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtrilinos-epetraext-13.2 amd64 13.2.0-5build2 [448 kB] 129s Get:407 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtrilinos-trilinosss-13.2 amd64 13.2.0-5build2 [92.0 kB] 129s Get:408 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtrilinos-amesos-13.2 amd64 13.2.0-5build2 [108 kB] 129s Get:409 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtrilinos-aztecoo-13.2 amd64 13.2.0-5build2 [214 kB] 129s Get:410 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtrilinos-galeri-13.2 amd64 13.2.0-5build2 [91.3 kB] 129s Get:411 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtrilinos-ifpack-13.2 amd64 13.2.0-5build2 [437 kB] 129s Get:412 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtrilinos-zoltan-13.2 amd64 13.2.0-5build2 [403 kB] 129s Get:413 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtrilinos-ml-13.2 amd64 13.2.0-5build2 [1000 kB] 129s Get:414 http://ftpmaster.internal/ubuntu oracular/universe amd64 libumfpack6 amd64 1:7.7.0+dfsg-2 [267 kB] 129s Get:415 http://ftpmaster.internal/ubuntu oracular/universe amd64 libpetsc-real3.19t64 amd64 3.19.6+dfsg1-2.2ubuntu2 [6926 kB] 129s Get:416 http://ftpmaster.internal/ubuntu oracular/universe amd64 libsundials-nvecparallel-petsc6 amd64 6.4.1+dfsg1-3build5 [36.5 kB] 129s Get:417 http://ftpmaster.internal/ubuntu oracular/universe amd64 libsundials-sunmatrix4 amd64 6.4.1+dfsg1-3build5 [84.1 kB] 129s Get:418 http://ftpmaster.internal/ubuntu oracular/universe amd64 libsundials-sunlinsol3 amd64 6.4.1+dfsg1-3build5 [172 kB] 129s Get:419 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtext-unidecode-perl all 1.30-3 [105 kB] 129s Get:420 http://ftpmaster.internal/ubuntu oracular/universe amd64 texinfo-lib amd64 7.1-3build2 [133 kB] 129s Get:421 http://ftpmaster.internal/ubuntu oracular/universe amd64 tex-common all 6.18 [32.8 kB] 129s Get:422 http://ftpmaster.internal/ubuntu oracular/universe amd64 texinfo all 7.1-3build2 [1273 kB] 129s Get:423 http://ftpmaster.internal/ubuntu oracular/universe amd64 octave-common all 8.4.0-1build5 [5925 kB] 129s Get:424 http://ftpmaster.internal/ubuntu oracular/universe amd64 octave amd64 8.4.0-1build5 [9967 kB] 129s Get:425 http://ftpmaster.internal/ubuntu oracular/main amd64 libncurses-dev amd64 6.4+20240113-1ubuntu2 [384 kB] 129s Get:426 http://ftpmaster.internal/ubuntu oracular/main amd64 libreadline-dev amd64 8.2-4build1 [167 kB] 129s Get:427 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhdf5-fortran-102t64 amd64 1.10.10+repack-3.1ubuntu4 [85.2 kB] 129s Get:428 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhdf5-hl-100t64 amd64 1.10.10+repack-3.1ubuntu4 [56.0 kB] 129s Get:429 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhdf5-hl-fortran-100t64 amd64 1.10.10+repack-3.1ubuntu4 [31.5 kB] 129s Get:430 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhdf5-cpp-103-1t64 amd64 1.10.10+repack-3.1ubuntu4 [128 kB] 129s Get:431 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhdf5-hl-cpp-100t64 amd64 1.10.10+repack-3.1ubuntu4 [11.2 kB] 129s Get:432 http://ftpmaster.internal/ubuntu oracular/main amd64 zlib1g-dev amd64 1:1.3.dfsg-3.1ubuntu2 [894 kB] 129s Get:433 http://ftpmaster.internal/ubuntu oracular/main amd64 libjpeg-turbo8-dev amd64 2.1.5-2ubuntu2 [295 kB] 129s Get:434 http://ftpmaster.internal/ubuntu oracular/main amd64 libjpeg8-dev amd64 8c-2ubuntu11 [1484 B] 129s Get:435 http://ftpmaster.internal/ubuntu oracular/main amd64 libjpeg-dev amd64 8c-2ubuntu11 [1482 B] 129s Get:436 http://ftpmaster.internal/ubuntu oracular/universe amd64 libaec-dev amd64 1.1.3-1 [19.8 kB] 129s Get:437 http://ftpmaster.internal/ubuntu oracular/main amd64 libcurl4-openssl-dev amd64 8.8.0-1ubuntu1 [463 kB] 129s Get:438 http://ftpmaster.internal/ubuntu oracular/main amd64 libssl-dev amd64 3.0.13-0ubuntu4 [2408 kB] 129s Get:439 http://ftpmaster.internal/ubuntu oracular/universe amd64 hdf5-helpers amd64 1.10.10+repack-3.1ubuntu4 [15.8 kB] 129s Get:440 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhdf5-dev amd64 1.10.10+repack-3.1ubuntu4 [2777 kB] 129s Get:441 http://ftpmaster.internal/ubuntu oracular/main amd64 xorg-sgml-doctools all 1:1.11-1.1 [10.9 kB] 129s Get:442 http://ftpmaster.internal/ubuntu oracular/main amd64 x11proto-dev all 2024.1-1 [606 kB] 129s Get:443 http://ftpmaster.internal/ubuntu oracular/main amd64 libxau-dev amd64 1:1.0.9-1build6 [9570 B] 129s Get:444 http://ftpmaster.internal/ubuntu oracular/main amd64 libxdmcp-dev amd64 1:1.1.3-0ubuntu6 [26.5 kB] 129s Get:445 http://ftpmaster.internal/ubuntu oracular/main amd64 xtrans-dev all 1.4.0-1 [68.9 kB] 129s Get:446 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb1-dev amd64 1.17.0-2 [86.4 kB] 129s Get:447 http://ftpmaster.internal/ubuntu oracular/main amd64 libx11-dev amd64 2:1.8.7-1build1 [732 kB] 129s Get:448 http://ftpmaster.internal/ubuntu oracular/main amd64 libglx-dev amd64 1.7.0-1build1 [14.2 kB] 129s Get:449 http://ftpmaster.internal/ubuntu oracular/main amd64 libgl-dev amd64 1.7.0-1build1 [102 kB] 129s Get:450 http://ftpmaster.internal/ubuntu oracular/main amd64 libblas-dev amd64 3.12.0-3build1 [170 kB] 129s Get:451 http://ftpmaster.internal/ubuntu oracular/main amd64 liblapack-dev amd64 3.12.0-3build1 [5196 kB] 129s Get:452 http://ftpmaster.internal/ubuntu oracular/main amd64 libfftw3-quad3 amd64 3.3.10-1ubuntu3 [658 kB] 129s Get:453 http://ftpmaster.internal/ubuntu oracular/main amd64 libfftw3-bin amd64 3.3.10-1ubuntu3 [39.2 kB] 129s Get:454 http://ftpmaster.internal/ubuntu oracular/main amd64 libfftw3-dev amd64 3.3.10-1ubuntu3 [2372 kB] 129s Get:455 http://ftpmaster.internal/ubuntu oracular/main amd64 libgfortran-13-dev amd64 13.2.0-23ubuntu4 [942 kB] 129s Get:456 http://ftpmaster.internal/ubuntu oracular/main amd64 gfortran-13-x86-64-linux-gnu amd64 13.2.0-23ubuntu4 [11.6 MB] 130s Get:457 http://ftpmaster.internal/ubuntu oracular/main amd64 gfortran-13 amd64 13.2.0-23ubuntu4 [11.7 kB] 130s Get:458 http://ftpmaster.internal/ubuntu oracular/main amd64 gfortran-x86-64-linux-gnu amd64 4:13.2.0-7ubuntu1 [1024 B] 130s Get:459 http://ftpmaster.internal/ubuntu oracular/main amd64 gfortran amd64 4:13.2.0-7ubuntu1 [1176 B] 130s Get:460 http://ftpmaster.internal/ubuntu oracular/universe amd64 octave-dev amd64 8.4.0-1build5 [473 kB] 130s Get:461 http://ftpmaster.internal/ubuntu oracular/universe amd64 dh-octave all 1.8.0 [19.7 kB] 130s Get:462 http://ftpmaster.internal/ubuntu oracular/main amd64 libfontenc1 amd64 1:1.1.8-1build1 [14.0 kB] 130s Get:463 http://ftpmaster.internal/ubuntu oracular/main amd64 libxt6t64 amd64 1:1.2.1-1.2build1 [171 kB] 130s Get:464 http://ftpmaster.internal/ubuntu oracular/main amd64 libxmu6 amd64 2:1.1.3-3build2 [47.6 kB] 130s Get:465 http://ftpmaster.internal/ubuntu oracular/main amd64 libxaw7 amd64 2:1.0.14-1build2 [187 kB] 130s Get:466 http://ftpmaster.internal/ubuntu oracular/main amd64 libxfont2 amd64 1:2.0.6-1build1 [93.0 kB] 130s Get:467 http://ftpmaster.internal/ubuntu oracular/main amd64 libxkbfile1 amd64 1:1.1.0-1build4 [70.0 kB] 130s Get:468 http://ftpmaster.internal/ubuntu oracular/main amd64 libxrandr2 amd64 2:1.5.4-1 [19.6 kB] 130s Get:469 http://ftpmaster.internal/ubuntu oracular/universe amd64 python3-mpmath all 1.3.0-1 [425 kB] 130s Get:470 http://ftpmaster.internal/ubuntu oracular-proposed/universe amd64 python3-sympy all 1.12.1-1 [3967 kB] 130s Get:471 http://ftpmaster.internal/ubuntu oracular/universe amd64 octave-symbolic all 3.1.1-2 [207 kB] 130s Get:472 http://ftpmaster.internal/ubuntu oracular/main amd64 x11-xkb-utils amd64 7.7+8build2 [170 kB] 130s Get:473 http://ftpmaster.internal/ubuntu oracular/main amd64 xserver-common all 2:21.1.12-1ubuntu1 [33.3 kB] 130s Get:474 http://ftpmaster.internal/ubuntu oracular/universe amd64 xvfb amd64 2:21.1.12-1ubuntu1 [873 kB] 130s Fetched 256 MB in 3s (98.7 MB/s) 130s Selecting previously unselected package m4. 131s (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 ... 74359 files and directories currently installed.) 131s Preparing to unpack .../000-m4_1.4.19-4build1_amd64.deb ... 131s Unpacking m4 (1.4.19-4build1) ... 131s Selecting previously unselected package autoconf. 131s Preparing to unpack .../001-autoconf_2.71-3_all.deb ... 131s Unpacking autoconf (2.71-3) ... 131s Selecting previously unselected package autotools-dev. 131s Preparing to unpack .../002-autotools-dev_20220109.1_all.deb ... 131s Unpacking autotools-dev (20220109.1) ... 131s Selecting previously unselected package automake. 131s Preparing to unpack .../003-automake_1%3a1.16.5-1.3ubuntu1_all.deb ... 131s Unpacking automake (1:1.16.5-1.3ubuntu1) ... 131s Selecting previously unselected package autopoint. 131s Preparing to unpack .../004-autopoint_0.21-14ubuntu2_all.deb ... 131s Unpacking autopoint (0.21-14ubuntu2) ... 131s Selecting previously unselected package gcc-13-base:amd64. 131s Preparing to unpack .../005-gcc-13-base_13.2.0-23ubuntu4_amd64.deb ... 131s Unpacking gcc-13-base:amd64 (13.2.0-23ubuntu4) ... 131s Selecting previously unselected package libisl23:amd64. 131s Preparing to unpack .../006-libisl23_0.26-3build1_amd64.deb ... 131s Unpacking libisl23:amd64 (0.26-3build1) ... 131s Selecting previously unselected package libmpc3:amd64. 131s Preparing to unpack .../007-libmpc3_1.3.1-1build1_amd64.deb ... 131s Unpacking libmpc3:amd64 (1.3.1-1build1) ... 131s Selecting previously unselected package cpp-13-x86-64-linux-gnu. 131s Preparing to unpack .../008-cpp-13-x86-64-linux-gnu_13.2.0-23ubuntu4_amd64.deb ... 131s Unpacking cpp-13-x86-64-linux-gnu (13.2.0-23ubuntu4) ... 131s Selecting previously unselected package cpp-13. 131s Preparing to unpack .../009-cpp-13_13.2.0-23ubuntu4_amd64.deb ... 131s Unpacking cpp-13 (13.2.0-23ubuntu4) ... 131s Selecting previously unselected package cpp-x86-64-linux-gnu. 131s Preparing to unpack .../010-cpp-x86-64-linux-gnu_4%3a13.2.0-7ubuntu1_amd64.deb ... 131s Unpacking cpp-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 131s Selecting previously unselected package cpp. 131s Preparing to unpack .../011-cpp_4%3a13.2.0-7ubuntu1_amd64.deb ... 131s Unpacking cpp (4:13.2.0-7ubuntu1) ... 131s Selecting previously unselected package libcc1-0:amd64. 131s Preparing to unpack .../012-libcc1-0_14.1.0-1ubuntu1_amd64.deb ... 131s Unpacking libcc1-0:amd64 (14.1.0-1ubuntu1) ... 131s Selecting previously unselected package libgomp1:amd64. 131s Preparing to unpack .../013-libgomp1_14.1.0-1ubuntu1_amd64.deb ... 131s Unpacking libgomp1:amd64 (14.1.0-1ubuntu1) ... 131s Selecting previously unselected package libitm1:amd64. 131s Preparing to unpack .../014-libitm1_14.1.0-1ubuntu1_amd64.deb ... 131s Unpacking libitm1:amd64 (14.1.0-1ubuntu1) ... 131s Selecting previously unselected package libatomic1:amd64. 131s Preparing to unpack .../015-libatomic1_14.1.0-1ubuntu1_amd64.deb ... 131s Unpacking libatomic1:amd64 (14.1.0-1ubuntu1) ... 131s Selecting previously unselected package libasan8:amd64. 131s Preparing to unpack .../016-libasan8_14.1.0-1ubuntu1_amd64.deb ... 131s Unpacking libasan8:amd64 (14.1.0-1ubuntu1) ... 131s Selecting previously unselected package liblsan0:amd64. 131s Preparing to unpack .../017-liblsan0_14.1.0-1ubuntu1_amd64.deb ... 131s Unpacking liblsan0:amd64 (14.1.0-1ubuntu1) ... 131s Selecting previously unselected package libtsan2:amd64. 131s Preparing to unpack .../018-libtsan2_14.1.0-1ubuntu1_amd64.deb ... 131s Unpacking libtsan2:amd64 (14.1.0-1ubuntu1) ... 131s Selecting previously unselected package libubsan1:amd64. 131s Preparing to unpack .../019-libubsan1_14.1.0-1ubuntu1_amd64.deb ... 131s Unpacking libubsan1:amd64 (14.1.0-1ubuntu1) ... 132s Selecting previously unselected package libhwasan0:amd64. 132s Preparing to unpack .../020-libhwasan0_14.1.0-1ubuntu1_amd64.deb ... 132s Unpacking libhwasan0:amd64 (14.1.0-1ubuntu1) ... 132s Selecting previously unselected package libquadmath0:amd64. 132s Preparing to unpack .../021-libquadmath0_14.1.0-1ubuntu1_amd64.deb ... 132s Unpacking libquadmath0:amd64 (14.1.0-1ubuntu1) ... 132s Selecting previously unselected package libgcc-13-dev:amd64. 132s Preparing to unpack .../022-libgcc-13-dev_13.2.0-23ubuntu4_amd64.deb ... 132s Unpacking libgcc-13-dev:amd64 (13.2.0-23ubuntu4) ... 132s Selecting previously unselected package gcc-13-x86-64-linux-gnu. 132s Preparing to unpack .../023-gcc-13-x86-64-linux-gnu_13.2.0-23ubuntu4_amd64.deb ... 132s Unpacking gcc-13-x86-64-linux-gnu (13.2.0-23ubuntu4) ... 132s Selecting previously unselected package gcc-13. 132s Preparing to unpack .../024-gcc-13_13.2.0-23ubuntu4_amd64.deb ... 132s Unpacking gcc-13 (13.2.0-23ubuntu4) ... 132s Selecting previously unselected package gcc-x86-64-linux-gnu. 132s Preparing to unpack .../025-gcc-x86-64-linux-gnu_4%3a13.2.0-7ubuntu1_amd64.deb ... 132s Unpacking gcc-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 132s Selecting previously unselected package gcc. 132s Preparing to unpack .../026-gcc_4%3a13.2.0-7ubuntu1_amd64.deb ... 132s Unpacking gcc (4:13.2.0-7ubuntu1) ... 132s Selecting previously unselected package libstdc++-13-dev:amd64. 132s Preparing to unpack .../027-libstdc++-13-dev_13.2.0-23ubuntu4_amd64.deb ... 132s Unpacking libstdc++-13-dev:amd64 (13.2.0-23ubuntu4) ... 132s Selecting previously unselected package g++-13-x86-64-linux-gnu. 132s Preparing to unpack .../028-g++-13-x86-64-linux-gnu_13.2.0-23ubuntu4_amd64.deb ... 132s Unpacking g++-13-x86-64-linux-gnu (13.2.0-23ubuntu4) ... 132s Selecting previously unselected package g++-13. 132s Preparing to unpack .../029-g++-13_13.2.0-23ubuntu4_amd64.deb ... 132s Unpacking g++-13 (13.2.0-23ubuntu4) ... 133s Selecting previously unselected package g++-x86-64-linux-gnu. 133s Preparing to unpack .../030-g++-x86-64-linux-gnu_4%3a13.2.0-7ubuntu1_amd64.deb ... 133s Unpacking g++-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 133s Selecting previously unselected package g++. 133s Preparing to unpack .../031-g++_4%3a13.2.0-7ubuntu1_amd64.deb ... 133s Unpacking g++ (4:13.2.0-7ubuntu1) ... 133s Selecting previously unselected package build-essential. 133s Preparing to unpack .../032-build-essential_12.10ubuntu1_amd64.deb ... 133s Unpacking build-essential (12.10ubuntu1) ... 133s Selecting previously unselected package libcapture-tiny-perl. 133s Preparing to unpack .../033-libcapture-tiny-perl_0.48-2_all.deb ... 133s Unpacking libcapture-tiny-perl (0.48-2) ... 133s Selecting previously unselected package libparams-util-perl. 133s Preparing to unpack .../034-libparams-util-perl_1.102-3_amd64.deb ... 133s Unpacking libparams-util-perl (1.102-3) ... 133s Selecting previously unselected package libsub-install-perl. 133s Preparing to unpack .../035-libsub-install-perl_0.929-1_all.deb ... 133s Unpacking libsub-install-perl (0.929-1) ... 133s Selecting previously unselected package libdata-optlist-perl. 133s Preparing to unpack .../036-libdata-optlist-perl_0.114-1_all.deb ... 133s Unpacking libdata-optlist-perl (0.114-1) ... 133s Selecting previously unselected package libb-hooks-op-check-perl:amd64. 133s Preparing to unpack .../037-libb-hooks-op-check-perl_0.22-3build1_amd64.deb ... 133s Unpacking libb-hooks-op-check-perl:amd64 (0.22-3build1) ... 133s Selecting previously unselected package libdynaloader-functions-perl. 133s Preparing to unpack .../038-libdynaloader-functions-perl_0.003-3_all.deb ... 133s Unpacking libdynaloader-functions-perl (0.003-3) ... 133s Selecting previously unselected package libdevel-callchecker-perl:amd64. 133s Preparing to unpack .../039-libdevel-callchecker-perl_0.009-1_amd64.deb ... 133s Unpacking libdevel-callchecker-perl:amd64 (0.009-1) ... 133s Selecting previously unselected package libparams-classify-perl:amd64. 133s Preparing to unpack .../040-libparams-classify-perl_0.015-2build5_amd64.deb ... 133s Unpacking libparams-classify-perl:amd64 (0.015-2build5) ... 133s Selecting previously unselected package libmodule-runtime-perl. 133s Preparing to unpack .../041-libmodule-runtime-perl_0.016-2_all.deb ... 133s Unpacking libmodule-runtime-perl (0.016-2) ... 133s Selecting previously unselected package libtry-tiny-perl. 133s Preparing to unpack .../042-libtry-tiny-perl_0.31-2_all.deb ... 133s Unpacking libtry-tiny-perl (0.31-2) ... 133s Selecting previously unselected package libmodule-implementation-perl. 133s Preparing to unpack .../043-libmodule-implementation-perl_0.09-2_all.deb ... 133s Unpacking libmodule-implementation-perl (0.09-2) ... 133s Selecting previously unselected package libpackage-stash-perl. 133s Preparing to unpack .../044-libpackage-stash-perl_0.40-1_all.deb ... 133s Unpacking libpackage-stash-perl (0.40-1) ... 133s Selecting previously unselected package libclass-load-perl. 133s Preparing to unpack .../045-libclass-load-perl_0.25-2_all.deb ... 133s Unpacking libclass-load-perl (0.25-2) ... 133s Selecting previously unselected package libio-stringy-perl. 133s Preparing to unpack .../046-libio-stringy-perl_2.111-3_all.deb ... 133s Unpacking libio-stringy-perl (2.111-3) ... 133s Selecting previously unselected package libparams-validate-perl:amd64. 133s Preparing to unpack .../047-libparams-validate-perl_1.31-2build3_amd64.deb ... 133s Unpacking libparams-validate-perl:amd64 (1.31-2build3) ... 133s Selecting previously unselected package libsub-exporter-perl. 133s Preparing to unpack .../048-libsub-exporter-perl_0.990-1_all.deb ... 133s Unpacking libsub-exporter-perl (0.990-1) ... 133s Selecting previously unselected package libgetopt-long-descriptive-perl. 133s Preparing to unpack .../049-libgetopt-long-descriptive-perl_0.111-1_all.deb ... 133s Unpacking libgetopt-long-descriptive-perl (0.111-1) ... 133s Selecting previously unselected package libio-tiecombine-perl. 133s Preparing to unpack .../050-libio-tiecombine-perl_1.005-3_all.deb ... 133s Unpacking libio-tiecombine-perl (1.005-3) ... 133s Selecting previously unselected package libmodule-pluggable-perl. 133s Preparing to unpack .../051-libmodule-pluggable-perl_5.2-5_all.deb ... 133s Unpacking libmodule-pluggable-perl (5.2-5) ... 133s Selecting previously unselected package libstring-rewriteprefix-perl. 133s Preparing to unpack .../052-libstring-rewriteprefix-perl_0.009-1_all.deb ... 133s Unpacking libstring-rewriteprefix-perl (0.009-1) ... 133s Selecting previously unselected package libapp-cmd-perl. 133s Preparing to unpack .../053-libapp-cmd-perl_0.336-1_all.deb ... 133s Unpacking libapp-cmd-perl (0.336-1) ... 133s Selecting previously unselected package libboolean-perl. 133s Preparing to unpack .../054-libboolean-perl_0.46-3_all.deb ... 133s Unpacking libboolean-perl (0.46-3) ... 133s Selecting previously unselected package libsub-uplevel-perl. 133s Preparing to unpack .../055-libsub-uplevel-perl_0.2800-3_all.deb ... 133s Unpacking libsub-uplevel-perl (0.2800-3) ... 133s Selecting previously unselected package libtest-exception-perl. 133s Preparing to unpack .../056-libtest-exception-perl_0.43-3_all.deb ... 133s Unpacking libtest-exception-perl (0.43-3) ... 133s Selecting previously unselected package libcarp-assert-more-perl. 133s Preparing to unpack .../057-libcarp-assert-more-perl_2.4.0-1_all.deb ... 133s Unpacking libcarp-assert-more-perl (2.4.0-1) ... 133s Selecting previously unselected package libfile-which-perl. 133s Preparing to unpack .../058-libfile-which-perl_1.27-2_all.deb ... 133s Unpacking libfile-which-perl (1.27-2) ... 133s Selecting previously unselected package libfile-homedir-perl. 133s Preparing to unpack .../059-libfile-homedir-perl_1.006-2_all.deb ... 133s Unpacking libfile-homedir-perl (1.006-2) ... 133s Selecting previously unselected package libclone-choose-perl. 133s Preparing to unpack .../060-libclone-choose-perl_0.010-2_all.deb ... 133s Unpacking libclone-choose-perl (0.010-2) ... 133s Selecting previously unselected package libhash-merge-perl. 133s Preparing to unpack .../061-libhash-merge-perl_0.302-1_all.deb ... 133s Unpacking libhash-merge-perl (0.302-1) ... 133s Selecting previously unselected package libjson-perl. 133s Preparing to unpack .../062-libjson-perl_4.10000-1_all.deb ... 133s Unpacking libjson-perl (4.10000-1) ... 133s Selecting previously unselected package libexporter-tiny-perl. 133s Preparing to unpack .../063-libexporter-tiny-perl_1.006002-1_all.deb ... 133s Unpacking libexporter-tiny-perl (1.006002-1) ... 133s Selecting previously unselected package liblist-moreutils-xs-perl. 133s Preparing to unpack .../064-liblist-moreutils-xs-perl_0.430-4_amd64.deb ... 133s Unpacking liblist-moreutils-xs-perl (0.430-4) ... 133s Selecting previously unselected package liblist-moreutils-perl. 133s Preparing to unpack .../065-liblist-moreutils-perl_0.430-2_all.deb ... 133s Unpacking liblist-moreutils-perl (0.430-2) ... 133s Selecting previously unselected package liblog-log4perl-perl. 133s Preparing to unpack .../066-liblog-log4perl-perl_1.57-1_all.deb ... 133s Unpacking liblog-log4perl-perl (1.57-1) ... 133s Selecting previously unselected package libmouse-perl. 133s Preparing to unpack .../067-libmouse-perl_2.5.10-1build8_amd64.deb ... 133s Unpacking libmouse-perl (2.5.10-1build8) ... 133s Selecting previously unselected package libmousex-nativetraits-perl. 134s Preparing to unpack .../068-libmousex-nativetraits-perl_1.09-3_all.deb ... 134s Unpacking libmousex-nativetraits-perl (1.09-3) ... 134s Selecting previously unselected package libmousex-strictconstructor-perl. 134s Preparing to unpack .../069-libmousex-strictconstructor-perl_0.02-3_all.deb ... 134s Unpacking libmousex-strictconstructor-perl (0.02-3) ... 134s Selecting previously unselected package libparse-recdescent-perl. 134s Preparing to unpack .../070-libparse-recdescent-perl_1.967015+dfsg-4_all.deb ... 134s Unpacking libparse-recdescent-perl (1.967015+dfsg-4) ... 134s Selecting previously unselected package libpath-tiny-perl. 134s Preparing to unpack .../071-libpath-tiny-perl_0.144-1_all.deb ... 134s Unpacking libpath-tiny-perl (0.144-1) ... 134s Selecting previously unselected package libpod-pom-perl. 134s Preparing to unpack .../072-libpod-pom-perl_2.01-4_all.deb ... 134s Unpacking libpod-pom-perl (2.01-4) ... 134s Selecting previously unselected package libregexp-common-perl. 134s Preparing to unpack .../073-libregexp-common-perl_2017060201-3_all.deb ... 134s Unpacking libregexp-common-perl (2017060201-3) ... 134s Selecting previously unselected package libyaml-tiny-perl. 134s Preparing to unpack .../074-libyaml-tiny-perl_1.74-1_all.deb ... 134s Unpacking libyaml-tiny-perl (1.74-1) ... 134s Selecting previously unselected package libconfig-model-perl. 134s Preparing to unpack .../075-libconfig-model-perl_2.153-3_all.deb ... 134s Unpacking libconfig-model-perl (2.153-3) ... 134s Selecting previously unselected package libyaml-pp-perl. 134s Preparing to unpack .../076-libyaml-pp-perl_0.38.0-1_all.deb ... 134s Unpacking libyaml-pp-perl (0.38.0-1) ... 134s Selecting previously unselected package cme. 134s Preparing to unpack .../077-cme_1.040-1_all.deb ... 134s Unpacking cme (1.040-1) ... 134s Selecting previously unselected package libdebhelper-perl. 134s Preparing to unpack .../078-libdebhelper-perl_13.14.1ubuntu5_all.deb ... 134s Unpacking libdebhelper-perl (13.14.1ubuntu5) ... 134s Selecting previously unselected package libtool. 134s Preparing to unpack .../079-libtool_2.4.7-7build1_all.deb ... 134s Unpacking libtool (2.4.7-7build1) ... 134s Selecting previously unselected package dh-autoreconf. 134s Preparing to unpack .../080-dh-autoreconf_20_all.deb ... 134s Unpacking dh-autoreconf (20) ... 134s Selecting previously unselected package libarchive-zip-perl. 134s Preparing to unpack .../081-libarchive-zip-perl_1.68-1_all.deb ... 134s Unpacking libarchive-zip-perl (1.68-1) ... 134s Selecting previously unselected package libfile-stripnondeterminism-perl. 134s Preparing to unpack .../082-libfile-stripnondeterminism-perl_1.14.0-1_all.deb ... 134s Unpacking libfile-stripnondeterminism-perl (1.14.0-1) ... 134s Selecting previously unselected package dh-strip-nondeterminism. 134s Preparing to unpack .../083-dh-strip-nondeterminism_1.14.0-1_all.deb ... 134s Unpacking dh-strip-nondeterminism (1.14.0-1) ... 134s Selecting previously unselected package debugedit. 134s Preparing to unpack .../084-debugedit_1%3a5.0-5build2_amd64.deb ... 134s Unpacking debugedit (1:5.0-5build2) ... 134s Selecting previously unselected package dwz. 134s Preparing to unpack .../085-dwz_0.15-1build6_amd64.deb ... 134s Unpacking dwz (0.15-1build6) ... 134s Selecting previously unselected package gettext. 134s Preparing to unpack .../086-gettext_0.21-14ubuntu2_amd64.deb ... 134s Unpacking gettext (0.21-14ubuntu2) ... 134s Selecting previously unselected package intltool-debian. 134s Preparing to unpack .../087-intltool-debian_0.35.0+20060710.6_all.deb ... 134s Unpacking intltool-debian (0.35.0+20060710.6) ... 134s Selecting previously unselected package po-debconf. 134s Preparing to unpack .../088-po-debconf_1.0.21+nmu1_all.deb ... 134s Unpacking po-debconf (1.0.21+nmu1) ... 134s Selecting previously unselected package debhelper. 134s Preparing to unpack .../089-debhelper_13.14.1ubuntu5_all.deb ... 134s Unpacking debhelper (13.14.1ubuntu5) ... 134s Selecting previously unselected package aglfn. 134s Preparing to unpack .../090-aglfn_1.7+git20191031.4036a9c-2_all.deb ... 134s Unpacking aglfn (1.7+git20191031.4036a9c-2) ... 134s Selecting previously unselected package gnuplot-data. 134s Preparing to unpack .../091-gnuplot-data_6.0.0+dfsg1-1ubuntu3_all.deb ... 134s Unpacking gnuplot-data (6.0.0+dfsg1-1ubuntu3) ... 134s Selecting previously unselected package libpixman-1-0:amd64. 134s Preparing to unpack .../092-libpixman-1-0_0.42.2-1build1_amd64.deb ... 134s Unpacking libpixman-1-0:amd64 (0.42.2-1build1) ... 134s Selecting previously unselected package libxcb-render0:amd64. 134s Preparing to unpack .../093-libxcb-render0_1.17.0-2_amd64.deb ... 134s Unpacking libxcb-render0:amd64 (1.17.0-2) ... 134s Selecting previously unselected package libxcb-shm0:amd64. 134s Preparing to unpack .../094-libxcb-shm0_1.17.0-2_amd64.deb ... 134s Unpacking libxcb-shm0:amd64 (1.17.0-2) ... 134s Selecting previously unselected package libxrender1:amd64. 134s Preparing to unpack .../095-libxrender1_1%3a0.9.10-1.1build1_amd64.deb ... 134s Unpacking libxrender1:amd64 (1:0.9.10-1.1build1) ... 134s Selecting previously unselected package libcairo2:amd64. 134s Preparing to unpack .../096-libcairo2_1.18.0-3build1_amd64.deb ... 134s Unpacking libcairo2:amd64 (1.18.0-3build1) ... 134s Selecting previously unselected package liblua5.4-0:amd64. 134s Preparing to unpack .../097-liblua5.4-0_5.4.6-3build2_amd64.deb ... 134s Unpacking liblua5.4-0:amd64 (5.4.6-3build2) ... 134s Selecting previously unselected package fontconfig. 134s Preparing to unpack .../098-fontconfig_2.15.0-1.1ubuntu2_amd64.deb ... 134s Unpacking fontconfig (2.15.0-1.1ubuntu2) ... 134s Selecting previously unselected package libgraphite2-3:amd64. 134s Preparing to unpack .../099-libgraphite2-3_1.3.14-2build1_amd64.deb ... 134s Unpacking libgraphite2-3:amd64 (1.3.14-2build1) ... 135s Selecting previously unselected package libharfbuzz0b:amd64. 135s Preparing to unpack .../100-libharfbuzz0b_8.3.0-2build2_amd64.deb ... 135s Unpacking libharfbuzz0b:amd64 (8.3.0-2build2) ... 135s Selecting previously unselected package libthai-data. 135s Preparing to unpack .../101-libthai-data_0.1.29-2build1_all.deb ... 135s Unpacking libthai-data (0.1.29-2build1) ... 135s Selecting previously unselected package libdatrie1:amd64. 135s Preparing to unpack .../102-libdatrie1_0.2.13-3build1_amd64.deb ... 135s Unpacking libdatrie1:amd64 (0.2.13-3build1) ... 135s Selecting previously unselected package libthai0:amd64. 135s Preparing to unpack .../103-libthai0_0.1.29-2build1_amd64.deb ... 135s Unpacking libthai0:amd64 (0.1.29-2build1) ... 135s Selecting previously unselected package libpango-1.0-0:amd64. 135s Preparing to unpack .../104-libpango-1.0-0_1.52.2+ds-1_amd64.deb ... 135s Unpacking libpango-1.0-0:amd64 (1.52.2+ds-1) ... 135s Selecting previously unselected package libpangoft2-1.0-0:amd64. 135s Preparing to unpack .../105-libpangoft2-1.0-0_1.52.2+ds-1_amd64.deb ... 135s Unpacking libpangoft2-1.0-0:amd64 (1.52.2+ds-1) ... 135s Selecting previously unselected package libpangocairo-1.0-0:amd64. 135s Preparing to unpack .../106-libpangocairo-1.0-0_1.52.2+ds-1_amd64.deb ... 135s Unpacking libpangocairo-1.0-0:amd64 (1.52.2+ds-1) ... 135s Selecting previously unselected package libwebpmux3:amd64. 135s Preparing to unpack .../107-libwebpmux3_1.4.0-0.1_amd64.deb ... 135s Unpacking libwebpmux3:amd64 (1.4.0-0.1) ... 135s Selecting previously unselected package gnuplot-nox. 135s Preparing to unpack .../108-gnuplot-nox_6.0.0+dfsg1-1ubuntu3_amd64.deb ... 135s Unpacking gnuplot-nox (6.0.0+dfsg1-1ubuntu3) ... 135s Selecting previously unselected package fonts-freefont-otf. 135s Preparing to unpack .../109-fonts-freefont-otf_20211204+svn4273-2_all.deb ... 135s Unpacking fonts-freefont-otf (20211204+svn4273-2) ... 135s Selecting previously unselected package dh-octave-autopkgtest. 135s Preparing to unpack .../110-dh-octave-autopkgtest_1.8.0_all.deb ... 135s Unpacking dh-octave-autopkgtest (1.8.0) ... 135s Selecting previously unselected package libapt-pkg-perl. 135s Preparing to unpack .../111-libapt-pkg-perl_0.1.40build7_amd64.deb ... 135s Unpacking libapt-pkg-perl (0.1.40build7) ... 135s Selecting previously unselected package libarray-intspan-perl. 135s Preparing to unpack .../112-libarray-intspan-perl_2.004-2_all.deb ... 135s Unpacking libarray-intspan-perl (2.004-2) ... 135s Selecting previously unselected package libyaml-libyaml-perl. 135s Preparing to unpack .../113-libyaml-libyaml-perl_0.89+ds-1build2_amd64.deb ... 135s Unpacking libyaml-libyaml-perl (0.89+ds-1build2) ... 135s Selecting previously unselected package libconfig-model-backend-yaml-perl. 135s Preparing to unpack .../114-libconfig-model-backend-yaml-perl_2.134-2_all.deb ... 135s Unpacking libconfig-model-backend-yaml-perl (2.134-2) ... 135s Selecting previously unselected package libexporter-lite-perl. 135s Preparing to unpack .../115-libexporter-lite-perl_0.09-2_all.deb ... 135s Unpacking libexporter-lite-perl (0.09-2) ... 135s Selecting previously unselected package libencode-locale-perl. 135s Preparing to unpack .../116-libencode-locale-perl_1.05-3_all.deb ... 135s Unpacking libencode-locale-perl (1.05-3) ... 135s Selecting previously unselected package libtimedate-perl. 135s Preparing to unpack .../117-libtimedate-perl_2.3300-2_all.deb ... 135s Unpacking libtimedate-perl (2.3300-2) ... 135s Selecting previously unselected package libhttp-date-perl. 135s Preparing to unpack .../118-libhttp-date-perl_6.06-1_all.deb ... 135s Unpacking libhttp-date-perl (6.06-1) ... 135s Selecting previously unselected package libfile-listing-perl. 135s Preparing to unpack .../119-libfile-listing-perl_6.16-1_all.deb ... 135s Unpacking libfile-listing-perl (6.16-1) ... 135s Selecting previously unselected package libhtml-tagset-perl. 135s Preparing to unpack .../120-libhtml-tagset-perl_3.24-1_all.deb ... 135s Unpacking libhtml-tagset-perl (3.24-1) ... 135s Selecting previously unselected package liburi-perl. 135s Preparing to unpack .../121-liburi-perl_5.28-1_all.deb ... 135s Unpacking liburi-perl (5.28-1) ... 135s Selecting previously unselected package libhtml-parser-perl:amd64. 135s Preparing to unpack .../122-libhtml-parser-perl_3.82-1_amd64.deb ... 135s Unpacking libhtml-parser-perl:amd64 (3.82-1) ... 135s Selecting previously unselected package libhtml-tree-perl. 135s Preparing to unpack .../123-libhtml-tree-perl_5.07-3_all.deb ... 135s Unpacking libhtml-tree-perl (5.07-3) ... 135s Selecting previously unselected package libclone-perl:amd64. 135s Preparing to unpack .../124-libclone-perl_0.46-1build3_amd64.deb ... 135s Unpacking libclone-perl:amd64 (0.46-1build3) ... 135s Selecting previously unselected package libio-html-perl. 135s Preparing to unpack .../125-libio-html-perl_1.004-3_all.deb ... 135s Unpacking libio-html-perl (1.004-3) ... 135s Selecting previously unselected package liblwp-mediatypes-perl. 135s Preparing to unpack .../126-liblwp-mediatypes-perl_6.04-2_all.deb ... 135s Unpacking liblwp-mediatypes-perl (6.04-2) ... 135s Selecting previously unselected package libhttp-message-perl. 135s Preparing to unpack .../127-libhttp-message-perl_6.45-1ubuntu1_all.deb ... 135s Unpacking libhttp-message-perl (6.45-1ubuntu1) ... 135s Selecting previously unselected package libhttp-cookies-perl. 135s Preparing to unpack .../128-libhttp-cookies-perl_6.11-1_all.deb ... 135s Unpacking libhttp-cookies-perl (6.11-1) ... 135s Selecting previously unselected package libhttp-negotiate-perl. 135s Preparing to unpack .../129-libhttp-negotiate-perl_6.01-2_all.deb ... 135s Unpacking libhttp-negotiate-perl (6.01-2) ... 135s Selecting previously unselected package perl-openssl-defaults:amd64. 135s Preparing to unpack .../130-perl-openssl-defaults_7build3_amd64.deb ... 135s Unpacking perl-openssl-defaults:amd64 (7build3) ... 135s Selecting previously unselected package libnet-ssleay-perl:amd64. 135s Preparing to unpack .../131-libnet-ssleay-perl_1.94-1build4_amd64.deb ... 135s Unpacking libnet-ssleay-perl:amd64 (1.94-1build4) ... 135s Selecting previously unselected package libio-socket-ssl-perl. 135s Preparing to unpack .../132-libio-socket-ssl-perl_2.085-1_all.deb ... 135s Unpacking libio-socket-ssl-perl (2.085-1) ... 135s Selecting previously unselected package libnet-http-perl. 135s Preparing to unpack .../133-libnet-http-perl_6.23-1_all.deb ... 135s Unpacking libnet-http-perl (6.23-1) ... 135s Selecting previously unselected package liblwp-protocol-https-perl. 135s Preparing to unpack .../134-liblwp-protocol-https-perl_6.14-1_all.deb ... 135s Unpacking liblwp-protocol-https-perl (6.14-1) ... 136s Selecting previously unselected package libwww-robotrules-perl. 136s Preparing to unpack .../135-libwww-robotrules-perl_6.02-1_all.deb ... 136s Unpacking libwww-robotrules-perl (6.02-1) ... 136s Selecting previously unselected package libwww-perl. 136s Preparing to unpack .../136-libwww-perl_6.77-1_all.deb ... 136s Unpacking libwww-perl (6.77-1) ... 136s Selecting previously unselected package liberror-perl. 136s Preparing to unpack .../137-liberror-perl_0.17029-2_all.deb ... 136s Unpacking liberror-perl (0.17029-2) ... 136s Selecting previously unselected package libparse-debcontrol-perl. 136s Preparing to unpack .../138-libparse-debcontrol-perl_2.005-6_all.deb ... 136s Unpacking libparse-debcontrol-perl (2.005-6) ... 136s Selecting previously unselected package libsoftware-copyright-perl. 136s Preparing to unpack .../139-libsoftware-copyright-perl_0.012-2_all.deb ... 136s Unpacking libsoftware-copyright-perl (0.012-2) ... 136s Selecting previously unselected package libalgorithm-c3-perl. 136s Preparing to unpack .../140-libalgorithm-c3-perl_0.11-2_all.deb ... 136s Unpacking libalgorithm-c3-perl (0.11-2) ... 136s Selecting previously unselected package libclass-c3-perl. 136s Preparing to unpack .../141-libclass-c3-perl_0.35-2_all.deb ... 136s Unpacking libclass-c3-perl (0.35-2) ... 136s Selecting previously unselected package libmro-compat-perl. 136s Preparing to unpack .../142-libmro-compat-perl_0.15-2_all.deb ... 136s Unpacking libmro-compat-perl (0.15-2) ... 136s Selecting previously unselected package libdata-section-perl. 136s Preparing to unpack .../143-libdata-section-perl_0.200008-1_all.deb ... 136s Unpacking libdata-section-perl (0.200008-1) ... 136s Selecting previously unselected package libtext-template-perl. 136s Preparing to unpack .../144-libtext-template-perl_1.61-1_all.deb ... 136s Unpacking libtext-template-perl (1.61-1) ... 136s Selecting previously unselected package libsoftware-license-perl. 136s Preparing to unpack .../145-libsoftware-license-perl_0.104006-1_all.deb ... 136s Unpacking libsoftware-license-perl (0.104006-1) ... 136s Selecting previously unselected package libsoftware-licensemoreutils-perl. 136s Preparing to unpack .../146-libsoftware-licensemoreutils-perl_1.009-1_all.deb ... 136s Unpacking libsoftware-licensemoreutils-perl (1.009-1) ... 136s Selecting previously unselected package libsort-versions-perl. 136s Preparing to unpack .../147-libsort-versions-perl_1.62-3_all.deb ... 136s Unpacking libsort-versions-perl (1.62-3) ... 136s Selecting previously unselected package libtext-reform-perl. 136s Preparing to unpack .../148-libtext-reform-perl_1.20-5_all.deb ... 136s Unpacking libtext-reform-perl (1.20-5) ... 136s Selecting previously unselected package libtext-autoformat-perl. 136s Preparing to unpack .../149-libtext-autoformat-perl_1.750000-2_all.deb ... 136s Unpacking libtext-autoformat-perl (1.750000-2) ... 136s Selecting previously unselected package libtext-levenshtein-damerau-perl. 136s Preparing to unpack .../150-libtext-levenshtein-damerau-perl_0.41-3_all.deb ... 136s Unpacking libtext-levenshtein-damerau-perl (0.41-3) ... 136s Selecting previously unselected package libtoml-tiny-perl. 136s Preparing to unpack .../151-libtoml-tiny-perl_0.16-1_all.deb ... 136s Unpacking libtoml-tiny-perl (0.16-1) ... 136s Selecting previously unselected package libindirect-perl. 136s Preparing to unpack .../152-libindirect-perl_0.39-2build4_amd64.deb ... 136s Unpacking libindirect-perl (0.39-2build4) ... 136s Selecting previously unselected package libxs-parse-keyword-perl. 136s Preparing to unpack .../153-libxs-parse-keyword-perl_0.42-1_amd64.deb ... 136s Unpacking libxs-parse-keyword-perl (0.42-1) ... 136s Selecting previously unselected package libxs-parse-sublike-perl:amd64. 136s Preparing to unpack .../154-libxs-parse-sublike-perl_0.21-2build3_amd64.deb ... 136s Unpacking libxs-parse-sublike-perl:amd64 (0.21-2build3) ... 136s Selecting previously unselected package libobject-pad-perl. 136s Preparing to unpack .../155-libobject-pad-perl_0.808-1build3_amd64.deb ... 136s Unpacking libobject-pad-perl (0.808-1build3) ... 136s Selecting previously unselected package libsyntax-keyword-try-perl. 136s Preparing to unpack .../156-libsyntax-keyword-try-perl_0.29-2_amd64.deb ... 136s Unpacking libsyntax-keyword-try-perl (0.29-2) ... 136s Selecting previously unselected package libio-interactive-perl. 136s Preparing to unpack .../157-libio-interactive-perl_1.025-1_all.deb ... 136s Unpacking libio-interactive-perl (1.025-1) ... 136s Selecting previously unselected package liblog-any-perl. 136s Preparing to unpack .../158-liblog-any-perl_1.717-1_all.deb ... 136s Unpacking liblog-any-perl (1.717-1) ... 136s Selecting previously unselected package liblog-any-adapter-screen-perl. 136s Preparing to unpack .../159-liblog-any-adapter-screen-perl_0.140-2_all.deb ... 136s Unpacking liblog-any-adapter-screen-perl (0.140-2) ... 136s Selecting previously unselected package libsub-exporter-progressive-perl. 136s Preparing to unpack .../160-libsub-exporter-progressive-perl_0.001013-3_all.deb ... 136s Unpacking libsub-exporter-progressive-perl (0.001013-3) ... 136s Selecting previously unselected package libvariable-magic-perl. 136s Preparing to unpack .../161-libvariable-magic-perl_0.64-1_amd64.deb ... 136s Unpacking libvariable-magic-perl (0.64-1) ... 136s Selecting previously unselected package libb-hooks-endofscope-perl. 136s Preparing to unpack .../162-libb-hooks-endofscope-perl_0.28-1_all.deb ... 136s Unpacking libb-hooks-endofscope-perl (0.28-1) ... 136s Selecting previously unselected package libsub-identify-perl. 136s Preparing to unpack .../163-libsub-identify-perl_0.14-3build3_amd64.deb ... 136s Unpacking libsub-identify-perl (0.14-3build3) ... 136s Selecting previously unselected package libsub-name-perl:amd64. 136s Preparing to unpack .../164-libsub-name-perl_0.27-1build3_amd64.deb ... 136s Unpacking libsub-name-perl:amd64 (0.27-1build3) ... 136s Selecting previously unselected package libnamespace-clean-perl. 136s Preparing to unpack .../165-libnamespace-clean-perl_0.27-2_all.deb ... 136s Unpacking libnamespace-clean-perl (0.27-2) ... 136s Selecting previously unselected package libnumber-compare-perl. 136s Preparing to unpack .../166-libnumber-compare-perl_0.03-3_all.deb ... 136s Unpacking libnumber-compare-perl (0.03-3) ... 136s Selecting previously unselected package libtext-glob-perl. 136s Preparing to unpack .../167-libtext-glob-perl_0.11-3_all.deb ... 136s Unpacking libtext-glob-perl (0.11-3) ... 136s Selecting previously unselected package libpath-iterator-rule-perl. 136s Preparing to unpack .../168-libpath-iterator-rule-perl_1.015-2_all.deb ... 136s Unpacking libpath-iterator-rule-perl (1.015-2) ... 136s Selecting previously unselected package libpod-parser-perl. 136s Preparing to unpack .../169-libpod-parser-perl_1.67-1_all.deb ... 136s Adding 'diversion of /usr/bin/podselect to /usr/bin/podselect.bundled by libpod-parser-perl' 136s Adding 'diversion of /usr/share/man/man1/podselect.1.gz to /usr/share/man/man1/podselect.bundled.1.gz by libpod-parser-perl' 136s Unpacking libpod-parser-perl (1.67-1) ... 136s Selecting previously unselected package libpod-constants-perl. 136s Preparing to unpack .../170-libpod-constants-perl_0.19-2_all.deb ... 136s Unpacking libpod-constants-perl (0.19-2) ... 137s Selecting previously unselected package libset-intspan-perl. 137s Preparing to unpack .../171-libset-intspan-perl_1.19-3_all.deb ... 137s Unpacking libset-intspan-perl (1.19-3) ... 137s Selecting previously unselected package libstring-copyright-perl. 137s Preparing to unpack .../172-libstring-copyright-perl_0.003014-1_all.deb ... 137s Unpacking libstring-copyright-perl (0.003014-1) ... 137s Selecting previously unselected package libstring-escape-perl. 137s Preparing to unpack .../173-libstring-escape-perl_2010.002-3_all.deb ... 137s Unpacking libstring-escape-perl (2010.002-3) ... 137s Selecting previously unselected package libregexp-pattern-license-perl. 137s Preparing to unpack .../174-libregexp-pattern-license-perl_3.11.0-1_all.deb ... 137s Unpacking libregexp-pattern-license-perl (3.11.0-1) ... 137s Selecting previously unselected package libregexp-pattern-perl. 137s Preparing to unpack .../175-libregexp-pattern-perl_0.2.14-2_all.deb ... 137s Unpacking libregexp-pattern-perl (0.2.14-2) ... 137s Selecting previously unselected package libstring-license-perl. 137s Preparing to unpack .../176-libstring-license-perl_0.0.9-2ubuntu1_all.deb ... 137s Unpacking libstring-license-perl (0.0.9-2ubuntu1) ... 137s Selecting previously unselected package licensecheck. 137s Preparing to unpack .../177-licensecheck_3.3.9-1ubuntu1_all.deb ... 137s Unpacking licensecheck (3.3.9-1ubuntu1) ... 137s Selecting previously unselected package diffstat. 137s Preparing to unpack .../178-diffstat_1.66-1build1_amd64.deb ... 137s Unpacking diffstat (1.66-1build1) ... 137s Selecting previously unselected package libberkeleydb-perl:amd64. 137s Preparing to unpack .../179-libberkeleydb-perl_0.64-2build4_amd64.deb ... 137s Unpacking libberkeleydb-perl:amd64 (0.64-2build4) ... 137s Selecting previously unselected package libclass-xsaccessor-perl. 137s Preparing to unpack .../180-libclass-xsaccessor-perl_1.19-4build4_amd64.deb ... 137s Unpacking libclass-xsaccessor-perl (1.19-4build4) ... 137s Selecting previously unselected package libconfig-tiny-perl. 137s Preparing to unpack .../181-libconfig-tiny-perl_2.30-1_all.deb ... 137s Unpacking libconfig-tiny-perl (2.30-1) ... 137s Selecting previously unselected package libconst-fast-perl. 137s Preparing to unpack .../182-libconst-fast-perl_0.014-2_all.deb ... 137s Unpacking libconst-fast-perl (0.014-2) ... 137s Selecting previously unselected package libcpanel-json-xs-perl:amd64. 137s Preparing to unpack .../183-libcpanel-json-xs-perl_4.38-1_amd64.deb ... 137s Unpacking libcpanel-json-xs-perl:amd64 (4.38-1) ... 137s Selecting previously unselected package libaliased-perl. 137s Preparing to unpack .../184-libaliased-perl_0.34-3_all.deb ... 137s Unpacking libaliased-perl (0.34-3) ... 137s Selecting previously unselected package libclass-data-inheritable-perl. 137s Preparing to unpack .../185-libclass-data-inheritable-perl_0.08-3_all.deb ... 137s Unpacking libclass-data-inheritable-perl (0.08-3) ... 137s Selecting previously unselected package libdevel-stacktrace-perl. 137s Preparing to unpack .../186-libdevel-stacktrace-perl_2.0500-1_all.deb ... 137s Unpacking libdevel-stacktrace-perl (2.0500-1) ... 137s Selecting previously unselected package libexception-class-perl. 137s Preparing to unpack .../187-libexception-class-perl_1.45-1_all.deb ... 137s Unpacking libexception-class-perl (1.45-1) ... 137s Selecting previously unselected package libiterator-perl. 137s Preparing to unpack .../188-libiterator-perl_0.03+ds1-2_all.deb ... 137s Unpacking libiterator-perl (0.03+ds1-2) ... 137s Selecting previously unselected package libiterator-util-perl. 137s Preparing to unpack .../189-libiterator-util-perl_0.02+ds1-2_all.deb ... 137s Unpacking libiterator-util-perl (0.02+ds1-2) ... 137s Selecting previously unselected package libdata-dpath-perl. 137s Preparing to unpack .../190-libdata-dpath-perl_0.59-1_all.deb ... 137s Unpacking libdata-dpath-perl (0.59-1) ... 137s Selecting previously unselected package libnet-domain-tld-perl. 137s Preparing to unpack .../191-libnet-domain-tld-perl_1.75-3_all.deb ... 137s Unpacking libnet-domain-tld-perl (1.75-3) ... 137s Selecting previously unselected package libdata-validate-domain-perl. 137s Preparing to unpack .../192-libdata-validate-domain-perl_0.10-1.1_all.deb ... 137s Unpacking libdata-validate-domain-perl (0.10-1.1) ... 137s Selecting previously unselected package libnet-ipv6addr-perl. 137s Preparing to unpack .../193-libnet-ipv6addr-perl_1.02-1_all.deb ... 137s Unpacking libnet-ipv6addr-perl (1.02-1) ... 137s Selecting previously unselected package libnet-netmask-perl. 137s Preparing to unpack .../194-libnet-netmask-perl_2.0002-2_all.deb ... 137s Unpacking libnet-netmask-perl (2.0002-2) ... 137s Selecting previously unselected package libnetaddr-ip-perl. 137s Preparing to unpack .../195-libnetaddr-ip-perl_4.079+dfsg-2build4_amd64.deb ... 137s Unpacking libnetaddr-ip-perl (4.079+dfsg-2build4) ... 137s Selecting previously unselected package libdata-validate-ip-perl. 137s Preparing to unpack .../196-libdata-validate-ip-perl_0.31-1_all.deb ... 137s Unpacking libdata-validate-ip-perl (0.31-1) ... 137s Selecting previously unselected package libdata-validate-uri-perl. 137s Preparing to unpack .../197-libdata-validate-uri-perl_0.07-3_all.deb ... 137s Unpacking libdata-validate-uri-perl (0.07-3) ... 137s Selecting previously unselected package libdevel-size-perl. 137s Preparing to unpack .../198-libdevel-size-perl_0.84-1_amd64.deb ... 137s Unpacking libdevel-size-perl (0.84-1) ... 137s Selecting previously unselected package libemail-address-xs-perl. 137s Preparing to unpack .../199-libemail-address-xs-perl_1.05-1build4_amd64.deb ... 137s Unpacking libemail-address-xs-perl (1.05-1build4) ... 137s Selecting previously unselected package libipc-system-simple-perl. 137s Preparing to unpack .../200-libipc-system-simple-perl_1.30-2_all.deb ... 137s Unpacking libipc-system-simple-perl (1.30-2) ... 137s Selecting previously unselected package libfile-basedir-perl. 137s Preparing to unpack .../201-libfile-basedir-perl_0.09-2_all.deb ... 137s Unpacking libfile-basedir-perl (0.09-2) ... 137s Selecting previously unselected package libfile-find-rule-perl. 137s Preparing to unpack .../202-libfile-find-rule-perl_0.34-3_all.deb ... 137s Unpacking libfile-find-rule-perl (0.34-3) ... 137s Selecting previously unselected package libio-string-perl. 137s Preparing to unpack .../203-libio-string-perl_1.08-4_all.deb ... 137s Unpacking libio-string-perl (1.08-4) ... 137s Selecting previously unselected package libfont-ttf-perl. 137s Preparing to unpack .../204-libfont-ttf-perl_1.06-2_all.deb ... 137s Unpacking libfont-ttf-perl (1.06-2) ... 137s Selecting previously unselected package libhtml-html5-entities-perl. 137s Preparing to unpack .../205-libhtml-html5-entities-perl_0.004-3_all.deb ... 137s Unpacking libhtml-html5-entities-perl (0.004-3) ... 137s Selecting previously unselected package libhtml-tokeparser-simple-perl. 137s Preparing to unpack .../206-libhtml-tokeparser-simple-perl_3.16-4_all.deb ... 137s Unpacking libhtml-tokeparser-simple-perl (3.16-4) ... 137s Selecting previously unselected package libipc-run3-perl. 137s Preparing to unpack .../207-libipc-run3-perl_0.049-1_all.deb ... 137s Unpacking libipc-run3-perl (0.049-1) ... 137s Selecting previously unselected package libjson-maybexs-perl. 137s Preparing to unpack .../208-libjson-maybexs-perl_1.004005-1_all.deb ... 137s Unpacking libjson-maybexs-perl (1.004005-1) ... 138s Selecting previously unselected package liblist-compare-perl. 138s Preparing to unpack .../209-liblist-compare-perl_0.55-2_all.deb ... 138s Unpacking liblist-compare-perl (0.55-2) ... 138s Selecting previously unselected package liblist-someutils-perl. 138s Preparing to unpack .../210-liblist-someutils-perl_0.59-1_all.deb ... 138s Unpacking liblist-someutils-perl (0.59-1) ... 138s Selecting previously unselected package liblist-utilsby-perl. 138s Preparing to unpack .../211-liblist-utilsby-perl_0.12-2_all.deb ... 138s Unpacking liblist-utilsby-perl (0.12-2) ... 138s Selecting previously unselected package libmldbm-perl. 138s Preparing to unpack .../212-libmldbm-perl_2.05-4_all.deb ... 138s Unpacking libmldbm-perl (2.05-4) ... 138s Selecting previously unselected package libclass-method-modifiers-perl. 138s Preparing to unpack .../213-libclass-method-modifiers-perl_2.15-1_all.deb ... 138s Unpacking libclass-method-modifiers-perl (2.15-1) ... 138s Selecting previously unselected package libimport-into-perl. 138s Preparing to unpack .../214-libimport-into-perl_1.002005-2_all.deb ... 138s Unpacking libimport-into-perl (1.002005-2) ... 138s Selecting previously unselected package librole-tiny-perl. 138s Preparing to unpack .../215-librole-tiny-perl_2.002004-1_all.deb ... 138s Unpacking librole-tiny-perl (2.002004-1) ... 138s Selecting previously unselected package libsub-quote-perl. 138s Preparing to unpack .../216-libsub-quote-perl_2.006008-1ubuntu1_all.deb ... 138s Unpacking libsub-quote-perl (2.006008-1ubuntu1) ... 138s Selecting previously unselected package libmoo-perl. 138s Preparing to unpack .../217-libmoo-perl_2.005005-1_all.deb ... 138s Unpacking libmoo-perl (2.005005-1) ... 138s Selecting previously unselected package libstrictures-perl. 138s Preparing to unpack .../218-libstrictures-perl_2.000006-1_all.deb ... 138s Unpacking libstrictures-perl (2.000006-1) ... 138s Selecting previously unselected package libmoox-aliases-perl. 138s Preparing to unpack .../219-libmoox-aliases-perl_0.001006-2_all.deb ... 138s Unpacking libmoox-aliases-perl (0.001006-2) ... 138s Selecting previously unselected package libperlio-gzip-perl. 138s Preparing to unpack .../220-libperlio-gzip-perl_0.20-1build4_amd64.deb ... 138s Unpacking libperlio-gzip-perl (0.20-1build4) ... 138s Selecting previously unselected package libperlio-utf8-strict-perl. 138s Preparing to unpack .../221-libperlio-utf8-strict-perl_0.010-1build3_amd64.deb ... 138s Unpacking libperlio-utf8-strict-perl (0.010-1build3) ... 138s Selecting previously unselected package libproc-processtable-perl:amd64. 138s Preparing to unpack .../222-libproc-processtable-perl_0.636-1build3_amd64.deb ... 138s Unpacking libproc-processtable-perl:amd64 (0.636-1build3) ... 138s Selecting previously unselected package libregexp-wildcards-perl. 138s Preparing to unpack .../223-libregexp-wildcards-perl_1.05-3_all.deb ... 138s Unpacking libregexp-wildcards-perl (1.05-3) ... 138s Selecting previously unselected package libsereal-decoder-perl. 138s Preparing to unpack .../224-libsereal-decoder-perl_5.004+ds-1build3_amd64.deb ... 138s Unpacking libsereal-decoder-perl (5.004+ds-1build3) ... 138s Selecting previously unselected package libsereal-encoder-perl. 138s Preparing to unpack .../225-libsereal-encoder-perl_5.004+ds-1build3_amd64.deb ... 138s Unpacking libsereal-encoder-perl (5.004+ds-1build3) ... 138s Selecting previously unselected package libterm-readkey-perl. 138s Preparing to unpack .../226-libterm-readkey-perl_2.38-2build4_amd64.deb ... 138s Unpacking libterm-readkey-perl (2.38-2build4) ... 138s Selecting previously unselected package libtext-levenshteinxs-perl. 138s Preparing to unpack .../227-libtext-levenshteinxs-perl_0.03-5build4_amd64.deb ... 138s Unpacking libtext-levenshteinxs-perl (0.03-5build4) ... 138s Selecting previously unselected package libmarkdown2:amd64. 138s Preparing to unpack .../228-libmarkdown2_2.2.7-2build1_amd64.deb ... 138s Unpacking libmarkdown2:amd64 (2.2.7-2build1) ... 138s Selecting previously unselected package libtext-markdown-discount-perl. 138s Preparing to unpack .../229-libtext-markdown-discount-perl_0.16-1build3_amd64.deb ... 138s Unpacking libtext-markdown-discount-perl (0.16-1build3) ... 138s Selecting previously unselected package libdata-messagepack-perl. 138s Preparing to unpack .../230-libdata-messagepack-perl_1.02-1build4_amd64.deb ... 138s Unpacking libdata-messagepack-perl (1.02-1build4) ... 138s Selecting previously unselected package libtext-xslate-perl:amd64. 138s Preparing to unpack .../231-libtext-xslate-perl_3.5.9-2_amd64.deb ... 138s Unpacking libtext-xslate-perl:amd64 (3.5.9-2) ... 138s Selecting previously unselected package libtime-duration-perl. 138s Preparing to unpack .../232-libtime-duration-perl_1.21-2_all.deb ... 138s Unpacking libtime-duration-perl (1.21-2) ... 138s Selecting previously unselected package libtime-moment-perl. 138s Preparing to unpack .../233-libtime-moment-perl_0.44-2build4_amd64.deb ... 138s Unpacking libtime-moment-perl (0.44-2build4) ... 138s Selecting previously unselected package libunicode-utf8-perl. 138s Preparing to unpack .../234-libunicode-utf8-perl_0.62-2build3_amd64.deb ... 138s Unpacking libunicode-utf8-perl (0.62-2build3) ... 138s Selecting previously unselected package libcgi-pm-perl. 138s Preparing to unpack .../235-libcgi-pm-perl_4.64-1_all.deb ... 138s Unpacking libcgi-pm-perl (4.64-1) ... 138s Selecting previously unselected package libhtml-form-perl. 138s Preparing to unpack .../236-libhtml-form-perl_6.11-1_all.deb ... 138s Unpacking libhtml-form-perl (6.11-1) ... 138s Selecting previously unselected package libwww-mechanize-perl. 138s Preparing to unpack .../237-libwww-mechanize-perl_2.18-1ubuntu1_all.deb ... 138s Unpacking libwww-mechanize-perl (2.18-1ubuntu1) ... 138s Selecting previously unselected package libxml-namespacesupport-perl. 138s Preparing to unpack .../238-libxml-namespacesupport-perl_1.12-2_all.deb ... 138s Unpacking libxml-namespacesupport-perl (1.12-2) ... 138s Selecting previously unselected package libxml-sax-base-perl. 138s Preparing to unpack .../239-libxml-sax-base-perl_1.09-3_all.deb ... 138s Unpacking libxml-sax-base-perl (1.09-3) ... 138s Selecting previously unselected package libxml-sax-perl. 138s Preparing to unpack .../240-libxml-sax-perl_1.02+dfsg-3_all.deb ... 138s Unpacking libxml-sax-perl (1.02+dfsg-3) ... 138s Selecting previously unselected package libxml-libxml-perl. 138s Preparing to unpack .../241-libxml-libxml-perl_2.0207+dfsg+really+2.0134-2_amd64.deb ... 138s Unpacking libxml-libxml-perl (2.0207+dfsg+really+2.0134-2) ... 138s Selecting previously unselected package lzip. 138s Preparing to unpack .../242-lzip_1.24.1-1build1_amd64.deb ... 138s Unpacking lzip (1.24.1-1build1) ... 138s Selecting previously unselected package lzop. 138s Preparing to unpack .../243-lzop_1.04-2build3_amd64.deb ... 138s Unpacking lzop (1.04-2build3) ... 138s Selecting previously unselected package patchutils. 139s Preparing to unpack .../244-patchutils_0.4.2-1build3_amd64.deb ... 139s Unpacking patchutils (0.4.2-1build3) ... 139s Selecting previously unselected package t1utils. 139s Preparing to unpack .../245-t1utils_1.41-4build3_amd64.deb ... 139s Unpacking t1utils (1.41-4build3) ... 139s Selecting previously unselected package unzip. 139s Preparing to unpack .../246-unzip_6.0-28ubuntu4_amd64.deb ... 139s Unpacking unzip (6.0-28ubuntu4) ... 139s Selecting previously unselected package lintian. 139s Preparing to unpack .../247-lintian_2.117.0ubuntu2_all.deb ... 139s Unpacking lintian (2.117.0ubuntu2) ... 139s Selecting previously unselected package libconfig-model-dpkg-perl. 139s Preparing to unpack .../248-libconfig-model-dpkg-perl_3.004_all.deb ... 139s Unpacking libconfig-model-dpkg-perl (3.004) ... 139s Selecting previously unselected package libconvert-binhex-perl. 139s Preparing to unpack .../249-libconvert-binhex-perl_1.125-3_all.deb ... 139s Unpacking libconvert-binhex-perl (1.125-3) ... 139s Selecting previously unselected package libnet-smtp-ssl-perl. 139s Preparing to unpack .../250-libnet-smtp-ssl-perl_1.04-2_all.deb ... 139s Unpacking libnet-smtp-ssl-perl (1.04-2) ... 139s Selecting previously unselected package libmailtools-perl. 139s Preparing to unpack .../251-libmailtools-perl_2.21-3_all.deb ... 139s Unpacking libmailtools-perl (2.21-3) ... 139s Selecting previously unselected package libmime-tools-perl. 139s Preparing to unpack .../252-libmime-tools-perl_5.515-1_all.deb ... 139s Unpacking libmime-tools-perl (5.515-1) ... 139s Selecting previously unselected package libsuitesparseconfig7:amd64. 139s Preparing to unpack .../253-libsuitesparseconfig7_1%3a7.7.0+dfsg-2_amd64.deb ... 139s Unpacking libsuitesparseconfig7:amd64 (1:7.7.0+dfsg-2) ... 139s Selecting previously unselected package libamd3:amd64. 139s Preparing to unpack .../254-libamd3_1%3a7.7.0+dfsg-2_amd64.deb ... 139s Unpacking libamd3:amd64 (1:7.7.0+dfsg-2) ... 139s Selecting previously unselected package libblas3:amd64. 139s Preparing to unpack .../255-libblas3_3.12.0-3build1_amd64.deb ... 139s Unpacking libblas3:amd64 (3.12.0-3build1) ... 139s Selecting previously unselected package libgfortran5:amd64. 139s Preparing to unpack .../256-libgfortran5_14.1.0-1ubuntu1_amd64.deb ... 139s Unpacking libgfortran5:amd64 (14.1.0-1ubuntu1) ... 139s Selecting previously unselected package liblapack3:amd64. 139s Preparing to unpack .../257-liblapack3_3.12.0-3build1_amd64.deb ... 139s Unpacking liblapack3:amd64 (3.12.0-3build1) ... 139s Selecting previously unselected package libarpack2t64:amd64. 139s Preparing to unpack .../258-libarpack2t64_3.9.1-1.1build2_amd64.deb ... 139s Unpacking libarpack2t64:amd64 (3.9.1-1.1build2) ... 139s Selecting previously unselected package libccolamd3:amd64. 139s Preparing to unpack .../259-libccolamd3_1%3a7.7.0+dfsg-2_amd64.deb ... 139s Unpacking libccolamd3:amd64 (1:7.7.0+dfsg-2) ... 139s Selecting previously unselected package libcamd3:amd64. 139s Preparing to unpack .../260-libcamd3_1%3a7.7.0+dfsg-2_amd64.deb ... 139s Unpacking libcamd3:amd64 (1:7.7.0+dfsg-2) ... 139s Selecting previously unselected package libcolamd3:amd64. 139s Preparing to unpack .../261-libcolamd3_1%3a7.7.0+dfsg-2_amd64.deb ... 139s Unpacking libcolamd3:amd64 (1:7.7.0+dfsg-2) ... 139s Selecting previously unselected package libcholmod5:amd64. 139s Preparing to unpack .../262-libcholmod5_1%3a7.7.0+dfsg-2_amd64.deb ... 139s Unpacking libcholmod5:amd64 (1:7.7.0+dfsg-2) ... 139s Selecting previously unselected package libcxsparse4:amd64. 139s Preparing to unpack .../263-libcxsparse4_1%3a7.7.0+dfsg-2_amd64.deb ... 139s Unpacking libcxsparse4:amd64 (1:7.7.0+dfsg-2) ... 139s Selecting previously unselected package libfftw3-double3:amd64. 139s Preparing to unpack .../264-libfftw3-double3_3.3.10-1ubuntu3_amd64.deb ... 139s Unpacking libfftw3-double3:amd64 (3.3.10-1ubuntu3) ... 140s Selecting previously unselected package libfftw3-single3:amd64. 140s Preparing to unpack .../265-libfftw3-single3_3.3.10-1ubuntu3_amd64.deb ... 140s Unpacking libfftw3-single3:amd64 (3.3.10-1ubuntu3) ... 140s Selecting previously unselected package libxfixes3:amd64. 140s Preparing to unpack .../266-libxfixes3_1%3a6.0.0-2build1_amd64.deb ... 140s Unpacking libxfixes3:amd64 (1:6.0.0-2build1) ... 140s Selecting previously unselected package libxcursor1:amd64. 140s Preparing to unpack .../267-libxcursor1_1%3a1.2.2-1_amd64.deb ... 140s Unpacking libxcursor1:amd64 (1:1.2.2-1) ... 140s Selecting previously unselected package libxft2:amd64. 140s Preparing to unpack .../268-libxft2_2.3.6-1build1_amd64.deb ... 140s Unpacking libxft2:amd64 (2.3.6-1build1) ... 140s Selecting previously unselected package libxinerama1:amd64. 140s Preparing to unpack .../269-libxinerama1_2%3a1.1.4-3build1_amd64.deb ... 140s Unpacking libxinerama1:amd64 (2:1.1.4-3build1) ... 140s Selecting previously unselected package libfltk1.3t64:amd64. 140s Preparing to unpack .../270-libfltk1.3t64_1.3.8-6.1build2_amd64.deb ... 140s Unpacking libfltk1.3t64:amd64 (1.3.8-6.1build2) ... 140s Selecting previously unselected package libglvnd0:amd64. 140s Preparing to unpack .../271-libglvnd0_1.7.0-1build1_amd64.deb ... 140s Unpacking libglvnd0:amd64 (1.7.0-1build1) ... 140s Selecting previously unselected package libglapi-mesa:amd64. 140s Preparing to unpack .../272-libglapi-mesa_24.0.8-1ubuntu1_amd64.deb ... 140s Unpacking libglapi-mesa:amd64 (24.0.8-1ubuntu1) ... 140s Selecting previously unselected package libx11-xcb1:amd64. 140s Preparing to unpack .../273-libx11-xcb1_2%3a1.8.7-1build1_amd64.deb ... 140s Unpacking libx11-xcb1:amd64 (2:1.8.7-1build1) ... 140s Selecting previously unselected package libxcb-dri2-0:amd64. 140s Preparing to unpack .../274-libxcb-dri2-0_1.17.0-2_amd64.deb ... 140s Unpacking libxcb-dri2-0:amd64 (1.17.0-2) ... 140s Selecting previously unselected package libxcb-dri3-0:amd64. 140s Preparing to unpack .../275-libxcb-dri3-0_1.17.0-2_amd64.deb ... 140s Unpacking libxcb-dri3-0:amd64 (1.17.0-2) ... 140s Selecting previously unselected package libxcb-glx0:amd64. 140s Preparing to unpack .../276-libxcb-glx0_1.17.0-2_amd64.deb ... 140s Unpacking libxcb-glx0:amd64 (1.17.0-2) ... 140s Selecting previously unselected package libxcb-present0:amd64. 140s Preparing to unpack .../277-libxcb-present0_1.17.0-2_amd64.deb ... 140s Unpacking libxcb-present0:amd64 (1.17.0-2) ... 140s Selecting previously unselected package libxcb-randr0:amd64. 140s Preparing to unpack .../278-libxcb-randr0_1.17.0-2_amd64.deb ... 140s Unpacking libxcb-randr0:amd64 (1.17.0-2) ... 140s Selecting previously unselected package libxcb-sync1:amd64. 140s Preparing to unpack .../279-libxcb-sync1_1.17.0-2_amd64.deb ... 140s Unpacking libxcb-sync1:amd64 (1.17.0-2) ... 140s Selecting previously unselected package libxcb-xfixes0:amd64. 140s Preparing to unpack .../280-libxcb-xfixes0_1.17.0-2_amd64.deb ... 140s Unpacking libxcb-xfixes0:amd64 (1.17.0-2) ... 140s Selecting previously unselected package libxshmfence1:amd64. 140s Preparing to unpack .../281-libxshmfence1_1.3-1build5_amd64.deb ... 140s Unpacking libxshmfence1:amd64 (1.3-1build5) ... 140s Selecting previously unselected package libxxf86vm1:amd64. 140s Preparing to unpack .../282-libxxf86vm1_1%3a1.1.4-1build4_amd64.deb ... 140s Unpacking libxxf86vm1:amd64 (1:1.1.4-1build4) ... 140s Selecting previously unselected package libvulkan1:amd64. 140s Preparing to unpack .../283-libvulkan1_1.3.283.0-1_amd64.deb ... 140s Unpacking libvulkan1:amd64 (1.3.283.0-1) ... 140s Selecting previously unselected package libdrm-amdgpu1:amd64. 140s Preparing to unpack .../284-libdrm-amdgpu1_2.4.120-2build1_amd64.deb ... 140s Unpacking libdrm-amdgpu1:amd64 (2.4.120-2build1) ... 140s Selecting previously unselected package libpciaccess0:amd64. 140s Preparing to unpack .../285-libpciaccess0_0.17-3build1_amd64.deb ... 140s Unpacking libpciaccess0:amd64 (0.17-3build1) ... 140s Selecting previously unselected package libdrm-intel1:amd64. 140s Preparing to unpack .../286-libdrm-intel1_2.4.120-2build1_amd64.deb ... 140s Unpacking libdrm-intel1:amd64 (2.4.120-2build1) ... 140s Selecting previously unselected package libdrm-nouveau2:amd64. 140s Preparing to unpack .../287-libdrm-nouveau2_2.4.120-2build1_amd64.deb ... 140s Unpacking libdrm-nouveau2:amd64 (2.4.120-2build1) ... 140s Selecting previously unselected package libdrm-radeon1:amd64. 140s Preparing to unpack .../288-libdrm-radeon1_2.4.120-2build1_amd64.deb ... 140s Unpacking libdrm-radeon1:amd64 (2.4.120-2build1) ... 140s Selecting previously unselected package libllvm17t64:amd64. 140s Preparing to unpack .../289-libllvm17t64_1%3a17.0.6-12_amd64.deb ... 140s Unpacking libllvm17t64:amd64 (1:17.0.6-12) ... 141s Selecting previously unselected package libgl1-mesa-dri:amd64. 141s Preparing to unpack .../290-libgl1-mesa-dri_24.0.8-1ubuntu1_amd64.deb ... 141s Unpacking libgl1-mesa-dri:amd64 (24.0.8-1ubuntu1) ... 141s Selecting previously unselected package libglx-mesa0:amd64. 141s Preparing to unpack .../291-libglx-mesa0_24.0.8-1ubuntu1_amd64.deb ... 141s Unpacking libglx-mesa0:amd64 (24.0.8-1ubuntu1) ... 141s Selecting previously unselected package libglx0:amd64. 141s Preparing to unpack .../292-libglx0_1.7.0-1build1_amd64.deb ... 141s Unpacking libglx0:amd64 (1.7.0-1build1) ... 141s Selecting previously unselected package libgl1:amd64. 141s Preparing to unpack .../293-libgl1_1.7.0-1build1_amd64.deb ... 141s Unpacking libgl1:amd64 (1.7.0-1build1) ... 141s Selecting previously unselected package libfltk-gl1.3t64:amd64. 141s Preparing to unpack .../294-libfltk-gl1.3t64_1.3.8-6.1build2_amd64.deb ... 141s Unpacking libfltk-gl1.3t64:amd64 (1.3.8-6.1build2) ... 141s Selecting previously unselected package libgl2ps1.4. 141s Preparing to unpack .../295-libgl2ps1.4_1.4.2+dfsg1-2build1_amd64.deb ... 141s Unpacking libgl2ps1.4 (1.4.2+dfsg1-2build1) ... 141s Selecting previously unselected package libltdl7:amd64. 141s Preparing to unpack .../296-libltdl7_2.4.7-7build1_amd64.deb ... 141s Unpacking libltdl7:amd64 (2.4.7-7build1) ... 141s Selecting previously unselected package libglpk40:amd64. 141s Preparing to unpack .../297-libglpk40_5.0-1build2_amd64.deb ... 141s Unpacking libglpk40:amd64 (5.0-1build2) ... 141s Selecting previously unselected package libopengl0:amd64. 141s Preparing to unpack .../298-libopengl0_1.7.0-1build1_amd64.deb ... 141s Unpacking libopengl0:amd64 (1.7.0-1build1) ... 141s Selecting previously unselected package libglu1-mesa:amd64. 141s Preparing to unpack .../299-libglu1-mesa_9.0.2-1.1build1_amd64.deb ... 141s Unpacking libglu1-mesa:amd64 (9.0.2-1.1build1) ... 141s Selecting previously unselected package libhwy1t64:amd64. 141s Preparing to unpack .../300-libhwy1t64_1.1.0-3_amd64.deb ... 141s Unpacking libhwy1t64:amd64 (1.1.0-3) ... 141s Selecting previously unselected package liblcms2-2:amd64. 141s Preparing to unpack .../301-liblcms2-2_2.14-2build1_amd64.deb ... 141s Unpacking liblcms2-2:amd64 (2.14-2build1) ... 141s Selecting previously unselected package libjxl0.8:amd64. 141s Preparing to unpack .../302-libjxl0.8_0.8.2-3ubuntu1_amd64.deb ... 141s Unpacking libjxl0.8:amd64 (0.8.2-3ubuntu1) ... 141s Selecting previously unselected package libwmflite-0.2-7:amd64. 141s Preparing to unpack .../303-libwmflite-0.2-7_0.2.13-1.1build3_amd64.deb ... 141s Unpacking libwmflite-0.2-7:amd64 (0.2.13-1.1build3) ... 141s Selecting previously unselected package libgraphicsmagick-q16-3t64. 141s Preparing to unpack .../304-libgraphicsmagick-q16-3t64_1.4+really1.3.43-1build1_amd64.deb ... 141s Unpacking libgraphicsmagick-q16-3t64 (1.4+really1.3.43-1build1) ... 142s Selecting previously unselected package libgraphicsmagick++-q16-12t64. 142s Preparing to unpack .../305-libgraphicsmagick++-q16-12t64_1.4+really1.3.43-1build1_amd64.deb ... 142s Unpacking libgraphicsmagick++-q16-12t64 (1.4+really1.3.43-1build1) ... 142s Selecting previously unselected package libaec0:amd64. 142s Preparing to unpack .../306-libaec0_1.1.3-1_amd64.deb ... 142s Unpacking libaec0:amd64 (1.1.3-1) ... 142s Selecting previously unselected package libsz2:amd64. 142s Preparing to unpack .../307-libsz2_1.1.3-1_amd64.deb ... 142s Unpacking libsz2:amd64 (1.1.3-1) ... 142s Selecting previously unselected package libhdf5-103-1t64:amd64. 142s Preparing to unpack .../308-libhdf5-103-1t64_1.10.10+repack-3.1ubuntu4_amd64.deb ... 142s Unpacking libhdf5-103-1t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 142s Selecting previously unselected package libasound2-data. 142s Preparing to unpack .../309-libasound2-data_1.2.11-1build2_all.deb ... 142s Unpacking libasound2-data (1.2.11-1build2) ... 142s Selecting previously unselected package libasound2t64:amd64. 142s Preparing to unpack .../310-libasound2t64_1.2.11-1build2_amd64.deb ... 142s Unpacking libasound2t64:amd64 (1.2.11-1build2) ... 142s Selecting previously unselected package libopus0:amd64. 142s Preparing to unpack .../311-libopus0_1.4-1build1_amd64.deb ... 142s Unpacking libopus0:amd64 (1.4-1build1) ... 142s Selecting previously unselected package libsamplerate0:amd64. 142s Preparing to unpack .../312-libsamplerate0_0.2.2-4build1_amd64.deb ... 142s Unpacking libsamplerate0:amd64 (0.2.2-4build1) ... 142s Selecting previously unselected package libjack-jackd2-0:amd64. 142s Preparing to unpack .../313-libjack-jackd2-0_1.9.21~dfsg-3ubuntu3_amd64.deb ... 142s Unpacking libjack-jackd2-0:amd64 (1.9.21~dfsg-3ubuntu3) ... 142s Selecting previously unselected package libportaudio2:amd64. 142s Preparing to unpack .../314-libportaudio2_19.6.0-1.2build3_amd64.deb ... 142s Unpacking libportaudio2:amd64 (19.6.0-1.2build3) ... 142s Selecting previously unselected package libqhull-r8.0:amd64. 142s Preparing to unpack .../315-libqhull-r8.0_2020.2-6build1_amd64.deb ... 142s Unpacking libqhull-r8.0:amd64 (2020.2-6build1) ... 142s Selecting previously unselected package libqrupdate1:amd64. 142s Preparing to unpack .../316-libqrupdate1_1.1.2-4build1_amd64.deb ... 142s Unpacking libqrupdate1:amd64 (1.1.2-4build1) ... 142s Selecting previously unselected package libqscintilla2-qt5-l10n. 142s Preparing to unpack .../317-libqscintilla2-qt5-l10n_2.14.1+dfsg-1build4_all.deb ... 142s Unpacking libqscintilla2-qt5-l10n (2.14.1+dfsg-1build4) ... 142s Selecting previously unselected package libdouble-conversion3:amd64. 142s Preparing to unpack .../318-libdouble-conversion3_3.3.0-1build1_amd64.deb ... 142s Unpacking libdouble-conversion3:amd64 (3.3.0-1build1) ... 142s Selecting previously unselected package libpcre2-16-0:amd64. 142s Preparing to unpack .../319-libpcre2-16-0_10.42-4ubuntu2_amd64.deb ... 142s Unpacking libpcre2-16-0:amd64 (10.42-4ubuntu2) ... 142s Selecting previously unselected package libqt5core5t64:amd64. 142s Preparing to unpack .../320-libqt5core5t64_5.15.13+dfsg-1ubuntu1_amd64.deb ... 142s Unpacking libqt5core5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 142s Selecting previously unselected package libwayland-server0:amd64. 142s Preparing to unpack .../321-libwayland-server0_1.22.0-2.1build1_amd64.deb ... 142s Unpacking libwayland-server0:amd64 (1.22.0-2.1build1) ... 142s Selecting previously unselected package libgbm1:amd64. 142s Preparing to unpack .../322-libgbm1_24.0.8-1ubuntu1_amd64.deb ... 142s Unpacking libgbm1:amd64 (24.0.8-1ubuntu1) ... 142s Selecting previously unselected package libwayland-client0:amd64. 142s Preparing to unpack .../323-libwayland-client0_1.22.0-2.1build1_amd64.deb ... 142s Unpacking libwayland-client0:amd64 (1.22.0-2.1build1) ... 142s Selecting previously unselected package libegl-mesa0:amd64. 142s Preparing to unpack .../324-libegl-mesa0_24.0.8-1ubuntu1_amd64.deb ... 142s Unpacking libegl-mesa0:amd64 (24.0.8-1ubuntu1) ... 142s Selecting previously unselected package libegl1:amd64. 142s Preparing to unpack .../325-libegl1_1.7.0-1build1_amd64.deb ... 142s Unpacking libegl1:amd64 (1.7.0-1build1) ... 142s Selecting previously unselected package x11-common. 142s Preparing to unpack .../326-x11-common_1%3a7.7+23ubuntu3_all.deb ... 142s Unpacking x11-common (1:7.7+23ubuntu3) ... 142s Selecting previously unselected package libice6:amd64. 142s Preparing to unpack .../327-libice6_2%3a1.0.10-1build3_amd64.deb ... 142s Unpacking libice6:amd64 (2:1.0.10-1build3) ... 142s Selecting previously unselected package libmtdev1t64:amd64. 142s Preparing to unpack .../328-libmtdev1t64_1.1.6-1.2_amd64.deb ... 142s Unpacking libmtdev1t64:amd64 (1.1.6-1.2) ... 142s Selecting previously unselected package libwacom-common. 142s Preparing to unpack .../329-libwacom-common_2.10.0-2_all.deb ... 142s Unpacking libwacom-common (2.10.0-2) ... 142s Selecting previously unselected package libwacom9:amd64. 142s Preparing to unpack .../330-libwacom9_2.10.0-2_amd64.deb ... 142s Unpacking libwacom9:amd64 (2.10.0-2) ... 142s Selecting previously unselected package libinput-bin. 142s Preparing to unpack .../331-libinput-bin_1.25.0-1ubuntu2_amd64.deb ... 142s Unpacking libinput-bin (1.25.0-1ubuntu2) ... 142s Selecting previously unselected package libinput10:amd64. 142s Preparing to unpack .../332-libinput10_1.25.0-1ubuntu2_amd64.deb ... 143s Unpacking libinput10:amd64 (1.25.0-1ubuntu2) ... 143s Selecting previously unselected package libmd4c0:amd64. 143s Preparing to unpack .../333-libmd4c0_0.4.8-1build1_amd64.deb ... 143s Unpacking libmd4c0:amd64 (0.4.8-1build1) ... 143s Selecting previously unselected package libqt5dbus5t64:amd64. 143s Preparing to unpack .../334-libqt5dbus5t64_5.15.13+dfsg-1ubuntu1_amd64.deb ... 143s Unpacking libqt5dbus5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 143s Selecting previously unselected package libqt5network5t64:amd64. 143s Preparing to unpack .../335-libqt5network5t64_5.15.13+dfsg-1ubuntu1_amd64.deb ... 143s Unpacking libqt5network5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 143s Selecting previously unselected package libsm6:amd64. 143s Preparing to unpack .../336-libsm6_2%3a1.2.3-1build3_amd64.deb ... 143s Unpacking libsm6:amd64 (2:1.2.3-1build3) ... 143s Selecting previously unselected package libxcb-icccm4:amd64. 143s Preparing to unpack .../337-libxcb-icccm4_0.4.1-1.1build3_amd64.deb ... 143s Unpacking libxcb-icccm4:amd64 (0.4.1-1.1build3) ... 143s Selecting previously unselected package libxcb-util1:amd64. 143s Preparing to unpack .../338-libxcb-util1_0.4.0-1build3_amd64.deb ... 143s Unpacking libxcb-util1:amd64 (0.4.0-1build3) ... 143s Selecting previously unselected package libxcb-image0:amd64. 143s Preparing to unpack .../339-libxcb-image0_0.4.0-2build1_amd64.deb ... 143s Unpacking libxcb-image0:amd64 (0.4.0-2build1) ... 143s Selecting previously unselected package libxcb-keysyms1:amd64. 143s Preparing to unpack .../340-libxcb-keysyms1_0.4.0-1build4_amd64.deb ... 143s Unpacking libxcb-keysyms1:amd64 (0.4.0-1build4) ... 143s Selecting previously unselected package libxcb-render-util0:amd64. 143s Preparing to unpack .../341-libxcb-render-util0_0.3.9-1build4_amd64.deb ... 143s Unpacking libxcb-render-util0:amd64 (0.3.9-1build4) ... 143s Selecting previously unselected package libxcb-shape0:amd64. 143s Preparing to unpack .../342-libxcb-shape0_1.17.0-2_amd64.deb ... 143s Unpacking libxcb-shape0:amd64 (1.17.0-2) ... 143s Selecting previously unselected package libxcb-xinerama0:amd64. 143s Preparing to unpack .../343-libxcb-xinerama0_1.17.0-2_amd64.deb ... 143s Unpacking libxcb-xinerama0:amd64 (1.17.0-2) ... 143s Selecting previously unselected package libxcb-xinput0:amd64. 143s Preparing to unpack .../344-libxcb-xinput0_1.17.0-2_amd64.deb ... 143s Unpacking libxcb-xinput0:amd64 (1.17.0-2) ... 143s Selecting previously unselected package libxcb-xkb1:amd64. 143s Preparing to unpack .../345-libxcb-xkb1_1.17.0-2_amd64.deb ... 143s Unpacking libxcb-xkb1:amd64 (1.17.0-2) ... 143s Selecting previously unselected package libxkbcommon-x11-0:amd64. 143s Preparing to unpack .../346-libxkbcommon-x11-0_1.6.0-1build1_amd64.deb ... 143s Unpacking libxkbcommon-x11-0:amd64 (1.6.0-1build1) ... 143s Selecting previously unselected package libqt5gui5t64:amd64. 143s Preparing to unpack .../347-libqt5gui5t64_5.15.13+dfsg-1ubuntu1_amd64.deb ... 143s Unpacking libqt5gui5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 143s Selecting previously unselected package libavahi-common-data:amd64. 143s Preparing to unpack .../348-libavahi-common-data_0.8-13ubuntu6_amd64.deb ... 143s Unpacking libavahi-common-data:amd64 (0.8-13ubuntu6) ... 143s Selecting previously unselected package libavahi-common3:amd64. 143s Preparing to unpack .../349-libavahi-common3_0.8-13ubuntu6_amd64.deb ... 143s Unpacking libavahi-common3:amd64 (0.8-13ubuntu6) ... 143s Selecting previously unselected package libavahi-client3:amd64. 143s Preparing to unpack .../350-libavahi-client3_0.8-13ubuntu6_amd64.deb ... 143s Unpacking libavahi-client3:amd64 (0.8-13ubuntu6) ... 143s Selecting previously unselected package libcups2t64:amd64. 143s Preparing to unpack .../351-libcups2t64_2.4.7-1.2ubuntu7_amd64.deb ... 143s Unpacking libcups2t64:amd64 (2.4.7-1.2ubuntu7) ... 143s Selecting previously unselected package libqt5widgets5t64:amd64. 143s Preparing to unpack .../352-libqt5widgets5t64_5.15.13+dfsg-1ubuntu1_amd64.deb ... 143s Unpacking libqt5widgets5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 143s Selecting previously unselected package libqt5printsupport5t64:amd64. 143s Preparing to unpack .../353-libqt5printsupport5t64_5.15.13+dfsg-1ubuntu1_amd64.deb ... 143s Unpacking libqt5printsupport5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 143s Selecting previously unselected package libqscintilla2-qt5-15:amd64. 143s Preparing to unpack .../354-libqscintilla2-qt5-15_2.14.1+dfsg-1build4_amd64.deb ... 143s Unpacking libqscintilla2-qt5-15:amd64 (2.14.1+dfsg-1build4) ... 143s Selecting previously unselected package libqt5sql5t64:amd64. 143s Preparing to unpack .../355-libqt5sql5t64_5.15.13+dfsg-1ubuntu1_amd64.deb ... 143s Unpacking libqt5sql5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 143s Selecting previously unselected package libqt5help5:amd64. 143s Preparing to unpack .../356-libqt5help5_5.15.13-3_amd64.deb ... 143s Unpacking libqt5help5:amd64 (5.15.13-3) ... 143s Selecting previously unselected package libqt5xml5t64:amd64. 143s Preparing to unpack .../357-libqt5xml5t64_5.15.13+dfsg-1ubuntu1_amd64.deb ... 143s Unpacking libqt5xml5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 143s Selecting previously unselected package libogg0:amd64. 144s Preparing to unpack .../358-libogg0_1.3.5-3build1_amd64.deb ... 144s Unpacking libogg0:amd64 (1.3.5-3build1) ... 144s Selecting previously unselected package libflac12t64:amd64. 144s Preparing to unpack .../359-libflac12t64_1.4.3+ds-2.1ubuntu2_amd64.deb ... 144s Unpacking libflac12t64:amd64 (1.4.3+ds-2.1ubuntu2) ... 144s Selecting previously unselected package libmp3lame0:amd64. 144s Preparing to unpack .../360-libmp3lame0_3.100-6build1_amd64.deb ... 144s Unpacking libmp3lame0:amd64 (3.100-6build1) ... 144s Selecting previously unselected package libmpg123-0t64:amd64. 144s Preparing to unpack .../361-libmpg123-0t64_1.32.6-3_amd64.deb ... 144s Unpacking libmpg123-0t64:amd64 (1.32.6-3) ... 144s Selecting previously unselected package libvorbis0a:amd64. 144s Preparing to unpack .../362-libvorbis0a_1.3.7-2_amd64.deb ... 144s Unpacking libvorbis0a:amd64 (1.3.7-2) ... 144s Selecting previously unselected package libvorbisenc2:amd64. 144s Preparing to unpack .../363-libvorbisenc2_1.3.7-2_amd64.deb ... 144s Unpacking libvorbisenc2:amd64 (1.3.7-2) ... 144s Selecting previously unselected package libsndfile1:amd64. 144s Preparing to unpack .../364-libsndfile1_1.2.2-1ubuntu5_amd64.deb ... 144s Unpacking libsndfile1:amd64 (1.2.2-1ubuntu5) ... 144s Selecting previously unselected package libspqr4:amd64. 144s Preparing to unpack .../365-libspqr4_1%3a7.7.0+dfsg-2_amd64.deb ... 144s Unpacking libspqr4:amd64 (1:7.7.0+dfsg-2) ... 144s Selecting previously unselected package libsundials-ida6:amd64. 144s Preparing to unpack .../366-libsundials-ida6_6.4.1+dfsg1-3build5_amd64.deb ... 144s Unpacking libsundials-ida6:amd64 (6.4.1+dfsg1-3build5) ... 144s Selecting previously unselected package libbtf2:amd64. 144s Preparing to unpack .../367-libbtf2_1%3a7.7.0+dfsg-2_amd64.deb ... 144s Unpacking libbtf2:amd64 (1:7.7.0+dfsg-2) ... 144s Selecting previously unselected package libklu2:amd64. 144s Preparing to unpack .../368-libklu2_1%3a7.7.0+dfsg-2_amd64.deb ... 144s Unpacking libklu2:amd64 (1:7.7.0+dfsg-2) ... 144s Selecting previously unselected package libfftw3-long3:amd64. 144s Preparing to unpack .../369-libfftw3-long3_3.3.10-1ubuntu3_amd64.deb ... 144s Unpacking libfftw3-long3:amd64 (3.3.10-1ubuntu3) ... 144s Selecting previously unselected package libevent-pthreads-2.1-7t64:amd64. 144s Preparing to unpack .../370-libevent-pthreads-2.1-7t64_2.1.12-stable-10_amd64.deb ... 144s Unpacking libevent-pthreads-2.1-7t64:amd64 (2.1.12-stable-10) ... 144s Selecting previously unselected package libpsm-infinipath1. 144s Preparing to unpack .../371-libpsm-infinipath1_3.3+20.604758e7-6.3build1_amd64.deb ... 144s Unpacking libpsm-infinipath1 (3.3+20.604758e7-6.3build1) ... 144s Selecting previously unselected package libpsm2-2. 144s Preparing to unpack .../372-libpsm2-2_11.2.185-2build1_amd64.deb ... 144s Unpacking libpsm2-2 (11.2.185-2build1) ... 144s Selecting previously unselected package librdmacm1t64:amd64. 144s Preparing to unpack .../373-librdmacm1t64_50.0-2build2_amd64.deb ... 144s Unpacking librdmacm1t64:amd64 (50.0-2build2) ... 144s Selecting previously unselected package libfabric1:amd64. 144s Preparing to unpack .../374-libfabric1_1.17.0-3build2_amd64.deb ... 144s Unpacking libfabric1:amd64 (1.17.0-3build2) ... 144s Selecting previously unselected package libhwloc15:amd64. 144s Preparing to unpack .../375-libhwloc15_2.10.0-1build1_amd64.deb ... 144s Unpacking libhwloc15:amd64 (2.10.0-1build1) ... 144s Selecting previously unselected package libmunge2:amd64. 144s Preparing to unpack .../376-libmunge2_0.5.15-4build1_amd64.deb ... 144s Unpacking libmunge2:amd64 (0.5.15-4build1) ... 144s Selecting previously unselected package libxnvctrl0:amd64. 144s Preparing to unpack .../377-libxnvctrl0_510.47.03-0ubuntu4_amd64.deb ... 144s Unpacking libxnvctrl0:amd64 (510.47.03-0ubuntu4) ... 144s Selecting previously unselected package ocl-icd-libopencl1:amd64. 144s Preparing to unpack .../378-ocl-icd-libopencl1_2.3.2-1build1_amd64.deb ... 144s Unpacking ocl-icd-libopencl1:amd64 (2.3.2-1build1) ... 144s Selecting previously unselected package libhwloc-plugins:amd64. 144s Preparing to unpack .../379-libhwloc-plugins_2.10.0-1build1_amd64.deb ... 144s Unpacking libhwloc-plugins:amd64 (2.10.0-1build1) ... 144s Selecting previously unselected package libpmix2t64:amd64. 144s Preparing to unpack .../380-libpmix2t64_5.0.1-4.1build1_amd64.deb ... 144s Unpacking libpmix2t64:amd64 (5.0.1-4.1build1) ... 144s Selecting previously unselected package libamd-comgr2:amd64. 144s Preparing to unpack .../381-libamd-comgr2_6.0+git20231212.4510c28+dfsg-3build2_amd64.deb ... 144s Unpacking libamd-comgr2:amd64 (6.0+git20231212.4510c28+dfsg-3build2) ... 145s Selecting previously unselected package libhsakmt1:amd64. 145s Preparing to unpack .../382-libhsakmt1_5.7.0-1build1_amd64.deb ... 145s Unpacking libhsakmt1:amd64 (5.7.0-1build1) ... 145s Selecting previously unselected package libhsa-runtime64-1. 145s Preparing to unpack .../383-libhsa-runtime64-1_5.7.1-2build1_amd64.deb ... 145s Unpacking libhsa-runtime64-1 (5.7.1-2build1) ... 145s Selecting previously unselected package libamdhip64-5. 145s Preparing to unpack .../384-libamdhip64-5_5.7.1-3_amd64.deb ... 145s Unpacking libamdhip64-5 (5.7.1-3) ... 145s Selecting previously unselected package libucx0:amd64. 145s Preparing to unpack .../385-libucx0_1.16.0+ds-5ubuntu1_amd64.deb ... 145s Unpacking libucx0:amd64 (1.16.0+ds-5ubuntu1) ... 145s Selecting previously unselected package libopenmpi3t64:amd64. 145s Preparing to unpack .../386-libopenmpi3t64_4.1.6-7ubuntu2_amd64.deb ... 145s Unpacking libopenmpi3t64:amd64 (4.1.6-7ubuntu2) ... 145s Selecting previously unselected package libfftw3-mpi3:amd64. 145s Preparing to unpack .../387-libfftw3-mpi3_3.3.10-1ubuntu3_amd64.deb ... 145s Unpacking libfftw3-mpi3:amd64 (3.3.10-1ubuntu3) ... 145s Selecting previously unselected package libhdf5-openmpi-103-1t64:amd64. 145s Preparing to unpack .../388-libhdf5-openmpi-103-1t64_1.10.10+repack-3.1ubuntu4_amd64.deb ... 145s Unpacking libhdf5-openmpi-103-1t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 145s Selecting previously unselected package libcombblas2.0.0t64:amd64. 145s Preparing to unpack .../389-libcombblas2.0.0t64_2.0.0-3.1build2_amd64.deb ... 145s Unpacking libcombblas2.0.0t64:amd64 (2.0.0-3.1build2) ... 145s Selecting previously unselected package libmetis5:amd64. 145s Preparing to unpack .../390-libmetis5_5.1.0.dfsg-7build3_amd64.deb ... 145s Unpacking libmetis5:amd64 (5.1.0.dfsg-7build3) ... 145s Selecting previously unselected package libptscotch-7.0:amd64. 145s Preparing to unpack .../391-libptscotch-7.0_7.0.4-1ubuntu2_amd64.deb ... 145s Unpacking libptscotch-7.0:amd64 (7.0.4-1ubuntu2) ... 145s Selecting previously unselected package libsuperlu-dist8:amd64. 145s Preparing to unpack .../392-libsuperlu-dist8_8.2.1+dfsg1-1build2_amd64.deb ... 145s Unpacking libsuperlu-dist8:amd64 (8.2.1+dfsg1-1build2) ... 145s Selecting previously unselected package libhypre-2.28.0:amd64. 145s Preparing to unpack .../393-libhypre-2.28.0_2.28.0-8build2_amd64.deb ... 145s Unpacking libhypre-2.28.0:amd64 (2.28.0-8build2) ... 145s Selecting previously unselected package openmpi-common. 145s Preparing to unpack .../394-openmpi-common_4.1.6-7ubuntu2_all.deb ... 145s Unpacking openmpi-common (4.1.6-7ubuntu2) ... 145s Selecting previously unselected package openmpi-bin. 145s Preparing to unpack .../395-openmpi-bin_4.1.6-7ubuntu2_amd64.deb ... 145s Unpacking openmpi-bin (4.1.6-7ubuntu2) ... 145s Selecting previously unselected package mpi-default-bin. 145s Preparing to unpack .../396-mpi-default-bin_1.15build1_amd64.deb ... 145s Unpacking mpi-default-bin (1.15build1) ... 145s Selecting previously unselected package libscalapack-openmpi2.2:amd64. 145s Preparing to unpack .../397-libscalapack-openmpi2.2_2.2.1-3.1ubuntu1_amd64.deb ... 145s Unpacking libscalapack-openmpi2.2:amd64 (2.2.1-3.1ubuntu1) ... 145s Selecting previously unselected package libmumps-5.6t64:amd64. 145s Preparing to unpack .../398-libmumps-5.6t64_5.6.2-2.1build2_amd64.deb ... 145s Unpacking libmumps-5.6t64:amd64 (5.6.2-2.1build2) ... 145s Selecting previously unselected package libsuperlu6:amd64. 145s Preparing to unpack .../399-libsuperlu6_6.0.1+dfsg1-1build1_amd64.deb ... 145s Unpacking libsuperlu6:amd64 (6.0.1+dfsg1-1build1) ... 145s Selecting previously unselected package libscotch-7.0:amd64. 146s Preparing to unpack .../400-libscotch-7.0_7.0.4-1ubuntu2_amd64.deb ... 146s Unpacking libscotch-7.0:amd64 (7.0.4-1ubuntu2) ... 146s Selecting previously unselected package libtrilinos-kokkos-13.2:amd64. 146s Preparing to unpack .../401-libtrilinos-kokkos-13.2_13.2.0-5build2_amd64.deb ... 146s Unpacking libtrilinos-kokkos-13.2:amd64 (13.2.0-5build2) ... 146s Selecting previously unselected package libtrilinos-teuchos-13.2:amd64. 146s Preparing to unpack .../402-libtrilinos-teuchos-13.2_13.2.0-5build2_amd64.deb ... 146s Unpacking libtrilinos-teuchos-13.2:amd64 (13.2.0-5build2) ... 146s Selecting previously unselected package libtrilinos-epetra-13.2:amd64. 146s Preparing to unpack .../403-libtrilinos-epetra-13.2_13.2.0-5build2_amd64.deb ... 146s Unpacking libtrilinos-epetra-13.2:amd64 (13.2.0-5build2) ... 146s Selecting previously unselected package libtrilinos-triutils-13.2:amd64. 146s Preparing to unpack .../404-libtrilinos-triutils-13.2_13.2.0-5build2_amd64.deb ... 146s Unpacking libtrilinos-triutils-13.2:amd64 (13.2.0-5build2) ... 146s Selecting previously unselected package libtrilinos-epetraext-13.2:amd64. 146s Preparing to unpack .../405-libtrilinos-epetraext-13.2_13.2.0-5build2_amd64.deb ... 146s Unpacking libtrilinos-epetraext-13.2:amd64 (13.2.0-5build2) ... 146s Selecting previously unselected package libtrilinos-trilinosss-13.2:amd64. 146s Preparing to unpack .../406-libtrilinos-trilinosss-13.2_13.2.0-5build2_amd64.deb ... 146s Unpacking libtrilinos-trilinosss-13.2:amd64 (13.2.0-5build2) ... 146s Selecting previously unselected package libtrilinos-amesos-13.2:amd64. 146s Preparing to unpack .../407-libtrilinos-amesos-13.2_13.2.0-5build2_amd64.deb ... 146s Unpacking libtrilinos-amesos-13.2:amd64 (13.2.0-5build2) ... 146s Selecting previously unselected package libtrilinos-aztecoo-13.2:amd64. 146s Preparing to unpack .../408-libtrilinos-aztecoo-13.2_13.2.0-5build2_amd64.deb ... 146s Unpacking libtrilinos-aztecoo-13.2:amd64 (13.2.0-5build2) ... 146s Selecting previously unselected package libtrilinos-galeri-13.2:amd64. 146s Preparing to unpack .../409-libtrilinos-galeri-13.2_13.2.0-5build2_amd64.deb ... 146s Unpacking libtrilinos-galeri-13.2:amd64 (13.2.0-5build2) ... 146s Selecting previously unselected package libtrilinos-ifpack-13.2:amd64. 146s Preparing to unpack .../410-libtrilinos-ifpack-13.2_13.2.0-5build2_amd64.deb ... 146s Unpacking libtrilinos-ifpack-13.2:amd64 (13.2.0-5build2) ... 146s Selecting previously unselected package libtrilinos-zoltan-13.2:amd64. 146s Preparing to unpack .../411-libtrilinos-zoltan-13.2_13.2.0-5build2_amd64.deb ... 146s Unpacking libtrilinos-zoltan-13.2:amd64 (13.2.0-5build2) ... 146s Selecting previously unselected package libtrilinos-ml-13.2:amd64. 146s Preparing to unpack .../412-libtrilinos-ml-13.2_13.2.0-5build2_amd64.deb ... 146s Unpacking libtrilinos-ml-13.2:amd64 (13.2.0-5build2) ... 146s Selecting previously unselected package libumfpack6:amd64. 146s Preparing to unpack .../413-libumfpack6_1%3a7.7.0+dfsg-2_amd64.deb ... 146s Unpacking libumfpack6:amd64 (1:7.7.0+dfsg-2) ... 146s Selecting previously unselected package libpetsc-real3.19t64:amd64. 146s Preparing to unpack .../414-libpetsc-real3.19t64_3.19.6+dfsg1-2.2ubuntu2_amd64.deb ... 146s Unpacking libpetsc-real3.19t64:amd64 (3.19.6+dfsg1-2.2ubuntu2) ... 146s Selecting previously unselected package libsundials-nvecparallel-petsc6:amd64. 146s Preparing to unpack .../415-libsundials-nvecparallel-petsc6_6.4.1+dfsg1-3build5_amd64.deb ... 146s Unpacking libsundials-nvecparallel-petsc6:amd64 (6.4.1+dfsg1-3build5) ... 146s Selecting previously unselected package libsundials-sunmatrix4:amd64. 146s Preparing to unpack .../416-libsundials-sunmatrix4_6.4.1+dfsg1-3build5_amd64.deb ... 146s Unpacking libsundials-sunmatrix4:amd64 (6.4.1+dfsg1-3build5) ... 146s Selecting previously unselected package libsundials-sunlinsol3:amd64. 146s Preparing to unpack .../417-libsundials-sunlinsol3_6.4.1+dfsg1-3build5_amd64.deb ... 146s Unpacking libsundials-sunlinsol3:amd64 (6.4.1+dfsg1-3build5) ... 146s Selecting previously unselected package libtext-unidecode-perl. 146s Preparing to unpack .../418-libtext-unidecode-perl_1.30-3_all.deb ... 146s Unpacking libtext-unidecode-perl (1.30-3) ... 146s Selecting previously unselected package texinfo-lib. 146s Preparing to unpack .../419-texinfo-lib_7.1-3build2_amd64.deb ... 146s Unpacking texinfo-lib (7.1-3build2) ... 146s Selecting previously unselected package tex-common. 146s Preparing to unpack .../420-tex-common_6.18_all.deb ... 146s Unpacking tex-common (6.18) ... 146s Selecting previously unselected package texinfo. 146s Preparing to unpack .../421-texinfo_7.1-3build2_all.deb ... 146s Unpacking texinfo (7.1-3build2) ... 146s Selecting previously unselected package octave-common. 146s Preparing to unpack .../422-octave-common_8.4.0-1build5_all.deb ... 146s Unpacking octave-common (8.4.0-1build5) ... 147s Selecting previously unselected package octave. 147s Preparing to unpack .../423-octave_8.4.0-1build5_amd64.deb ... 147s Unpacking octave (8.4.0-1build5) ... 147s Selecting previously unselected package libncurses-dev:amd64. 147s Preparing to unpack .../424-libncurses-dev_6.4+20240113-1ubuntu2_amd64.deb ... 147s Unpacking libncurses-dev:amd64 (6.4+20240113-1ubuntu2) ... 147s Selecting previously unselected package libreadline-dev:amd64. 147s Preparing to unpack .../425-libreadline-dev_8.2-4build1_amd64.deb ... 147s Unpacking libreadline-dev:amd64 (8.2-4build1) ... 147s Selecting previously unselected package libhdf5-fortran-102t64:amd64. 147s Preparing to unpack .../426-libhdf5-fortran-102t64_1.10.10+repack-3.1ubuntu4_amd64.deb ... 147s Unpacking libhdf5-fortran-102t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 147s Selecting previously unselected package libhdf5-hl-100t64:amd64. 147s Preparing to unpack .../427-libhdf5-hl-100t64_1.10.10+repack-3.1ubuntu4_amd64.deb ... 147s Unpacking libhdf5-hl-100t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 147s Selecting previously unselected package libhdf5-hl-fortran-100t64:amd64. 147s Preparing to unpack .../428-libhdf5-hl-fortran-100t64_1.10.10+repack-3.1ubuntu4_amd64.deb ... 147s Unpacking libhdf5-hl-fortran-100t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 147s Selecting previously unselected package libhdf5-cpp-103-1t64:amd64. 147s Preparing to unpack .../429-libhdf5-cpp-103-1t64_1.10.10+repack-3.1ubuntu4_amd64.deb ... 147s Unpacking libhdf5-cpp-103-1t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 147s Selecting previously unselected package libhdf5-hl-cpp-100t64:amd64. 147s Preparing to unpack .../430-libhdf5-hl-cpp-100t64_1.10.10+repack-3.1ubuntu4_amd64.deb ... 147s Unpacking libhdf5-hl-cpp-100t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 147s Selecting previously unselected package zlib1g-dev:amd64. 147s Preparing to unpack .../431-zlib1g-dev_1%3a1.3.dfsg-3.1ubuntu2_amd64.deb ... 147s Unpacking zlib1g-dev:amd64 (1:1.3.dfsg-3.1ubuntu2) ... 147s Selecting previously unselected package libjpeg-turbo8-dev:amd64. 147s Preparing to unpack .../432-libjpeg-turbo8-dev_2.1.5-2ubuntu2_amd64.deb ... 147s Unpacking libjpeg-turbo8-dev:amd64 (2.1.5-2ubuntu2) ... 147s Selecting previously unselected package libjpeg8-dev:amd64. 147s Preparing to unpack .../433-libjpeg8-dev_8c-2ubuntu11_amd64.deb ... 147s Unpacking libjpeg8-dev:amd64 (8c-2ubuntu11) ... 147s Selecting previously unselected package libjpeg-dev:amd64. 147s Preparing to unpack .../434-libjpeg-dev_8c-2ubuntu11_amd64.deb ... 147s Unpacking libjpeg-dev:amd64 (8c-2ubuntu11) ... 147s Selecting previously unselected package libaec-dev:amd64. 147s Preparing to unpack .../435-libaec-dev_1.1.3-1_amd64.deb ... 147s Unpacking libaec-dev:amd64 (1.1.3-1) ... 147s Selecting previously unselected package libcurl4-openssl-dev:amd64. 147s Preparing to unpack .../436-libcurl4-openssl-dev_8.8.0-1ubuntu1_amd64.deb ... 147s Unpacking libcurl4-openssl-dev:amd64 (8.8.0-1ubuntu1) ... 147s Selecting previously unselected package libssl-dev:amd64. 147s Preparing to unpack .../437-libssl-dev_3.0.13-0ubuntu4_amd64.deb ... 147s Unpacking libssl-dev:amd64 (3.0.13-0ubuntu4) ... 148s Selecting previously unselected package hdf5-helpers. 148s Preparing to unpack .../438-hdf5-helpers_1.10.10+repack-3.1ubuntu4_amd64.deb ... 148s Unpacking hdf5-helpers (1.10.10+repack-3.1ubuntu4) ... 148s Selecting previously unselected package libhdf5-dev. 148s Preparing to unpack .../439-libhdf5-dev_1.10.10+repack-3.1ubuntu4_amd64.deb ... 148s Unpacking libhdf5-dev (1.10.10+repack-3.1ubuntu4) ... 148s Selecting previously unselected package xorg-sgml-doctools. 148s Preparing to unpack .../440-xorg-sgml-doctools_1%3a1.11-1.1_all.deb ... 148s Unpacking xorg-sgml-doctools (1:1.11-1.1) ... 148s Selecting previously unselected package x11proto-dev. 148s Preparing to unpack .../441-x11proto-dev_2024.1-1_all.deb ... 148s Unpacking x11proto-dev (2024.1-1) ... 148s Selecting previously unselected package libxau-dev:amd64. 148s Preparing to unpack .../442-libxau-dev_1%3a1.0.9-1build6_amd64.deb ... 148s Unpacking libxau-dev:amd64 (1:1.0.9-1build6) ... 148s Selecting previously unselected package libxdmcp-dev:amd64. 148s Preparing to unpack .../443-libxdmcp-dev_1%3a1.1.3-0ubuntu6_amd64.deb ... 148s Unpacking libxdmcp-dev:amd64 (1:1.1.3-0ubuntu6) ... 148s Selecting previously unselected package xtrans-dev. 148s Preparing to unpack .../444-xtrans-dev_1.4.0-1_all.deb ... 148s Unpacking xtrans-dev (1.4.0-1) ... 148s Selecting previously unselected package libxcb1-dev:amd64. 148s Preparing to unpack .../445-libxcb1-dev_1.17.0-2_amd64.deb ... 148s Unpacking libxcb1-dev:amd64 (1.17.0-2) ... 148s Selecting previously unselected package libx11-dev:amd64. 148s Preparing to unpack .../446-libx11-dev_2%3a1.8.7-1build1_amd64.deb ... 148s Unpacking libx11-dev:amd64 (2:1.8.7-1build1) ... 148s Selecting previously unselected package libglx-dev:amd64. 148s Preparing to unpack .../447-libglx-dev_1.7.0-1build1_amd64.deb ... 148s Unpacking libglx-dev:amd64 (1.7.0-1build1) ... 148s Selecting previously unselected package libgl-dev:amd64. 148s Preparing to unpack .../448-libgl-dev_1.7.0-1build1_amd64.deb ... 148s Unpacking libgl-dev:amd64 (1.7.0-1build1) ... 148s Selecting previously unselected package libblas-dev:amd64. 148s Preparing to unpack .../449-libblas-dev_3.12.0-3build1_amd64.deb ... 148s Unpacking libblas-dev:amd64 (3.12.0-3build1) ... 148s Selecting previously unselected package liblapack-dev:amd64. 148s Preparing to unpack .../450-liblapack-dev_3.12.0-3build1_amd64.deb ... 148s Unpacking liblapack-dev:amd64 (3.12.0-3build1) ... 148s Selecting previously unselected package libfftw3-quad3:amd64. 148s Preparing to unpack .../451-libfftw3-quad3_3.3.10-1ubuntu3_amd64.deb ... 148s Unpacking libfftw3-quad3:amd64 (3.3.10-1ubuntu3) ... 148s Selecting previously unselected package libfftw3-bin. 148s Preparing to unpack .../452-libfftw3-bin_3.3.10-1ubuntu3_amd64.deb ... 148s Unpacking libfftw3-bin (3.3.10-1ubuntu3) ... 148s Selecting previously unselected package libfftw3-dev:amd64. 148s Preparing to unpack .../453-libfftw3-dev_3.3.10-1ubuntu3_amd64.deb ... 148s Unpacking libfftw3-dev:amd64 (3.3.10-1ubuntu3) ... 148s Selecting previously unselected package libgfortran-13-dev:amd64. 148s Preparing to unpack .../454-libgfortran-13-dev_13.2.0-23ubuntu4_amd64.deb ... 148s Unpacking libgfortran-13-dev:amd64 (13.2.0-23ubuntu4) ... 149s Selecting previously unselected package gfortran-13-x86-64-linux-gnu. 149s Preparing to unpack .../455-gfortran-13-x86-64-linux-gnu_13.2.0-23ubuntu4_amd64.deb ... 149s Unpacking gfortran-13-x86-64-linux-gnu (13.2.0-23ubuntu4) ... 149s Selecting previously unselected package gfortran-13. 149s Preparing to unpack .../456-gfortran-13_13.2.0-23ubuntu4_amd64.deb ... 149s Unpacking gfortran-13 (13.2.0-23ubuntu4) ... 149s Selecting previously unselected package gfortran-x86-64-linux-gnu. 149s Preparing to unpack .../457-gfortran-x86-64-linux-gnu_4%3a13.2.0-7ubuntu1_amd64.deb ... 149s Unpacking gfortran-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 149s Selecting previously unselected package gfortran. 149s Preparing to unpack .../458-gfortran_4%3a13.2.0-7ubuntu1_amd64.deb ... 149s Unpacking gfortran (4:13.2.0-7ubuntu1) ... 149s Selecting previously unselected package octave-dev. 149s Preparing to unpack .../459-octave-dev_8.4.0-1build5_amd64.deb ... 149s Unpacking octave-dev (8.4.0-1build5) ... 149s Selecting previously unselected package dh-octave. 149s Preparing to unpack .../460-dh-octave_1.8.0_all.deb ... 149s Unpacking dh-octave (1.8.0) ... 149s Selecting previously unselected package libfontenc1:amd64. 149s Preparing to unpack .../461-libfontenc1_1%3a1.1.8-1build1_amd64.deb ... 149s Unpacking libfontenc1:amd64 (1:1.1.8-1build1) ... 149s Selecting previously unselected package libxt6t64:amd64. 149s Preparing to unpack .../462-libxt6t64_1%3a1.2.1-1.2build1_amd64.deb ... 149s Unpacking libxt6t64:amd64 (1:1.2.1-1.2build1) ... 149s Selecting previously unselected package libxmu6:amd64. 149s Preparing to unpack .../463-libxmu6_2%3a1.1.3-3build2_amd64.deb ... 149s Unpacking libxmu6:amd64 (2:1.1.3-3build2) ... 149s Selecting previously unselected package libxaw7:amd64. 149s Preparing to unpack .../464-libxaw7_2%3a1.0.14-1build2_amd64.deb ... 149s Unpacking libxaw7:amd64 (2:1.0.14-1build2) ... 149s Selecting previously unselected package libxfont2:amd64. 149s Preparing to unpack .../465-libxfont2_1%3a2.0.6-1build1_amd64.deb ... 149s Unpacking libxfont2:amd64 (1:2.0.6-1build1) ... 149s Selecting previously unselected package libxkbfile1:amd64. 149s Preparing to unpack .../466-libxkbfile1_1%3a1.1.0-1build4_amd64.deb ... 149s Unpacking libxkbfile1:amd64 (1:1.1.0-1build4) ... 149s Selecting previously unselected package libxrandr2:amd64. 149s Preparing to unpack .../467-libxrandr2_2%3a1.5.4-1_amd64.deb ... 149s Unpacking libxrandr2:amd64 (2:1.5.4-1) ... 149s Selecting previously unselected package python3-mpmath. 149s Preparing to unpack .../468-python3-mpmath_1.3.0-1_all.deb ... 149s Unpacking python3-mpmath (1.3.0-1) ... 149s Selecting previously unselected package python3-sympy. 149s Preparing to unpack .../469-python3-sympy_1.12.1-1_all.deb ... 149s Unpacking python3-sympy (1.12.1-1) ... 150s Selecting previously unselected package octave-symbolic. 150s Preparing to unpack .../470-octave-symbolic_3.1.1-2_all.deb ... 150s Unpacking octave-symbolic (3.1.1-2) ... 150s Selecting previously unselected package x11-xkb-utils. 150s Preparing to unpack .../471-x11-xkb-utils_7.7+8build2_amd64.deb ... 150s Unpacking x11-xkb-utils (7.7+8build2) ... 150s Selecting previously unselected package xserver-common. 150s Preparing to unpack .../472-xserver-common_2%3a21.1.12-1ubuntu1_all.deb ... 150s Unpacking xserver-common (2:21.1.12-1ubuntu1) ... 150s Selecting previously unselected package xvfb. 150s Preparing to unpack .../473-xvfb_2%3a21.1.12-1ubuntu1_amd64.deb ... 150s Unpacking xvfb (2:21.1.12-1ubuntu1) ... 150s Setting up libapt-pkg-perl (0.1.40build7) ... 150s Setting up libhwy1t64:amd64 (1.1.0-3) ... 150s Setting up libmodule-pluggable-perl (5.2-5) ... 150s Setting up libgraphite2-3:amd64 (1.3.14-2build1) ... 150s Setting up libstring-escape-perl (2010.002-3) ... 150s Setting up libxcb-dri3-0:amd64 (1.17.0-2) ... 150s Setting up liblcms2-2:amd64 (2.14-2build1) ... 150s Setting up libberkeleydb-perl:amd64 (0.64-2build4) ... 150s Setting up libpixman-1-0:amd64 (0.42.2-1build1) ... 150s Setting up libwayland-server0:amd64 (1.22.0-2.1build1) ... 150s Setting up libx11-xcb1:amd64 (2:1.8.7-1build1) ... 150s Setting up libpciaccess0:amd64 (0.17-3build1) ... 150s Setting up libfile-which-perl (1.27-2) ... 150s Setting up fontconfig (2.15.0-1.1ubuntu2) ... 152s Regenerating fonts cache... done. 152s Setting up libjpeg-turbo8-dev:amd64 (2.1.5-2ubuntu2) ... 152s Setting up libdouble-conversion3:amd64 (3.3.0-1build1) ... 152s Setting up libncurses-dev:amd64 (6.4+20240113-1ubuntu2) ... 152s Setting up libdrm-nouveau2:amd64 (2.4.120-2build1) ... 152s Setting up libunicode-utf8-perl (0.62-2build3) ... 152s Setting up libset-intspan-perl (1.19-3) ... 152s Setting up libxcb-xfixes0:amd64 (1.17.0-2) ... 152s Setting up libogg0:amd64 (1.3.5-3build1) ... 152s Setting up libmouse-perl (2.5.10-1build8) ... 152s Setting up libpod-pom-perl (2.01-4) ... 152s Setting up hdf5-helpers (1.10.10+repack-3.1ubuntu4) ... 152s Setting up libwmflite-0.2-7:amd64 (0.2.13-1.1build3) ... 152s Setting up libregexp-pattern-perl (0.2.14-2) ... 152s Setting up libdata-messagepack-perl (1.02-1build4) ... 152s Setting up libxcb-xinput0:amd64 (1.17.0-2) ... 152s Setting up libxrender1:amd64 (1:0.9.10-1.1build1) ... 152s Setting up libdynaloader-functions-perl (0.003-3) ... 152s Setting up libdatrie1:amd64 (0.2.13-3build1) ... 152s Setting up libtext-glob-perl (0.11-3) ... 152s Setting up libclass-method-modifiers-perl (2.15-1) ... 152s Setting up liblist-compare-perl (0.55-2) ... 152s Setting up libxcb-render0:amd64 (1.17.0-2) ... 152s Setting up libclone-perl:amd64 (0.46-1build3) ... 152s Setting up libarchive-zip-perl (1.68-1) ... 152s Setting up libsub-identify-perl (0.14-3build3) ... 152s Setting up libevent-pthreads-2.1-7t64:amd64 (2.1.12-stable-10) ... 152s Setting up libdrm-radeon1:amd64 (2.4.120-2build1) ... 152s Setting up libcpanel-json-xs-perl:amd64 (4.38-1) ... 152s Setting up libglvnd0:amd64 (1.7.0-1build1) ... 152s Setting up libio-stringy-perl (2.111-3) ... 152s Setting up libscotch-7.0:amd64 (7.0.4-1ubuntu2) ... 152s Setting up libhtml-tagset-perl (3.24-1) ... 152s Setting up liblog-any-perl (1.717-1) ... 152s Setting up libqscintilla2-qt5-l10n (2.14.1+dfsg-1build4) ... 152s Setting up libyaml-pp-perl (0.38.0-1) ... 152s Setting up libxcb-glx0:amd64 (1.17.0-2) ... 152s Setting up libdevel-size-perl (0.84-1) ... 152s Setting up unzip (6.0-28ubuntu4) ... 152s Setting up libdebhelper-perl (13.14.1ubuntu5) ... 152s Setting up libjxl0.8:amd64 (0.8.2-3ubuntu1) ... 152s Setting up libregexp-pattern-license-perl (3.11.0-1) ... 152s Setting up libconvert-binhex-perl (1.125-3) ... 152s Setting up libdrm-intel1:amd64 (2.4.120-2build1) ... 152s Setting up liblwp-mediatypes-perl (6.04-2) ... 152s Setting up libyaml-libyaml-perl (0.89+ds-1build2) ... 152s Setting up fonts-freefont-otf (20211204+svn4273-2) ... 152s Setting up libio-interactive-perl (1.025-1) ... 152s Setting up libxcb-keysyms1:amd64 (0.4.0-1build4) ... 152s Setting up libxcb-shape0:amd64 (1.17.0-2) ... 152s Setting up x11-common (1:7.7+23ubuntu3) ... 152s Setting up libtry-tiny-perl (0.31-2) ... 152s Setting up perl-openssl-defaults:amd64 (7build3) ... 152s Setting up libmldbm-perl (2.05-4) ... 152s Setting up libxml-namespacesupport-perl (1.12-2) ... 152s Setting up m4 (1.4.19-4build1) ... 152s Setting up libclone-choose-perl (0.010-2) ... 152s Setting up libqhull-r8.0:amd64 (2020.2-6build1) ... 152s Setting up libxcb-render-util0:amd64 (0.3.9-1build4) ... 152s Setting up libtime-moment-perl (0.44-2build4) ... 152s Setting up libencode-locale-perl (1.05-3) ... 152s Setting up libtrilinos-kokkos-13.2:amd64 (13.2.0-5build2) ... 152s Setting up libmetis5:amd64 (5.1.0.dfsg-7build3) ... 152s Setting up libxcb-shm0:amd64 (1.17.0-2) ... 152s Setting up libxcb-icccm4:amd64 (0.4.1-1.1build3) ... 152s Setting up texinfo-lib (7.1-3build2) ... 152s Setting up libreadline-dev:amd64 (8.2-4build1) ... 152s Setting up libmpg123-0t64:amd64 (1.32.6-3) ... 152s Setting up libgomp1:amd64 (14.1.0-1ubuntu1) ... 152s Setting up libconfig-tiny-perl (2.30-1) ... 152s Setting up libsereal-encoder-perl (5.004+ds-1build3) ... 152s Setting up liblist-utilsby-perl (0.12-2) ... 152s Setting up libyaml-tiny-perl (1.74-1) ... 152s Setting up octave-common (8.4.0-1build5) ... 152s Setting up libcairo2:amd64 (1.18.0-3build1) ... 152s Setting up libregexp-common-perl (2017060201-3) ... 152s Setting up libpcre2-16-0:amd64 (10.42-4ubuntu2) ... 152s Setting up libaec0:amd64 (1.1.3-1) ... 152s Setting up libnet-netmask-perl (2.0002-2) ... 152s Setting up libopengl0:amd64 (1.7.0-1build1) ... 152s Setting up libsub-install-perl (0.929-1) ... 152s Setting up libxcb-util1:amd64 (0.4.0-1build3) ... 152s Setting up libxxf86vm1:amd64 (1:1.1.4-1build4) ... 152s Setting up libindirect-perl (0.39-2build4) ... 152s Setting up libxcb-xkb1:amd64 (1.17.0-2) ... 152s Setting up libxcb-image0:amd64 (0.4.0-2build1) ... 152s Setting up libxs-parse-sublike-perl:amd64 (0.21-2build3) ... 152s Setting up libnumber-compare-perl (0.03-3) ... 152s Setting up libxnvctrl0:amd64 (510.47.03-0ubuntu4) ... 152s Setting up libxcb-present0:amd64 (1.17.0-2) ... 152s Setting up liberror-perl (0.17029-2) ... 152s Setting up libtrilinos-trilinosss-13.2:amd64 (13.2.0-5build2) ... 152s Setting up libasound2-data (1.2.11-1build2) ... 152s Setting up patchutils (0.4.2-1build3) ... 152s Setting up tex-common (6.18) ... 152s update-language: texlive-base not installed and configured, doing nothing! 153s Setting up libbtf2:amd64 (1:7.7.0+dfsg-2) ... 153s Setting up libjson-maybexs-perl (1.004005-1) ... 153s Setting up libxml-sax-base-perl (1.09-3) ... 153s Setting up libio-string-perl (1.08-4) ... 153s Setting up libboolean-perl (0.46-3) ... 153s Setting up libnetaddr-ip-perl (4.079+dfsg-2build4) ... 153s Setting up xtrans-dev (1.4.0-1) ... 153s Setting up libqt5core5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 153s Setting up libfontenc1:amd64 (1:1.1.8-1build1) ... 153s Setting up autotools-dev (20220109.1) ... 153s Setting up libblas3:amd64 (3.12.0-3build1) ... 153s update-alternatives: using /usr/lib/x86_64-linux-gnu/blas/libblas.so.3 to provide /usr/lib/x86_64-linux-gnu/libblas.so.3 (libblas.so.3-x86_64-linux-gnu) in auto mode 153s Setting up libclass-data-inheritable-perl (0.08-3) ... 153s Setting up libxs-parse-keyword-perl (0.42-1) ... 153s Setting up libxcb-xinerama0:amd64 (1.17.0-2) ... 153s Setting up libalgorithm-c3-perl (0.11-2) ... 153s Setting up libasound2t64:amd64 (1.2.11-1build2) ... 153s Setting up gcc-13-base:amd64 (13.2.0-23ubuntu4) ... 153s Setting up libmunge2:amd64 (0.5.15-4build1) ... 153s Setting up liblog-log4perl-perl (1.57-1) ... 153s Setting up libllvm17t64:amd64 (1:17.0.6-12) ... 153s Setting up libtext-reform-perl (1.20-5) ... 153s Setting up libfile-find-rule-perl (0.34-3) ... 153s Setting up libxfixes3:amd64 (1:6.0.0-2build1) ... 153s Setting up libcurl4-openssl-dev:amd64 (8.8.0-1ubuntu1) ... 153s Setting up libxcb-sync1:amd64 (1.17.0-2) ... 153s Setting up libipc-system-simple-perl (1.30-2) ... 153s Setting up libio-tiecombine-perl (1.005-3) ... 153s Setting up libnet-domain-tld-perl (1.75-3) ... 153s Setting up libperlio-utf8-strict-perl (0.010-1build3) ... 153s Setting up aglfn (1.7+git20191031.4036a9c-2) ... 153s Setting up lzip (1.24.1-1build1) ... 153s update-alternatives: using /usr/bin/lzip.lzip to provide /usr/bin/lzip (lzip) in auto mode 153s update-alternatives: using /usr/bin/lzip.lzip to provide /usr/bin/lzip-compressor (lzip-compressor) in auto mode 153s update-alternatives: using /usr/bin/lzip.lzip to provide /usr/bin/lzip-decompressor (lzip-decompressor) in auto mode 153s Setting up libavahi-common-data:amd64 (0.8-13ubuntu6) ... 153s Setting up libopus0:amd64 (1.4-1build1) ... 153s Setting up t1utils (1.41-4build3) ... 153s Setting up libquadmath0:amd64 (14.1.0-1ubuntu1) ... 153s Setting up libxinerama1:amd64 (2:1.1.4-3build1) ... 153s Setting up diffstat (1.66-1build1) ... 153s Setting up libxkbcommon-x11-0:amd64 (1.6.0-1build1) ... 153s Setting up libssl-dev:amd64 (3.0.13-0ubuntu4) ... 153s Setting up libhwloc15:amd64 (2.10.0-1build1) ... 153s Setting up libmpc3:amd64 (1.3.1-1build1) ... 153s Setting up libatomic1:amd64 (14.1.0-1ubuntu1) ... 153s Setting up libvorbis0a:amd64 (1.3.7-2) ... 153s Setting up libvariable-magic-perl (0.64-1) ... 153s Setting up libio-html-perl (1.004-3) ... 153s Setting up libxrandr2:amd64 (2:1.5.4-1) ... 153s Setting up libtext-template-perl (1.61-1) ... 153s Setting up libpod-parser-perl (1.67-1) ... 153s Setting up autopoint (0.21-14ubuntu2) ... 153s Setting up libb-hooks-op-check-perl:amd64 (0.22-3build1) ... 153s Setting up liblist-moreutils-xs-perl (0.430-4) ... 153s Setting up libltdl7:amd64 (2.4.7-7build1) ... 153s Setting up libfftw3-double3:amd64 (3.3.10-1ubuntu3) ... 153s Setting up libglapi-mesa:amd64 (24.0.8-1ubuntu1) ... 153s Setting up libparams-util-perl (1.102-3) ... 153s Setting up libgfortran5:amd64 (14.1.0-1ubuntu1) ... 153s Setting up libvulkan1:amd64 (1.3.283.0-1) ... 153s Setting up libtime-duration-perl (1.21-2) ... 153s Setting up autoconf (2.71-3) ... 153s Setting up libtext-xslate-perl:amd64 (3.5.9-2) ... 153s Setting up libsub-exporter-progressive-perl (0.001013-3) ... 153s Setting up libarray-intspan-perl (2.004-2) ... 153s Setting up libcapture-tiny-perl (0.48-2) ... 153s Setting up libtimedate-perl (2.3300-2) ... 153s Setting up libexporter-lite-perl (0.09-2) ... 153s Setting up libubsan1:amd64 (14.1.0-1ubuntu1) ... 153s Setting up libxcb-dri2-0:amd64 (1.17.0-2) ... 153s Setting up libsub-name-perl:amd64 (0.27-1build3) ... 153s Setting up zlib1g-dev:amd64 (1:1.3.dfsg-3.1ubuntu2) ... 153s Setting up libsyntax-keyword-try-perl (0.29-2) ... 153s Setting up dwz (0.15-1build6) ... 153s Setting up libdata-validate-domain-perl (0.10-1.1) ... 153s Setting up libproc-processtable-perl:amd64 (0.636-1build3) ... 153s Setting up libparse-recdescent-perl (1.967015+dfsg-4) ... 153s Setting up libmtdev1t64:amd64 (1.1.6-1.2) ... 153s Setting up ocl-icd-libopencl1:amd64 (2.3.2-1build1) ... 153s Setting up libxshmfence1:amd64 (1.3-1build5) ... 153s Setting up libhwasan0:amd64 (14.1.0-1ubuntu1) ... 153s Setting up libxcb-randr0:amd64 (1.17.0-2) ... 153s Setting up libpath-tiny-perl (0.144-1) ... 153s Setting up libasan8:amd64 (14.1.0-1ubuntu1) ... 153s Setting up lzop (1.04-2build3) ... 153s Setting up libjson-perl (4.10000-1) ... 153s Setting up liblog-any-adapter-screen-perl (0.140-2) ... 153s Setting up librole-tiny-perl (2.002004-1) ... 153s Setting up libpsm2-2 (11.2.185-2build1) ... 153s Setting up openmpi-common (4.1.6-7ubuntu2) ... 153s Setting up libqt5sql5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 153s Setting up debugedit (1:5.0-5build2) ... 153s Setting up libipc-run3-perl (0.049-1) ... 153s Setting up libmd4c0:amd64 (0.4.8-1build1) ... 153s Setting up libregexp-wildcards-perl (1.05-3) ... 153s Setting up libmousex-strictconstructor-perl (0.02-3) ... 153s Setting up libsub-uplevel-perl (0.2800-3) ... 153s Setting up libsuitesparseconfig7:amd64 (1:7.7.0+dfsg-2) ... 153s Setting up librdmacm1t64:amd64 (50.0-2build2) ... 153s Setting up liblua5.4-0:amd64 (5.4.6-3build2) ... 153s Setting up libaliased-perl (0.34-3) ... 153s Setting up libharfbuzz0b:amd64 (8.3.0-2build2) ... 153s Setting up libthai-data (0.1.29-2build1) ... 153s Setting up xorg-sgml-doctools (1:1.11-1.1) ... 153s Setting up libstrictures-perl (2.000006-1) ... 153s Setting up libsub-quote-perl (2.006008-1ubuntu1) ... 153s Setting up libdevel-stacktrace-perl (2.0500-1) ... 153s Setting up libclass-xsaccessor-perl (1.19-4build4) ... 153s Setting up libtext-autoformat-perl (1.750000-2) ... 153s Setting up libglu1-mesa:amd64 (9.0.2-1.1build1) ... 153s Setting up libamd-comgr2:amd64 (6.0+git20231212.4510c28+dfsg-3build2) ... 153s Setting up libflac12t64:amd64 (1.4.3+ds-2.1ubuntu2) ... 153s Setting up libtoml-tiny-perl (0.16-1) ... 153s Setting up libxkbfile1:amd64 (1:1.1.0-1build4) ... 153s Setting up libpsm-infinipath1 (3.3+20.604758e7-6.3build1) ... 153s update-alternatives: using /usr/lib/libpsm1/libpsm_infinipath.so.1.16 to provide /usr/lib/x86_64-linux-gnu/libpsm_infinipath.so.1 (libpsm_infinipath.so.1) in auto mode 153s Setting up libsort-versions-perl (1.62-3) ... 153s Setting up libtsan2:amd64 (14.1.0-1ubuntu1) ... 153s Setting up libexporter-tiny-perl (1.006002-1) ... 153s Setting up libterm-readkey-perl (2.38-2build4) ... 153s Setting up libjpeg8-dev:amd64 (8c-2ubuntu11) ... 153s Setting up python3-mpmath (1.3.0-1) ... 153s Setting up libisl23:amd64 (0.26-3build1) ... 153s Setting up libtext-unidecode-perl (1.30-3) ... 153s Setting up libfont-ttf-perl (1.06-2) ... 153s Setting up libfile-homedir-perl (1.006-2) ... 153s Setting up libsamplerate0:amd64 (0.2.2-4build1) ... 153s Setting up libwebpmux3:amd64 (1.4.0-0.1) ... 153s Setting up libtext-levenshteinxs-perl (0.03-5build4) ... 153s Setting up libperlio-gzip-perl (0.20-1build4) ... 153s Setting up libxfont2:amd64 (1:2.0.6-1build1) ... 153s Setting up libhtml-html5-entities-perl (0.004-3) ... 153s Setting up libtext-levenshtein-damerau-perl (0.41-3) ... 153s Setting up libsereal-decoder-perl (5.004+ds-1build3) ... 153s Setting up libmarkdown2:amd64 (2.2.7-2build1) ... 153s Setting up libcc1-0:amd64 (14.1.0-1ubuntu1) ... 153s Setting up liburi-perl (5.28-1) ... 153s Setting up libnet-ipv6addr-perl (1.02-1) ... 153s Setting up liblsan0:amd64 (14.1.0-1ubuntu1) ... 153s Setting up libmp3lame0:amd64 (3.100-6build1) ... 153s Setting up libblas-dev:amd64 (3.12.0-3build1) ... 153s update-alternatives: using /usr/lib/x86_64-linux-gnu/blas/libblas.so to provide /usr/lib/x86_64-linux-gnu/libblas.so (libblas.so-x86_64-linux-gnu) in auto mode 153s Setting up libsz2:amd64 (1.1.3-1) ... 153s Setting up libitm1:amd64 (14.1.0-1ubuntu1) ... 153s Setting up libvorbisenc2:amd64 (1.3.7-2) ... 153s Setting up libdata-validate-ip-perl (0.31-1) ... 153s Setting up libdrm-amdgpu1:amd64 (2.4.120-2build1) ... 153s Setting up libwacom-common (2.10.0-2) ... 153s Setting up libmousex-nativetraits-perl (1.09-3) ... 153s Setting up libemail-address-xs-perl (1.05-1build4) ... 153s Setting up libwayland-client0:amd64 (1.22.0-2.1build1) ... 153s Setting up libnet-ssleay-perl:amd64 (1.94-1build4) ... 153s Setting up automake (1:1.16.5-1.3ubuntu1) ... 153s update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode 153s Setting up x11proto-dev (2024.1-1) ... 153s Setting up libfile-stripnondeterminism-perl (1.14.0-1) ... 153s Setting up libfabric1:amd64 (1.17.0-3build2) ... 153s Setting up python3-sympy (1.12.1-1) ... 158s Setting up gnuplot-data (6.0.0+dfsg1-1ubuntu3) ... 158s Setting up libice6:amd64 (2:1.0.10-1build3) ... 158s Setting up libhttp-date-perl (6.06-1) ... 158s Setting up liblapack3:amd64 (3.12.0-3build1) ... 158s update-alternatives: using /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3 to provide /usr/lib/x86_64-linux-gnu/liblapack.so.3 (liblapack.so.3-x86_64-linux-gnu) in auto mode 158s Setting up libxft2:amd64 (2.3.6-1build1) ... 158s Setting up libqt5dbus5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 158s Setting up libfile-basedir-perl (0.09-2) ... 158s Setting up gettext (0.21-14ubuntu2) ... 158s Setting up libarpack2t64:amd64 (3.9.1-1.1build2) ... 158s Setting up libfftw3-single3:amd64 (3.3.10-1ubuntu3) ... 158s Setting up libamd3:amd64 (1:7.7.0+dfsg-2) ... 158s Setting up libfile-listing-perl (6.16-1) ... 158s Setting up libxau-dev:amd64 (1:1.0.9-1build6) ... 158s Setting up libgbm1:amd64 (24.0.8-1ubuntu1) ... 158s Setting up libgraphicsmagick-q16-3t64 (1.4+really1.3.43-1build1) ... 158s Setting up libcolamd3:amd64 (1:7.7.0+dfsg-2) ... 158s Setting up libwacom9:amd64 (2.10.0-2) ... 158s Setting up cpp-13-x86-64-linux-gnu (13.2.0-23ubuntu4) ... 158s Setting up liblist-moreutils-perl (0.430-2) ... 158s Setting up libxcursor1:amd64 (1:1.2.2-1) ... 158s Setting up libpod-constants-perl (0.19-2) ... 158s Setting up libgl1-mesa-dri:amd64 (24.0.8-1ubuntu1) ... 158s Setting up libqt5network5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 158s Setting up libhash-merge-perl (0.302-1) ... 158s Setting up libsoftware-copyright-perl (0.012-2) ... 158s Setting up libaec-dev:amd64 (1.1.3-1) ... 158s Setting up libavahi-common3:amd64 (0.8-13ubuntu6) ... 158s Setting up libcxsparse4:amd64 (1:7.7.0+dfsg-2) ... 158s Setting up libjpeg-dev:amd64 (8c-2ubuntu11) ... 158s Setting up libfftw3-long3:amd64 (3.3.10-1ubuntu3) ... 158s Setting up libnet-http-perl (6.23-1) ... 158s Setting up libpath-iterator-rule-perl (1.015-2) ... 158s Setting up libtext-markdown-discount-perl (0.16-1build3) ... 158s Setting up libqt5xml5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 158s Setting up libexception-class-perl (1.45-1) ... 158s Setting up libsundials-sunmatrix4:amd64 (6.4.1+dfsg1-3build5) ... 158s Setting up libclass-c3-perl (0.35-2) ... 158s Setting up libsuperlu6:amd64 (6.0.1+dfsg1-1build1) ... 158s Setting up libhwloc-plugins:amd64 (2.10.0-1build1) ... 158s Setting up libqrupdate1:amd64 (1.1.2-4build1) ... 158s Setting up libdevel-callchecker-perl:amd64 (0.009-1) ... 158s Setting up libxml-sax-perl (1.02+dfsg-3) ... 159s update-perl-sax-parsers: Registering Perl SAX parser XML::SAX::PurePerl with priority 10... 159s update-perl-sax-parsers: Updating overall Perl SAX parser modules info file... 159s 159s Creating config file /etc/perl/XML/SAX/ParserDetails.ini with new version 159s Setting up libgraphicsmagick++-q16-12t64 (1.4+really1.3.43-1build1) ... 159s Setting up libsundials-ida6:amd64 (6.4.1+dfsg1-3build5) ... 159s Setting up libcamd3:amd64 (1:7.7.0+dfsg-2) ... 159s Setting up libinput-bin (1.25.0-1ubuntu2) ... 159s Setting up intltool-debian (0.35.0+20060710.6) ... 159s Setting up libobject-pad-perl (0.808-1build3) ... 159s Setting up libthai0:amd64 (0.1.29-2build1) ... 159s Setting up libxdmcp-dev:amd64 (1:1.1.3-0ubuntu6) ... 159s Setting up libegl-mesa0:amd64 (24.0.8-1ubuntu1) ... 159s Setting up libdata-validate-uri-perl (0.07-3) ... 159s Setting up libtest-exception-perl (0.43-3) ... 159s Setting up libglpk40:amd64 (5.0-1build2) ... 159s Setting up libstring-copyright-perl (0.003014-1) ... 159s Setting up libfftw3-quad3:amd64 (3.3.10-1ubuntu3) ... 159s Setting up liblapack-dev:amd64 (3.12.0-3build1) ... 159s update-alternatives: using /usr/lib/x86_64-linux-gnu/lapack/liblapack.so to provide /usr/lib/x86_64-linux-gnu/liblapack.so (liblapack.so-x86_64-linux-gnu) in auto mode 159s Setting up libdata-optlist-perl (0.114-1) ... 159s Setting up libpmix2t64:amd64 (5.0.1-4.1build1) ... 159s Setting up libccolamd3:amd64 (1:7.7.0+dfsg-2) ... 159s Setting up libxml-libxml-perl (2.0207+dfsg+really+2.0134-2) ... 159s update-perl-sax-parsers: Registering Perl SAX parser XML::LibXML::SAX::Parser with priority 50... 159s update-perl-sax-parsers: Registering Perl SAX parser XML::LibXML::SAX with priority 50... 159s update-perl-sax-parsers: Updating overall Perl SAX parser modules info file... 159s Replacing config file /etc/perl/XML/SAX/ParserDetails.ini with new version 159s Setting up dh-strip-nondeterminism (1.14.0-1) ... 159s Setting up libwww-robotrules-perl (6.02-1) ... 159s Setting up libjack-jackd2-0:amd64 (1.9.21~dfsg-3ubuntu3) ... 159s Setting up libgcc-13-dev:amd64 (13.2.0-23ubuntu4) ... 159s Setting up libhtml-parser-perl:amd64 (3.82-1) ... 159s Setting up libegl1:amd64 (1.7.0-1build1) ... 159s Setting up libsndfile1:amd64 (1.2.2-1ubuntu5) ... 159s Setting up libmro-compat-perl (0.15-2) ... 159s Setting up libhdf5-103-1t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 159s Setting up libgfortran-13-dev:amd64 (13.2.0-23ubuntu4) ... 159s Setting up libsm6:amd64 (2:1.2.3-1build3) ... 159s Setting up libfltk1.3t64:amd64 (1.3.8-6.1build2) ... 159s Setting up libavahi-client3:amd64 (0.8-13ubuntu6) ... 159s Setting up libio-socket-ssl-perl (2.085-1) ... 159s Setting up libhsakmt1:amd64 (5.7.0-1build1) ... 159s Setting up libstdc++-13-dev:amd64 (13.2.0-23ubuntu4) ... 159s Setting up libsub-exporter-perl (0.990-1) ... 159s Setting up libhttp-message-perl (6.45-1ubuntu1) ... 159s Setting up libhtml-form-perl (6.11-1) ... 159s Setting up cpp-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 159s Setting up libiterator-perl (0.03+ds1-2) ... 159s Setting up libinput10:amd64 (1.25.0-1ubuntu2) ... 159s Setting up libhdf5-hl-100t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 159s Setting up libportaudio2:amd64 (19.6.0-1.2build3) ... 159s Setting up libhttp-negotiate-perl (6.01-2) ... 159s Setting up libcarp-assert-more-perl (2.4.0-1) ... 159s Setting up libcholmod5:amd64 (1:7.7.0+dfsg-2) ... 159s Setting up libglx-mesa0:amd64 (24.0.8-1ubuntu1) ... 159s Setting up libxcb1-dev:amd64 (1.17.0-2) ... 159s Setting up libiterator-util-perl (0.02+ds1-2) ... 159s Setting up libglx0:amd64 (1.7.0-1build1) ... 159s Setting up cpp-13 (13.2.0-23ubuntu4) ... 159s Setting up libhttp-cookies-perl (6.11-1) ... 159s Setting up libspqr4:amd64 (1:7.7.0+dfsg-2) ... 159s Setting up libfftw3-bin (3.3.10-1ubuntu3) ... 159s Setting up gcc-13-x86-64-linux-gnu (13.2.0-23ubuntu4) ... 159s Setting up po-debconf (1.0.21+nmu1) ... 159s Setting up libhtml-tree-perl (5.07-3) ... 159s Setting up libparams-classify-perl:amd64 (0.015-2build5) ... 159s Setting up libpango-1.0-0:amd64 (1.52.2+ds-1) ... 159s Setting up libhdf5-cpp-103-1t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 159s Setting up libcgi-pm-perl (4.64-1) ... 159s Setting up libx11-dev:amd64 (2:1.8.7-1build1) ... 159s Setting up libhdf5-fortran-102t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 159s Setting up gfortran-13-x86-64-linux-gnu (13.2.0-23ubuntu4) ... 159s Setting up libgl1:amd64 (1.7.0-1build1) ... 159s Setting up libnet-smtp-ssl-perl (1.04-2) ... 159s Setting up libmodule-runtime-perl (0.016-2) ... 159s Setting up libmailtools-perl (2.21-3) ... 159s Setting up libklu2:amd64 (1:7.7.0+dfsg-2) ... 159s Setting up libconfig-model-perl (2.153-3) ... 159s Setting up libxt6t64:amd64 (1:1.2.1-1.2build1) ... 159s Setting up gcc-13 (13.2.0-23ubuntu4) ... 159s Setting up texinfo (7.1-3build2) ... 159s Setting up libumfpack6:amd64 (1:7.7.0+dfsg-2) ... 159s Setting up libconst-fast-perl (0.014-2) ... 159s Setting up libhsa-runtime64-1 (5.7.1-2build1) ... 159s Setting up cpp (4:13.2.0-7ubuntu1) ... 159s Setting up libdata-section-perl (0.200008-1) ... 159s Setting up libglx-dev:amd64 (1.7.0-1build1) ... 159s Setting up libpangoft2-1.0-0:amd64 (1.52.2+ds-1) ... 159s Setting up libdata-dpath-perl (0.59-1) ... 159s Setting up libhdf5-hl-cpp-100t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 159s Setting up libfftw3-dev:amd64 (3.3.10-1ubuntu3) ... 159s Setting up libcups2t64:amd64 (2.4.7-1.2ubuntu7) ... 159s Setting up libgl-dev:amd64 (1.7.0-1build1) ... 159s Setting up libstring-rewriteprefix-perl (0.009-1) ... 159s Setting up libpangocairo-1.0-0:amd64 (1.52.2+ds-1) ... 159s Setting up libconfig-model-backend-yaml-perl (2.134-2) ... 159s Setting up libxmu6:amd64 (2:1.1.3-3build2) ... 159s Setting up g++-13-x86-64-linux-gnu (13.2.0-23ubuntu4) ... 159s Setting up gcc-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 159s Setting up libtool (2.4.7-7build1) ... 159s Setting up libmodule-implementation-perl (0.09-2) ... 159s Setting up libpackage-stash-perl (0.40-1) ... 159s Setting up libimport-into-perl (1.002005-2) ... 159s Setting up libmoo-perl (2.005005-1) ... 159s Setting up libhdf5-hl-fortran-100t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 159s Setting up liblist-someutils-perl (0.59-1) ... 159s Setting up libxaw7:amd64 (2:1.0.14-1build2) ... 159s Setting up libmime-tools-perl (5.515-1) ... 159s Setting up gfortran-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 159s Setting up libsoftware-license-perl (0.104006-1) ... 159s Setting up libclass-load-perl (0.25-2) ... 159s Setting up gcc (4:13.2.0-7ubuntu1) ... 159s Setting up libgl2ps1.4 (1.4.2+dfsg1-2build1) ... 159s Setting up dh-autoreconf (20) ... 159s Setting up libfltk-gl1.3t64:amd64 (1.3.8-6.1build2) ... 159s Setting up libqt5gui5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 159s Setting up libamdhip64-5 (5.7.1-3) ... 159s Setting up gfortran-13 (13.2.0-23ubuntu4) ... 159s Setting up libhdf5-dev (1.10.10+repack-3.1ubuntu4) ... 159s update-alternatives: using /usr/lib/x86_64-linux-gnu/pkgconfig/hdf5-serial.pc to provide /usr/lib/x86_64-linux-gnu/pkgconfig/hdf5.pc (hdf5.pc) in auto mode 159s Setting up g++-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 159s Setting up gnuplot-nox (6.0.0+dfsg1-1ubuntu3) ... 159s update-alternatives: using /usr/bin/gnuplot-nox to provide /usr/bin/gnuplot (gnuplot) in auto mode 159s Setting up libmoox-aliases-perl (0.001006-2) ... 159s Setting up libparams-validate-perl:amd64 (1.31-2build3) ... 159s Setting up libb-hooks-endofscope-perl (0.28-1) ... 159s Setting up g++-13 (13.2.0-23ubuntu4) ... 159s Setting up libucx0:amd64 (1.16.0+ds-5ubuntu1) ... 159s Setting up libqt5widgets5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 159s Setting up libsoftware-licensemoreutils-perl (1.009-1) ... 159s Setting up x11-xkb-utils (7.7+8build2) ... 159s Setting up debhelper (13.14.1ubuntu5) ... 159s Setting up libqt5help5:amd64 (5.15.13-3) ... 159s Setting up gfortran (4:13.2.0-7ubuntu1) ... 159s update-alternatives: using /usr/bin/gfortran to provide /usr/bin/f95 (f95) in auto mode 159s 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 159s update-alternatives: using /usr/bin/gfortran to provide /usr/bin/f77 (f77) in auto mode 159s 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 159s Setting up dh-octave-autopkgtest (1.8.0) ... 159s Setting up libnamespace-clean-perl (0.27-2) ... 159s Setting up libstring-license-perl (0.0.9-2ubuntu1) ... 159s Setting up libopenmpi3t64:amd64 (4.1.6-7ubuntu2) ... 159s Setting up libgetopt-long-descriptive-perl (0.111-1) ... 159s Setting up g++ (4:13.2.0-7ubuntu1) ... 159s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 159s Setting up build-essential (12.10ubuntu1) ... 159s Setting up xserver-common (2:21.1.12-1ubuntu1) ... 159s Setting up openmpi-bin (4.1.6-7ubuntu2) ... 159s update-alternatives: using /usr/bin/mpirun.openmpi to provide /usr/bin/mpirun (mpirun) in auto mode 159s update-alternatives: using /usr/bin/mpicc.openmpi to provide /usr/bin/mpicc (mpi) in auto mode 159s Setting up licensecheck (3.3.9-1ubuntu1) ... 159s Setting up libqt5printsupport5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 159s Setting up libptscotch-7.0:amd64 (7.0.4-1ubuntu2) ... 159s Setting up libapp-cmd-perl (0.336-1) ... 159s Setting up xvfb (2:21.1.12-1ubuntu1) ... 159s Setting up mpi-default-bin (1.15build1) ... 159s Setting up libcombblas2.0.0t64:amd64 (2.0.0-3.1build2) ... 159s Setting up libfftw3-mpi3:amd64 (3.3.10-1ubuntu3) ... 159s Setting up libqscintilla2-qt5-15:amd64 (2.14.1+dfsg-1build4) ... 159s Setting up libtrilinos-zoltan-13.2:amd64 (13.2.0-5build2) ... 159s Setting up libhdf5-openmpi-103-1t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 159s Setting up libtrilinos-teuchos-13.2:amd64 (13.2.0-5build2) ... 159s Setting up libtrilinos-epetra-13.2:amd64 (13.2.0-5build2) ... 159s Setting up cme (1.040-1) ... 159s Setting up libtrilinos-aztecoo-13.2:amd64 (13.2.0-5build2) ... 159s Setting up libtrilinos-triutils-13.2:amd64 (13.2.0-5build2) ... 159s Setting up libscalapack-openmpi2.2:amd64 (2.2.1-3.1ubuntu1) ... 159s Setting up libsuperlu-dist8:amd64 (8.2.1+dfsg1-1build2) ... 159s Setting up libmumps-5.6t64:amd64 (5.6.2-2.1build2) ... 159s Setting up libhypre-2.28.0:amd64 (2.28.0-8build2) ... 159s Setting up libtrilinos-epetraext-13.2:amd64 (13.2.0-5build2) ... 159s Setting up libtrilinos-galeri-13.2:amd64 (13.2.0-5build2) ... 159s Setting up libtrilinos-amesos-13.2:amd64 (13.2.0-5build2) ... 159s Setting up libtrilinos-ifpack-13.2:amd64 (13.2.0-5build2) ... 159s Setting up libtrilinos-ml-13.2:amd64 (13.2.0-5build2) ... 159s Setting up libpetsc-real3.19t64:amd64 (3.19.6+dfsg1-2.2ubuntu2) ... 159s update-alternatives: using /usr/lib/x86_64-linux-gnu/libpetsc_real.so.3.19.6 to provide /usr/lib/x86_64-linux-gnu/libpetsc.so.3.19 (libpetsc.so.3.19) in auto mode 159s Setting up libsundials-nvecparallel-petsc6:amd64 (6.4.1+dfsg1-3build5) ... 159s Setting up libsundials-sunlinsol3:amd64 (6.4.1+dfsg1-3build5) ... 159s Setting up octave (8.4.0-1build5) ... 160s Setting up octave-dev (8.4.0-1build5) ... 160s Setting up octave-symbolic (3.1.1-2) ... 160s Setting up liblwp-protocol-https-perl (6.14-1) ... 160s Setting up libwww-perl (6.77-1) ... 160s Setting up libparse-debcontrol-perl (2.005-6) ... 160s Setting up libhtml-tokeparser-simple-perl (3.16-4) ... 160s Setting up libwww-mechanize-perl (2.18-1ubuntu1) ... 160s Setting up lintian (2.117.0ubuntu2) ... 160s Setting up libconfig-model-dpkg-perl (3.004) ... 160s Setting up dh-octave (1.8.0) ... 160s Processing triggers for libc-bin (2.39-0ubuntu8.1) ... 160s Processing triggers for man-db (2.12.1-1) ... 162s Processing triggers for udev (255.4-1ubuntu8) ... 162s Processing triggers for install-info (7.1-3build2) ... 163s Reading package lists... 163s Building dependency tree... 163s Reading state information... 163s Starting pkgProblemResolver with broken count: 0 163s Starting 2 pkgProblemResolver with broken count: 0 163s Done 164s The following NEW packages will be installed: 164s autopkgtest-satdep 164s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 164s Need to get 0 B/696 B of archives. 164s After this operation, 0 B of additional disk space will be used. 164s Get:1 /tmp/autopkgtest.Hm10sW/2-autopkgtest-satdep.deb autopkgtest-satdep amd64 0 [696 B] 164s Selecting previously unselected package autopkgtest-satdep. 164s (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 ... 92331 files and directories currently installed.) 164s Preparing to unpack .../2-autopkgtest-satdep.deb ... 164s Unpacking autopkgtest-satdep (0) ... 164s Setting up autopkgtest-satdep (0) ... 166s (Reading database ... 92331 files and directories currently installed.) 166s Removing autopkgtest-satdep (0) ... 166s autopkgtest [01:19:59]: test command1: DH_OCTAVE_TEST_ENV="xvfb-run -a" /usr/bin/dh_octave_check --use-installed-package 166s autopkgtest [01:19:59]: test command1: [----------------------- 166s Checking package... 167s Run the unit tests... 167s Checking m files ... 167s [inst/cell2sym.m] 167s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/cell2sym.m 167s ***** test 167s A = {1 2 3; 4 5 6}; 167s B = [1 2 3; 4 5 6]; 167s assert (isequal (cell2sym(A), sym(B))) 168s Symbolic pkg v3.1.1: Python communication link active, SymPy v1.12.1. 168s ***** test 168s A = {'a' 'b'; 'c' 10}; 168s B = [sym('a') sym('b'); sym('c') sym(10)]; 168s assert (isequal (cell2sym(A), B)) 168s warning: test: file /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/cell2sym.m leaked file descriptors 168s 2 tests, 2 passed, 0 known failure, 0 skipped 168s [inst/syms.m] 168s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/syms.m 168s ***** test 168s %% assumptions 168s syms x real 168s x2 = sym('x', 'real'); 168s assert (isequal (x, x2)) 168s ***** test 168s % assumptions and clearing them on a symbol 168s syms x real 168s assert (~isempty (assumptions (x))) 168s syms x 168s assert (isempty (assumptions (x))) 168s ***** test 168s % Note SMT would clear syms in existing expressions 168s syms x real 168s f = {x {2*x} cos(x/2)}; 168s assert (~isempty (assumptions (f))) 168s syms x 168s % but we do not: this would have to toggle for pure SMT compat 168s assert (~isempty (assumptions (f))) 168s % assert (isempty (assumptions (f))) 168s ***** error 168s syms x clear 168s ***** error 168s syms x positive y 168s ***** error 168s % this sometimes catches typos or errors in assumption names 168s % (if you need careful checking, use sym not syms) 168s syms x positive evne 168s ***** error 168s syms positive integer 168s ***** test 168s % does not create a variable called positive 168s syms x positive integer 168s assert (logical(exist('x', 'var'))) 168s assert (~logical(exist('positive', 'var'))) 168s ***** test 168s % Issue #885 168s syms S(x) I(x) O(x) 168s ***** test 168s % Issue #290 168s syms FF(x) 168s syms ff(x) 168s syms Eq(x) 168s ***** test 168s % Issue #290 168s syms beta(x) 168s ***** test 168s syms x real 168s syms f(x) 168s assert (~ isempty (assumptions (x))) 169s ***** test 169s syms x real 169s f(x) = symfun(sym('f(x)'), x); 169s assert (~ isempty (assumptions (x))) 169s assert (~ isempty (assumptions (argnames (f)))) 169s :18: SyntaxWarning: invalid escape sequence '\(' 169s 13 tests, 13 passed, 0 known failure, 0 skipped 169s [inst/eulergamma.m] 169s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/eulergamma.m 169s ***** error catalan (sym(1)) 169s ***** assert (double (eulergamma ()) > 0.577215664901) 169s ***** assert (double (eulergamma ()) < 0.577215664902) 169s 3 tests, 3 passed, 0 known failure, 0 skipped 169s [inst/octsympy_tests.m] 169s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/octsympy_tests.m 169s ***** assert(true) 169s 1 test, 1 passed, 0 known failure, 0 skipped 169s [inst/pycall_sympy__.m] 169s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/pycall_sympy__.m 169s ***** test 169s % general test 169s x = 10; y = 6; 169s cmd = '(x,y) = _ins; return (x+y,x-y)'; 169s [a,b] = pycall_sympy__ (cmd, x, y); 169s assert (a == x + y && b == x - y) 169s ***** test 169s % bool 169s assert (pycall_sympy__ ('return True,')) 169s assert (~pycall_sympy__ ('return False,')) 169s ***** test 169s % float 169s assert (abs(pycall_sympy__ ('return 1.0/3,') - 1/3) < 1e-15) 169s ***** test 169s % int 169s r = pycall_sympy__ ('return 123456'); 169s assert (r == 123456) 169s assert (isinteger (r)) 169s ***** test 169s % string 169s x = 'octave'; 169s cmd = 's = _ins[0]; return s.capitalize(),'; 169s y = pycall_sympy__ (cmd, x); 169s assert (strcmp(y, 'Octave')) 169s ***** test 169s % string with escaped newlines, comes back as escaped newlines 169s x = 'a string\nbroke off\nmy guitar\n'; 169s y = pycall_sympy__ ('return _ins', x); 169s assert (strcmp(y, x)) 169s ***** test 169s % string with actual newlines, comes back as actual newlines 169s x = sprintf('a string\nbroke off\nmy guitar\n'); 169s y = pycall_sympy__ ('return _ins', x); 169s y2 = strrep(y, sprintf('\n'), sprintf('\r\n')); % windows 169s assert (strcmp(x, y) || strcmp(x, y2)) 169s ***** test 169s % cmd string with newlines, works with cell 169s y = pycall_sympy__ ('return "string\nbroke",'); 169s y2 = sprintf('string\nbroke'); 169s y3 = strrep(y2, sprintf('\n'), sprintf('\r\n')); % windows 169s assert (strcmp(y, y2) || strcmp(y, y3)) 169s ***** test 169s % string with XML escapes 169s x = '<> >< <<>>'; 169s y = pycall_sympy__ ('return _ins', x); 169s assert (strcmp(y, x)) 169s x = '&'; 169s y = pycall_sympy__ ('return _ins', x); 169s assert (strcmp(y, x)) 169s ***** test 169s % strings with double quotes 169s x = 'a\"b\"c'; 169s y = pycall_sympy__ ('return _ins', x); 169s assert (strcmp(y, x)) 169s x = '\"'; 169s y = pycall_sympy__ ('return _ins', x); 169s assert (strcmp(y, x)) 169s ***** test 169s % cmd has double quotes, these must be escaped by user 169s % (of course: she is writing python code) 169s expy = 'a"b"c'; 169s y = pycall_sympy__ ('return "a\"b\"c",'); 169s assert (strcmp(y, expy)) 169s ***** test 169s % strings with quotes 169s x = 'a''b'; % this is a single quote 169s y = pycall_sympy__ ('return _ins', x); 169s assert (strcmp(y, x)) 169s ***** test 169s % strings with quotes 169s x = '\"a''b\"c''\"d'; 169s y = pycall_sympy__ ('return _ins[0]', x); 169s assert (strcmp(y, x)) 169s ***** test 169s % strings with quotes 169s expy = '"a''b"c''"d'; 169s y = pycall_sympy__ ('s = "\"a''b\"c''\"d"; return s'); 169s assert (strcmp(y, expy)) 169s ***** test 169s % strings with printf escapes 169s x = '% %% %%% %%%% %s %g %%s'; 169s y = pycall_sympy__ ('return _ins', x); 169s assert (strcmp(y, x)) 169s ***** test 169s % cmd with printf escapes 169s x = '% %% %%% %%%% %s %g %%s'; 169s y = pycall_sympy__ (['return "' x '",']); 169s assert (strcmp(y, x)) 169s ***** test 169s % cmd w/ backslash and \n must be escaped by user 169s expy = 'a\b\\c\nd\'; 169s y = pycall_sympy__ ('return "a\\b\\\\c\\nd\\",'); 169s assert (strcmp(y, expy)) 169s ***** test 169s % slashes 169s x = '/\\ // \\\\ \\/\\/\\'; 169s z = '/\ // \\ \/\/\'; 169s y = pycall_sympy__ ('return _ins', x); 169s assert (strcmp(y, x)) 169s ***** test 169s % slashes 169s z = '/\ // \\ \/\/\'; 169s y = pycall_sympy__ ('return "/\\ // \\\\ \\/\\/\\"'); 169s assert (strcmp(y, z)) 169s ***** test 169s % strings with special chars 169s x = '!@#$^&* you!'; 169s y = pycall_sympy__ ('return _ins', x); 169s assert (strcmp(y, x)) 169s x = '~-_=+[{]}|;:,.?'; 169s y = pycall_sympy__ ('return _ins', x); 169s assert (strcmp(y, x)) 169s ***** xtest 169s % string with backtick trouble for system -c (sysoneline) 169s x = '`'; 169s y = pycall_sympy__ ('return _ins', x); 169s assert (strcmp(y, x)) 169s ***** test 169s % unicode 169s s1 = '我爱你'; 169s cmd = 'return u"\u6211\u7231\u4f60",'; 169s s2 = pycall_sympy__ (cmd); 169s assert (strcmp (s1, s2)) 169s ***** test 169s % unicode with \x 169s s1 = '我'; 169s cmd = 'return b"\xe6\x88\x91".decode("utf-8")'; 169s s2 = pycall_sympy__ (cmd); 169s assert (strcmp (s1, s2)) 169s ***** test 169s % unicode with \x and some escaped backslashes 169s s1 = '\我\'; 169s cmd = 'return b"\\\xe6\x88\x91\\".decode("utf-8")'; 169s s2 = pycall_sympy__ (cmd); 169s assert (strcmp (s1, s2)) 169s ***** xtest 169s % unicode passthru 169s s = '我爱你'; 169s s2 = pycall_sympy__ ('return _ins', s); 169s assert (strcmp (s, s2)) 169s s = '我爱你<>\&//\#%% %\我'; 169s s2 = pycall_sympy__ ('return _ins', s); 169s assert (strcmp (s, s2)) 169s ***** xtest 169s % unicode w/ slashes, escapes 169s s = '我<>\&//\#%% %\我'; 169s s2 = pycall_sympy__ ('return "我<>\\&//\\#%% %\\我"'); 169s assert (strcmp (s, s2)) 169s ***** test 169s % list, tuple 169s assert (isequal (pycall_sympy__ ('return [1,2,3],'), {1, 2, 3})) 169s assert (isequal (pycall_sympy__ ('return (4,5),'), {4, 5})) 169s assert (isequal (pycall_sympy__ ('return (6,),'), {6,})) 169s assert (isequal (pycall_sympy__ ('return [],'), {})) 169s ***** test 169s % dict 169s cmd = 'd = dict(); d["a"] = 6; d["b"] = 10; return d,'; 169s d = pycall_sympy__ (cmd); 169s assert (d.a == 6 && d.b == 10) 169s ***** test 169s r = pycall_sympy__ ('return 6'); 169s assert (isequal (r, 6)) 169s ***** test 169s r = pycall_sympy__ ('return "Hi"'); 169s assert (strcmp (r, 'Hi')) 169s ***** test 169s % blank lines, lines with spaces 169s a = pycall_sympy__ ({ '', '', ' ', 'return 6', ' ', ''}); 169s assert (isequal (a, 6)) 169s ***** test 169s % blank lines, strange comment lines 169s cmd = {'a = 1', '', '#', '', '# ', ' #', 'a = a + 2', ' #', 'return a'}; 169s a = pycall_sympy__ (cmd); 169s assert (isequal (a, 3)) 169s ***** test 169s % return empty string (was https://bugs.python.org/issue25270) 169s assert (isempty (pycall_sympy__ ('return ""'))) 169s ***** test 169s % return nothing (via an empty list) 169s % note distinct from 'return [],' 169s pycall_sympy__ ('return []') 169s ***** test 169s % return nothing (because no return command) 169s pycall_sympy__ ('dummy = 1') 169s ***** test 169s % return nothing (because no command) 169s pycall_sympy__ ('') 169s ***** test 169s % return nothing (because no command) 169s pycall_sympy__ ({}) 169s ***** error 169s % python exception while passing variables to python 169s % This tests the "INTERNAL_PYTHON_ERROR" path. 169s % FIXME: this is a very specialized test, relies on internal octsympy 169s % implementation details, and may need to be adjusted for changes. 169s disp('') 169s disp('**********************************************************************') 169s disp('') 169s disp(' Some deliberate AttributeError and ValueError may appear next') 169s disp('') 169s 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') 169s b = sym([], 'S.This_is_supposed_to_make_an_exception', [1 1], 'Test', 'Test', 'Test'); 169s c = b + 1; 169s 169s ********************************************************************** 169s 169s Some deliberate AttributeError and ValueError may appear next 169s 169s v v v v v v v v v v v v v v v v v v v v v v v v 169s Traceback (most recent call last): 169s File "", line 4, in 169s File "/usr/lib/python3/dist-packages/sympy/core/singleton.py", line 118, in __getattr__ 169s raise AttributeError( 169s AttributeError: Attribute 'This_is_supposed_to_make_an_exception' was not installed on SymPy registry S 169s ***** test 169s % ...and after the above test, the pipe should still work 169s a = pycall_sympy__ ('return _ins[0]*2', 3); 169s assert (isequal (a, 6)) 169s ***** test 169s % This command does not fail with native interface and '@pyobject' 169s s = warning ('off', 'OctSymPy:pythonic_no_convert'); 169s try 169s q = pycall_sympy__ ({'return type(int)'}); 169s catch 169s msg = lasterror.message; 169s assert (~ isempty (regexp (msg, '.*does not know how to.*'))) 169s end 169s warning (s) 169s disp('^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^') 169s disp(' End of deliberate errors!') 169s disp(' You should see "46/46" or "Passes 46 out of 46 tests" below') 169s disp('**********************************************************************') 169s % ...and after the above test, the pipe should still work 169s a = pycall_sympy__ ('return _ins[0]*2', 3); 169s assert (isequal (a, 6)) 169s Traceback (most recent call last): 169s File "", line 2, in 169s File "", line 12, in octoutput_drv 169s File "", line 96, in octoutput 169s ValueError: octoutput does not know how to export type 169s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 169s End of deliberate errors! 169s You should see "46/46" or "Passes 46 out of 46 tests" below 169s ********************************************************************** 169s ***** test 169s % complex input 169s [A, B] = pycall_sympy__ ('z = 2*_ins[0]; return (z.real,z.imag)', 3+4i); 169s assert (A, 6) 169s assert (B, 8) 169s ***** test 169s % complex output 169s z = pycall_sympy__ ('return 3+2j'); 169s assert (z, 3+2i) 169s ***** error 169s s = char ('abc', 'defgh', '12345'); 169s r = pycall_sympy__ ('return _ins[0]', s); 169s ***** test 169s r = pycall_sympy__ ('return len(_ins[0])', ''); 169s assert (r == 0) 169s ***** test 169s % ensure the 0x0 matrix in octave gets mapped to the empty list in python 169s % @sym/subsasgn currently replies on this behaviour 169s assert (pycall_sympy__ ('return _ins[0] == []', [])); 169s ***** test 169s % ensure the empty string gets mapped to the empty string in python 169s assert (pycall_sympy__ ('return _ins[0] == ""', '')); 169s 46 tests, 46 passed, 0 known failure, 0 skipped 169s [inst/assumptions.m] 169s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/assumptions.m 169s ***** test 169s syms x 169s assert(isempty(assumptions(x))) 169s ***** test 169s x = sym('x', 'positive'); 169s a = assumptions(x); 169s assert(~isempty(strfind(a{1}, 'positive'))) 169s ***** test 169s syms x 169s assert(isempty(assumptions(x))) 169s ***** test 169s clear variables % for matlab test script 169s syms x positive 169s assert(~isempty(assumptions())) 169s clear x 169s assert(isempty(assumptions())) 169s ***** test 169s % make sure we have at least these possible assumptions 169s A = {'real' 'positive' 'negative' 'integer' 'even' 'odd' 'rational'}; 169s B = assumptions('possible'); 169s assert (isempty (setdiff(A, B))) 169s ***** test 169s A = assumptions('possible'); 169s for i = 1:length(A) 169s x = sym('x', A{i}); 169s a = assumptions(x); 169s assert(strcmp(a{1}, ['x: ' A{i}] )) 169s s1 = sympy (x); 169s s2 = ['Symbol(''x'', ' A{i} '=True)']; 169s assert (strcmp (s1, s2)) 169s end 170s ***** test 170s syms x positive 170s syms y real 170s syms z 170s f = x*y*z; 170s a = assumptions(f); 170s assert(length(a) == 2) 170s assert(~isempty(strfind(a{1}, 'positive'))) 170s assert(~isempty(strfind(a{2}, 'real'))) 170s ***** test 170s % dict output 170s syms x positive 170s syms y real 170s syms z 170s f = x*y*z; 170s [v, d] = assumptions(f, 'dict'); 170s assert(length(v) == 2) 170s assert(iscell(v)) 170s assert(isa(v{1}, 'sym')) 170s assert(isa(v{2}, 'sym')) 170s assert(length(d) == 2) 170s assert(iscell(d)) 170s assert(isstruct(d{1})) 170s assert(isstruct(d{2})) 170s ***** test 170s %% assumptions on just the vars in an expression 170s clear variables % for matlab test script 170s syms x y positive 170s f = 2*x; 170s assert(length(assumptions(f))==1) 170s assert(length(assumptions())==2) 170s ***** test 170s %% assumptions in cell/struct 170s clear variables % for matlab test script 170s syms x y z w positive 170s f = {2*x [1 2 y] {1, {z}}}; 170s assert(length(assumptions())==4) 170s assert(length(assumptions(f))==3) 170s clear x y z w 170s assert(length(assumptions())==3) 170s assert(length(assumptions(f))==3) 170s ***** test 170s % multiple assumptions 170s n = sym('n', 'negative', 'even'); 170s assert (logical (n < 0)) 170s assert (~(logical (n > 0))) 170s assert (~(logical (n == -1))) 170s ***** test 170s % multiple assumptions: eqn neither true nor false 170s n = sym('n', 'negative', 'even'); 170s assert (~isequal (n, sym(true)) && ~isequal (n, sym(false))) 170s ***** test 170s %% TODO: rewrite later with https://github.com/cbm755/octsympy/issues/622 170s a = pycall_sympy__ ('return Symbol("a", real=False)'); 170s assert (strcmp (assumptions (a), {'a: ~real'})) 170s 13 tests, 13 passed, 0 known failure, 0 skipped 170s [inst/digits.m] 170s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/digits.m 170s ***** test 170s orig = digits(32); % to reset later 170s m = digits(64); 170s p = vpa(sym(pi)); 170s assert (abs (double (sin(p))) < 1e-64) 170s n = digits(m); 170s assert (n == 64) 170s p = vpa(sym(pi)); 170s assert (abs (double (sin(p))) < 1e-32) 170s assert (abs (double (sin(p))) > 1e-40) 170s digits(orig) 171s 1 test, 1 passed, 0 known failure, 0 skipped 171s [inst/heaviside.m] 171s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/heaviside.m 171s ***** assert (heaviside (0) == 0.5) 171s ***** assert (isnan (heaviside (nan))) 171s ***** assert (isequal (heaviside ([-inf -eps 0 eps inf]), [0 0 0.5 1 1])) 171s ***** assert (isequaln (heaviside ([-1 1 nan]), [0 1 nan])) 171s ***** assert (heaviside (0, 1) == 1) 171s ***** error heaviside (1i) 171s ***** assert (isa (heaviside (single (0)), 'single')) 171s 7 tests, 7 passed, 0 known failure, 0 skipped 171s [inst/fibonacci.m] 171s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/fibonacci.m 171s ***** assert (isequal ( fibonacci (sym(0)), 0)) 171s ***** assert (isequal ( fibonacci (sym(14)), sym(377))) 171s ***** assert (isequal ( fibonacci (14), 377)) 171s ***** test syms x 171s assert (isequal (fibonacci (5,x), x^4 + 3*x^2 + 1)) 171s 4 tests, 4 passed, 0 known failure, 0 skipped 171s [inst/vpa.m] 171s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/vpa.m 171s ***** test 171s a = vpa(0, 4); 171s b = double(a); 171s assert(b == 0) 171s ***** test 171s a = vpa(pi, 4); 171s b = sin(a); 171s assert(abs(double(b)) < 1e-4) 171s ***** test 171s % vpa from double is ok, doesn't warn (c.f., sym(2.3)) 171s a = vpa(2.3); 171s assert(true) 171s ***** test 171s % vpa from double not more than 16 digits 171s a = vpa(sqrt(pi), 32); 171s b = sin(a^2); 171s assert(abs(double(b)) > 1e-20) 171s assert(abs(double(b)) < 1e-15) 171s ***** test 171s a = vpa(sym(pi), 32); 171s b = sin(a); 171s assert(abs(double(b)) < 1e-30) 171s ***** test 171s a = vpa(sym(pi), 256); 171s b = sin(a); 171s assert(abs(double(b)) < 1e-256) 171s ***** test 171s % pi str 171s a = vpa('pi', 32); 171s b = sin(a); 171s assert(abs(double(b)) < 1e-32) 171s ***** test 171s % pi str 171s a = vpa('pi', 32); 171s b = vpa(sym('pi'), 32); 171s assert (double (a - b) == 0) 171s ***** test 171s spi = sym(pi); 171s a = vpa(spi, 10); 171s b = double(a); 171s assert(~isAlways(spi == a)) 171s ***** test 171s % matrix of sym 171s a = [sym(pi) 0; sym(1)/2 1]; 171s b = [pi 0; 0.5 1]; 171s c = vpa(a, 6); 171s assert(max(max(abs(double(c)-b))) < 1e-6) 171s ***** test 171s % matrix of double 171s b = [pi 0; 0.5 1]; 171s c = vpa(b, 6); 171s assert(max(max(abs(double(c)-b))) < 1e-6) 171s ***** test 171s % integer type 171s a = vpa(int32(6), 64); 171s b = vpa(6, 64); 171s assert (isequal (a, b)) 171s ***** test 171s % matrix of int 171s b = int32([pi 0; 6.25 1]); 171s c = vpa(b, 6); 171s assert (isequal (double(c), [3 0; 6 1])) 171s ***** test 171s % can pass pi directly to vpa 171s a = vpa(sym(pi), 128); 171s b = vpa(pi, 128); 171s assert (isequal (a, b)) 172s ***** test 172s % if sym does sth special for e so should vpa 172s a = vpa(sym(exp(1)), 64); 172s b = vpa(exp(1), 64); 172s assert (isequal (a, b)) 172s ***** test 172s % can pass pi directly to vpa, even in array 172s a = vpa(sym([2 pi]), 128); 172s b = vpa([2 pi], 128); 172s assert (isequal (a, b)) 172s ***** test 172s % can pass i directly to vpa 172s a = vpa(sym(i)); 172s b = vpa(i); 172s ***** test 172s % 'i' and 'I' just make vars 172s a = vpa(sym(1i)); 172s b = vpa('i'); 172s c = vpa('I'); 172s assert (~isequal (a, b)) 172s assert (~isequal (a, c)) 172s ***** test 172s % '1i' and '1j' strings 172s a = vpa(sym(1i)); 172s b = vpa('1i'); 172s c = vpa('1j'); 172s assert (isequal (a, b)) 172s assert (isequal (a, c)) 172s ***** test 172s % Issue #868, precision loss on '0.33j' 172s a = vpa('0.33j', 40); 172s b = vpa('0.33i', 40); 172s assert (double (abs (imag (a)*100/33) - 1) < 1e-39) 172s assert (isequal (a, b)) 172s ***** test 172s % inf/-inf do not become symbol('inf') 172s S = {'oo', '-oo', 'inf', 'Inf', '-inf', '+inf'}; 172s for j = 1:length(S) 172s a = vpa(S{j}); 172s b = vpa(sym(S{j})); 172s assert (isequal (a, b)) 172s end 172s ***** test 172s a = vpa('2.3', 20); 172s s = strtrim(disp(a, 'flat')); 172s assert (strcmp (s, '2.3000000000000000000')) 172s ***** test 172s % these should *not* be the same 172s a = vpa(2.3, 40); 172s b = vpa('2.3', 40); 172s sa = sympy (a); 172s sb = sympy (b); 172s assert (~isequal (a, b)) 172s assert (abs(double(a - b)) > 1e-20) 172s assert (abs(double(a - b)) < 1e-15) 172s assert (~strcmp(sa, sb)) 172s ***** test 172s % these should *not* be the same 172s x = vpa('1/3', 32); 172s y = vpa(sym(1)/3, 32); 172s z = vpa(1/3, 32); 172s assert (isequal (x, y)) 172s assert (~isequal (x, z)) 172s ***** test 172s % big integers 172s a = int64(12345678); 172s a = a*a; 172s b = vpa(a); 172s c = vpa('152415765279684'); 172s assert (isequal (b, c)) 172s ***** test 172s % big integers (workaround poor num2str, works in 4.0?) 172s a = int64(1234567891); a = a*a; 172s b = vpa(a); 172s c = vpa('1524157877488187881'); 172s assert (isequal (b, c)) 172s ***** warning vpa ('sqrt(2.0)'); 172s ***** warning 172s if (pycall_sympy__ ('return Version(spver) > Version("1.4")')) 172s a = vpa('2**0.5'); 172s b = vpa(sqrt(sym(2))); 172s assert (isequal (a, b)) 172s else 172s warning('dangerous') % fake it until we drop 1.4 172s end 172s ***** test 172s a = vpa('2.3e1'); 172s b = vpa(' 2.3e+1 '); 172s assert (isequal (a, b)) 172s a = vpa('21e-1'); 172s b = vpa('2.1'); 172s assert (isequal (a, b)) 172s ***** test 172s % Issue #859, operations on immutable matrices 172s x = vpa (sym ([1 2])); 172s % If vpa no longer makes an ImmutableDenseMatrix, 172s % may need to adjust or remove this test. 172s assert (~ isempty (strfind (sympy (x), 'Immutable'))) 172s y = sin(x); 172s y2 = [sin(vpa(sym(1))) sin(vpa(sym(2)))]; 172s assert (isequal (y, y2)) 172s 30 tests, 30 passed, 0 known failure, 0 skipped 172s [inst/vpasolve.m] 172s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/vpasolve.m 172s ***** test 172s syms x 172s vpi = vpa(sym(pi), 64); 172s e = tan(x/4) == 1; 172s q = vpasolve(e, x, 3.0); 172s w = q - vpi ; 172s assert (double(w) < 1e-30) 173s ***** test 173s syms x 173s vpi = vpa(sym(pi), 64); 173s e = tan(x/4) == 1; 173s q = vpasolve(e, x); 173s w = q - vpi; 173s assert (double(w) < 1e-30) 173s q = vpasolve(e); 173s w = q - vpi; 173s assert (double(w) < 1e-30) 173s ***** test 173s % very accurate pi 173s syms x 173s e = tan(x/4) == 1; 173s m = digits(256); 173s q = vpasolve(e, x, 3); 173s assert (double(abs(sin(q))) < 1e-256) 173s digits(m); 173s ***** test 173s % very accurate sqrt 2 173s syms x 173s e = x*x == 2; 173s m = digits(256); 173s q = vpasolve(e, x, 1.5); 173s assert (double(abs(q*q - 2)) < 1e-256) 173s digits(m); 173s ***** test 173s % very accurate sqrt pi 173s % (used to fail https://github.com/sympy/sympy/issues/8564) 173s syms x 173s e = x*x == sym(pi); 173s m = digits(256); 173s q = vpasolve(e, x, 3); 173s assert (double(abs(sin(q*q))) < 1e-256) 173s digits(m); 173s ***** test 173s syms x 173s r = vpasolve(x^2 + 2 == 0, x, 1i); 173s assert (double (imag(r)^2 - 2), 0, 1e-32) 173s assert (double (real(r)^2), 0, 1e-32) 173s r = vpasolve(x^2 + 2 == 0, x, -3i + 5); 173s assert (double (imag(r)^2 - 2), 0, 1e-32) 173s assert (double (real(r)^2), 0, 1e-32) 173s ***** test 173s % system 173s syms x y 173s f = 3*x^2 - 2*y^2 - 1; 173s g = x^2 - 2*x + y^2 + 2*y - 8; 173s r = vpasolve([f; g], [x; y], sym([-1; 1])); 173s assert (isa (r, 'sym')) 173s assert (numel (r) == 2) 174s ***** test 174s % system, double guess 174s syms x y 174s f = 3*x^2 - 2*y^2 - 1; 174s g = x^2 - 2*x + y^2 + 2*y - 8; 174s r = vpasolve([f; g], [x; y], [-1.1 1.2]); 174s ***** test 174s % system, double guess 174s syms x y 174s f = 3*x^2 - 2*y^2 - 1; 174s g = x^2 - 2*x + y^2 + 2*y - 8; 174s r1 = vpasolve([f; g], [x; y], [-1.1]); 174s r2 = vpasolve([f; g], [x; y], [-1.1 -1.1]); 174s assert (isequal (r1, r2)) 174s ***** test 174s % system, more eqns than unknowns 174s syms x y 174s eqns = [x^3 - x - y == 0; y*exp(x) == 16; log(y) + x == 4*log(sym(2))]; 174s r = vpasolve (eqns, [x; y], [1; 1]); 174s A = subs (lhs (eqns), [x; y], r); 174s err = A - [0; 16; 4*log(sym(2))]; 174s assert (double (err), zeros (size (err)), 1e-31) 174s :7: SymPyDeprecationWarning: 174s 174s non-Expr objects in a Matrix is deprecated. Matrix represents 174s a mathematical matrix. To represent a container of non-numeric 174s entities, Use a list of lists, TableForm, NumPy array, or some 174s other data structure instead. 174s 174s See https://docs.sympy.org/latest/explanation/active-deprecations.html#deprecated-non-expr-in-matrix 174s for details. 174s 174s This has been deprecated since SymPy version 1.9. It 174s will be removed in a future version of SymPy. 174s 175s 10 tests, 10 passed, 0 known failure, 0 skipped 175s [inst/@double/dilog.m] 175s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@double/dilog.m 175s ***** test 175s x = 1.1; 175s y = sym(11)/10; 175s A = dilog (x); 175s B = double (dilog (y)); 175s assert (A, B, -4*eps); 175s ***** test 175s y = [2 2 sym(pi); exp(sym(1)) 5 6]; 175s x = double (y); 175s A = dilog (x); 175s B = double (dilog (y)); 175s assert (A, B, -eps); 175s ***** test 175s % maple: 175s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 175s % > for a in A do evalf(dilog(a)) end do; 175s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 175s A = [ -0.59248494924959145800 - 1.5760154034463234224*1i 175s -1.0549087538833908441 - 3.8759788000863368495*1i 175s -12.192421669033171348 175s -2.9195729380904939394 - 3.9540920181102973073*1i 175s 1.6459519160623984119 - 0.00032335296277550987686*1i 175s -1.5445800511775466879 + 9.4256034277816069684*1i ]; 175s B = dilog (x); 175s assert (A, B, -eps) 175s ***** xtest 175s % https://github.com/fredrik-johansson/mpmath/issues/473 175s assert (isinf (dilog (inf))) 175s !!!!! known failure 175s assert (isinf (dilog (inf))) failed 175s ***** assert (isnan (dilog (-inf))) 175s 5 tests, 4 passed, 1 known failure, 0 skipped 175s [inst/@double/chebyshevU.m] 175s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@double/chebyshevU.m 175s ***** error chebyshevU (1) 175s ***** error chebyshevU (1, 2, 3) 175s ***** error chebyshevU ([1 2], [1 2 3]) 175s ***** error chebyshevU ([1 2], [1; 2]) 175s ***** test 175s y = sym(11)/10; 175s t = sym(2); 175s x = 1.1; 175s s = 2; 175s A = chebyshevU (s, x); 175s B = double (chebyshevU (t, y)); 175s assert (A, B, -2*eps); 175s ***** test 175s % maple 175s A = 1.661891066691338157; 175s B = chebyshevU (18.1, 0.9); 175s assert (A, B, -3*eps) 175s ***** test 175s % maple, complex inputs> 175s % ChebyshevU(12.1+3.1*I, 0.5+0.2*I); 175s A = 1.046959313670290818 - 0.03386773634958834846*1i; 175s B = chebyshevU (12.1+3.1*i, 0.5+0.2i); 175s assert (A, B, -3*eps); 175s ***** test 175s % maple, matrix inputs 175s A = [2.2543638828875776000 -1.3872651600553574400]; 175s B = chebyshevU ([16 17], [0.9 0.8]); 175s assert (A, B, -10*eps); 175s ***** test 175s % x matrix, s scalar 175s y = [1 2 sym(pi); exp(sym(1)) 5 6]; 175s t = sym(2); 175s x = double (y); 175s s = 2; 175s A = chebyshevU (s, x); 175s B = double (chebyshevU (t, y)); 175s assert (A, B, -eps); 176s ***** test 176s % s matrix, x scalar 176s t = [1 2 sym(pi); exp(sym(1)) 5 6]; 176s y = sym(2); 176s s = double (t); 176s x = 2; 176s A = chebyshevU (s, x); 176s B = double (chebyshevU (t, y)); 176s assert (A, B, -2*eps); 176s ***** xtest 176s % https://github.com/fredrik-johansson/mpmath/issues/469 176s assert (chebyshevU (4, inf), inf) 176s assert (chebyshevU (4, -inf), inf) 176s assert (chebyshevU (3, inf), inf) 176s assert (chebyshevU (3, -inf), -inf) 176s !!!!! known failure 176s ASSERT errors for: assert (chebyshevU (4, inf),inf) 176s 176s Location | Observed | Expected | Reason 176s () 5 Inf 'Inf' mismatch 176s 11 tests, 10 passed, 1 known failure, 0 skipped 176s [inst/@double/adjoint.m] 176s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@double/adjoint.m 176s ***** test 176s M = [1 2; 3 4]; 176s A = [4 -2; -3 1]; 176s assert (isequal (adjoint (M), A)); 176s ***** test 176s assert (isequal (adjoint (42), 1)); 176s 2 tests, 2 passed, 0 known failure, 0 skipped 176s [inst/@double/harmonic.m] 176s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@double/harmonic.m 176s ***** error harmonic (1, 2) 176s ***** test 176s x = 1.1; 176s y = sym(11)/10; 176s A = harmonic (x); 176s B = double (harmonic (y)); 176s assert (A, B, -4*eps); 176s ***** test 176s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 176s x = double (y); 176s A = harmonic (x); 176s B = double (harmonic (y)); 176s assert (A, B, -4*eps); 177s 3 tests, 3 passed, 0 known failure, 0 skipped 177s [inst/@double/sinint.m] 177s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@double/sinint.m 177s ***** error sinint (1, 2) 177s ***** test 177s x = 1.1; 177s y = sym(11)/10; 177s A = sinint (x); 177s B = double (sinint (y)); 177s assert (A, B, -4*eps); 177s ***** test 177s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 177s x = double (y); 177s A = sinint (x); 177s B = double (sinint (y)); 177s assert (A, B, -4*eps); 177s ***** assert (sinint (0), 0) 177s ***** assert (sinint (inf), pi/2) 177s ***** assert (sinint (-inf), -pi/2) 177s ***** assert (sinint (1), 0.9460830703671830149414, -2*eps) 177s ***** assert (sinint (-1), -0.9460830703671830149414, -2*eps) 177s ***** assert (sinint (pi), 1.851937051982466170361, -2*eps) 177s ***** assert (sinint (-pi), -1.851937051982466170361, -2*eps) 177s ***** assert (sinint (300), 1.5708810882137495193, -2*eps) 177s ***** assert (sinint (1e4), 1.5708915453859619157, -2*eps) 177s ***** assert (sinint (20i), 1.2807826332028294459e7*1i, -2*eps) 177s ***** test 177s % maple: 177s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 177s % > for a in A do evalf(Si(a)) end do; 177s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 177s A = [ 1.6782404878293681180 + 2.0396845546022061045*1i 177s -18.154174221650281533 + 1.6146414539230479060*1i 177s 1.5622254668890562934 177s 1246.1144901994233444*1i 177s -0.000099999999944461111128 + 0.99999999833338888972e-6*1i 177s -1.5386156269726011209 - 0.053969388020443786229*1i ]; 177s B = sinint (x); 177s assert (A, B, -eps) 177s 14 tests, 14 passed, 0 known failure, 0 skipped 177s [inst/@double/pochhammer.m] 177s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@double/pochhammer.m 177s ***** error pochhammer (1) 178s ***** error pochhammer (1, 2, 3) 178s ***** error pochhammer ([1 2], [1 2 3]) 178s ***** error pochhammer ([1 2], [1; 2]) 178s ***** test 178s y = sym(11)/10; 178s t = sym(3); 178s x = 1.1; 178s s = 3; 178s A = pochhammer (x, s); 178s B = double (pochhammer (y, t)); 178s assert (A, B, -2*eps); 178s ***** test 178s % maple 178s A = 256.798558090310131720; 178s B = pochhammer (18.1, 1.9); 178s assert (A, B, -20*eps) 178s ***** test 178s % maple, complex inputs> 178s A = 2.67921619474318221972 + 1.96716724764630702653*1i; 178s B = pochhammer (12.1+3.1*i, 0.5+0.2i); 178s assert (A, B, -4*eps); 178s ***** test 178s % maple, matrix inputs 178s A = [5.61467232547723663908 20.6144884613920190965]; 178s B = pochhammer ([0.9 0.8], [3.1 4.2]); 178s assert (A, B, -3*eps); 178s ***** test 178s % x matrix, s scalar 178s y = [1 2 sym(pi); exp(sym(1)) 5 6]; 178s t = sym(2); 178s x = double (y); 178s s = 2; 178s A = pochhammer (s, x); 178s B = double (pochhammer (t, y)); 178s assert (A, B, -3*eps); 178s ***** test 178s % s matrix, x scalar 178s t = [1 2 sym(pi); exp(sym(1)) 5 6]; 178s y = sym(2); 178s s = double (t); 178s x = 2; 178s A = pochhammer (s, x); 178s B = double (pochhammer (t, y)); 178s assert (A, B, -5*eps); 178s 10 tests, 10 passed, 0 known failure, 0 skipped 178s [inst/@double/fresnelc.m] 178s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@double/fresnelc.m 178s ***** error fresnelc (1, 2) 178s ***** test 178s x = 1.1; 178s y = sym(11)/10; 178s A = fresnelc (x); 178s B = double (fresnelc (y)); 178s assert (A, B, -4*eps); 178s ***** test 178s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 178s x = double (y); 178s A = fresnelc (x); 178s B = double (fresnelc (y)); 178s assert (A, B, -4*eps); 179s ***** test 179s % maple: 179s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 179s % > for a in A do evalf(FresnelC(a)) end do; 179s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 179s A = [ 16.087871374125480424 - 36.225687992881650217*1i 179s 0.47688568479874574722e12 + 0.12213736710985573216e13*1i 179s 0.49999989867881789756 179s 0.49989869420551572361*1i 179s -0.000099999999999999997535 + 0.99999999999999987665e-6*1i 179s 0.15391592966931193100e26 - 0.75738824160998910388e24*1i ]; 179s B = fresnelc (x); 179s assert (A, B, -eps) 179s ***** assert (fresnelc (inf), 0.5) 179s ***** assert (fresnelc (-inf), -0.5) 179s 6 tests, 6 passed, 0 known failure, 0 skipped 179s [inst/@double/logint.m] 179s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@double/logint.m 179s ***** error logint (1, 2) 179s ***** test 179s x = 1.1; 179s y = sym(11)/10; 179s A = logint (x); 179s B = double (logint (y)); 179s assert (A, B, -4*eps); 179s ***** test 179s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 179s x = double (y); 179s A = logint (x); 179s B = double (logint (y)); 179s assert (A, B, -4*eps); 179s ***** test 179s % maple: 179s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 179s % > for a in A do evalf(Li(a)) end do; 179s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 179s A = [ 1.3876787420229375511 + 2.5087546988592328752*1i 179s 1.6987684473874802274 + 4.5936366057115204667*1i 179s 30.126141584079629926 179s 3.4936715673748995398 + 5.5260023797127391973*1i 179s 0.90264689772681592152e-5 + 3.1415953634267361942*1i 179s -2.3996350854560916779 - 7.6971739096353664559*1i ]; 179s B = logint (x); 179s assert (A, B, -eps) 179s ***** assert (logint (inf), inf) 179s ***** assert (isnan (logint (-inf))) 179s 6 tests, 6 passed, 0 known failure, 0 skipped 179s [inst/@double/fresnels.m] 179s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@double/fresnels.m 179s ***** error fresnels (1, 2) 179s ***** test 179s x = 1.1; 179s y = sym(11)/10; 179s A = fresnels (x); 179s B = double (fresnels (y)); 179s assert (A, B, -4*eps); 179s ***** test 179s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 179s x = double (y); 179s A = fresnels (x); 179s B = double (fresnels (y)); 179s assert (A, B, -4*eps); 180s ***** test 180s % maple: 180s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 180s % > for a in A do evalf(FresnelS(a)) end do; 180s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 180s A = [ 36.725464883991438430 + 15.587751104404587334*1i 180s 0.12213736710980573217e13 - 0.47688568479924574726e12*1i 180s 0.49681690114783755327 180s -0.46816997858488224040*1i 180s -0.52344169596561937423e-12 + 0.15707439669173367248e-13*1i 180s 0.75738824160998910399e24 + 0.15391592966931193100e26*1i ]; 180s B = fresnels (x); 180s assert (A, B, -eps) 180s ***** assert (fresnels (inf), 0.5) 180s ***** assert (fresnels (-inf), -0.5) 180s 6 tests, 6 passed, 0 known failure, 0 skipped 180s [inst/@double/coshint.m] 180s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@double/coshint.m 180s ***** error coshint (1, 2) 180s ***** test 180s x = 1.1; 180s y = sym(11)/10; 180s A = coshint (x); 180s B = double (coshint (y)); 180s assert (A, B, -4*eps); 180s ***** test 180s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 180s x = double (y); 180s A = coshint (x); 180s B = double (coshint (y)); 180s assert (A, B, -4*eps); 180s ***** test 180s % maple: 180s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 180s % > for a in A do evalf(Chi(a)) end do; 180s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 180s A = [ 0.58447599687824767874 + 1.8682915044330306402*1i 180s -0.63131069034703116988 + 1.8986171211850702957*1i 180s 0.13577763724269399110e42 180s -0.045456433004455372635 + 1.5707963267948966192*1i 180s -8.6330747070747332203 + 3.1315929868531280002*1i 180s 0.74701205140887966531e7 + 0.10381444259644068585e8*1i ]; 180s B = coshint (x); 180s assert (A, B, -eps) 180s ***** assert (coshint (inf), inf) 180s ***** assert (isinf (coshint (-inf))) 180s ***** assert (imag (coshint (-inf)), pi) 180s 7 tests, 7 passed, 0 known failure, 0 skipped 180s [inst/@double/cosint.m] 180s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@double/cosint.m 180s ***** error cosint (1, 2) 180s ***** test 180s x = 1.1; 180s y = sym(11)/10; 180s A = cosint (x); 180s B = double (cosint (y)); 180s assert (A, B, -4*eps); 180s ***** test 180s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 180s x = double (y); 180s A = cosint (x); 180s B = double (cosint (y)); 180s assert (A, B, -4*eps); 181s ***** test 181s % maple: 181s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 181s % > for a in A do evalf(Ci(a)) end do; 181s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 181s A = [ 2.0302963932917216378 - 0.15190715517585688438*1i 181s 1.6153896382910774851 + 19.725754055338264980*1i 181s -0.0051488251426104921444 181s 1246.1144860424544147 + 1.5707963267948966192*1i 181s -8.6330747120742332203 + 3.1315929869531280002*1i 181s 0.069822228467306149311 - 3.1184744625477294643*1i ]; 181s B = cosint (x); 181s assert (A, B, -eps) 181s ***** xtest 181s % is it nan or -inf? SymPy says zoo. 181s assert (isnan (cosint (0))) 181s !!!!! known failure 181s assert (isnan (cosint (0))) failed 181s ***** assert (cosint (inf), 0) 181s ***** assert (cosint (-inf), pi*1i, -eps) 181s ***** assert (cosint (1), 0.33740392290096813466, -eps) 181s ***** assert (cosint (-1), 0.33740392290096813466 + pi*1i, -eps) 181s ***** assert (cosint (pi), 0.073667912046425485978, -5*eps) 181s ***** assert (cosint (-pi), 0.07366791204642548597821 + pi*1i, -5*eps) 181s ***** assert (cosint (300), -3.3321999185921117800e-3, -2*eps) 181s ***** assert (cosint (1e4), -3.0551916724485212665e-5, -2*eps) 181s ***** assert (cosint (1 + 1i), 0.8821721805559363250506+0.2872491335199559395273*1i, eps) 181s ***** assert (cosint (1i), 0.8378669409802082408947 + pi/2*1i, -2*eps) 181s ***** test 181s % compare both sinint and cosint to expint 181s x = pi; 181s C1 = cosint (x); 181s S1 = sinint (x); 181s R = expint (1i*x); 181s C2 = -real (R); 181s S2 = imag (R) + pi/2; 181s assert (C1, C2, -100*eps); 181s assert (S1, S2, -100*eps); 181s 16 tests, 15 passed, 1 known failure, 0 skipped 181s [inst/@double/chebyshevT.m] 181s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@double/chebyshevT.m 181s ***** error chebyshevT (1) 181s ***** error chebyshevT (1, 2, 3) 181s ***** error chebyshevT ([1 2], [1 2 3]) 181s ***** error chebyshevT ([1 2], [1; 2]) 181s ***** test 181s y = sym(11)/10; 181s t = sym(2); 181s x = 1.1; 181s s = 2; 181s A = chebyshevT (s, x); 181s B = double (chebyshevT (t, y)); 181s assert (A, B, -2*eps); 181s ***** test 181s % maple 181s A = -0.304681164165948269030369; 181s B = chebyshevT (18.1, 0.9); 181s assert (A, B, -10*eps) 181s ***** test 181s % maple, complex inputs 181s % ChebyshevT(12.1+3.1*I, 0.5+0.2*I); 181s A = 0.637229289490379273451 - 0.475324703778957991318*1i; 181s B = chebyshevT (12.1+3.1*i, 0.5+0.2i); 181s assert (A, B, -5*eps); 181s ***** test 181s % maple, matrix inputs 181s A = [0.59523064198266880000 0.57727442996887552000]; 181s B = chebyshevT ([16 17], [0.9 0.7]); 181s assert (A, B, -10*eps); 181s ***** test 181s % x matrix, s scalar 181s y = [1 2 sym(pi); exp(sym(1)) 5 6]; 181s t = sym(2); 181s x = double (y); 181s s = 2; 181s A = chebyshevT (s, x); 181s B = double (chebyshevT (t, y)); 181s assert (A, B, -eps); 181s ***** test 181s % s matrix, x scalar 181s t = [1 2 sym(pi); exp(sym(1)) 5 6]; 181s y = sym(2); 181s s = double (t); 181s x = 2; 181s A = chebyshevT (s, x); 181s B = double (chebyshevT (t, y)); 181s assert (A, B, -eps); 182s ***** xtest 182s % https://github.com/fredrik-johansson/mpmath/issues/469 182s assert (chebyshevT (4, inf), inf) 182s assert (chebyshevT (4, -inf), inf) 182s assert (chebyshevT (3, inf), inf) 182s assert (chebyshevT (3, -inf), -inf) 182s !!!!! known failure 182s ASSERT errors for: assert (chebyshevT (4, inf),inf) 182s 182s Location | Observed | Expected | Reason 182s () 1 Inf 'Inf' mismatch 182s 11 tests, 10 passed, 1 known failure, 0 skipped 182s [inst/@double/euler.m] 182s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@double/euler.m 182s ***** error euler (1, 2, 3) 182s ***** error euler ([1 2], [1 2 3]) 182s ***** error euler ([1 2], [1; 2]) 182s ***** assert (isequal (euler (0), 1)) 182s ***** assert (isequal (euler (1), 0)) 182s ***** assert (isequal (euler (10), -50521)) 182s ***** test 182s n = sym(88); 182s m = 88; 182s A = euler (m); 182s B = double (euler (n)); 182s assert (A, B, -eps); 182s ***** test 182s m = [0 1; 2 4]; 182s n = sym(m); 182s A = euler (m); 182s B = double (euler (n)); 182s assert (isequal (A, B)); 182s ***** test 182s y = sym(19)/10; 182s n = sym(2); 182s x = 1.9; 182s m = 2; 182s A = euler (m, x); 182s B = double (euler (n, y)); 182s assert (A, B, -eps); 182s ***** test 182s % correct behaviour at floating point infinity 182s assert (isequal (euler (4, inf), inf)) 182s assert (isequal (euler (4, -inf), inf)) 182s assert (isequal (euler (3, inf), inf)) 182s assert (isequal (euler (3, -inf), -inf)) 182s ***** test 182s assert (isnan (euler(3, nan))) 182s assert (isnumeric (euler(3, nan))) 182s ***** test 182s % maple, complex input 182s A = 113.33970046079423204 - 46.991080726974811540i; 182s B = euler(7, 2.12345 + 1.23i); 182s assert (A, B, -eps); 182s ***** test 182s % maple, complex input, large m, small x 182s A = 0.18034673393294025238e276 + 0.27756266681280689172e276*i; 182s B = euler (200, 0.123+0.234i); 182s assert (A, B, -eps); 182s ***** test 182s % x matrix, m scalar 182s y = [1 2 sym(pi); exp(sym(1)) 5 6]; 182s n = sym(2); 182s x = double (y); 182s m = 2; 182s A = euler (m, x); 182s B = double (euler (n, y)); 182s assert (A, B, -eps); 182s ***** test 182s % m matrix, x scalar 182s m = [1 2 3; 4 5 6]; 182s n = sym(m); 182s y = sym(21)/10; 182s x = 2.1; 182s A = euler (m, x); 182s B = double (euler (n, y)); 182s assert (A, B, -3*eps); 183s 15 tests, 15 passed, 0 known failure, 0 skipped 183s [inst/@double/zeta.m] 183s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@double/zeta.m 183s ***** error zeta (1, 2, 3) 183s ***** assert (isnan (zeta (nan))) 183s ***** test 183s x = 1.1; 183s y = sym(11)/10; 183s A = zeta (x); 183s B = double (zeta (y)); 183s assert (A, B, -4*eps); 183s ***** test 183s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 183s x = double (y); 183s A = zeta (x); 183s B = double (zeta (y)); 183s assert (A, B, -4*eps); 183s ***** test 183s % maple: 183s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 183s % > for a in A do evalf(Zeta(a)) end do; 183s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 183s A = [ 0.59816556976238173670 - 0.35185474521784529050*1i 183s 0.21425967567391921717 + 0.52503846985036050707*1i 183s 1.0 183s 1.7564685929749629608 - 0.10151198543617116894*1i 183s -0.49990811617645824900 - 0.91873792757763831501e-6*1i 183s 175.09070083717643866 - 71.512541417467273425*1i ]; 183s B = zeta (x); 183s assert (A, B, -eps) 183s ***** assert (zeta (inf), 1.0) 183s 6 tests, 6 passed, 0 known failure, 0 skipped 183s [inst/@double/sinhint.m] 183s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@double/sinhint.m 183s ***** error sinhint (1, 2) 183s ***** test 183s x = 1.1; 183s y = sym(11)/10; 183s A = sinhint (x); 183s B = double (sinhint (y)); 183s assert (A, B, -4*eps); 183s ***** test 183s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 183s x = double (y); 183s A = sinhint (x); 183s B = double (sinhint (y)); 183s assert (A, B, -4*eps); 184s ***** test 184s % maple: 184s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 184s % > for a in A do evalf(Shi(a)) end do; 184s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 184s A = [ 0.45769171128668800567 + 1.8332099215048436239*1i 184s 0.60888490416819746440 + 1.2482232175376056201*1i 184s 0.13577763724269399110e42 184s 1.6583475942188740493*1i 184s -0.00010000000005553888891 + 0.10000000016666111119e-5*1i 184s -0.74701205140887967022e7 - 0.10381447401236722090e8*1i ]; 184s B = sinhint (x); 184s assert (A, B, -eps) 184s ***** assert (sinhint (inf), inf) 184s ***** assert (sinhint (-inf), -inf) 184s 6 tests, 6 passed, 0 known failure, 0 skipped 184s [inst/@double/bernoulli.m] 184s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@double/bernoulli.m 184s ***** error bernoulli (1, 2, 3) 184s ***** error bernoulli ([1 2], [1 2 3]) 184s ***** error bernoulli ([1 2], [1; 2]) 184s ***** assert (bernoulli (0), 1) 184s ***** assert (bernoulli (3), 0) 184s ***** test 184s % two different definitions in literature 184s assert (abs (bernoulli (1)), 0.5, -eps) 184s ***** xtest 184s % we want to use B_1 = 1/2, possible with a version-specific filter 184s assert (bernoulli (1), 0.5, -eps) 184s !!!!! known failure 184s ASSERT errors for: assert (bernoulli (1),0.5,-eps) 184s 184s Location | Observed | Expected | Reason 184s () -0.5 0.5 Rel err 2 exceeds tol 2.2204e-16 by 2 184s ***** test 184s n = sym(88); 184s m = 88; 184s A = bernoulli (m); 184s B = double (bernoulli (n)); 184s assert (A, B, -eps); 184s ***** test 184s m = [0 2; 3 4]; 184s n = sym(m); 184s A = bernoulli (m); 184s B = double (bernoulli (n)); 184s assert (isequal (A, B)); 184s ***** test 184s y = sym(19)/10; 184s n = sym(2); 184s x = 1.9; 184s m = 2; 184s A = bernoulli (m, x); 184s B = double (bernoulli (n, y)); 184s assert (A, B, -eps); 184s ***** test 184s assert (isequal (bernoulli (4, inf), inf)) 184s assert (isequal (bernoulli (4, -inf), inf)) 184s ***** xtest 184s % still broken? 184s assert (isequal (bernoulli (3, inf), inf)) 184s assert (isequal (bernoulli (3, -inf), -inf)) 184s ***** test 184s assert (isnan (bernoulli(3, nan))) 184s assert (isnumeric (bernoulli(3, nan))) 184s ***** test 184s % maple, complex input 184s A = 34.21957245745810513 - 130.0046256649829101i; 184s B = bernoulli(7, 2.123 + 1.234i); 184s assert (A, B, -5*eps); 184s ***** test 184s % x matrix, m scalar 184s y = [1 2 sym(pi); exp(sym(1)) 5 6]; 184s n = sym(2); 184s x = double (y); 184s m = 2; 184s A = bernoulli (m, x); 184s B = double (bernoulli (n, y)); 184s assert (A, B, -eps); 184s ***** test 184s % m matrix, x scalar 184s m = [1 2 3; 4 5 6]; 184s n = sym(m); 184s y = sym(21)/10; 184s x = 2.1; 184s A = bernoulli (m, x); 184s B = double (bernoulli (n, y)); 184s assert (A, B, -3*eps); 185s 16 tests, 15 passed, 1 known failure, 0 skipped 185s [inst/@double/polylog.m] 185s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@double/polylog.m 185s ***** error polylog (1) 185s ***** error polylog (1, 2, 3) 185s ***** error polylog ([1 2], [1 2 3]) 185s ***** error polylog ([1 2], [1; 2]) 185s ***** test 185s y = sym(11)/10; 185s t = sym(2); 185s x = 1.1; 185s s = 2; 185s A = polylog (s, x); 185s B = double (polylog (t, y)); 185s assert (A, B, -eps); 185s ***** test 185s % maple 185s A = 2.3201804233130983964 - 3.4513922952232026614*1i; 185s B = polylog (2, 3); 185s assert (A, B, -eps) 185s ***** test 185s % maple, complex inputs 185s A = -11.381456201167411758 + 6.2696695219721651947*1i; 185s B = polylog (1+2i, 3+4i); 185s assert (A, B, -eps); 185s ***** test 185s % maple, matrix inputs 185s A1 = 0.47961557317612748431 - 0.52788287823025778869*1i; 185s A2 = -0.0049750526563452645369 - 0.024579343612396884851*1i; 185s B = polylog ([-1-2i -3], [30+40i 40i]); 185s assert ([A1 A2], B, -eps); 185s ***** test 185s % x matrix, s scalar 185s y = [1 2 sym(pi); exp(sym(1)) 5 6]; 185s t = sym(2); 185s x = double (y); 185s s = 2; 185s A = polylog (s, x); 185s B = double (polylog (t, y)); 185s assert (A, B, -eps); 185s ***** test 185s % s matrix, x scalar 185s t = [1 2 sym(pi); exp(sym(1)) 5 6]; 185s y = sym(2); 185s s = double (t); 185s x = 2; 185s A = polylog (s, x); 185s B = double (polylog (t, y)); 185s assert (A, B, -eps); 186s 10 tests, 10 passed, 0 known failure, 0 skipped 186s [inst/dirac.m] 186s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/dirac.m 186s ***** assert (isinf (dirac (0))) 186s ***** assert (dirac (1) == 0) 186s ***** assert (isnan (dirac (nan))) 186s ***** assert (isequaln (dirac ([-1 1 0 eps inf -inf nan]), [0 0 inf 0 0 0 nan])) 186s ***** error dirac (1i) 186s ***** assert (isa (dirac (single (0)), 'single')) 186s 6 tests, 6 passed, 0 known failure, 0 skipped 186s [inst/findsymbols.m] 186s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/findsymbols.m 186s ***** test 186s syms x b y n a arlo 186s z = a*x + b*pi*sin (n) + exp (y) + exp (sym (1)) + arlo; 186s s = findsymbols (z); 186s assert (isequal ([s{:}], [a,arlo,b,n,x,y])) 186s ***** test 186s syms x 186s s = findsymbols (x); 186s assert (isequal (s{1}, x)) 186s ***** test 186s syms z x y a 186s s = findsymbols ([x y; 1 a]); 186s assert (isequal ([s{:}], [a x y])) 186s ***** assert (isempty (findsymbols (sym (1)))) 186s ***** assert (isempty (findsymbols (sym ([1 2])))) 186s ***** assert (isempty (findsymbols (sym (nan)))) 186s ***** assert (isempty (findsymbols (sym (inf)))) 186s ***** assert (isempty (findsymbols (exp (sym (2))))) 186s ***** test 186s % empty sym for findsymbols, findsym, and symvar 186s assert (isempty (findsymbols (sym([])))) 186s assert (isempty (findsym (sym([])))) 186s assert (isempty (symvar (sym([])))) 186s ***** test 186s % diff. assumptions make diff. symbols 186s x1 = sym('x'); 186s x2 = sym('x', 'positive'); 186s f = x1*x2; 186s assert (length (findsymbols (f)) == 2) 186s ***** test 186s % symfun or sym 186s syms x f(y) 186s a = f*x; 186s b = f(y)*x; 186s assert (isequal (findsymbols(a), {x y})) 186s assert (isequal (findsymbols(b), {x y})) 186s ***** test 186s % findsymbols on symfun does not find the argnames (unless they 186s % are on the RHS of course, this matches SMT 2014a). 186s syms a x y 186s f(x, y) = a; % const symfun 186s assert (isequal (findsymbols(f), {a})) 186s syms a x y 186s f(x, y) = a*y; 186s assert (isequal (findsymbols(f), {a y})) 187s ***** test 187s % sorts lexigraphically, same as symvar *with single input* 187s % (note symvar does something different with 2 inputs). 187s syms A B a b x y X Y 187s f = A*a*B*b*y*X*Y*x; 187s assert (isequal (findsymbols(f), {A B X Y a b x y})) 187s assert (isequal (symvar(f), [A B X Y a b x y])) 187s ***** test 187s % symbols in matpow 187s syms x y 187s syms n 187s A = [sin(x) 2; y 1]; 187s B = A^n; 187s L = findsymbols(B); 187s assert (isequal (L, {n x y})) 188s ***** test 188s % array of eq 188s syms x y 188s assert (isequal (findsymbols (2 == [2 x y]), {x y})) 189s ***** test 189s % array of ineq 189s syms x y 189s A = [x < 1 2*x < y x >= 2 3 <= x x != y]; 189s assert (isequal (findsymbols (A), {x y})) 189s 16 tests, 16 passed, 0 known failure, 0 skipped 189s [inst/finiteset.m] 189s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/finiteset.m 189s ***** test 189s s1 = finiteset(sym(1), 2, 2); 189s s2 = finiteset(sym(1), 2, 2, 2); 189s assert (isequal (s1, s2)) 189s ***** test 189s s1 = finiteset(sym(0), 1); 189s s2 = finiteset(sym(0), 2, 3); 189s s = finiteset(sym(0), 1, 2, 3); 189s assert (isequal (s1 + s2, s)) 189s ***** test 189s e = finiteset(); 189s s = finiteset(sym(1)); 189s s2 = e + s; 189s assert (isequal (s, s2)) 189s 3 tests, 3 passed, 0 known failure, 0 skipped 189s [inst/@symfun/mtimes.m] 189s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@symfun/mtimes.m 189s ***** test 189s syms x 189s f(x) = x^2; 189s assert( isa(f * f, 'symfun')) 189s assert( isa(f * x, 'symfun')) 189s 1 test, 1 passed, 0 known failure, 0 skipped 189s [inst/@symfun/size.m] 189s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@symfun/size.m 189s ***** test 189s syms x 189s f(x) = x; 189s d = size(f); 189s assert (isequal (d, [1 1])) 189s [n, m] = size(f); 189s assert (isequal ([n m], [1 1])) 189s assert (size(f, 1) == 1) 189s assert (size(f, 2) == 1) 189s ***** test 189s syms x 189s f(x) = [1 x]; 189s d = size(f); 189s assert (isequal (d, [1 1])) 189s [n, m] = size(f); 189s assert (isequal ([n m], [1 1])) 189s assert (size(f, 1) == 1) 189s assert (size(f, 2) == 1) 189s 2 tests, 2 passed, 0 known failure, 0 skipped 189s [inst/@symfun/isequal.m] 189s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@symfun/isequal.m 189s ***** error isequal (symfun('x + 1', x)) 189s ***** test 189s syms x y 189s f(x) = 2*x; 189s g(x) = 2*x; 189s assert (isequal (f, g)) 189s ***** test 189s syms x 189s f(x) = 2*x + 1; 189s g(x) = 2*x + 1; 189s h(x) = 2*x + 1; 189s assert (isequal (f, g, h)) 189s ***** test 189s syms x 189s f(x) = 2*x + 1; 189s g(x) = 2*x + 1; 189s h(x) = 2*x; 189s assert (~ isequal (f, g, h)) 189s ***** test 189s syms x y 189s f(x) = 2*x; 189s g(x, y) = 2*x; 189s assert (~ isequal (f, g)) 190s ***** test 190s syms x y 190s f(x) = symfun(nan, x); 190s g(x) = symfun(nan, x); 190s assert (~ isequal (f, g)) 190s 6 tests, 6 passed, 0 known failure, 0 skipped 190s [inst/@symfun/symfun.m] 190s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@symfun/symfun.m 190s ***** error symfun (1, sym('x'), 3) 190s ***** error symfun ('f', sym('x')) 190s ***** test 190s syms x y 190s syms f(x) 190s assert(isa(f,'symfun')) 190s clear f 190s f(x,y) = sym('f(x,y)'); 190s assert(isa(f,'symfun')) 190s :18: SyntaxWarning: invalid escape sequence '\(' 190s ***** test 190s % symfuns are syms as well 190s syms x 190s f(x) = 2*x; 190s assert (isa (f, 'symfun')) 190s assert (isa (f, 'sym')) 190s assert (isequal (f(3), 6)) 190s assert (isequal (f(sin(x)), 2*sin(x))) 190s ***** test 190s syms x y 190s f = symfun(sym('f(x)'), {x}); 190s assert(isa(f, 'symfun')) 190s f = symfun(sym('f(x,y)'), [x y]); 190s assert(isa(f, 'symfun')) 190s f = symfun(sym('f(x,y)'), {x y}); 190s assert(isa(f, 'symfun')) 190s :18: SyntaxWarning: invalid escape sequence '\(' 190s :18: SyntaxWarning: invalid escape sequence '\(' 190s :18: SyntaxWarning: invalid escape sequence '\(' 190s ***** test 190s % rhs is not sym 190s syms x 190s f = symfun(8, x); 190s assert (isa (f,'symfun')) 190s assert (isequal (f(10), sym(8))) 190s ***** test 190s % vector symfun 190s syms x y 190s F(x,y) = [1; 2*x; y; y*sin(x)]; 190s assert (isa (F, 'symfun')) 190s assert (isa (F, 'sym')) 190s assert (isequal (F(sym(pi)/2,4) , [sym(1); sym(pi); 4; 4] )) 190s ***** test 190s x = sym('x'); 190s y = sym('y'); 190s f(x) = sym('f(x)'); 190s g(x,y) = sym('g(x,y)'); 190s % make sure these don't fail 190s f(1); 190s g(1,2); 190s g(x,y); 190s diff(g, x); 190s diff(g, y); 190s :18: SyntaxWarning: invalid escape sequence '\(' 190s :18: SyntaxWarning: invalid escape sequence '\(' 190s ***** test 190s % defining 1D symfun in terms of a 2D symfun 190s syms x y t 190s syms 'g(x,y)' 190s f(t) = g(t,t); 190s f(5); 190s assert (length (argnames (f)) == 1) 190s assert (isequal (argnames (f), t)) 190s assert (isequal( formula(diff(f,x)), sym(0))) 191s ***** test 191s % replace g with shorter and specific fcn 191s syms x g(x) 191s g; 191s g(x) = 2*x; 191s assert( isequal (g(5), 10)) 191s ***** test 191s % octave <= 3.8 needs quotes on 2D symfuns, so make sure it works 191s syms x y 191s syms 'f(x)' 191s syms 'g(x,y)' 191s assert (isa (f, 'symfun')) 191s assert (isa (g, 'symfun')) 191s ***** test 191s % Bug #41: Octave <= 3.8 parser fails without quotes around 2D fcn 191s syms x y 191s eval('syms g(x,y)') 191s assert (isa (g, 'symfun')) 191s ***** test 191s % and these days it works without eval trick 191s syms g(x,y) 191s assert (isa (g, 'symfun')) 191s ***** test 191s % syms f(x) without defining x 191s clear x 191s syms f(x) 191s assert(isa(f, 'symfun')) 191s assert(isa(x, 'sym')) 191s ***** test 191s % SMT compat: symfun indep var overwrites existing var 191s t = 6; 191s syms f(t) 191s assert (logical (t ~= 6)) 191s ***** test 191s % SMT compat: symfun indep var overwrites existing var, even if sym 191s syms x 191s t = x; 191s syms f(t) 191s assert (~ logical (t == x)) 191s ***** test 191s syms x y 191s f(x) = x^2; 191s g(x,y) = sym('g(x,y)'); 191s f2 = 2*f; 191s assert( isequal (f2(4), 32)) 191s assert( isa(f2, 'symfun')) 191s assert( isa(2*g, 'symfun')) 191s assert( isa(0*g, 'symfun')) % in SMT, this is the zero symfun 191s :18: SyntaxWarning: invalid escape sequence '\(' 191s ***** test 191s % syms has its own parsing code, check it works 191s syms f(x,y) 191s g = f; 191s syms f(x, y) 191s assert (isequal (f, g)) 191s syms 'f( x, y )' 191s assert (isequal (f, g)) 191s ***** test 191s % syms own parsing code should not reorder the vars 191s syms f(y, x) 191s v = argnames (f); 191s assert (isequal (v(1), y) && isequal (v(2), x)) 191s ***** test 191s % assignment of symfun to symfun, issue #189 191s syms t 191s x(t) = 2*t; 191s y(t) = x; 191s assert (isa (y, 'symfun')) 191s y = symfun(x, t); 191s assert (isa (y, 'symfun')) 191s % others 191s y = x; 191s assert (isa (y, 'symfun')) 191s y(t) = x(t); 191s assert (isa (y, 'symfun')) 191s ***** test 191s % assignment of generic symfun to symfun 191s syms t x(t) 191s y(t) = x; 191s assert (isa (y, 'symfun')) 191s y = symfun(x, t); 191s assert (isa (y, 'symfun')) 191s ***** error 191s % Issue #444: invalid args 191s syms x 191s f(x, x) = 2*x; 191s ***** error 191s % Issue #444: invalid args 191s syms x y 191s f(x, y, x) = x + y; 191s ***** error 191s % Issue #444: invalid args 191s syms x y 191s f(x, y, x) = x + y; 192s ***** error 192s % Issue #444: expression as arg 192s syms x 192s f(2*x) = 4*x; 192s 25 tests, 25 passed, 0 known failure, 0 skipped 192s [inst/@symfun/int.m] 192s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@symfun/int.m 192s ***** test 192s % indefinite integral of symfun gives symfun 192s syms x 192s f(x) = x^2; 192s g = int(f); 192s assert (isa(g, 'symfun')) 192s g = int(f, x); 192s assert (isa(g, 'symfun')) 192s ***** test 192s % indefinite integral of abstract symfun gives symfun 192s syms f(x) 192s g = int(f); 192s assert (isa(g, 'symfun')) 192s g = int(f, x); 192s assert (isa(g, 'symfun')) 192s ***** test 192s % definite integral does not give symfun 192s syms x 192s f(x) = x^2; 192s g = int(f, x, 0, 2); 192s assert (isa(g, 'sym')) 192s assert (~isa(g, 'symfun')) 192s ***** test 192s % ... even if it has a variable in it 192s syms x t 192s f(x) = x; 192s g = int(f, x, 0, t); 192s assert (isa(g, 'sym')) 192s assert (~isa(g, 'symfun')) 192s ***** test 192s % ... even if the input is abstract funcion 192s syms f(x) 192s g = int(f, x, 0, 2); 192s assert (isa(g, 'sym')) 192s assert (~isa(g, 'symfun')) 192s ***** test 192s % symfun in x, integrated in y gives symfun still in x 192s % (SMT does this too). 192s syms f(x) y 192s g = int(f, y); 192s assert (isa (g, 'symfun')) 192s assert (isequal (argnames (g), x)) 192s ***** test 192s % same as above, but concrete symfun 192s syms x y 192s f(x) = x^2; 192s g = int(f, y); 192s assert (isa (g, 'symfun')) 192s assert (isequal (argnames (g), x)) 192s assert (isequal (formula(g), x^2*y)) 192s 7 tests, 7 passed, 0 known failure, 0 skipped 192s [inst/@symfun/mrdivide.m] 192s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@symfun/mrdivide.m 192s ***** test 192s syms x 192s f(x) = x^2; 192s assert( isa(f/f, 'symfun')) 192s assert( isa(f/x, 'symfun')) 192s 1 test, 1 passed, 0 known failure, 0 skipped 192s [inst/@symfun/ldivide.m] 192s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@symfun/ldivide.m 192s ***** test 192s syms x 192s f(x) = x^2; 192s assert( isa(f .\ f, 'symfun')) 192s assert( isa(f .\ x, 'symfun')) 193s 1 test, 1 passed, 0 known failure, 0 skipped 193s [inst/@symfun/rdivide.m] 193s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@symfun/rdivide.m 193s ***** test 193s syms x 193s f(x) = x^2; 193s assert( isa(f./f, 'symfun')) 193s assert( isa(f./[x x^2], 'symfun')) 193s ***** test 193s syms x 193s f(x) = [x 2*x]; 193s h = f./[x 2]; 193s assert( isa(h, 'symfun')) 193s assert (isequal (formula (h), [1 x])) 193s 2 tests, 2 passed, 0 known failure, 0 skipped 193s [inst/@symfun/private_disp_name.m] 193s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@symfun/private_disp_name.m 193s ***** test 193s syms f(x) 193s s = private_disp_name(f, 'f'); 193s assert (strcmp (s, 'f(x)')) 193s ***** test 193s syms x y 193s g(y, x) = x + y; 193s s = private_disp_name(g, 'g'); 193s assert (strcmp (s, 'g(y, x)')) 193s ***** test 193s syms f(x) 193s assert (isempty (private_disp_name(f, ''))) 193s 3 tests, 3 passed, 0 known failure, 0 skipped 193s [inst/@symfun/times.m] 193s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@symfun/times.m 193s ***** test 193s syms x 193s f(x) = x^2; 193s assert( isa(f .* f, 'symfun')) 193s assert( isa(f .* x, 'symfun')) 193s ***** test 193s syms x 193s f(x) = [x 2*x]; 193s h = f.*[x 3]; 193s assert( isa(h, 'symfun')) 193s assert (isequal (formula (h), [x^2 6*x])) 193s 2 tests, 2 passed, 0 known failure, 0 skipped 193s [inst/@symfun/plus.m] 193s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@symfun/plus.m 193s ***** test 193s syms x 193s f(x) = x^2; 193s assert( isa(f + f, 'symfun')) 193s assert( isa(f + x, 'symfun')) 193s 1 test, 1 passed, 0 known failure, 0 skipped 193s [inst/@symfun/mldivide.m] 193s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@symfun/mldivide.m 193s ***** test 193s syms x 193s f(x) = x^2; 193s assert( isa(f\f, 'symfun')) 193s assert( isa(f\x, 'symfun')) 193s 1 test, 1 passed, 0 known failure, 0 skipped 193s [inst/@symfun/power.m] 193s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@symfun/power.m 193s ***** test 193s syms x 193s f(x) = 2*x; 193s h = f.^f; 193s assert( isa(h, 'symfun')) 193s assert (isequal (formula (h), (2*x)^(2*x))) 193s ***** test 193s syms x 193s f(x) = [x 2*x]; 193s h = f.^[x 3]; 193s assert( isa(h, 'symfun')) 193s assert (isequal (formula (h), [x^x 8*x^3])) 193s 2 tests, 2 passed, 0 known failure, 0 skipped 193s [inst/@symfun/isequaln.m] 193s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@symfun/isequaln.m 193s ***** error isequaln (symfun('x + 1', x)) 193s ***** test 193s syms x y 193s f(x) = 2*x; 193s g(x) = 2*x; 193s assert (isequaln (f, g)) 193s ***** test 193s syms x 193s f(x) = 2*x + 1; 193s g(x) = 2*x + 1; 193s h(x) = 2*x + 1; 193s assert (isequaln (f, g, h)) 194s ***** test 194s syms x 194s f(x) = 2*x + 1; 194s g(x) = 2*x + 1; 194s h(x) = 2*x; 194s assert (~ isequaln (f, g, h)) 194s ***** test 194s syms x y 194s f(x) = 2*x; 194s g(x, y) = 2*x; 194s assert (~ isequaln (f, g)) 194s ***** test 194s syms x y 194s f(x) = symfun(nan, x); 194s g(x) = symfun(nan, x); 194s assert (isequaln (f, g)) 194s ***** test 194s syms x y 194s f(x) = symfun(nan, x); 194s g(x, y) = symfun(nan, x); 194s assert (~ isequaln (f, g)) 194s 7 tests, 7 passed, 0 known failure, 0 skipped 194s [inst/@symfun/mpower.m] 194s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@symfun/mpower.m 194s ***** test 194s syms x 194s f(x) = 2*x; 194s h = f^f; 194s assert( isa(h, 'symfun')) 194s assert (isequal (formula (h), (2*x)^(2*x))) 194s h = f^sym(2); 194s assert( isa(h, 'symfun')) 194s assert (isequal (formula (h), 4*x^2)) 194s 1 test, 1 passed, 0 known failure, 0 skipped 194s [inst/@symfun/uminus.m] 194s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@symfun/uminus.m 194s ***** test 194s % Issue #447 194s syms x 194s f(x) = x^2; 194s assert (isa (-f, 'symfun')) 194s ***** test 194s syms f(x) 194s h = -f; 194s assert (isa (h, 'symfun')) 194s 2 tests, 2 passed, 0 known failure, 0 skipped 194s [inst/@symfun/symvar.m] 194s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@symfun/symvar.m 194s ***** test 194s % basic 194s syms f(t, s) 194s assert (isempty (symvar (f, 0))) 194s assert (isequal (symvar (f, 1), t)) 194s assert (isequal (symvar (f, 2), [t s])) 194s assert (isequal (symvar (f, 3), [t s])) 195s ***** test 195s % note preference for vars of symfun, if n requested 195s syms x f(y) 195s assert (isequal (symvar(f*x, 1), y)) 195s assert (isequal (symvar(f(y)*x, 1), x)) 195s ***** test 195s % symfun, checked smt 195s syms x f(y) 195s a = f*x; 195s b = f(y)*x; 195s assert (isequal (symvar(a), [x y])) 195s assert (isequal (symvar(b), [x y])) 195s ***** test 195s % preference for the explicit variables 195s syms a x f(t, s) 195s h = f*a + x; 195s assert (isequal (symvar (h, 1), t)) 195s assert (isequal (symvar (h, 2), [t s])) 195s assert (isequal (symvar (h, 3), [t s x])) 195s assert (isequal (symvar (h, 4), [t s x a])) 195s assert (isequal (symvar (h, 5), [t s x a])) 195s assert (isequal (symvar (h), [a s t x])) 196s ***** test 196s % symfun dep on some vars only, matches smt w/ n 196s syms x s t 196s f(s) = x; 196s g(s, t) = x*s; 196s assert (isequal (symvar(f, 1), s)) 196s assert (isequal (symvar(f, 2), [s x])) 196s assert (isequal (symvar(g, 1), s)) 196s assert (isequal (symvar(g, 2), [s t])) 196s assert (isequal (symvar(g, 3), [s t x])) 197s ***** test 197s % A documented difference from SMT on symvar(symfun) w/o n 197s syms x s t 197s f(s) = x; 197s g(s, t) = x*s; 197s % SMT would have 197s %assert (isequal (symvar(f), x)) % no s 197s %assert (isequal (symvar(g), [s x])) % no t 197s assert (isequal (symvar(f), [s x])) 197s assert (isequal (symvar(g), [s t x])) 197s 6 tests, 6 passed, 0 known failure, 0 skipped 197s [inst/@symfun/formula.m] 197s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@symfun/formula.m 197s ***** test 197s % simple 197s syms x 197s f(x) = sin(x); 197s g = formula(f); 197s assert (isequal (g, sin(x))); 197s ***** test 197s % concrete: return is a sym, not a symfun 197s syms x 197s f(x) = sin(x); 197s g = formula(f); 197s assert (~isa(g, 'symfun')); 197s ***** test 197s % abstract: return is a sym, not a symfun 197s syms f(x) 197s g = formula(f); 197s assert (~isa(g, 'symfun')); 197s 3 tests, 3 passed, 0 known failure, 0 skipped 197s [inst/@symfun/subsref.m] 197s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@symfun/subsref.m 197s ***** test 197s syms x 197s f(x) = x^2; 197s v = f.vars; 197s assert(iscell(v)) 197s assert(length(v)==1) 197s assert(isequal(v{1},x)) 197s ***** test 197s %% pass through to sym properties 197s syms x 197s f(x) = x^2; 197s y = x^2; % not a symfun 197s assert(strcmp(f.flat, y.flat)) 197s 2 tests, 2 passed, 0 known failure, 0 skipped 197s [inst/@symfun/argnames.m] 197s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@symfun/argnames.m 197s ***** test 197s % basic test 197s syms f(x) 197s assert (isequal (argnames (f), x)) 197s ***** test 197s % Multiple variables, abstract symfun 197s syms f(t, x, y) 197s assert (isequal (argnames (f), [t x y])) 197s ***** test 197s % Concrete symfun 197s syms x y z t 197s f(t, x, y) = x + y + z; 197s assert (isequal (argnames (f), [t x y])) 197s 3 tests, 3 passed, 0 known failure, 0 skipped 197s [inst/@symfun/minus.m] 197s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@symfun/minus.m 197s ***** test 197s syms x 197s f(x) = x^2; 197s assert( isa(f - f, 'symfun')) 197s assert( isa(f - x, 'symfun')) 197s ***** test 197s % Octave bug #42735 fixed in 4.4.2 197s syms x 197s f(x) = x^2; 197s g = x^2; 197s h = x - f; assert (isa (h, 'symfun') && isequal (formula (h), x - g)) 197s h = x + f; assert (isa (h, 'symfun') && isequal (formula (h), x + g)) 197s h = x * f; assert (isa (h, 'symfun') && isequal (formula (h), x * g)) 197s h = x / f; assert (isa (h, 'symfun') && isequal (formula (h), x / g)) 197s h = x ^ f; assert (isa (h, 'symfun') && isequal (formula (h), x ^ g)) 197s h = x .* f; assert (isa (h, 'symfun') && isequal (formula (h), x .* g)) 197s h = x ./ f; assert (isa (h, 'symfun') && isequal (formula (h), x ./ g)) 197s h = x .^ f; assert (isa (h, 'symfun') && isequal (formula (h), x .^ g)) 198s ***** test 198s % different variables 198s syms x y 198s f(x) = 2*x; 198s g(y) = sin(y); 198s h = f - g(x); 198s assert( isa(h, 'symfun')) 198s assert( isequal (argnames (h), argnames (f))) 198s assert (isequal (formula (h), 2*x - sin(x))) 198s % and even if rh-sym has a dummy variable: 198s h = f - g(y); 198s assert( isa(h, 'symfun')) 198s assert( isequal (argnames (h), argnames(f))) 198s assert (isequal (formula (h), 2*x - sin(y))) 198s ***** test 198s % different variables, f has more 198s syms x y 198s f(x,y) = 2*x*y; 198s g(y) = sin(y); 198s h = f - g(y) + g(x); 198s assert( isa(h, 'symfun')) 198s assert( isequal (argnames (h), argnames (f))) 198s assert (isequal (formula (h), 2*x*y - sin(y) + sin(x))) 198s 4 tests, 4 passed, 0 known failure, 0 skipped 198s [inst/@symfun/diff.m] 198s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@symfun/diff.m 198s ***** test 198s % concrete fcn 198s syms x 198s f(x) = x*x; 198s g(x) = 2*x; 198s assert (logical (diff(f) == g)) 198s assert (isa (diff(f), 'symfun')) 198s ***** test 198s % abstract fcn 198s syms y(x) 198s assert (logical (diff(y) == diff(y(x)))) 198s assert (isa (diff(y), 'symfun')) 198s 2 tests, 2 passed, 0 known failure, 0 skipped 198s [inst/@symfun/numel.m] 198s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@symfun/numel.m 198s ***** test 198s syms x 198s f(x) = x^2; 198s assert(numel(f)==1) 198s ***** test 198s syms x 198s f(x) = [1 x]; 198s assert(numel(f)==1) 198s 2 tests, 2 passed, 0 known failure, 0 skipped 198s [inst/catalan.m] 198s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/catalan.m 198s ***** error catalan (sym(1)) 198s ***** assert (double (catalan ()) > 0.915965594177) 199s ***** assert (double (catalan ()) < 0.915965594178) 199s 3 tests, 3 passed, 0 known failure, 0 skipped 199s [inst/laguerreL.m] 199s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/laguerreL.m 199s ***** error laguerreL (1) 199s ***** error laguerreL (1, 2, 3) 199s ***** assert (isequal (laguerreL (0, rand), 1)) 199s ***** test 199s x = rand; 199s assert (isequal (laguerreL (1, x), 1 - x)) 199s ***** test 199s x=rand; 199s y1=laguerreL(2, x); 199s p2=[.5 -2 1]; 199s y2=polyval(p2,x); 199s assert(y1 - y2, 0, 10*eps); 199s ***** test 199s x=rand; 199s y1=laguerreL(3, x); 199s p3=[-1/6 9/6 -18/6 1]; 199s y2=polyval(p3,x); 199s assert(y1 - y2, 0, 20*eps); 199s ***** test 199s x=rand; 199s y1=laguerreL(4, x); 199s p4=[1/24 -16/24 72/24 -96/24 1]; 199s y2=polyval(p4,x); 199s assert(y1 - y2, 0, 30*eps) 199s ***** error laguerreL(1.5, 10) 199s ***** error laguerreL([0 1], [1 2 3]) 199s ***** error laguerreL([0 1], [1; 2]) 199s ***** test 199s % numerically stable implementation (in n) 199s L = laguerreL (10, 10); 199s Lex = 1763/63; 199s assert (L, Lex, -eps) 199s L = laguerreL (20, 10); 199s Lex = -177616901779/14849255421; % e.g., laguerreL(sym(20),10) 199s assert (L, Lex, -eps) 199s ***** test 199s % vectorized x 199s L = laguerreL (2, [5 6 7]); 199s Lex = [3.5 7 11.5]; 199s assert (L, Lex, eps) 199s ***** test 199s L = laguerreL (0, [4 5]); 199s assert (L, [1 1], eps) 199s ***** test 199s % vector n 199s L = laguerreL ([0 1 2 3], [4 5 6 9]); 199s assert (L, [1 -4 7 -26], eps) 199s ***** test 199s % vector n, scalar x 199s L = laguerreL ([0 1 2 3], 6); 199s assert (L, [1 -5 7 1], eps) 199s ***** assert (isa (laguerreL (0, single (1)), 'single')) 199s ***** assert (isa (laguerreL (1, single ([1 2])), 'single')) 199s ***** assert (isa (laguerreL ([1 2], single ([1 2])), 'single')) 199s 18 tests, 18 passed, 0 known failure, 0 skipped 199s [inst/assume.m] 199s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/assume.m 199s ***** error 199s a = assume('a', 'real') 199s ***** error 199s assume positive integer 199s ***** error 199s assume x y 199s ***** error 199s assume x clear real 199s ***** error 199s assume a>0 199s ***** error 199s assume 'x/pi' integer 199s ***** test 199s syms x 199s assume x positive 199s a = assumptions(x); 199s assert(strcmp(a, 'x: positive')) 199s assume x even 199s a = assumptions(x); 199s assert(strcmp(a, 'x: even')) 199s ***** test 199s % multiple assumptions 199s syms x 199s assume x positive integer 199s [tilde, a] = assumptions(x, 'dict'); 199s assert(a{1}.integer) 199s assert(a{1}.positive) 199s ***** test 199s % does workspace 199s syms x positive 199s x2 = x; 199s f = sin(x); 199s assume x negative 199s a = assumptions(x); 199s assert(strcmp(a, 'x: negative')) 199s a = assumptions(x2); 199s assert(strcmp(a, 'x: negative')) 199s a = assumptions(f); 199s assert(strcmp(a, 'x: negative')) 199s ***** error 199s % does not create new variable x 199s clear x 199s assume x real 199s ***** error 199s % no explicit variable named x 199s clear x 199s f = 2*sym('x'); 199s assume x real 199s ***** test 199s % clear does workspace 199s syms x positive 199s f = 2*x; 199s assume x clear 199s assert (isempty (assumptions (f))); 199s assert (isempty (assumptions ())); 199s ***** test 199s syms x y 199s f = sin (2*x); 199s assume x y real 199s assert (strcmp (assumptions (x), 'x: real')) 199s assert (strcmp (assumptions (y), 'y: real')) 199s assert (strcmp (assumptions (f), 'x: real')) 199s ***** test 199s syms x y 199s f = sin (2*x); 199s assume x y positive even 199s assert (strcmp (assumptions (x), 'x: positive, even') || strcmp (assumptions (x), 'x: even, positive')) 199s assert (strcmp (assumptions (y), 'y: positive, even') || strcmp (assumptions (y), 'y: even, positive')) 199s assert (strcmp (assumptions (f), 'x: positive, even') || strcmp (assumptions (f), 'x: even, positive')) 200s ***** test 200s % works from variable names not symbols 200s syms x y 200s a = [x y]; 200s assume a real 200s assert (strcmp (assumptions (x), 'x: real')) 200s assert (strcmp (assumptions (y), 'y: real')) 200s ***** test 200s % works from variable names not symbols 200s y = sym('x'); 200s f = 2*y; 200s assume y real 200s assert (strcmp (assumptions (f), 'x: real')) 200s ***** test 200s % matrix of symbols 200s syms a b c d 200s A = [a b; c d]; 200s assume A real 200s assert (strcmp (assumptions (a), 'a: real')) 200s assert (strcmp (assumptions (b), 'b: real')) 200s assert (strcmp (assumptions (c), 'c: real')) 200s assert (strcmp (assumptions (d), 'd: real')) 200s ***** test 200s % assume after symfun 200s clear x 200s syms f(x) 200s assume x real 200s assert (~ isempty (assumptions (formula (f)))) 200s assert (~ isempty (assumptions (argnames (f)))) 200s 18 tests, 18 passed, 0 known failure, 0 skipped 200s [inst/@logical/isAlways.m] 200s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@logical/isAlways.m 200s ***** error isAlways (true, false) 200s ***** assert(isAlways(true)) 200s ***** assert(~isAlways(false)) 200s 3 tests, 3 passed, 0 known failure, 0 skipped 200s [inst/poly2sym.m] 200s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/poly2sym.m 200s ***** shared x,y,a,b,c,p 200s syms x y a b c 200s p = x^3 + 2*x^2 + 3*x + 4; 201s ***** assert(isAlways( poly2sym([1 2 3 4]) == p )) 201s ***** assert(isAlways( poly2sym([1 2 3 4],x) == p )) 201s ***** assert(isAlways( poly2sym([1 2 3 4],y) == subs(p,x,y) )) 201s ***** assert(isAlways( poly2sym([1 2 3 4],5) == subs(p,x,5) )) 201s ***** assert(isequal( poly2sym ([1]), 1 )) 201s ***** assert(isequal( poly2sym ([]), 0 )) 201s ***** assert(isAlways( poly2sym(sym([1 2 3 4]),x) == p )) 202s ***** assert(isAlways( poly2sym([a b c],x) == a*x^2 + b*x + c )) 202s ***** assert(isAlways( poly2sym([a b c]) == a*x^2 + b*x + c )) 202s ***** assert(isequal( poly2sym(sym([])), 0 )) 202s ***** assert(isAlways( poly2sym({sym(1) sym(2)}, x) == x + 2 )) 202s ***** assert(isequal( poly2sym ({1}), 1 )) 202s ***** assert(isequal( poly2sym ({}), 0 )) 202s ***** assert(isequal( poly2sym ({1}, x), 1 )) 202s ***** assert(isequal( poly2sym ({}, x), 0 )) 202s ***** assert(isAlways( poly2sym([x x], x) == x^2 + x )) 203s ***** test 203s % mixed cell array with doubles and syms 203s assert (isequal (poly2sym ({2.0 sym(3) int64(4)}), 2*x^2 + 3*x + 4)) 203s ***** test 203s % string for x 203s p = poly2sym ([1 2], 's'); 203s syms s 203s assert (isequal (p, s + 2)) 203s 18 tests, 18 passed, 0 known failure, 0 skipped 203s [inst/lambertw.m] 203s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/lambertw.m 203s ***** assert (isequal (lambertw (0), 0)) 203s ***** assert (isequal (lambertw (0, 0), 0)) 203s ***** assert (lambertw (-1/exp(1)), -1, 2*eps) 203s ***** assert (lambertw (0, -1/exp(1)), -1, 2*eps) 203s ***** assert (lambertw (-1, -1/exp(1)), -1, 2*eps) 203s ***** test 203s x = [1 2 3 pi 10 100 1000 12345]; 203s W = lambertw (x); 203s assert (W.*exp (W), x, -3*eps) 203s ***** test 203s x = [1 2 3 pi 10 100 1000 12345]; 203s k = [-3 -2 -1 0 1 2 3 4]; 203s W = lambertw (k, x); 203s assert (W.*exp (W), x, -10*eps) 203s ***** test 203s % input shape preserved 203s x = [0 1; 2 3]; 203s b = x; 203s W = lambertw (b, x); 203s assert (W.*exp (W), x, -10*eps) 203s ***** test 203s % input shape preserved 203s x = [0 1; 2 3]; 203s b = 0; 203s W = lambertw (b, x); 203s assert (W.*exp (W), x, -10*eps) 203s ***** test 203s % input shape preserved 203s x = 10; 203s b = [0 1; 2 3]; 203s W = lambertw (b, x); 203s assert (W.*exp (W), x*ones (size (b)), -10*eps) 203s ***** assert (isnan (lambertw (nan))) 203s ***** test 203s % limiting behaviour as z large 203s k = 3; 203s A = lambertw (k, 1e100); 203s assert (abs (imag (A) - 2*pi*k) < 0.1) 203s ***** test 203s % limiting behaviour as z large, up imag axis 203s k = 1; 203s A = lambertw (k, 1e100*1i); 203s assert (abs (imag (A) - (2*k+0.5)*pi) < 0.1) 203s ***** test 203s % limiting behaviour as z large, down imag axis 203s k = -2; 203s A = lambertw (k, -1e100*1i); 203s assert (abs (imag (A) - (2*k-0.5)*pi) < 0.1) 203s ***** test 203s % limiting behaviour as z large, near branch 203s k = 3; 203s A = lambertw (k, -1e100); 203s B = lambertw (k, -1e100 + 1i); 203s C = lambertw (k, -1e100 - 1i); 203s assert (abs (imag (A) - (2*k+1)*pi) < 0.1) 203s assert (abs (imag (B) - (2*k+1)*pi) < 0.1) 203s assert (abs (imag (C) - (2*k-1)*pi) < 0.1) 203s ***** test 203s % infinities and nan 203s A = lambertw ([inf exp(1) -inf nan]); 203s B = [inf 1 inf + pi*1i nan]; 203s assert (isequaln (A, B)) 203s ***** test 203s % infinities and nan 203s A = lambertw (3, [inf 1 -inf nan]); 203s B = [inf + 2*3*pi*1i lambertw(3,1) inf + (2*3+1)*pi*1i nan]; 203s assert (isequaln (A, B)) 203s ***** test 203s % infinities and nan 203s A = lambertw ([0 1 2 0], [inf -inf nan exp(1)]); 203s B = [inf inf+3*pi*1i nan 1]; 203s assert (isequaln (A, B)) 203s ***** test 203s % scalar infinity z, vector b 203s A = lambertw ([1 2 -3], inf); 203s B = [lambertw(1, inf) lambertw(2, inf) lambertw(-3, inf)]; 203s assert (isequal (A, B)) 203s ***** test 203s % scalar -infinity z, vector b 203s A = lambertw ([1 2 -3], -inf); 203s B = [lambertw(1, -inf) lambertw(2, -inf) lambertw(-3, -inf)]; 203s assert (isequal (A, B)) 203s ***** test 203s % scalar z nan, vector b 203s A = lambertw ([1 2 -3], nan); 203s B = [nan nan nan]; 203s assert (isequaln (A, B)) 203s 21 tests, 21 passed, 0 known failure, 0 skipped 203s [inst/@sym/expand.m] 203s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/expand.m 203s ***** test 203s syms x 203s assert (logical (x^2 + 6*x + 5 == expand ((x+5)*(x+1)))) 203s assert (isequal (x^2 + 6*x + 5, expand ((x+5)*(x+1)))) 203s ***** test 203s % array 203s syms x 203s assert (isequal (expand ([x (x+1)*x]), [x x^2+x])) 203s 2 tests, 2 passed, 0 known failure, 0 skipped 203s [inst/@sym/isscalar.m] 203s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/isscalar.m 203s ***** assert(isscalar(sym('x'))) 203s ***** test 203s a = sym([1 2 3]); 203s assert(~isscalar(a)) 203s ***** assert(~isscalar(sym([]))) 203s 3 tests, 3 passed, 0 known failure, 0 skipped 203s [inst/@sym/sum.m] 203s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/sum.m 203s ***** error sum (sym(1), 2, 3) 203s ***** error sum (sym(1), 42) 203s ***** shared x,y,z 203s syms x y z 203s ***** assert (isequal (sum (x), x)) 203s ***** assert (isequal (sum ([x y z]), x+y+z)) 204s ***** assert (isequal (sum ([x; y; z]), x+y+z)) 204s ***** assert (isequal (sum ([x y z], 1), [x y z])) 204s ***** assert (isequal (sum ([x y z], 2), x+y+z)) 204s ***** shared a,b 204s b = [1 2; 3 4]; a = sym(b); 204s ***** assert (isequal (sum(a), sum(b))) 204s ***** assert (isequal (sum(a,1), sum(b,1))) 204s ***** assert (isequal (sum(a,2), sum(b,2))) 204s ***** test 204s % weird inputs 204s a = sum('xx', sym(1)); 204s assert (isequal (a, sym('xx'))) 204s 11 tests, 11 passed, 0 known failure, 0 skipped 204s [inst/@sym/sind.m] 204s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/sind.m 204s ***** error sind (sym(1), 2) 204s ***** assert (isequaln (sind (sym(nan)), sym(nan))) 204s ***** test 204s f1 = sind (sym(1)); 204s f2 = sind (1); 204s assert (double (f1), f2, -eps) 204s ***** test 204s D = [10 30; 110 -45]; 204s A = sym(D); 204s f1 = sind (A); 204s f2 = sind (D); 204s assert (double (f1), f2, -eps) 204s 4 tests, 4 passed, 0 known failure, 0 skipped 204s [inst/@sym/qr.m] 204s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/qr.m 204s ***** error qr (sym(1), 2, 3) 204s ***** error [Q, R, P] = qr (sym(1)) 204s ***** error qr (sym(1), 1) 204s ***** test 204s % scalar 204s [q, r] = qr(sym(6)); 204s assert (isequal (q, sym(1))) 204s assert (isequal (r, sym(6))) 204s ***** test 204s syms x positive 204s [q, r] = qr(x); 204s assert (isequal (q*r, x)) 204s assert (isequal (q, sym(1))) 204s assert (isequal (r, x)) 204s ***** test 204s % trickier if x could be zero, fails on 1.8 <= SymPy <= 1.10.1 204s syms x 204s [q, r] = qr(x); 204s if (pycall_sympy__ ('return Version(spver) > Version("1.10.1")')) 204s assert (isequal (q*r, x)) 204s end 204s ***** test 204s A = [1 2; 3 4]; 204s B = sym(A); 204s [Q, R] = qr(B); 204s assert (isequal (Q*R, B)) 204s assert (isequal (R(2,1), sym(0))) 204s assert (isequal (Q(:,1)'*Q(:,2), sym(0))) 204s %[QA, RA] = qr(A) 204s %assert ( max(max(double(Q)-QA)) <= 10*eps) 204s %assert ( max(max(double(Q)-QA)) <= 10*eps) 204s ***** test 204s % non square: tall skinny 204s A = sym([1 2; 3 4; 5 6]); 204s [Q, R] = qr (A, 0); 204s assert (size (Q), [3 2]) 204s assert (size (R), [2 2]) 204s assert (isequal (Q*R, A)) 205s ***** test 205s % non square: short fat 205s A = sym([1 2 3; 4 5 6]); 205s [Q, R] = qr (A); 205s assert (isequal (Q*R, A)) 205s ***** test 205s % non square: short fat, rank deficient 205s A = sym([1 2 3; 2 4 6]); 205s [Q, R] = qr (A); 205s assert (isequal (Q*R, A)) 205s A = sym([1 2 3; 2 4 6; 0 0 0]); 205s [Q, R] = qr (A); 205s assert (isequal (Q*R, A)) 205s ***** test 205s % rank deficient 205s A = sym([1 2 3; 2 4 6; 0 0 0]); 205s [Q, R] = qr (A); 205s assert (isequal (Q*R, A)) 205s A = sym([1 2 3; 2 5 6; 0 0 0]); 205s [Q, R] = qr (A); 205s assert (isequal (Q*R, A)) 205s ***** test 205s % single return value R not Q 205s assert (isequal (qr (sym(4)), sym(4))) 205s 12 tests, 12 passed, 0 known failure, 0 skipped 205s [inst/@sym/expint.m] 205s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/expint.m 205s ***** error expint (sym(1), 2, 3) 205s ***** test 205s f1 = expint(sym(1)); 205s f2 = expint(1); 205s assert( abs(double(f1) - f2) < 1e-15 ) 205s ***** test 205s f1 = expint(sym(1i)); 205s f2 = expint(1i); 205s assert( abs(double(f1) - f2) < 1e-15 ) 205s ***** test 205s D = [1 2; 3 4]; 205s A = sym(D); 205s f1 = expint(A); 205s f2 = expint(D); 205s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 205s ***** test 205s syms x 205s A = expint(x); 205s B = expint(1, x); 205s assert (isequal (A, B)) 205s ***** test 205s syms x 205s A = exp(-x)/x; 205s B = expint(0, x); 205s assert (isequal (A, B)) 206s ***** test 206s % round trip 206s syms x 206s A = expint (3); 206s f = expint (x); 206s h = function_handle (f); 206s B = h (3); 206s assert (A, B, -eps) 206s ***** error 206s % round trip 206s syms n x 206s f = expint (n, x); 206s h = function_handle (f); 206s 8 tests, 8 passed, 0 known failure, 0 skipped 206s [inst/@sym/curl.m] 206s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/curl.m 206s ***** error curl([sym(1) 2 3], 42, 42) 206s ***** shared x,y,z 206s syms x y z 206s ***** test 206s % double const 206s f = [1 2 3]; 206s g = [sym(0); 0; 0]; 206s assert (isequal (curl(f, [x y z]), g)) 206s % should fail, calls @double: curl(f, {x y z}), g)) 206s ***** test 206s % div curl always 0 206s v = [exp(x); x*y; sin(z)]; 206s g = curl(v); 206s a = divergence(g, [x y z]); 206s assert (isAlways (a == sym(0))) 206s assert (isa (a, 'sym')) 206s g = curl(v, [x y z]); 206s a = divergence(g, [x y z]); 206s assert (isAlways (a == sym(0))) 206s assert (isa (a, 'sym')) 206s ***** test 206s % div curl always 0 206s v = [exp(x); erfc(x*y); sin(exp(x)*y+sinh(z))]; 206s g = curl(v, [x y z]); 206s a = divergence(g, [x y z]); 206s assert (isAlways (a == sym(0))) 206s assert (isa (a, 'sym')) 207s ***** test 207s % curl grad is vec zero 207s f = sin(exp(x)*y+sinh(z)); 207s g = curl(gradient(f, [x,y,z])); 207s assert (isequal (g, sym([0;0;0]))) 209s ***** test 209s % 2d fcn in 2d/3d 209s u = sin(exp(x)*y); 209s v = x^2*y^3; 209s vorticity2d = diff(v,x) - diff(u,y); 209s omega = curl([u; v; 0], [x y z]); 209s assert (isequal (omega, [0; 0; vorticity2d])) 209s ***** error <3D vector> curl([sym(1) 2 3 4]) 209s ***** error curl([sym(1) 2 3], {sym('x') sym('y') sym('z') sym('t')}) 209s 8 tests, 8 passed, 0 known failure, 0 skipped 209s [inst/@sym/dilog.m] 209s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/dilog.m 209s ***** assert (isequal (dilog (sym(1)), sym(0))) 209s ***** assert (isequal (dilog (sym(0)), sym(pi)^2/6)) 209s ***** assert (isequal (dilog (sym(2)), -sym(pi)^2/12)) 209s ***** assert (double(dilog(sym(-1))), pi^2/4 - pi*1i*log(2), eps) 209s ***** test 209s % round-trip 209s syms x 209s f = dilog (x); 209s h = function_handle (f); 209s A = h (1.1); 209s B = dilog (1.1); 209s assert (A, B, -eps) 210s 5 tests, 5 passed, 0 known failure, 0 skipped 210s [inst/@sym/jacobian.m] 210s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/jacobian.m 210s ***** error jacobian (sym(1), 2, 3) 210s ***** error jacobian ([sym(1) 2; sym(3) 4]) 210s ***** shared x,y,z 210s syms x y z 210s ***** test 210s % 1D 210s f = x^2; 210s assert (isequal (jacobian(f), diff(f,x))) 210s assert (isequal (jacobian(f,{x}), diff(f,x))) 210s assert (isequal (jacobian(f,x), diff(f,x))) 210s ***** test 210s % const 210s f = sym(1); 210s g = sym(0); 210s assert (isequal (jacobian(f), g)) 210s assert (isequal (jacobian(f,x), g)) 210s ***** test 210s % double const 210s f = 1; 210s g = sym(0); 210s assert (isequal (jacobian(f,x), g)) 210s ***** test 210s % diag 210s f = [x y^2]; 210s g = [sym(1) 0; 0 2*y]; 210s assert (isequal (jacobian(f), g)) 210s assert (isequal (jacobian(f, [x y]), g)) 210s assert (isequal (jacobian(f, {x y}), g)) 210s ***** test 210s % anti-diag 210s f = [y^2 x]; 210s g = [0 2*y; sym(1) 0]; 210s assert (isequal (jacobian(f), g)) 210s assert (isequal (jacobian(f, {x y}), g)) 210s ***** test 210s % shape 210s f = [x y^2]; 210s assert (isequal (size(jacobian(f, {x y z})), [2 3])) 210s assert (isequal (size(jacobian(f, [x y z])), [2 3])) 210s assert (isequal (size(jacobian(f, [x; y; z])), [2 3])) 210s assert (isequal (size(jacobian(f.', {x y z})), [2 3])) 210s ***** test 210s % scalar f 210s f = x*y; 210s assert (isequal (size(jacobian(f, {x y})), [1 2])) 210s g = gradient(f, {x y}); 210s assert (isequal (jacobian(f, {x y}), g.')) 210s ***** test 210s % vect f wrt 1 var 210s f = [x x^2]; 210s assert (isequal (size(jacobian(f, x)), [2 1])) 210s f = f.'; % same shape output 210s assert (isequal (size(jacobian(f, x)), [2 1])) 210s 10 tests, 10 passed, 0 known failure, 0 skipped 210s [inst/@sym/symreplace.m] 210s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/symreplace.m 210s ***** test 210s % start with assumptions on x then remove them 210s syms x positive 210s f = x*10; 210s symreplace(x, sym('x')) 210s assert(isempty(assumptions(x))) 210s ***** test 210s % replace x with y 210s syms x 210s f = x*10; 210s symreplace(x, sym('y')) 210s assert( isequal (f, 10*sym('y'))) 211s ***** test 211s % gets inside cells 211s syms x 211s f = {x 1 2 {3 4*x}}; 211s symreplace(x, sym('y')) 211s syms y 211s assert( isequal (f{1}, y)) 211s assert( isequal (f{4}{2}, 4*y)) 211s ***** test 211s % gets inside structs/cells 211s syms x 211s my.foo = {x 1 2 {3 4*x}}; 211s my.bar = x; 211s g = {'ride' my 'motor' 'sicle'}; 211s symreplace(x, sym('y')) 211s syms y 211s f = g{2}; 211s assert( isequal (f.foo{1}, y)) 211s assert( isequal (f.foo{4}{2}, 4*y)) 211s assert( isequal (f.bar, y)) 211s 4 tests, 4 passed, 0 known failure, 0 skipped 211s [inst/@sym/isfinite.m] 211s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/isfinite.m 211s ***** assert (isfinite(sym(1))) 211s ***** assert (isfinite(sym(-10))) 211s ***** assert (~isfinite(sym('oo'))) 211s ***** assert (~isfinite(sym('-oo'))) 211s ***** assert (~isfinite(sym(1)/0)) 211s ***** assert (~isfinite(sym(nan))) 211s ***** assert (isequal (isfinite (sym ([1 inf])), [true false])) 211s ***** test 211s % finite-by-assumption 211s syms x finite 211s assert (isfinite (x)) 211s 8 tests, 8 passed, 0 known failure, 0 skipped 211s [inst/@sym/ones.m] 211s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/ones.m 211s ***** test 211s y = ones(sym(2)); 211s x = [1 1; 1 1]; 211s assert( isequal( y, sym(x))) 211s ***** test 211s y = ones(sym(2), 1); 211s x = [1; 1]; 211s assert( isequal( y, sym(x))) 211s ***** test 211s y = ones(sym(1), 2); 211s x = [1 1]; 211s assert( isequal( y, sym(x))) 211s ***** test 211s y = ones (sym([2 3])); 211s x = sym (ones ([2 3])); 211s assert (isequal (y, x)) 211s ***** assert( isa( ones(sym(2), 'double'), 'double')) 211s ***** assert( isa( ones(3, sym(3), 'single') , 'single')) 211s ***** assert( isa( ones(3, sym(3)), 'sym')) 211s ***** assert( isa( ones(3, sym(3), 'sym'), 'sym')) 211s ***** xtest 211s % Issue #13 211s assert( isa( ones(3, 3, 'sym'), 'sym')) 211s !!!!! known failure 211s invalid data type specified 211s 9 tests, 8 passed, 1 known failure, 0 skipped 211s [inst/@sym/iscolumn.m] 211s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/iscolumn.m 211s ***** assert (iscolumn (sym ([1]))) 211s ***** assert (iscolumn (sym ([1 2 3]'))) 211s ***** assert (~iscolumn (sym ([]))) 211s ***** assert (~iscolumn (sym ([1 2 3]))) 211s ***** assert (~iscolumn (sym ([1 2; 3 4]))) 212s 5 tests, 5 passed, 0 known failure, 0 skipped 212s [inst/@sym/char.m] 212s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/char.m 212s ***** test 212s % issue #91: expose as string 212s a = sym(pi); 212s assert (strcmp (char (a), 'pi')) 212s ***** shared x 212s x = sym('x'); 212s ***** assert (strcmp (char (x), 'x')) 212s ***** assert (strcmp (char (2*x), '2*x')) 212s ***** assert (strcmp (char ([2*x x]), 'Matrix([[2*x, x]])')) 212s ***** assert (strcmp (char ([2*x 2; 1 x]), 'Matrix([[2*x, 2], [1, x]])')) 212s 5 tests, 5 passed, 0 known failure, 0 skipped 212s [inst/@sym/floor.m] 212s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/floor.m 212s ***** error floor (sym(1), 2) 212s ***** assert (isequaln (floor (sym(nan)), sym(nan))) 212s ***** shared x, d 212s d = 1; 212s x = sym('1'); 212s ***** test 212s f1 = floor(x); 212s f2 = floor(d); 212s assert( abs(double(f1) - f2) < 1e-15 ) 212s ***** test 212s D = [d d; d d]; 212s A = [x x; x x]; 212s f1 = floor(A); 212s f2 = floor(D); 212s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 212s ***** test 212s % round trip 212s y = sym('y'); 212s A = floor (d); 212s f = floor (y); 212s h = function_handle (f); 212s B = h (d); 212s assert (A, B, -eps) 212s 5 tests, 5 passed, 0 known failure, 0 skipped 212s [inst/@sym/sym.m] 212s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/sym.m 212s ***** test 212s % integers 212s x = sym ('2'); 212s y = sym (2); 212s assert (isa (x, 'sym')) 212s assert (isa (y, 'sym')) 212s assert (isequal (x, y)) 212s ***** test 212s % infinity 212s for x = {'inf', '-inf', inf, -inf, 'Inf'} 212s y = sym (x{1}); 212s assert (isa (y, 'sym')) 212s assert (isinf (double (y))) 212s assert (isinf (y)) 212s end 212s ***** test 212s % pi 212s x = sym ('pi'); 212s assert (isa (x, 'sym')) 212s assert (isequal (sin (x), sym (0))) 212s assert (abs (double (x) - pi) < 2*eps ) 212s x = sym (pi); 212s assert (isa (x, 'sym')) 212s assert (isequal (sin (x), sym (0))) 212s assert (abs (double (x) - pi) < 2*eps ) 212s ***** test 212s % rationals 212s x = sym(1) / 3; 212s assert (isa (x, 'sym')) 212s assert (isequal (3*x - 1, sym (0))) 212s x = 1 / sym (3); 212s assert (isa (x, 'sym')) 212s assert (isequal (3*x - 1, sym (0))) 212s x = sym ('1/3'); 212s assert (isa (x, 'sym')) 212s assert (isequal (3*x - 1, sym (0))) 212s ***** test 212s % passing small rationals 212s x = sym ('1/2'); 212s assert (double (x) == 1/2 ) 212s assert (isequal (2*x, sym (1))) 212s ***** warning x = sym (1/2); 212s ***** test 212s % passing small rationals w/o quotes: despite the warning, 212s % it should work 212s s = warning ('off', 'OctSymPy:sym:rationalapprox'); 212s x = sym (1/2); 212s warning (s) 212s assert (double (x) == 1/2 ) 212s assert (isequal (2*x, sym (1))) 212s ***** test 212s assert (isa (sym (pi), 'sym')) 212s assert (isa (sym ('beta'), 'sym')) 212s ***** test 212s % sym from array 212s D = [0 1; 2 3]; 212s A = [sym(0) 1; sym(2) 3]; 212s assert (isa (sym (D), 'sym')) 212s assert (isequal (size (sym (D)), size (D))) 212s assert (isequal (sym (D), A)) 213s ***** test 213s % more sym from array 213s syms x 213s A = [x x]; 213s assert (isequal (sym (A), A)) 213s A = [1 x]; 213s assert (isequal (sym (A), A)) 213s ***** test 213s %% assumptions and clearing them 213s clear variables % for matlab test script 213s x = sym('x', 'real'); 213s f = {x {2*x}}; 213s asm = assumptions(); 213s assert ( ~isempty(asm)) 213s s = warning ('off', 'OctSymPy:deprecated'); 213s x = sym('x', 'clear'); 213s warning (s) 213s asm = assumptions(); 213s assert ( isempty(asm)) 213s ***** test 213s %% matlab compat, syms x clear should add x to workspace 213s x = sym('x', 'real'); 213s f = 2*x; 213s clear x 213s assert (~logical(exist('x', 'var'))) 213s s = warning ('off', 'OctSymPy:deprecated'); 213s x = sym('x', 'clear'); 213s warning (s) 213s assert (logical(exist('x', 'var'))) 213s ***** test 213s %% assumptions should work if x is already a sym 213s x = sym('x'); 213s x = sym(x, 'real'); 213s assert (~isempty(assumptions(x))) 213s ***** test 213s %% likewise for clear 213s x = sym('x', 'real'); 213s f = 2*x; 213s s = warning ('off', 'OctSymPy:deprecated'); 213s x = sym(x, 'clear'); 213s warning (s) 213s assert (isempty(assumptions(x))) 213s assert (isempty(assumptions(f))) 213s ***** test 213s % bool 213s t = sym (false); 213s t = sym (true); 213s assert (logical (t)) 213s ***** test 213s % bool vec/mat 213s a = sym (1); 213s t = sym ([true false]); 213s assert (isequal (t, [a == 1 a == 0])) 213s t = sym ([true false; false true]); 213s assert (isequal (t, [a == 1 a == 0; a == 0 a == 1])) 213s ***** test 213s % symbolic matrix 213s A = sym ('A', [2 3]); 213s assert (isa (A, 'sym')) 213s assert (isequal (size (A), [2 3])) 213s A(1, 1) = 7; 213s assert (isa (A, 'sym')) 213s A = A + 1; 213s assert (isa (A, 'sym')) 213s ***** test 213s % symbolic matrix, symbolic but Integer size 213s A = sym ('A', sym([2 3])); 213s assert (isa (A, 'sym')) 213s assert (isequal (size (A), [2 3])) 213s ***** test 213s % symbolic matrix, subs in for size 213s syms n m integer 213s A = sym ('A', [n m]); 213s B = subs (A, [n m], [5 6]); 213s assert (isa (B, 'sym')) 213s assert (isequal (size (B), [5 6])) 213s ***** error sym('2*a', [2 3]) 213s ***** error sym(2*sym('a'), [2 3]) 213s ***** error sym('1', [2 3]) 213s ***** error sym(1, [2 3]) 213s ***** error 213s % TODO: symbolic tensor, maybe supported someday 213s sym('a', [2 3 4]) 213s ***** test 213s % 50 shapes of empty 213s a = sym (ones (0, 3)); 213s assert (isa (a, 'sym')) 213s assert (isequal (size (a), [0 3])) 213s a = sym (ones (2, 0)); 213s assert (isequal (size (a), [2 0])) 213s a = sym ([]); 213s assert (isequal (size (a), [0 0])) 213s ***** test 213s % moar empty 213s a = sym ('a', [0 3]); 213s assert (isa (a, 'sym')) 213s assert (isequal (size (a), [0 3])) 213s a = sym ('a', [2 0]); 213s assert (isa (a, 'sym')) 213s assert (isequal (size (a), [2 0])) 213s ***** test 213s % embedded sympy commands, various quotes, issue #143 213s a = sym ('a'); 213s a1 = sym ('Symbol("a")'); 213s a2 = sym ('Symbol(''a'')'); 213s assert (isequal (a, a1)) 213s assert (isequal (a, a2)) 213s % Octave only, and eval to hide from Matlab parser 213s if exist ('OCTAVE_VERSION', 'builtin') 213s eval( 'a3 = sym("Symbol(''a'')");' ); 213s eval( 'a4 = sym("Symbol(\"a\")");' ); 213s assert (isequal (a, a3)) 213s assert (isequal (a, a4)) 213s end 213s :18: SyntaxWarning: invalid escape sequence '\(' 213s :18: SyntaxWarning: invalid escape sequence '\(' 213s :18: SyntaxWarning: invalid escape sequence '\(' 213s :18: SyntaxWarning: invalid escape sequence '\(' 213s ***** test 213s % complex 213s x = sym(1 + 2i); 213s assert (isequal (x, sym(1)+sym(2)*1i)) 214s ***** test 214s % doubles bigger than int32 INTMAX should not fail 214s d = 4294967295; 214s a = sym (d); 214s assert (isequal (double (a), d)) 214s d = d + 123456; 214s a = sym (d); 214s assert (isequal (double (a), d)) 214s ***** test 214s % int32 integer types 214s a = sym (100); 214s b = sym (int32 (100)); 214s assert (isequal (a, b)) 214s ***** test 214s % int32 MAXINT integers 214s a = sym ('2147483647'); 214s b = sym (int32 (2147483647)); 214s assert (isequal (a, b)) 214s a = sym ('-2147483647'); 214s b = sym (int32 (-2147483647)); 214s assert (isequal (a, b)) 214s a = sym ('4294967295'); 214s b = sym (uint32 (4294967295)); 214s assert (isequal (a, b)) 214s ***** test 214s % int64 integer types 214s a = sym ('123456789012345'); 214s b = sym (int64(123456789012345)); 214s c = sym (uint64(123456789012345)); 214s assert (isequal (a, b)) 214s assert (isequal (a, c)) 214s ***** test 214s % integer arrays 214s a = int64 ([1 2 100]); 214s s = sym (a); 214s assert (isequal (double (a), [1 2 100])) 214s ***** test 214s % bigger int64 integer types 214s q = int64 (123456789012345); 214s w = 10000*q + 123; 214s a = sym ('1234567890123450123'); 214s b = sym (w); 214s assert (isequal (a, b)) 214s ***** test 214s % sym(double) heuristic 214s s = warning ('off', 'OctSymPy:sym:rationalapprox'); 214s x = sym(2*pi/3); 214s assert (isequal (x/sym(pi), sym(2)/3)) 214s x = sym(22*pi); 214s assert (isequal (x/sym(pi), sym(22))) 214s x = sym(pi/123); 214s assert (isequal (x/sym(pi), sym(1)/123)) 214s warning (s) 214s ***** test 214s % sym(double) with 'r': no warning 214s a = 0.1; 214s x = sym(a, 'r'); 214s assert (isequal (x, sym(1)/10)) 214s ***** test 214s % sym(double, 'f') 214s a = 0.1; 214s x = sym(a, 'f'); 214s assert (~isequal (x, sym(1)/10)) 214s assert (isequal (x, sym('3602879701896397')/sym('36028797018963968'))) 214s ***** test 214s x = sym(pi, 'f'); 214s assert (~isequal (x, sym('pi'))) 214s assert (isequal (x, sym('884279719003555')/sym('281474976710656'))) 214s ***** test 214s q = sym('3602879701896397')/sym('36028797018963968'); 214s x = sym(1 + 0.1i, 'f'); 214s assert (isequal (x, 1 + 1i*q)) 214s x = sym(0.1 + 0.1i, 'f'); 214s assert (isequal (x, q + 1i*q)) 214s ***** test 214s assert (isequal (sym(inf, 'f'), sym(inf))) 214s assert (isequal (sym(-inf, 'f'), sym(-inf))) 214s assert (isequaln (sym(nan, 'f'), sym(nan))) 214s assert (isequal (sym(complex(inf, -inf), 'f'), sym(complex(inf, -inf)))) 214s assert (isequaln (sym(complex(nan, inf), 'f'), sym(complex(nan, inf)))) 214s assert (isequaln (sym(complex(-inf, nan), 'f'), sym(complex(-inf, nan)))) 215s ***** test 215s assert (isequal (sym (sqrt(2), 'r'), sqrt (sym (2)))) 215s assert (isequal (sym (sqrt(12345), 'r'), sqrt (sym (12345)))) 215s ***** test 215s % symbols with special sympy names 215s syms Ei Eq 215s assert (~isempty (regexp (sympy (Eq), '^Symbol'))) 215s assert (~isempty (regexp (sympy (Ei), '^Symbol'))) 215s ***** test 215s % more symbols with special sympy names 215s x = sym('FF'); 215s assert (~isempty (regexp (x.pickle, '^Symbol'))) 215s x = sym('ff'); 215s assert (~isempty (regexp (x.pickle, '^Symbol'))) 215s ***** test 215s % E can be a sym not just exp(sym(1)) 215s syms E 215s assert (~logical (E == exp(sym(1)))) 215s ***** test 215s % e can be a symbol, not exp(sym(1)) 215s syms e 215s assert (~ logical (e == exp(sym(1)))) 215s ***** test 215s % double e 215s x = sym (exp (1)); 215s y = exp (sym (1)); 215s assert (isequal (x, y)) 215s if (exist ('OCTAVE_VERSION', 'builtin')) 215s x = sym (e); 215s assert (isequal (x, y)) 215s end 215s ***** test 215s x = sym (-exp (1)); 215s y = -exp (sym (1)); 215s assert (isequal (x, y)) 215s ***** assert (~ isequal (sym (exp(1)), sym (exp(1), 'f'))) 215s ***** warning sym (1e16); 215s ***** warning sym (-1e16); 215s ***** warning sym (10.33); 215s ***** warning sym (-5.23); 215s ***** warning sym (sqrt (1.4142135623731)); 215s ***** error 215s x = sym ('x', 'positive2'); 215s ***** error 215s x = sym ('x', 'integer', 'positive2'); 215s ***** error 215s x = sym ('x', 'integer2', 'positive'); 215s ***** error 215s x = sym ('-pi', 'positive') 215s ***** error 215s x = sym ('pi', 'integer') 215s ***** test 215s % multiple assumptions 215s n = sym ('n', 'negative', 'even'); 215s a = assumptions (n); 215s assert (strcmp (a, 'n: negative, even') || strcmp (a, 'n: even, negative')) 215s ***** error 215s % multiple assumptions as a list 215s % TODO: should this be allowed? 215s n = sym ('n', {'negative', 'even'}); 215s a = assumptions (n); 215s assert (strcmp (a, 'n: negative, even') || strcmp (a, 'n: even, negative')) 215s ***** error 215s n = sym ('n', {{'negative', 'even'}}); 215s ***** test 215s % save/load sym objects 215s syms x 215s y = 2*x; 215s a = 42; 215s myfile = tempname (); 215s save (myfile, 'x', 'y', 'a') 215s clear x y a 215s load (myfile) 215s assert (isequal (y, 2*x)) 215s assert (a == 42) 215s if (exist ('OCTAVE_VERSION', 'builtin')) 215s assert (unlink (myfile) == 0) 215s else 215s delete ([myfile '.mat']) 215s end 215s ***** test 215s a = sym ('2.1'); 215s b = sym (21) / 10; 215s %% https://github.com/sympy/sympy/issues/11703 215s assert (pycall_sympy__ ('return _ins[0] == _ins[1] and hash(_ins[0]) == hash(_ins[1])', a, b)) 215s ***** test 215s % issue #706 215s a = sym('Float("1.23")'); 215s assert (~ isempty (strfind (char (a), '.'))) 215s :18: SyntaxWarning: invalid escape sequence '\(' 215s ***** assert (isequal (sym({1 2 'a'}), [sym(1) sym(2) sym('a')])); 215s ***** error sym({1 2 'a'}, 'positive'); 215s ***** error sym({'a' 'b'}, 'positive'); 215s ***** test 215s a = sym ('--1'); 215s b = sym ('---1'); 215s assert (isequal (a, sym (1))) 215s assert (isequal (b, sym (-1))) 215s ***** test 215s % num2cell works on sym arrays 215s syms x 215s C1 = num2cell ([x 2 3; 4 5 6*x]); 215s assert (iscell (C1)) 215s assert (isequal (size (C1), [2 3])) 215s assert (isequal (C1{1,1}, x)) 215s assert (isequal (C1{2,3}, 6*x)) 215s assert (isequal (C1{1,3}, sym(3))) 215s assert (isa (C1{1,3}, 'sym')) 216s ***** test 216s % function_handle 216s f = @(x, y) y*sin(x); 216s syms x y 216s assert (isequal (sym (f), y*sin(x))); 216s f = @(x) 42; 216s assert (isequal (sym (f), sym (42))); 216s f = @() 42; 216s assert (isequal (sym (f), sym (42))); 216s :18: SyntaxWarning: invalid escape sequence '\(' 216s :18: SyntaxWarning: invalid escape sequence '\(' 216s :18: SyntaxWarning: invalid escape sequence '\(' 216s ***** error 216s % function_handle 216s f = @(x) A*sin(x); 216s sym (f) 216s :18: SyntaxWarning: invalid escape sequence '\(' 216s ***** test 216s % Issue #885 216s clear f x % if test not isolated (e.g., on matlab) 216s syms x 216s f(x) = sym('S(x)'); 216s f(x) = sym('I(x)'); 216s f(x) = sym('O(x)'); 216s :18: SyntaxWarning: invalid escape sequence '\(' 216s :18: SyntaxWarning: invalid escape sequence '\(' 216s :18: SyntaxWarning: invalid escape sequence '\(' 216s ***** test 216s % sym(sympy(x) == x identity, Issue #890 216s syms x 216s f = exp (1i*x); 216s s = sympy (f); 216s g = sym (s); 216s assert (isequal (f, g)) 216s :18: SyntaxWarning: invalid escape sequence '\(' 216s ***** test 216s % sym(sympy(x) == x identity 216s % Don't mistake "pi" (which is "srepr(S.Pi)") for a symfun variable 216s f = sym ('ff(pi, pi)'); 216s s1 = sympy (f); 216s s2 = 'FallingFactorial(pi, pi)'; 216s assert (strcmp (s1, s2)) 216s :18: SyntaxWarning: invalid escape sequence '\(' 216s ***** test 216s % sym(sympy(x) == x identity 216s % Don't mistake "I" (which is "srepr(S.ImaginaryUnit)") for a symfun variable 216s f = sym ('sin(I)'); 216s g = 1i*sinh (sym (1)); 216s assert (isequal (f, g)) 216s s = sympy (f); 216s assert (isempty (strfind (s, 'Function'))) 216s :18: SyntaxWarning: invalid escape sequence '\(' 216s ***** error 216s % sym(sympy(x) == x identity 216s % Don't mistake "true/false" (which is "srepr(S.true)") for a symfun variable 216s % (Used to print as `S.true` but just `true` in sympy 1.2) 216s sym ('E(true,false)') 216s :18: SyntaxWarning: invalid escape sequence '\(' 216s ***** test 216s % some variable names that are special to sympy but should not be for us 216s f = sym ('f(S, Q, C, O, N)'); 216s s1 = sympy (f); 216s s2 = 'Function(''f'')(Symbol(''S''), Symbol(''Q''), Symbol(''C''), Symbol(''O''), Symbol(''N''))'; 216s assert (strcmp (s1, s2)) 216s :18: SyntaxWarning: invalid escape sequence '\(' 216s ***** test 216s % For SMT 2014 compatibilty, I and E would become ImaginaryUnit and Exp(1) 216s % but I'm not sure this is by design. This test would need to change if 216s % we want stricter SMT compatibilty. 216s f = sym ('f(x, I, E)'); 216s s1 = sympy (f); 216s s2 = 'Function(''f'')(Symbol(''x''), Symbol(''I''), Symbol(''E''))'; 216s assert (strcmp (s1, s2)) 216s :18: SyntaxWarning: invalid escape sequence '\(' 216s ***** test 216s % not the identity, force symfun 216s f = sym ('FF(w)'); 216s s1 = sympy (f); 216s s2 = 'Function(''FF'')(Symbol(''w''))'; 216s assert (strcmp (s1, s2)) 216s :18: SyntaxWarning: invalid escape sequence '\(' 216s ***** test 216s % not the identity, force symfun 216s f = sym ('FF(w, pi)'); 216s s1 = sympy (f); 216s s2 = 'Function(''FF'')(Symbol(''w''), pi)'; 216s assert (strcmp (s1, s2)) 216s :18: SyntaxWarning: invalid escape sequence '\(' 216s ***** test 216s % not the identity, force symfun 216s f = sym ('ff(x, y)'); 216s s1 = sympy (f); 216s s2 = 'Function(''ff'')(Symbol(''x''), Symbol(''y''))'; 216s assert (strcmp (s1, s2)) 216s :18: SyntaxWarning: invalid escape sequence '\(' 216s ***** test 216s % But this one should satisfy "sym(sympy(x) == x" identity 216s % (OOTB, SymPy has ff -> FallingFactorial) 216s f = sym ('FallingFactorial(x, y)'); 216s s1 = sympy (f); 216s s2 = 'FallingFactorial(Symbol(''x''), Symbol(''y''))'; 216s assert (strcmp (s1, s2)) 216s :18: SyntaxWarning: invalid escape sequence '\(' 216s 82 tests, 82 passed, 0 known failure, 0 skipped 216s [inst/@sym/xor.m] 216s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/xor.m 216s ***** shared t, f 216s t = sym(true); 216s f = sym(false); 216s ***** test 216s % simple 216s assert (isequal (xor(t, f), t)) 216s assert (isequal (xor(t, t), f)) 216s ***** test 216s % array 216s w = [t t f f]; 216s z = [t f t f]; 216s assert (isequal (xor(w, z), [f t t f])) 216s ***** xtest 216s % output is sym even for scalar t/f 216s % ₣IXME: should match other bool fcns 216s assert (isa (xor(t, f), 'sym')) 216s ***** test 216s % eqns 216s syms x 216s e = xor(x == 4, x == 5); 216s assert (isequal (subs(e, x, [3 4 5 6]), [f t t f])) 216s ***** test 216s % eqns, exclusive 216s syms x 216s e = xor(x == 3, x^2 == 9); 216s assert (isequal (subs(e, x, [-3 0 3]), [t f f])) 217s ***** error xor (sym('x'), 1, 2) 217s 6 tests, 6 passed, 0 known failure, 0 skipped 217s [inst/@sym/eig.m] 217s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/eig.m 217s ***** test 217s % basic 217s A = [1 2; 3 4]; 217s B = sym(A); 217s sd = eig(A); 217s s = eig(B); 217s s2 = double(s); 217s assert (norm(sort(s2) - sort(sd)) <= 10*eps) 217s ***** test 217s % scalars 217s syms x 217s a = sym(-10); 217s assert (isequal (eig(a), a)) 217s assert (isequal (eig(x), x)) 217s ***** test 217s % diag, multiplicity 217s A = diag([6 6 7]); 217s B = sym(A); 217s e = eig(B); 217s assert (isequal (size (e), [3 1])) 217s assert (sum(logical(e == 6)) == 2) 217s assert (sum(logical(e == 7)) == 1) 217s ***** test 217s % matrix with symbols 217s syms x y positive 217s A = [x+9 y; sym(0) 6]; 217s s = eig(A); 217s s = simplify(s); 217s assert (isequal (s, [x+9; 6]) || isequal (s, [6; x+9])) 217s ***** test 217s % eigenvects 217s e = sym([5 5 5 6 7]); 217s A = diag(e); 217s [V, D] = eig(A); 217s assert (isequal (diag(D), e.')) 217s assert (isequal (V, diag(sym([1 1 1 1 1])))) 217s ***** test 217s % alg/geom mult, eigenvects 217s e = sym([5 5 5 6]); 217s A = diag(e); 217s A(1,2) = 1; 217s [V, D] = eig(A); 217s assert (isequal (diag(D), e.')) 217s assert (sum(logical(V(1,:) ~= 0)) == 2) 217s assert (sum(logical(V(2,:) ~= 0)) == 0) 217s assert (sum(logical(V(3,:) ~= 0)) == 1) 217s assert (sum(logical(V(4,:) ~= 0)) == 1) 217s 6 tests, 6 passed, 0 known failure, 0 skipped 217s [inst/@sym/ismatrix.m] 217s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/ismatrix.m 217s ***** assert(ismatrix(sym('x'))) 217s ***** assert(ismatrix(sym([1 2 3]))) 218s ***** assert(ismatrix(sym([1; 2]))) 218s ***** assert(ismatrix(sym([1 2; 3 4]))) 218s ***** assert(ismatrix(sym([]))) 218s ***** assert(ismatrix(sym(ones(1,0)))) 218s ***** assert(ismatrix(sym(ones(0,3)))) 218s 7 tests, 7 passed, 0 known failure, 0 skipped 218s [inst/@sym/mtimes.m] 218s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/mtimes.m 218s ***** test 218s % scalar 218s syms x 218s assert (isa (x*2, 'sym')) 218s assert (isequal (2*sym(3), sym(6))) 218s assert (isequal (sym(2)*3, sym(6))) 218s ***** test 218s % matrix-scalar 218s D = [0 1; 2 3]; 218s A = sym(D); 218s assert (isa (2*A, 'sym')) 218s assert (isequal ( 2*A , 2*D )) 218s assert (isequal ( A*2 , 2*D )) 218s ***** test 218s % matrix-matrix 218s D = [0 1; 2 3]; 218s A = sym(D); 218s assert (isa (A*A, 'sym')) 218s assert (isequal ( A*A , D*D )) 218s 3 tests, 3 passed, 0 known failure, 0 skipped 218s [inst/@sym/double.m] 218s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/double.m 218s ***** test 218s % numeric scalar 218s a = double(sym(10)); 218s assert (a == 10) 218s assert (isa (a, 'double')) 218s ***** test 218s % numeric vectors 218s a = double(sym([10 12])); 218s assert (isequal (a, [10 12])) 218s assert (isa (a, 'double')) 218s ***** test 218s % complex 218s a = 3 + 4i; 218s b = sym(a); 218s assert (isequal (double (b), a)) 218s ***** xtest 218s % unexpected, precisely same floating point 218s a = 3 + 4i; 218s b = sym(a); 218s assert (isequal (double (b/pi), a/pi)) 218s ***** test 218s % floating point 218s x = sqrt(sym(2)); 218s assert( abs(double(x) - sqrt(2)) < 2*eps) 218s x = sym(pi); 218s assert( abs(double(x) - pi) < 2*eps) 218s ***** test 218s oo = sym(inf); 218s assert( double(oo) == inf ) 218s assert( double(-oo) == -inf ) 218s assert( isnan(double(0*oo)) ) 218s ***** test 218s zoo = sym('zoo'); 218s assert (double(zoo) == complex(inf, inf)) 218s ***** test 218s zoo = sym('zoo'); 218s assert (double(-zoo) == double(zoo) ) 218s assert( isnan(double(0*zoo)) ) 218s ***** test 218s % nan 218s snan = sym(nan); 218s assert( isnan(double(snan))) 218s ***** test 218s % don't want NaN+NaNi 218s snan = sym(nan); 218s assert (isreal (double (snan))) 218s ***** test 218s % arrays 218s a = [1 2; 3 4]; 218s assert( isequal( double(sym(a)), a )) 218s assert( isequal( double(sym(a)), a )) 218s % should fail with error for non-double 219s ***** error syms x; double(x) 219s ***** error syms x; double([1 2 x]) 219s 13 tests, 13 passed, 0 known failure, 0 skipped 219s [inst/@sym/lgamma.m] 219s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/lgamma.m 219s ***** test 219s % tested by gammaln 219s assert (isequal (lgamma (sym ('x')), gammaln (sym ('x')))) 219s 1 test, 1 passed, 0 known failure, 0 skipped 219s [inst/@sym/invhilb.m] 219s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/invhilb.m 219s ***** test 219s A = invhilb(sym(3)); 219s B = sym([9 -36 30;-36 192 -180;30 -180 180]); 219s assert( isequal( A, B)) 219s 1 test, 1 passed, 0 known failure, 0 skipped 219s [inst/@sym/ctranspose.m] 219s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/ctranspose.m 219s ***** test 219s x = sym(1); 219s assert (isequal (x', x)) 219s ***** assert (isempty (sym([])')) 219s ***** test 219s % conjugate does nothing to real x 219s syms x real 219s assert (isequal (x', x)) 219s ***** test 219s % complex 219s syms x 219s assert (isequal (x', conj(x))) 219s ***** test 219s % complex array 219s syms x 219s A = [x 2*x]; 219s B = [conj(x); 2*conj(x)]; 219s assert(isequal(A', B)) 219s ***** test 219s A = [1 2; 3 4]; 219s assert(isequal( sym(A)' , sym(A') )) 219s ***** test 219s A = [1 2] + 1i; 219s assert(isequal( sym(A)' , sym(A') )) 219s ***** test 219s % true/false 219s t = sym(true); 219s f = sym(false); 219s assert (isequal ( t', t)) 219s assert (isequal ( f', f)) 219s ***** test 219s % more true/false 219s syms x 219s A = [x true 1i]; 219s B = [conj(x); true; -sym(1i)]; 219s assert (isequal ( A', B)) 219s /usr/lib/python3/dist-packages/sympy/matrices/common.py:1989: SymPyDeprecationWarning: 219s 219s non-Expr objects in a Matrix is deprecated. Matrix represents 219s a mathematical matrix. To represent a container of non-numeric 219s entities, Use a list of lists, TableForm, NumPy array, or some 219s other data structure instead. 219s 219s See https://docs.sympy.org/latest/explanation/active-deprecations.html#deprecated-non-expr-in-matrix 219s for details. 219s 219s This has been deprecated since SymPy version 1.9. It 219s will be removed in a future version of SymPy. 219s 219s return self._eval_applyfunc(f) 219s 9 tests, 9 passed, 0 known failure, 0 skipped 219s [inst/@sym/log10.m] 219s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/log10.m 219s ***** assert (isequal (log10 (sym (1000)), sym (3))) 220s ***** assert (isequal (log10 (sym ([10 100])), sym ([1 2]))) 220s ***** test 220s % round-trip 220s syms x 220s f = log10 (x); 220s h = function_handle (f); 220s A = h (1.1); 220s B = log10 (1.1); 220s assert (A, B, -eps) 220s 3 tests, 3 passed, 0 known failure, 0 skipped 220s [inst/@sym/ezmesh.m] 220s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/ezmesh.m 220s ***** error 220s syms u v t 220s ezmesh(u*v, 2*u*v, 3*v*t) 220s ***** error 220s syms u v t 220s ezmesh(u*v, 2*u*v, u*v*t) 220s 2 tests, 2 passed, 0 known failure, 0 skipped 220s [inst/@sym/kroneckerDelta.m] 220s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/kroneckerDelta.m 220s ***** error kroneckerDelta (sym(1), 2, 3) 220s ***** test 220s syms x 220s assert (isequal (kroneckerDelta (x, x), sym(1))) 220s ***** assert (isequal (kroneckerDelta ([sym(1) 2 3], [1 2 0]), sym([1 1 0]))) 220s ***** test 220s % round trip 220s syms x y 220s f = kroneckerDelta (x, y); 220s h = function_handle (f); 220s assert (h (1, 2), 0) 220s assert (h (2, 2), 1) 220s 4 tests, 4 passed, 0 known failure, 0 skipped 220s [inst/@sym/log.m] 220s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/log.m 220s ***** error log (sym(1), 2) 220s ***** assert (isequaln (log (sym(nan)), sym(nan))) 220s ***** shared x, d 220s d = 1; 220s x = sym('1'); 220s ***** test 220s f1 = log(x); 220s f2 = log(d); 220s assert( abs(double(f1) - f2) < 1e-15 ) 220s ***** test 220s D = [d d; d d]; 220s A = [x x; x x]; 220s f1 = log(A); 220s f2 = log(D); 220s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 221s ***** test 221s % round trip 221s y = sym('y'); 221s A = log (d); 221s f = log (y); 221s h = function_handle (f); 221s B = h (d); 221s assert (A, B, -eps) 221s 5 tests, 5 passed, 0 known failure, 0 skipped 221s [inst/@sym/ge.m] 221s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/ge.m 221s ***** test 221s % simple 221s x = sym(1); y = sym(1); e = x >= y; 221s assert (logical (e)) 221s x = sym(1); y = sym(2); e = x >= y; 221s assert (~logical(e)) 221s ***** test 221s % array -- array 221s syms x 221s a = sym([1 3 3 2*x]); 221s b = sym([2 x 3 10]); 221s e = a >= b; 221s assert (isa (e, 'sym')) 221s assert (~logical (e(1))) 221s assert (isa (e(2), 'sym')) 221s assert (isequal (e(2), 3 >= x)) 221s assert (logical (e(3))) 221s assert (isa (e(4), 'sym')) 221s assert (isequal (e(4), 2*x >= 10)) 221s 2 tests, 2 passed, 0 known failure, 0 skipped 221s [inst/@sym/latex.m] 221s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/latex.m 221s ***** test 221s syms x 221s y = sin(x); 221s assert (strcmp (latex (y), '\sin{\left(x \right)}')) 221s ***** assert (strcmp (latex (exp (sym('x'))), 'e^{x}')) 221s 2 tests, 2 passed, 0 known failure, 0 skipped 221s [inst/@sym/setxor.m] 221s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/setxor.m 221s ***** test 221s A = sym([1 2 3]); 221s B = sym([1 2 4]); 221s C = setxor(A, B); 221s D1 = sym([3 4]); 221s D2 = sym([4 3]); 221s assert (isequal (C, D1) || isequal (C, D2)) 221s ***** test 221s % one nonsym 221s A = sym([1 2 3]); 221s B = [1 2 4]; 221s C = setxor(A, B); 221s D1 = sym([3 4]); 221s D2 = sym([4 3]); 221s assert (isequal (C, D1) || isequal (C, D2)) 221s ***** test 221s % empty 221s A = sym([1 2 3]); 221s C = setxor(A, A); 221s assert (isempty (C)) 221s ***** test 221s % empty input 221s A = sym([1 2]); 221s C = setxor(A, []); 221s assert (isequal (C, A) || isequal (C, sym([2 1]))) 221s ***** test 221s % scalar 221s syms x 221s assert (isequal (setxor([x 1], x), sym(1))) 221s assert (isempty (setxor(x, x))) 221s ***** test 221s A = interval(sym(1), 3); 221s B = interval(sym(2), 5); 221s C = setxor(A, B); 221s D = union (interval (sym(1), 2, false, true), interval (sym(3), 5, true, false)); 221s assert( isequal( C, D)) 221s 6 tests, 6 passed, 0 known failure, 0 skipped 221s [inst/@sym/size.m] 221s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/size.m 221s ***** test 221s a = sym([1 2 3]); 221s [n,m] = size(a); 221s assert (n == 1 && m == 3) 221s ***** test 221s a = sym([1 2 3]); 221s n = size(a); 221s assert (isequal (n, [1 3])) 222s ***** test 222s %% size, numel, length 222s a = sym([1 2 3; 4 5 6]); 222s assert (isa (size(a), 'double')) 222s assert (isa (numel(a), 'double')) 222s assert (isa (length(a), 'double')) 222s assert (isequal (size(a), [2 3])) 222s assert (length(a) == 3) 222s assert (numel(a) == 6) 222s a = sym([1; 2; 3]); 222s assert (isequal (size(a), [3 1])) 222s assert (length(a) == 3) 222s assert (numel(a) == 3) 222s ***** test 222s %% size by dim 222s a = sym([1 2 3; 4 5 6]); 222s n = size(a, 1); 222s assert (n == 2) 222s m = size(a, 2); 222s assert (m == 3) 222s a = sym([1 2 3]'); 222s n = size(a, 1); 222s assert (n == 3) 222s m = size(a, 2); 222s assert (m == 1) 222s ***** xtest 222s % symbolic-size matrices 222s syms n m integer 222s A = sym('A', [n m]); 222s d = size(A); 222s assert (~isa(d, 'sym')) 222s assert (isnumeric(d)) 222s assert (isequaln (d, [NaN NaN])) 222s !!!!! known failure 222s assert (isequaln (d, [NaN, NaN])) failed 222s ***** xtest 222s % half-symbolic-size matrices 222s % FIXME: will fail until size stop lying by saying 1x1 222s syms n integer 222s A = sym('A', [n 3]); 222s assert (isequaln (size(A), [NaN 3])) 222s A = sym('A', [4 n]); 222s assert (isequaln (size(A), [4 NaN])) 222s !!!!! known failure 222s assert (isequaln (size (A), [NaN, 3])) failed 222s ***** xtest 222s % half-symbolic-size empty matrices 222s % FIXME: will fail until size stop lying by saying 1x1 222s syms n integer 222s A = sym('A', [n 0]); 222s assert (isequaln (size(A), [NaN 0])) 222s !!!!! known failure 222s assert (isequaln (size (A), [NaN, 0])) failed 222s 7 tests, 4 passed, 3 known failures, 0 skipped 222s [inst/@sym/divisors.m] 222s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/divisors.m 222s ***** test 222s assert( isequal( divisors(sym(150)), divisors(sym(-150)) )) 222s 1 test, 1 passed, 0 known failure, 0 skipped 222s [inst/@sym/besselyn.m] 222s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/besselyn.m 222s ***** test 222s % roundtrip 222s syms x 222s A = double(besselyn(sym(2), sym(10))); 222s q = besselyn(sym(2), x); 222s h = function_handle(q); 222s B = h(10); 222s assert (abs (A - B) <= eps) 222s ***** error yn(sym('x')) 222s 2 tests, 2 passed, 0 known failure, 0 skipped 222s [inst/@sym/find.m] 222s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/find.m 222s ***** error find (sym (1), 2, 3, 4) 222s ***** error [x, y, z, w] = find (sym (1)) 222s ***** test 222s syms x y positive 222s assert (isequal (find ([0 x 0 y]), [2 4])) 222s assert (isequal (find ([0 x 0 y], 1), 2)) 222s assert (isequal (find ([0 x 0 y], 1, 'first'), 2)) 222s assert (isequal (find ([0 x 0 y], 1, 'last'), 4)) 222s assert (isequal (find ([0 x 0 y], 2, 'last'), [2 4])) 223s ***** test 223s % its enough that it could be non-zero, does not have to be 223s syms x y 223s assert (isequal (find ([0 x+y]), 2)) 223s ***** test 223s % false should not be found 223s syms x y 223s assert (isequal (find ([x==x x==y]), 1)) 223s assert (isequal (find ([x==y]), [])) 223s ***** test 223s % and/or should be treated as boolean 223s syms x y 223s assert (isequal (find ([or(x==y, x==2*y) x==y x==x]), 3)) 223s ***** test 223s % None 223s none = pycall_sympy__ ('return None'); 223s assert (isequal (find ([sym(0) none sym(1)]), 3)) 223s syms x y 223s assert (isequal (find ([x==y none x==x]), 3)) 223s ***** test 223s % two output 223s syms x y 223s A = [x 0 0; x+y 5 0]; 223s [i, j] = find (A); 223s assert (isequal (i, [1; 2; 2])) 223s assert (isequal (j, [1; 1; 2])) 223s ***** test 223s % three output 223s syms x y 223s A = [x 0 0; x+y 5 0]; 223s [i, j, v] = find (A); 223s assert (isequal (i, [1; 2; 2])) 223s assert (isequal (j, [1; 1; 2])) 223s assert (isequal (v, [x; x+y; sym(5)])) 223s 9 tests, 9 passed, 0 known failure, 0 skipped 223s [inst/@sym/unique.m] 223s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/unique.m 223s ***** test 223s A = sym([1 2 3 3 5 3 2 6 5]); 223s B = sym([1 2 3 5 6]); 223s assert (isequal (unique(A), B)) 223s ***** test 223s syms x y 223s A = [1 2 3 3 4 5 5 6 7 7 x x y y]; 223s B = [1 2 3 4 5 6 7 x y]; 223s assert (isequal (unique(A), B)) 223s ***** test 223s syms x 223s assert (isequal (unique(x), x)) 224s 3 tests, 3 passed, 0 known failure, 0 skipped 224s [inst/@sym/frac.m] 224s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/frac.m 224s ***** test 224s f1 = frac(sym(11)/10); 224s f2 = sym(1)/10; 224s assert (isequal (f1, f2)) 224s ***** test 224s d = sym(-11)/10; 224s c = sym(9)/10; 224s assert (isequal (frac (d), c)) 224s ***** test 224s d = sym(-19)/10; 224s c = sym(1)/10; 224s assert (isequal (frac (d), c)) 224s 3 tests, 3 passed, 0 known failure, 0 skipped 224s [inst/@sym/chebyshevU.m] 224s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/chebyshevU.m 224s ***** error chebyshevU (sym(1)) 224s ***** error chebyshevU (sym(1), 2, 3) 224s ***** assert (isequaln (chebyshevU (2, sym(nan)), sym(nan))) 224s ***** shared x 224s syms x 224s ***** assert(isequal(chebyshevU(0, x), sym(1))) 224s ***** assert(isequal(chebyshevU(1, x), 2*x)) 224s ***** assert(isequal(chebyshevU(2, x), 4*x*x - 1)) 224s ***** assert(isequal(chebyshevU([0 1 2], x), [sym(1) 2*x (4*x*x-1)])) 224s ***** test 224s % round trip 224s syms n z 224s f = chebyshevU (n, z); 224s h = function_handle (f, 'vars', [n z]); 224s A = h (1.1, 2.2); 224s B = chebyshevU (1.1, 2.2); 224s assert (A, B) 224s 8 tests, 8 passed, 0 known failure, 0 skipped 224s [inst/@sym/isrow.m] 224s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/isrow.m 224s ***** assert (isrow (sym ([1]))) 224s ***** assert (isrow (sym ([1 2 3]))) 224s ***** assert (~isrow (sym ([]))) 224s ***** assert (~isrow (sym ([1 2 3]'))) 224s ***** assert (~isrow (sym ([1 2; 3 4]))) 224s 5 tests, 5 passed, 0 known failure, 0 skipped 224s [inst/@sym/adjoint.m] 224s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/adjoint.m 224s ***** test 224s syms x 224s A = [x x^2; x^3 x^4]; 224s B = [x^4 -x^2; -x^3 x]; 224s assert( isequal( adjoint(A), B )) 225s ***** test syms x 225s assert( isequal( adjoint(x), 1)) 225s 2 tests, 2 passed, 0 known failure, 0 skipped 225s [inst/@sym/hypergeom.m] 225s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/hypergeom.m 225s ***** assert (isequal (double (hypergeom ([1, 2], [2, 3], sym(0))), 1)) 225s ***** test 225s % matrix input 225s syms z 225s a = sym([1 2]); 225s b = sym([3 4]); 225s A = hypergeom (a, b, [0 sym(1); 2 z]); 225s B = [hypergeom(a,b,0) hypergeom(a,b,1); hypergeom(a,b,2) hypergeom(a,b,z)]; 225s assert (isequal (A, B)) 225s ***** test 225s % scalars for a and/or b 225s syms z 225s assert (isequal (hypergeom(1, 2, z), hypergeom({sym(1)}, {sym(2)}, z))) 225s assert (isequal (hypergeom([1 2], 3, z), hypergeom([1 2], {sym(3)}, z))) 225s assert (isequal (hypergeom(1, [2 3], z), hypergeom({sym(1)}, [2 3], z))) 225s 3 tests, 3 passed, 0 known failure, 0 skipped 225s [inst/@sym/ipermute.m] 225s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/ipermute.m 225s ***** error permute (sym(1)) 225s ***** error permute (sym(1), 2, 3) 225s ***** test 225s syms x 225s A = [1 x]; 225s perm = [2 1]; 225s B = permute(A, perm); 225s C = ipermute(B, perm); 225s assert (isequal(C, A)) 225s 3 tests, 3 passed, 0 known failure, 0 skipped 225s [inst/@sym/colon.m] 225s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/colon.m 225s ***** test 225s a = sym(1):5; 225s b = sym(1:5); 225s assert(isequal(a,b)); 225s a = 1:sym(5); 225s b = sym(1:5); 225s assert(isequal(a,b)); 226s ***** test 226s a = 2:sym(2):8; 226s b = sym(2:2:8); 226s assert(isequal(a,b)); 226s ***** test 226s a = sym(10):-2:-4; 226s b = sym(10:-2:-4); 226s assert(isequal(a,b)); 226s ***** test 226s % symbolic intervals 226s p = sym(pi); 226s L = 0:p/4:p; 226s assert(isa(L,'sym')); 226s assert(isequal(L, [0 p/4 p/2 3*p/4 p])); 226s ***** test 226s % mixed symbolic and double intervals 226s p = sym(pi); 226s s = warning ('off', 'OctSymPy:sym:rationalapprox'); 226s L = 0.1:(sym(pi)/3):2.3; 226s warning(s) 226s assert(isa(L,'sym')); 226s t = sym(1)/10; 226s assert(isequal(L, [t p/3+t 2*p/3+t])); 226s ***** error syms x; a = 0:x; 226s ***** error syms x; a = 1:x; 226s 7 tests, 7 passed, 0 known failure, 0 skipped 226s [inst/@sym/isequal.m] 226s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/isequal.m 226s ***** test 226s a = sym([1 2]); 226s b = a; 226s assert (isequal (a, b)) 226s b(1) = 42; 226s assert (~isequal (a, b)) 226s ***** test 226s a = sym([1 2; 3 4]); 226s b = a; 226s assert (isequal (a, b)) 226s b(1) = 42; 226s assert (~isequal (a, b)) 226s ***** test 226s a = sym([nan; 2]); 226s b = a; 226s assert (~isequal (a, b)) 226s ***** test 226s % proper nan treatment 226s a = sym([nan 2; 3 4]); 226s b = a; 226s assert (~isequal (a, b)) 226s ***** test 226s % more than two arrays 226s a = sym([1 2 3]); 226s b = a; 226s c = a; 226s assert (isequal (a, b, c)) 226s c(1) = 42; 226s assert (~isequal (a, b, c)) 227s 5 tests, 5 passed, 0 known failure, 0 skipped 227s [inst/@sym/max.m] 227s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/max.m 227s ***** test 227s % simple 227s assert (isequal (max([sym(10) sym(11)]), sym(11))) 227s ***** test 227s syms x y 227s assert (isequal (children (max (x, y)), [x y])) 227s 2 tests, 2 passed, 0 known failure, 0 skipped 227s [inst/@sym/harmonic.m] 227s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/harmonic.m 227s ***** error harmonic (sym(1), 2) 227s ***** xtest 227s assert (isequaln (harmonic (sym(nan)), sym(nan))) 227s !!!!! known failure 227s assert (isequaln (harmonic (sym (nan)), sym (nan))) failed 227s ***** assert (isequal (harmonic (sym(0)), sym(0))) 227s ***** assert (isinf (harmonic (sym(inf)))) 227s ***** assert (isequal (harmonic (sym([9 10])), [sym(7129)/2520 sym(7381)/2520])) 227s ***** test 227s % round trip 227s y = sym('y'); 227s A = harmonic (7); 227s f = harmonic (y); 227s h = function_handle (f); 227s B = h (7); 227s assert (A, B, -eps) 227s 6 tests, 5 passed, 1 known failure, 0 skipped 227s [inst/@sym/ismember.m] 227s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/ismember.m 227s ***** assert (ismember (2, interval(sym(0),2))) 227s ***** assert (~ismember (3, interval(sym(0),2))) 227s ***** test 227s % something in a matrix 227s syms x 227s A = [1 x; sym(pi) 4]; 227s assert (ismember (sym(pi), A)) 227s assert (ismember (x, A)) 227s assert (~ismember (2, A)) 227s ***** test 227s % set 227s syms x 227s S = finiteset(2, sym(pi), x); 227s assert (ismember (x, S)) 227s ***** test 227s % set with positive symbol 227s syms p positive 227s S = finiteset(2, sym(pi), p); 227s assert (~ismember (-1, S)) 227s 5 tests, 5 passed, 0 known failure, 0 skipped 227s [inst/@sym/has.m] 227s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/has.m 227s ***** shared A, x, y 227s syms x y 227s A = [sym(pi) 2*sym(pi); x*y x+y]; 227s ***** assert (isequal (has(A, x), [false false; true true])); 227s ***** assert (isequal (has(A, x+y), [false false; false true])); 227s ***** assert (isequal (has(A, 2), [false true; false false])); 227s ***** assert (isequal (has(A, sym(pi)), [true true; false false])); 227s 4 tests, 4 passed, 0 known failure, 0 skipped 227s [inst/@sym/divergence.m] 227s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/divergence.m 227s ***** shared x,y,z 227s syms x y z 227s ***** test 227s % 1D 227s f = x^2; 227s assert (isequal (divergence(f), diff(f,x))) 227s assert (isequal (divergence(f,{x}), diff(f,x))) 227s assert (isequal (divergence(f,[x]), diff(f,x))) 227s assert (isequal (divergence(f,x), diff(f,x))) 228s ***** test 228s % const 228s f = [sym(1); 2; exp(sym(3))]; 228s assert (isequal (divergence(f,{x,y,z}), 0)) 228s f = [sym(1); 2; exp(sym('c'))]; 228s assert (isequal (divergence(f,{x,y,z}), 0)) 228s ***** test 228s % double const 228s f = [1 2]; 228s g = sym(0); 228s assert (isequal (divergence(f, [x y]), g)) 228s % should fail, calls @double: divergence(f, {x y}), g)) 228s ***** test 228s % 1D fcn in 2d/3d 228s f = [x y z]; 228s assert (isequal (divergence(f), 3)) 228s assert (isequal (divergence(f, {x,y,z}), 3)) 228s assert (isequal (divergence(f, [x,y,z]), 3)) 229s ***** test 229s % 2d fcn in 2d/3d 229s f = sin(exp(x)*y+sinh(z)); 229s g2 = [diff(f,x); diff(f,y)]; 229s l2 = diff(g2(1),x) + diff(g2(2),y); 229s g3 = [diff(f,x); diff(f,y); diff(f,z)]; 229s l3 = diff(g3(1),x) + diff(g3(2),y) + diff(g3(3),z); 229s assert (isequal (divergence(g2, {x,y}), l2)) 229s assert (isequal (divergence(g3, {x,y,z}), l3)) 229s ***** error divergence ([1 2], [sym('x')]) 229s ***** error divergence ([1 2], sym('x'), 42) 229s 7 tests, 7 passed, 0 known failure, 0 skipped 229s [inst/@sym/laplacian.m] 229s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/laplacian.m 229s ***** shared x,y,z 229s syms x y z 229s ***** test 229s % 1D 229s f = x^2; 229s g = diff(f,x,x); 229s assert (isequal (laplacian(f), g)) 229s assert (isequal (laplacian(f,{x}), g)) 229s assert (isequal (laplacian(f,[x]), g)) 229s assert (isequal (laplacian(f,x), g)) 229s ***** test 229s % const 229s f = sym(1); 229s g = sym(0); 229s assert (isequal (laplacian(f), g)) 229s assert (isequal (laplacian(f,x), g)) 229s f = sym('c'); 229s assert (isequal (laplacian(f,x), g)) 229s ***** test 229s % double const 229s f = 1; 229s g = sym(0); 229s assert (isequal (laplacian(f,x), g)) 230s ***** test 230s % 1D fcn in 2d/3d 230s f = sin(2*y); 230s g = -4*f; 230s assert (isequal (laplacian(f), g)) 230s assert (isequal (laplacian(f, {x,y}), g)) 230s assert (isequal (laplacian(f, {x,y,z}), g)) 230s ***** test 230s % 2d fcn in 2d/3d 230s f = sin(exp(x)*y); 230s g = diff(f,x,x) + diff(f,y,y); 230s assert (isequal (laplacian(f), g)) 230s assert (isequal (laplacian(f, {x,y}), g)) 230s ***** test 230s % 2d fcn in 2d/3d 230s f = sin(exp(x)*y+sinh(z)); 230s gr2 = gradient(f, {x,y}); 230s divgr2 = divergence(gr2, {x,y}); 230s l2 = laplacian(f,{x,y}); 230s gr3 = gradient(f, {x,y,z}); 230s divgr3 = divergence(gr3, {x,y,z}); 230s l3 = laplacian(f,{x,y,z}); 230s assert (isAlways (l2 == divgr2)) 230s assert (isAlways (l3 == divgr3)) 235s ***** error laplacian(sym('x'), sym('x'), 42) 235s ***** error laplacian([sym('x'), sym('x')]) 235s 8 tests, 8 passed, 0 known failure, 0 skipped 235s [inst/@sym/dsolve.m] 235s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/dsolve.m 235s ***** error dsolve (1, sym('x')) 235s ***** test 235s syms y(x) 235s de = diff(y, 2) - 4*y == 0; 235s f = dsolve(de); 235s syms C1 C2 235s g1 = C1*exp(-2*x) + C2*exp(2*x); 235s g2 = C2*exp(-2*x) + C1*exp(2*x); 235s assert (isequal (f, g1) || isequal (f, g2)) 235s ***** test 235s % Not enough initial conditions 235s syms y(x) C1 235s de = diff(y, 2) + 4*y == 0; 235s g = 3*cos(2*x) + C1*sin(2*x); 235s try 235s f = dsolve(de, y(0) == 3); 235s waserr = false; 235s catch 235s waserr = true; 235s expectederr = regexp (lasterr (), 'Perhaps.*under-specified'); 235s f = 42; 235s end 235s assert ((waserr && expectederr) || isequal (f, g)) 235s ***** test 235s % Solution in implicit form 235s syms y(x) C1 235s de = (2*x*y(x) - exp(-2*y(x)))*diff(y(x), x) + y(x) == 0; 235s sol = dsolve (de); 235s eqn = x*exp(2*y(x)) - log(y(x)) == C1; 235s % could differ by signs 235s sol = lhs (sol) - rhs (sol); 235s eqn = lhs (eqn) - rhs (eqn); 235s sol2 = subs (sol, C1, -C1); 235s assert (isequal (sol, eqn) || isequal (sol2, eqn)) 238s ***** test 238s % Compute solution and classification 238s syms y(x) C1 238s de = (2*x*y(x) - exp(-2*y(x)))*diff(y(x), x) + y(x) == 0; 238s [sol, classy] = dsolve (de); 238s assert (any (strcmp (classy, '1st_exact'))) 241s ***** test 241s % initial conditions (first order ode) 241s syms y(x) 241s de = diff(y, x) + 4*y == 0; 241s f = dsolve(de, y(0) == 3); 241s g = 3*exp(-4*x); 241s assert (isequal (f, g)) 241s ***** test 241s % initial conditions (second order ode) 241s syms y(x) 241s de = diff(y, 2) + 4*y == 0; 241s f = dsolve(de, y(0) == 3, subs(diff(y,x),x,0)==0); 241s g = 3*cos(2*x); 241s assert (isequal (f, g)) 241s ***** test 241s % Dirichlet boundary conditions (second order ode) 241s syms y(x) 241s de = diff(y, 2) + 4*y == 0; 241s f = dsolve(de, y(0) == 2, y(1) == 0); 241s g = -2*sin(2*x)/tan(sym('2'))+2*cos(2*x); 241s assert (isequal (simplify (f - g), 0)) 242s ***** test 242s % Neumann boundary conditions (second order ode) 242s syms y(x) 242s de = diff(y, 2) + 4*y == 0; 242s f = dsolve(de, subs(diff(y,x),x,0)==1, subs(diff(y,x),x,1)==0); 242s g = sin(2*x)/2+cos(2*x)/(2*tan(sym('2'))); 242s assert (isequal (simplify (f - g), 0)) 242s ***** test 242s % Dirichlet-Neumann boundary conditions (second order ode) 242s syms y(x) 242s de = diff(y, 2) + 4*y == 0; 242s f = dsolve(de, y(0) == 3, subs(diff(y,x),x,1)==0); 242s g = 3*sin(2*x)*tan(sym('2'))+3*cos(2*x); 242s assert (isequal (simplify (f - g), 0)) 243s ***** test 243s % System of ODEs gives struct, Issue #1003. 243s syms x(t) y(t) 243s ode1 = diff(x(t),t) == 2*y(t); 243s ode2 = diff(y(t),t) == 2*x(t); 243s soln = dsolve([ode1, ode2]); 243s assert (isstruct (soln)) 243s assert (numfields (soln) == 2) 243s assert (isequal (sort (fieldnames (soln)), {'x'; 'y'})) 243s ***** test 243s % System of ODEs 243s syms x(t) y(t) C1 C2 243s ode1 = diff(x(t),t) == 2*y(t); 243s ode2 = diff(y(t),t) == 2*x(t); 243s soln = dsolve([ode1, ode2]); 243s soln = [soln.x, soln.y]; 243s g1 = [C1*exp(-2*t) + C2*exp(2*t), -C1*exp(-2*t) + C2*exp(2*t)]; 243s g2 = [C1*exp(2*t) + C2*exp(-2*t), C1*exp(2*t) - C2*exp(-2*t)]; 243s g3 = [-C1*exp(-2*t) + C2*exp(2*t), C1*exp(-2*t) + C2*exp(2*t)]; 243s g4 = [C1*exp(2*t) - C2*exp(-2*t), C1*exp(2*t) + C2*exp(-2*t)]; 243s % old SymPy <= 1.5.1 had some extra twos 243s g5 = [2*C1*exp(-2*t) + 2*C2*exp(2*t), -2*C1*exp(-2*t) + 2*C2*exp(2*t)]; 243s g6 = [2*C1*exp(2*t) + 2*C2*exp(-2*t), 2*C1*exp(2*t) - 2*C2*exp(-2*t)]; 243s assert (isequal (soln, g1) || isequal (soln, g2) || ... 243s isequal (soln, g3) || isequal (soln, g4) || ... 243s isequal (soln, g5) || isequal (soln, g6)) 244s ***** test 244s % System of ODEs (initial-value problem) 244s syms x(t) y(t) 244s ode_1=diff(x(t),t) == 2*y(t); 244s ode_2=diff(y(t),t) == 2*x(t); 244s sol_ivp=dsolve([ode_1,ode_2],x(0)==1,y(0)==0); 244s g_ivp=[exp(-2*t)/2+exp(2*t)/2,-exp(-2*t)/2+exp(2*t)/2]; 244s assert (isequal ([sol_ivp.x, sol_ivp.y], g_ivp)) 245s ***** test 245s syms y(x) 245s de = diff(y, 2) + 4*y == 0; 245s f = dsolve(de, y(0) == 0, y(sym(pi)/4) == 1); 245s g = sin(2*x); 245s assert (isequal (f, g)) 245s ***** test 245s % Nonlinear example 245s syms y(x) C1 245s e = diff(y, x) == y^2; 245s g = -1 / (C1 + x); 245s soln = dsolve(e); 245s assert (isequal (soln, g)) 245s ***** test 245s % Nonlinear example with initial condition 245s syms y(x) 245s e = diff(y, x) == y^2; 245s g = -1 / (x - 1); 245s soln = dsolve(e, y(0) == 1); 245s assert (isequal (soln, g)) 246s ***** test 246s % forcing, Issue #183, broken in older sympy 246s if (pycall_sympy__ ('return Version(spver) >= Version("1.7.1")')) 246s syms x(t) y(t) 246s ode1 = diff(x) == x + sin(t) + 2; 246s ode2 = diff(y) == y - t - 3; 246s soln = dsolve([ode1 ode2], x(0) == 1, y(0) == 2); 246s X = soln.x; 246s Y = soln.y; 246s assert (isequal (diff(X) - (X + sin(t) + 2), 0)) 246s assert (isequal (diff(Y) - (Y - t - 3), 0)) 246s end 247s ***** test 247s syms f(x) a b 247s de = diff(f, x) == 4*f; 247s s = dsolve(de, f(a) == b); 247s assert (isequal (subs(s, x, a), b)) 247s ***** test 247s % array of ICs 247s syms x(t) y(t) 247s ode_1 = diff (x(t), t) == 2*y(t); 247s ode_2 = diff (y(t), t) == 2*x(t); 247s sol = dsolve([ode_1, ode_2], [x(0)==1 y(0)==0]); 247s g = [exp(-2*t)/2+exp(2*t)/2, -exp(-2*t)/2+exp(2*t)/2]; 247s assert (isequal ([sol.x, sol.y], g)) 248s ***** test 248s % cell-array of ICs or ODEs, but not both 248s % Note: to support both we'd need a wrapper outside of @sym 248s syms x(t) y(t) 248s ode_1 = diff (x(t), t) == 2*y(t); 248s ode_2 = diff (y(t), t) == 2*x(t); 248s sol = dsolve([ode_1, ode_2], {x(0)==1 y(0)==0}); 248s g = [exp(-2*t)/2+exp(2*t)/2, -exp(-2*t)/2+exp(2*t)/2]; 248s assert (isequal ([sol.x, sol.y], g)) 248s sol = dsolve({ode_1, ode_2}, [x(0)==1 y(0)==0]); 248s g = [exp(-2*t)/2+exp(2*t)/2, -exp(-2*t)/2+exp(2*t)/2]; 248s assert (isequal ([sol.x, sol.y], g)) 249s ***** test 249s % array of ICs, Issue #1040. 249s if (pycall_sympy__ ('return Version(spver) >= Version("1.7.1")')) 249s syms x(t) y(t) z(t) 249s syms x_0 y_0 z_0 249s diffEqns = [diff(x, t) == -x + 1, diff(y, t) == -y, diff(z, t) == -z]; 249s initCond = [x(0) == x_0, y(0) == y_0, z(0) == z_0]; 249s soln = dsolve (diffEqns, initCond); 249s soln = [soln.x, soln.y, soln.z]; 249s exact_soln = [(x_0 - 1)*exp(-t) + 1 y_0*exp(-t) z_0*exp(-t)]; 249s assert (isequal (soln, exact_soln)) 249s end 249s 21 tests, 21 passed, 0 known failure, 0 skipped 249s [inst/@sym/csch.m] 249s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/csch.m 249s ***** error csch (sym(1), 2) 249s ***** assert (isequaln (csch (sym(nan)), sym(nan))) 250s ***** shared x, d 250s d = 1; 250s x = sym('1'); 250s ***** test 250s f1 = csch(x); 250s f2 = csch(d); 250s assert( abs(double(f1) - f2) < 1e-15 ) 250s ***** test 250s D = [d d; d d]; 250s A = [x x; x x]; 250s f1 = csch(A); 250s f2 = csch(D); 250s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 250s ***** test 250s % round trip 250s y = sym('y'); 250s A = csch (d); 250s f = csch (y); 250s h = function_handle (f); 250s B = h (d); 250s assert (A, B, -eps) 250s 5 tests, 5 passed, 0 known failure, 0 skipped 250s [inst/@sym/heaviside.m] 250s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/heaviside.m 250s ***** error heaviside (sym(1), 2, 3) 250s ***** assert (isequal (heaviside (sym(1)), sym(1))) 250s ***** assert (isequal (heaviside (-sym(1)), sym(0))) 250s ***** assert (double (heaviside (1)), heaviside (1)) 250s ***** test 250s D = [1 -1; -10 20]; 250s A = sym(D); 250s assert (double (heaviside (A)), heaviside (D)) 250s ***** test 250s H0 = sym([1 -2 0; 3 0 pi]); 250s A = heaviside (sym(0), H0); 250s assert (isequal (A, H0)) 250s ***** test 250s A = heaviside ([-1 0 1], sym(1)/2); 250s assert (isequal (A, [0 sym(1)/2 1])) 250s ***** test 250s A = heaviside ([-1 0 1], sym(1)/2); 250s assert (isequal (A, [0 sym(1)/2 1])) 250s ***** assert (isequaln (heaviside (sym(nan)), sym(nan))) 250s ***** test 250s assert (isequaln (heaviside (sym(nan), sym(nan)), sym(nan))) 250s assert (isequaln (heaviside (0, sym(nan)), sym(nan))) 250s assert (isequaln (heaviside (2, sym(nan)), sym(1))) 250s assert (isequaln (heaviside (-2, sym(nan)), sym(0))) 250s ***** test 250s % round trip 250s syms x 250s A = heaviside (1); 250s f = heaviside (x); 250s h = function_handle (f); 250s B = h (1); 250s assert (A, B, -eps) 251s ***** test 251s % round trip 251s syms x h0 251s f = heaviside (x, h0); 251s h = function_handle (f, 'vars', {x h0}); 251s A = heaviside (1, 1/2); 251s B = h (1, 1/2); 251s assert (A, B, -eps) 251s A = heaviside (0, 1/2); 251s B = h (0, 1/2); 251s assert (A, B, -eps) 251s 12 tests, 12 passed, 0 known failure, 0 skipped 251s [inst/@sym/signIm.m] 251s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/signIm.m 251s ***** assert (isequal (signIm (sym(1)), sym(0))) 251s ***** assert (isequal (signIm (sym(1) + 2i), sym(1))) 251s ***** assert (isequal (signIm (sym(1) - 2i), sym(-1))) 251s ***** test 251s % intermediate A looks bit weird, but it works 251s syms z 251s A = signIm (z); 251s assert (isequal (subs(A, z, 3+sym(4i)), sym(1))) 251s assert (isequal (subs(A, z, 3-sym(4i)), sym(-1))) 251s ***** test 251s % really a @sym/sign test, but that one is autogen 251s z = 3 + sym(4i); 251s A = sign (z); 251s B = z / abs(z); 251s assert (double (A), double (B), eps) 251s 5 tests, 5 passed, 0 known failure, 0 skipped 251s [inst/@sym/symsum.m] 251s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/symsum.m 251s ***** error symsum (sym(1), 2, 3, 4, 5) 251s ***** test 251s % finite sums 251s syms n 251s assert (isequal (symsum(n,n,1,10), 55)) 251s assert(isa(symsum(n,n,1,10), 'sym')) 251s assert (isequal (symsum(n,n,sym(1),sym(10)), 55)) 251s assert (isequal (symsum(n,n,sym(1),sym(10)), 55)) 251s assert (isequal (symsum(1/n,n,1,10), sym(7381)/2520)) 251s ***** test 251s % negative limits 251s syms n 251s assert (isequal (symsum(n,n,-3,3), sym(0))) 251s assert (isequal (symsum(n,n,-3,0), sym(-6))) 251s assert (isequal (symsum(n,n,-3,-1), sym(-6))) 251s ***** test 251s % one input 251s syms n 251s f = symsum (n); 251s g = n^2/2 - n/2; 251s assert (isequal (f, g)) 251s f = symsum (2*n); 251s g = n^2 - n; 251s assert (isequal (f, g)) 252s ***** test 252s % constant input 252s f = symsum (sym(2)); 252s syms x 252s g = 2*x; 252s assert (isequal (f, g)) 252s ***** test 252s % two inputs 252s syms n 252s f = symsum (2*n, n); 252s g = n^2 - n; 252s assert (isequal (f, g)) 252s ***** test 252s % two inputs, second is range 252s syms n 252s f = symsum (n, [1 6]); 252s g = 21; 252s assert (isequal (f, g)) 252s f = symsum (n, [sym(1) 6]); 252s g = 21; 252s assert (isequal (f, g)) 252s f = symsum (2*n, [1 6]); 252s g = 2*21; 252s assert (isequal (f, g)) 252s ***** test 252s % three inputs, last is range 252s syms n 252s f = symsum (2*n, n, [1 4]); 252s g = sym(20); 252s assert (isequal (f, g)) 252s f = symsum (2*n, n, [sym(1) 4]); 252s g = sym(20); 252s assert (isequal (f, g)) 252s f = symsum (2, n, [sym(1) 4]); 252s g = sym(8); 252s assert (isequal (f, g)) 252s ***** test 252s % three inputs, no range 252s syms n 252s f = symsum (2*n, 1, 4); 252s g = sym(20); 252s assert (isequal (f, g)) 252s f = symsum (5, sym(1), 3); 252s g = sym(15); 252s assert (isequal (f, g)) 253s ***** test 253s % ok to use double's for arguments in infinite series 253s syms n oo 253s assert(isequal(symsum(1/n^2,n,1,oo), sym(pi)^2/6)) 253s assert(isequal(symsum(1/n^2,n,1,inf), sym(pi)^2/6)) 253s ***** test 253s % should be oo because 1 is real but seems to be 253s % zoo/oo depending on sympy version 253s syms n oo 253s zoo = sym('zoo'); 253s assert (isequal (symsum(1/n,n,1,oo), oo) || ... 253s isequal (symsum(1/n,n,1,oo), zoo)) 253s 11 tests, 11 passed, 0 known failure, 0 skipped 253s [inst/@sym/rref.m] 253s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/rref.m 253s ***** test 253s A = sym([1 2; 3 4]); 253s [r, k] = rref(A); 253s assert (isequal (r, eye(2))) 253s assert (isequal (k, [1 2])) 253s ***** assert (isequal (rref(sym([2 1])), [1 sym(1)/2])) 253s ***** assert (isequal (rref(sym([1 2; 2 4])), [1 2; 0 0])) 253s ***** assert (isequal (rref(sym([0 0; 2 4])), [1 2; 0 0])) 253s ***** test 253s A = sym([1 2 3; 2 3 4]); 253s [r, k] = rref(A); 253s assert (isequal (r, [1 0 -1; 0 1 2])) 253s assert (isequal (k, [1 2])); 254s 5 tests, 5 passed, 0 known failure, 0 skipped 254s [inst/@sym/cbrt.m] 254s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/cbrt.m 254s ***** error cbrt (sym(1), 2) 254s ***** assert (isequaln (cbrt (sym(nan)), sym(nan))) 254s ***** shared x, d 254s d = 2; 254s x = sym('2'); 254s ***** test 254s f1 = cbrt(x); 254s f2 = 1.2599210498948731647; 254s assert( abs(double(f1) - f2) < 1e-15 ) 254s ***** test 254s D = [d d; d d]; 254s A = [x x; x x]; 254s f1 = cbrt(A); 254s f2 = 1.2599210498948731647; 254s f2 = [f2 f2; f2 f2]; 254s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 254s ***** test 254s % round trip 254s y = sym('y'); 254s if (exist ('OCTAVE_VERSION', 'builtin')) 254s A = cbrt (d); 254s else 254s % Issue #742 254s A = d^(1/3); 254s end 254s f = cbrt (y); 254s h = function_handle (f); 254s B = h (d); 254s assert (A, B, -eps) 254s 5 tests, 5 passed, 0 known failure, 0 skipped 254s [inst/@sym/asin.m] 254s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/asin.m 254s ***** error asin (sym(1), 2) 254s ***** assert (isequaln (asin (sym(nan)), sym(nan))) 254s ***** shared x, d 254s d = 1; 254s x = sym('1'); 254s ***** test 254s f1 = asin(x); 254s f2 = asin(d); 254s assert( abs(double(f1) - f2) < 1e-15 ) 254s ***** test 254s D = [d d; d d]; 254s A = [x x; x x]; 254s f1 = asin(A); 254s f2 = asin(D); 254s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 254s ***** test 254s % round trip 254s y = sym('y'); 254s A = asin (d); 254s f = asin (y); 254s h = function_handle (f); 254s B = h (d); 254s assert (A, B, -eps) 254s 5 tests, 5 passed, 0 known failure, 0 skipped 254s [inst/@sym/ilaplace.m] 254s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/ilaplace.m 254s ***** error ilaplace (sym(1), 2, 3, 4) 254s ***** test 254s % basic SMT compact: no heaviside 254s syms s 254s syms t positive 254s assert (isequal (ilaplace(1/s^2), t)) 254s assert (isequal (ilaplace(s/(s^2+9)), cos(3*t))) 254s assert (isequal (ilaplace(6/s^4), t^3)) 255s ***** test 255s % more SMT compact 255s syms r 255s syms u positive 255s assert (isequal (ilaplace(1/r^2, u), u)) 255s assert (isequal (ilaplace(1/r^2, r, u), u)) 255s ***** test 255s % if t specified and not positive, we expect heaviside 255s clear s t 255s syms s t 255s assert (isequal (ilaplace(1/s^2, s, t), t*heaviside(t))) 255s assert (isequal (ilaplace(s/(s^2+9), t), cos(3*t)*heaviside(t))) 255s assert (isequal (ilaplace(6/s^4, t), t^3*heaviside(t))) 255s ***** test 255s % Heaviside test 255s syms s 255s t=sym('t', 'positive'); 255s assert(logical( ilaplace(exp(-5*s)/s^2,t) == (t-5)*heaviside(t-5) )) 255s ***** test 255s % Delta dirac test 255s syms s 255s t = sym('t'); 255s assert (isequal (ilaplace (sym('2'), t), 2*dirac(t))) 255s ***** test 255s % Delta dirac test 2 255s syms s t 255s calc = ilaplace (5*exp (-3*s) - 2*exp (-2*s)/s, s, t); 255s want = 5*dirac (t-3) - 2*heaviside (t-2); 255s assert (isequal (calc, want)) 256s ***** test 256s % Delta dirac test 3, coefficient 256s syms s t 256s syms c positive 256s calc = ilaplace (2*exp (-c*s), s, t); 256s want = 2*dirac (t - c); 256s assert (isAlways (calc == want)) 256s ***** error ilaplace (sym('s', 'positive')*sym('s')) 256s ***** test 256s % SMT compact, prefers s over symvar 256s syms s x 256s syms t positive 256s assert (isequal (ilaplace(x/s^4), x*t^3/6)) 256s t = sym('t'); 256s assert (isequal (ilaplace(x/s^4, t), x*t^3/6*heaviside(t))) 256s ***** test 256s % pick s even it has assumptions 256s syms s real 256s syms x t 256s assert (isequal (ilaplace (x/s^2, t), x*t*heaviside(t))) 256s 11 tests, 11 passed, 0 known failure, 0 skipped 256s [inst/@sym/cosd.m] 256s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/cosd.m 256s ***** error cosd (sym(1), 2) 256s ***** assert (isequaln (cosd (sym(nan)), sym(nan))) 256s ***** test 256s f1 = cosd (sym(1)); 256s f2 = cosd (1); 256s assert (double (f1), f2, -eps) 256s ***** test 256s D = [10 30; 110 -45]; 256s A = sym(D); 256s f1 = cosd (A); 256s f2 = cosd (D); 256s assert (double (f1), f2, -4*eps) 257s 4 tests, 4 passed, 0 known failure, 0 skipped 257s [inst/@sym/erfcinv.m] 257s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/erfcinv.m 257s ***** error erfcinv (sym(1), 2) 257s ***** assert (isequaln (erfcinv (sym(nan)), sym(nan))) 257s ***** shared x, d 257s d = 1; 257s x = sym('1'); 257s ***** test 257s f1 = erfcinv(x); 257s f2 = erfcinv(d); 257s assert( abs(double(f1) - f2) < 1e-15 ) 257s ***** test 257s D = [d d; d d]; 257s A = [x x; x x]; 257s f1 = erfcinv(A); 257s f2 = erfcinv(D); 257s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 257s ***** test 257s % round trip 257s y = sym('y'); 257s A = erfcinv (d); 257s f = erfcinv (y); 257s h = function_handle (f); 257s B = h (d); 257s assert (A, B, -eps) 257s 5 tests, 5 passed, 0 known failure, 0 skipped 257s [inst/@sym/factor.m] 257s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/factor.m 257s ***** test 257s % n = 152862; 257s % [p,m] = factor(n); % only works on Octave, no Matlab as of 2014a 257s n = 330; % so we use an output without repeated factors 257s p = factor(n); m = ones(size(p)); 257s [ps,ms] = factor(sym(n)); 257s assert (isequal (p, ps)) 257s assert (isequal (m, ms)) 257s ***** test 257s n = sym(2)^4*13; 257s [p,m] = factor(n); 257s assert (isequal (p, [2 13])) 257s assert (isequal (m, [4 1])) 257s ***** test syms x 257s assert( logical (factor(x^2 + 6*x + 5) == (x+5)*(x+1))) 257s ***** test 257s syms x 257s f = [ x^4/2 + 5*x^3/12 - x^2/3 x^2 - 1 10]; 257s g = [ x^2*(2*x - 1)*(3*x + 4)/12 (x+1)*(x-1) 10]; 257s assert (isequal (factor(f), g)) 258s ***** test 258s % "fragile form" works 258s A = factor(sym(124)); 258s B = strtrim(disp(A, 'flat')); 258s assert (strcmp (B, '2**2*31**1')) 258s ***** error [p, m] = factor(sym('x')); 258s ***** error [p, m] = factor(sym(42), sym('x')); 258s ***** test 258s % if polynomial happens to be a constant, don't attempt integer 258s % factorization if a variable is specified 258s f = sym(42); 258s q = factor(f, sym('x')); 258s assert (isequal (f, q)); 258s 8 tests, 8 passed, 0 known failure, 0 skipped 258s [inst/@sym/gamma.m] 258s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/gamma.m 258s ***** error gamma (sym(1), 2) 258s ***** assert (isequaln (gamma (sym(nan)), sym(nan))) 258s ***** shared x, d 258s d = 1; 258s x = sym('1'); 258s ***** test 258s f1 = gamma(x); 258s f2 = gamma(d); 258s assert( abs(double(f1) - f2) < 1e-15 ) 258s ***** test 258s D = [d d; d d]; 258s A = [x x; x x]; 258s f1 = gamma(A); 258s f2 = gamma(D); 258s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 258s ***** test 258s % round trip 258s y = sym('y'); 258s A = gamma (d); 258s f = gamma (y); 258s h = function_handle (f); 258s B = h (d); 258s assert (A, B, -eps) 258s 5 tests, 5 passed, 0 known failure, 0 skipped 258s [inst/@sym/abs.m] 258s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/abs.m 258s ***** error abs (sym(1), 2) 258s ***** assert (isequaln (abs (sym(nan)), sym(nan))) 258s ***** shared x, d 258s d = -1; 258s x = sym('-1'); 258s ***** test 258s f1 = abs(x); 258s f2 = abs(d); 258s assert( abs(double(f1) - f2) < 1e-15 ) 258s ***** test 258s D = [d d; d d]; 258s A = [x x; x x]; 258s f1 = abs(A); 258s f2 = abs(D); 258s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 258s ***** test 258s % round trip 258s y = sym('y'); 258s A = abs (d); 258s f = abs (y); 258s h = function_handle (f); 258s B = h (d); 258s assert (A, B, -eps) 258s 5 tests, 5 passed, 0 known failure, 0 skipped 258s [inst/@sym/norm.m] 258s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/norm.m 258s ***** assert (isequal (norm(sym(-6)), 6)) 258s ***** test 258s % 2-norm default 258s A = [1 2; 3 4]; 258s n1 = norm (sym (A)); 258s assert (isequal (n1, sqrt (sqrt (sym(221)) + 15))) 258s assert (norm (A), double (n1), -eps) 259s ***** test 259s syms x y real 259s assert (isequal (norm([x 1; 3 y], 'fro'), sqrt(x^2 + y^2 + 10))) 259s ***** test 259s syms x real 259s assert (isequal (norm([x 1], 2), sqrt(x^2 + 1))) 259s ***** test 259s % test sym vs double ord 259s syms x 259s assert (isequal (norm([x 2 1], 1), abs(x) + 3)) 259s assert (isequal (norm([x 2 1], sym(1)), abs(x) + 3)) 259s assert (isequal (norm([sym(-3) 2 1], inf), sym(3))) 259s assert (isequal (norm([sym(-3) 2 1], sym(inf)), sym(3))) 259s 5 tests, 5 passed, 0 known failure, 0 skipped 259s [inst/@sym/acos.m] 259s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/acos.m 259s ***** error acos (sym(1), 2) 259s ***** assert (isequaln (acos (sym(nan)), sym(nan))) 259s ***** shared x, d 259s d = 1; 259s x = sym('1'); 259s ***** test 259s f1 = acos(x); 259s f2 = acos(d); 259s assert( abs(double(f1) - f2) < 1e-15 ) 259s ***** test 259s D = [d d; d d]; 259s A = [x x; x x]; 259s f1 = acos(A); 259s f2 = acos(D); 259s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 259s ***** test 259s % round trip 259s y = sym('y'); 259s A = acos (d); 259s f = acos (y); 259s h = function_handle (f); 259s B = h (d); 259s assert (A, B, -eps) 259s 5 tests, 5 passed, 0 known failure, 0 skipped 259s [inst/@sym/angle.m] 259s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/angle.m 259s ***** test 259s Z = [sqrt(sym(3)) + 3*sym(i), 3 + sqrt(sym(3))*sym(i); 1 + sym(i), sym(i)]; 259s Q = [sym(pi)/3 sym(pi)/6; sym(pi)/4 sym(pi)/2]; 259s assert( isequal( angle(Z), Q)); 260s ***** test 260s % roundtrip 260s syms x 260s A = angle (2+2i); 260s f = angle (x); 260s h = function_handle (f); 260s B = h (2+2i); 260s assert (A, B, -eps) 260s 2 tests, 2 passed, 0 known failure, 0 skipped 260s [inst/@sym/not.m] 260s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/not.m 260s ***** shared t, f 260s t = sym(true); 260s f = sym(false); 260s ***** test 260s % simple 260s assert (isequal( ~t, f)) 260s assert (isequal( ~t, f)) 260s ***** test 260s % array 260s w = [t t f t]; 260s z = [f f t f]; 260s assert (isequal( ~w, z)) 260s ***** test 260s % number 260s assert (isequal( ~sym(5), f)) 260s assert (isequal( ~sym(0), t)) 260s ***** test 260s % output is sym 260s syms x 260s e = ~(x == 4); 260s assert (isa (e, 'sym')) 260s assert (strncmp (sympy(e), 'Unequality', 10)) 260s ***** test 260s % output is sym even for scalar t/f (should match other bool fcns) 260s assert (isa (~t, 'sym')) 260s ***** test 260s % symbol ineq 260s syms x 260s a = [t f x == 1 x ~= 2 x < 3 x <= 4 x > 5 x >= 6]; 260s b = [f t x ~= 1 x == 2 x >= 3 x > 4 x <= 5 x < 6]; 260s assert (isequal( ~a, b)) 260s ***** test 260s syms x 260s y = ~x; 260s s = disp(y, 'flat'); 260s assert (strcmp (strtrim (s), '~x') || strcmpi (strtrim (s), 'Not(x)')) 260s ***** error not (sym(1), 2) 260s 8 tests, 8 passed, 0 known failure, 0 skipped 260s [inst/@sym/cat.m] 260s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/cat.m 260s ***** test 260s % mostly tested in horzcat, vertcat: one for good measure 260s syms x 260s assert (isequal (cat(1, x, x), [x x])) 260s assert (isequal (cat(2, x, x), [x; x])) 260s ***** error cat(3, sym(2), sym(3)) 260s ***** error cat(0, sym(2), sym(3)) 260s 3 tests, 3 passed, 0 known failure, 0 skipped 260s [inst/@sym/matlabFunction.m] 260s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/matlabFunction.m 260s ***** test 260s % autodetect inputs 260s syms x y 260s s = warning('off', 'OctSymPy:function_handle:nocodegen'); 260s h = matlabFunction(2*x*y, x+y); 260s warning(s) 260s [t1, t2] = h(3,5); 260s assert(t1 == 30 && t2 == 8) 261s 1 test, 1 passed, 0 known failure, 0 skipped 261s [inst/@sym/exp.m] 261s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/exp.m 261s ***** error exp (sym(1), 2) 261s ***** assert (isequaln (exp (sym(nan)), sym(nan))) 261s ***** shared x, d 261s d = 1; 261s x = sym('1'); 261s ***** test 261s f1 = exp(x); 261s f2 = exp(d); 261s assert( abs(double(f1) - f2) < 1e-15 ) 261s ***** test 261s D = [d d; d d]; 261s A = [x x; x x]; 261s f1 = exp(A); 261s f2 = exp(D); 261s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 261s ***** test 261s % round trip 261s y = sym('y'); 261s A = exp (d); 261s f = exp (y); 261s h = function_handle (f); 261s B = h (d); 261s assert (A, B, -eps) 261s 5 tests, 5 passed, 0 known failure, 0 skipped 261s [inst/@sym/ssinint.m] 261s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/ssinint.m 261s ***** assert (isequal (ssinint(sym(0)), -sym(pi)/2)) 261s ***** test 261s A = ssinint (sym ([0 1])); 261s B = [-pi/2 -0.62471325642771360426]; 261s assert( all(all( abs(double(A)-B) < 1e-15 ))) 261s 2 tests, 2 passed, 0 known failure, 0 skipped 261s [inst/@sym/or.m] 261s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/or.m 261s ***** shared t, f 261s t = sym(true); 261s f = sym(false); 261s ***** test 261s % simple 261s assert (isequal (t | f, t)) 261s assert (isequal (t | t, t)) 261s assert (isequal (f | f, f)) 261s ***** test 261s % array 261s w = [t t f f]; 261s z = [t f t f]; 261s assert (isequal (w | z, [t t t f])) 261s ***** test 261s % output is sym even for scalar t/f 261s assert (isa (t | f, 'sym')) 261s ***** test 261s % eqns 261s syms x 261s e = or(x == 4, x == 5); 261s assert (isequal (subs(e, x, [3 4 5 6]), [f t t f])) 261s ***** error or (sym(1), 2, 3) 261s 5 tests, 5 passed, 0 known failure, 0 skipped 261s [inst/@sym/sinint.m] 261s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/sinint.m 261s ***** error sinint (sym(1), 2) 261s ***** xtest 261s assert (isequaln (sinint (sym(nan)), sym(nan))) 261s !!!!! known failure 261s assert (isequaln (sinint (sym (nan)), sym (nan))) failed 261s ***** shared x, d 261s d = 1; 261s x = sym('1'); 261s ***** test 261s f1 = sinint(x); 261s f2 = 0.9460830703671830149414; 261s assert( abs(double(f1) - f2) < 1e-15 ) 261s ***** test 261s D = [d d; d d]; 261s A = [x x; x x]; 261s f1 = sinint(A); 261s f2 = 0.9460830703671830149414; 261s f2 = [f2 f2; f2 f2]; 261s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 262s ***** test 262s % round trip 262s y = sym('y'); 262s A = sinint (d); 262s f = sinint (y); 262s h = function_handle (f); 262s B = h (d); 262s assert (A, B, -eps) 262s 5 tests, 4 passed, 1 known failure, 0 skipped 262s [inst/@sym/findsym.m] 262s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/findsym.m 262s ***** assert (strcmp (findsym (sym(2)), '')); 262s ***** shared x,y,f 262s x=sym('x'); y=sym('y'); f=x^2+3*x*y-y^2; 262s ***** assert (strcmp (findsym (f), 'x,y')); 262s ***** assert (strcmp (findsym (f,1), 'x')); 262s ***** test 262s % test order of returned vars 262s syms x y a b c xx 262s % https://www.mathworks.com/matlabcentral/newsreader/view_thread/237730 262s alpha = sym('alpha'); 262s assert (strcmp (findsym(b*xx*exp(alpha) + c*sin(a*y), 2), 'xx,y')) 262s 4 tests, 4 passed, 0 known failure, 0 skipped 262s [inst/@sym/potential.m] 262s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/potential.m 262s ***** error potential (sym(1), 2, 3, 4) 262s ***** shared x,y,z 262s syms x y z 262s ***** test 262s % 1D 262s f = 3*x^2; 262s F = x^3; 262s assert (isequal (potential(f), F)) 262s assert (isequal (potential(f, x), F)) 262s assert (isequal (potential(f, x, 0), F)) 262s assert (isequal (potential(f, x, 2), F - 8)) 262s ***** test 262s F = x*exp(y) + (z-1)^2; 262s f = gradient(F); 262s G = potential(f, [x;y;z], [0;1;1]); 262s assert (isAlways (G == F)) 263s ***** test 263s F = x*exp(y); 263s f = gradient(F); 263s G = potential(f); 263s assert (isAlways (G == F)) 263s ***** test 263s % no potential exists 263s syms x y 263s a = [x; x*y^2]; 263s assert (isnan (potential (a))) 263s ***** shared 263s ***** xtest 263s % fails b/c of sympy #8458 (piecewise expr that should simplify) 263s syms x 263s f = cos(x); 263s assert (isequal (potential(f, x), sin(x))) 263s !!!!! known failure 263s assert (isequal (potential (f, x), sin (x))) failed 263s 6 tests, 5 passed, 1 known failure, 0 skipped 263s [inst/@sym/eq.m] 263s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/eq.m 263s ***** test 263s % simple tests with scalar numbers 263s assert (logical (sym(1) == sym(1))) 263s assert (logical (sym(1) == 1)) 263s assert (~logical (sym(1) == 0)) 263s assert (isequal (sym(1) == sym(1), sym(true))) 263s assert (isequal (sym(1) == 1, sym(true))) 263s assert (isequal (sym(1) == 0, sym(false))) 263s ***** test 263s % Type of the output is sym or logical? 263s % FIXME: in current version, they are sym 263s e = sym(1) == sym(1); 263s %assert (islogical (e)) 263s assert (isa (e, 'sym')) 263s ***** test 263s % things involving a variable are usually not bool but sym. 263s % (SMT behaviour says always, FIXME: currently we differ.) 263s syms x 263s e = x == 0; 263s assert (~islogical (e)) 263s assert (isa (e, 'sym')) 263s ***** test 263s % ... except of course via cancelation 263s syms x 263s e = x - x == 0; 263s assert (logical (e)) 263s assert (isequal (e, sym(true))) 263s ***** test 263s % array == array 263s a = sym([1 2; 3 4]); 263s y = a == a; 263s assert (isequal( size(y), [2 2])) 263s assert (isequal (y, sym([true true; true true]))) 263s assert (all(all(y))) 263s y = a == 1; 263s assert (isequal( size(y), [2 2])) 263s assert (isequal (y, sym([true false; false false]))) 263s assert (any(any(y))) 263s y = a == 42; 263s assert (isequal( size(y), [2 2])) 263s assert (isequal (y, sym([false false; false false]))) 264s ***** test 264s % more array == array 264s D = [0 1; 2 3]; 264s A = [sym(0) 1; sym(2) 3]; 264s DZ = D - D; 264s assert (isequal (logical(A == A), [true true; true true])) 264s assert (isequal (logical(A == D), [true true; true true])) 264s assert (isequal (logical(A - D == DZ), [true true; true true])) 264s assert (all (all ( A == A ))) 264s assert (all (all ( A == D ))) 264s assert (all (all ( A - D == DZ ))) 264s ***** test 264s % logical output, right shape, etc 264s t = true; f = false; 264s a = sym([0 1 2; 3 4 5]); 264s b = sym([0 1 1; 3 5 5]); 264s e = a == b; 264s eexp = sym(logical([1 1 0; 1 0 1])); 264s assert (isequal (e, eexp)) 264s a = sym([0 1 2]); 264s b = sym([0 1 1]); 264s e = a == b; 264s eexp = sym(logical([1 1 0])); 264s assert (isequal (e, eexp)) 264s e = a' == b'; 264s eexp = eexp.'; % is/was bug here with ' 264s assert (isequal (e, eexp)) 264s ***** test 264s % empty matrices compare to correct empty size 264s a = zeros (sym(3), 0); 264s assert (size (a == a), [3, 0]) 264s a = zeros (sym(0), 2); 264s assert (size (a == a), [0, 2]) 264s 8 tests, 8 passed, 0 known failure, 0 skipped 264s [inst/@sym/svd.m] 264s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/svd.m 264s ***** test 264s % basic 264s A = [1 2; 3 4]; 264s B = sym(A); 264s sd = svd(A); 264s s = svd(B); 264s s2 = double(s); 264s assert (norm(s2 - sd) <= 10*eps) 265s ***** test 265s % scalars 265s syms x 265s syms y positive 265s a = sym(-10); 265s assert (isequal (svd(a), sym(10))) 265s assert (isequal (svd(x), sqrt(x*conj(x)))) 265s assert (isequal (svd(y), y)) 265s ***** test 265s % matrix with symbols 265s syms x positive 265s A = [x+1 0; sym(0) 2*x+1]; 265s s = svd(A); 265s s2 = subs(s, x, 2); 265s assert (isequal (s2, [sym(5); 3])) 265s ***** test 265s % matrix with symbols 265s syms x positive 265s A = [x+1 0; sym(0) 2*x+1]; 265s s = svd(A); 265s s2 = subs(s, x, 2); 265s assert (isequal (s2, [sym(5); 3])) 265s ***** test 265s % matrix with symbols, nonneg sing values 265s syms x real 265s A = [x 0; 0 sym(-5)]; 265s s = svd(A); 265s assert (isequal (s, [abs(x); 5])) 265s 5 tests, 5 passed, 0 known failure, 0 skipped 265s [inst/@sym/sin.m] 265s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/sin.m 265s ***** error sin (sym(1), 2) 265s ***** assert (isequaln (sin (sym(nan)), sym(nan))) 265s ***** shared x, d 265s d = 1; 265s x = sym('1'); 265s ***** test 265s f1 = sin(x); 265s f2 = sin(d); 265s assert( abs(double(f1) - f2) < 1e-15 ) 265s ***** test 265s D = [d d; d d]; 265s A = [x x; x x]; 265s f1 = sin(A); 265s f2 = sin(D); 265s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 265s ***** test 265s % round trip 265s y = sym('y'); 265s A = sin (d); 265s f = sin (y); 265s h = function_handle (f); 265s B = h (d); 265s assert (A, B, -eps) 265s 5 tests, 5 passed, 0 known failure, 0 skipped 265s [inst/@sym/ezcontour.m] 265s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/ezcontour.m 265s ***** error 265s syms x y z 265s ezcontour (x*y*z) 265s 1 test, 1 passed, 0 known failure, 0 skipped 265s [inst/@sym/union.m] 265s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/union.m 265s ***** test 265s A = sym([1 2 3]); 265s B = sym([1 2 4]); 265s C = union(A, B); 265s D = sym([1 2 3 4]); 265s assert (isequal (C, D)) 266s ***** test 266s % one nonsym 266s A = sym([1 2 3]); 266s B = [1 2 4]; 266s C = union(A, B); 266s D = sym([1 2 3 4]); 266s assert (isequal (C, D)) 266s ***** test 266s % empty 266s A = sym([1 2 3]); 266s C = union(A, A); 266s assert (isequal(C, A)) 266s ***** test 266s % empty input 266s A = sym([1 2]); 266s C = union(A, []); 266s assert (isequal (C, sym([1 2]))) 266s ***** test 266s % scalar 266s syms x 266s assert (isequal (union([x 1], x), [1 x])) 266s assert (isequal (union(x, x), x)) 266s ***** test 266s A = interval(sym(1), 3); 266s B = interval(sym(2), 5); 266s C = union(A, B); 266s assert( isequal( C, interval(sym(1), 5))) 266s 6 tests, 6 passed, 0 known failure, 0 skipped 266s [inst/@sym/erf.m] 266s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/erf.m 266s ***** error erf (sym(1), 2) 266s ***** assert (isequaln (erf (sym(nan)), sym(nan))) 266s ***** shared x, d 266s d = 1; 266s x = sym('1'); 266s ***** test 266s f1 = erf(x); 266s f2 = erf(d); 266s assert( abs(double(f1) - f2) < 1e-15 ) 266s ***** test 266s D = [d d; d d]; 266s A = [x x; x x]; 266s f1 = erf(A); 266s f2 = erf(D); 266s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 266s ***** test 266s % round trip 266s y = sym('y'); 266s A = erf (d); 266s f = erf (y); 266s h = function_handle (f); 266s B = h (d); 266s assert (A, B, -eps) 266s 5 tests, 5 passed, 0 known failure, 0 skipped 266s [inst/@sym/nchoosek.m] 266s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/nchoosek.m 266s ***** assert (isequal (nchoosek(sym(5), sym(2)), sym(10))) 266s ***** assert (isequal (nchoosek(sym(5), 2), sym(10))) 266s ***** assert (isequal (nchoosek(5, sym(2)), sym(10))) 266s ***** assert (isequal (nchoosek(sym(10), 0), 1)) 266s ***** assert (isequal (nchoosek(sym(10), -1), 0)) 266s ***** test 266s n = sym('n', 'nonnegative', 'integer'); 266s assert (isequal (nchoosek (n, n), sym(1))) 266s ***** test 266s n = sym('n', 'integer'); 266s q = nchoosek(n, 2); 266s w = subs(q, n, 5); 266s assert (isequal (w, 10)) 266s ***** test 266s n = sym('n', 'integer'); 266s k = sym('k', 'integer'); 266s q = nchoosek(n, k); 266s w = subs(q, {n k}, {5 2}); 266s assert (isequal (w, 10)) 267s ***** test 267s % negative input 267s assert (isequal (nchoosek (sym(-2), sym(5)), sym(-6))) 267s ***** test 267s % complex input 267s n = sym(1 + 3i); 267s k = sym(5); 267s A = nchoosek (n, k); 267s B = gamma (n + 1) / (gamma (k + 1) * gamma (n - k + 1)); 267s assert (double (A), double (B), -2*eps) 267s ***** test 267s % complex input 267s n = sym(-2 + 3i); 267s k = sym(1 + i); 267s A = nchoosek (n, k); 267s B = gamma (n + 1) / (gamma (k + 1) * gamma (n - k + 1)); 267s assert (double (A), double (B), -2*eps) 267s 11 tests, 11 passed, 0 known failure, 0 skipped 267s [inst/@sym/pochhammer.m] 267s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/pochhammer.m 267s ***** error pochhammer (sym(1)) 267s ***** error pochhammer (sym(1), 2, 3) 267s ***** assert (isequal (pochhammer (sym(3), 4), sym(360))) 267s ***** assert (isequal (pochhammer (sym([2 3]), 3), sym([24 60]))) 267s ***** test 267s % round trip 267s syms n z 267s f = pochhammer (z, n); 267s h = function_handle (f, 'vars', [z n]); 267s A = h (1.1, 2.2); 267s B = pochhammer (1.1, 2.2); 267s assert (A, B) 267s 5 tests, 5 passed, 0 known failure, 0 skipped 267s [inst/@sym/int.m] 267s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/int.m 267s ***** shared x,y,a 267s syms x y a 267s ***** assert(logical(int(cos(x)) - sin(x) == 0)) 268s ***** assert(logical(int(cos(x),x) - sin(x) == 0)) 268s ***** assert(logical(int(cos(x),x,0,1) - sin(sym(1)) == 0)) 268s ***** test 268s %% limits might be syms 268s assert( isequal (int(cos(x),x,sym(0),sym(1)), sin(sym(1)))) 268s assert( isequal (int(cos(x),x,0,a), sin(a))) 268s ***** test 268s %% other variables present 268s assert( isequal (int(y*cos(x),x), y*sin(x))) 268s ***** test 268s %% limits as array 268s assert( isequal (int(cos(x),x,[0 1]), sin(sym(1)))) 268s assert( isequal (int(cos(x),x,sym([0 1])), sin(sym(1)))) 268s assert( isequal (int(cos(x),x,[0 a]), sin(a))) 268s ***** test 268s %% no x given 268s assert( isequal (int(cos(x),[0 1]), sin(sym(1)))) 268s assert( isequal (int(cos(x),sym([0 1])), sin(sym(1)))) 268s assert( isequal (int(cos(x),[0 a]), sin(a))) 268s assert( isequal (int(cos(x),0,a), sin(a))) 268s ***** test 268s %% integration of const 268s assert( isequal (int(sym(2),y), 2*y)) 268s assert( isequal (int(sym(2)), 2*x)) 268s assert( isequal (int(sym(2),[0 a]), 2*a)) 268s assert( isequal (int(sym(2),0,a), 2*a)) 269s ***** test 269s % componentwise int of array 269s A = [x x*x]; 269s assert (isequal (int(A, x), [x^2/2 x^3/3])) 269s ***** test 269s % NonElementaryIntegral bug 269s % https://savannah.gnu.org/bugs/index.php?46831 269s f = int(exp(exp(x))); 269s f = f + 2; 269s g = diff(f); 269s assert (isequal (g, exp(exp(x)))) 269s 10 tests, 10 passed, 0 known failure, 0 skipped 269s [inst/@sym/sort.m] 269s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/sort.m 269s ***** error sort (sym(1), 2) 269s ***** test 269s f = [sym(1), sym(0)]; 269s expected = sym([0, 1]); 269s assert (isequal (sort(f), expected)) 269s ***** test 269s f = [sym(1)]; 269s expected = sym(1); 269s assert (isequal (sort(f), expected)) 269s ***** test 269s f = [sym(3), sym(2), sym(6)]; 269s s = sort(f); 269s expected_s = sym([2, 3, 6]); 269s assert (isequal (s, expected_s)) 269s ***** test 269s f = [sym(pi), sin(sym(2)), sqrt(sym(6))]; 269s s = sort(f); 269s expected_s = sym([sin(sym(2)), sqrt(sym(6)), sym(pi)]); 269s assert (isequal (s, expected_s)) 269s ***** test 269s f = [sym(1), sym(2); sym(2), sym(pi); sym(pi), sym(1)]; 269s s = sort(f); 269s expected_s = ([sym(1), sym(1); sym(2), sym(2); sym(pi), sym(pi)]); 269s assert (isequal (s, expected_s)) 269s ***** assert (isequal (sort(sym([])), sym([]))) 269s ***** error sort([sym('x') 1]) 269s ***** test 269s % but with assumptions, symbols can be sorted 269s p = sym('p', 'positive'); 269s n = sym('n', 'negative'); 269s expected_s = [n p]; 269s s = sort ([p n]); 269s assert (isequal (s, expected_s)) 270s 9 tests, 9 passed, 0 known failure, 0 skipped 270s [inst/@sym/le.m] 270s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/le.m 270s ***** test 270s % simple 270s x = sym(1); y = sym(1); e = x <= y; 270s assert (logical (e)) 270s x = sym(1); y = sym(2); e = x <= y; 270s assert (logical (e)) 270s ***** test 270s % array -- array 270s syms x 270s a = sym([1 3 3 2*x]); 270s b = sym([2 x 3 10]); 270s e = a <= b; 270s assert (isa (e, 'sym')) 270s assert (logical (e(1))) 270s assert (isa (e(2), 'sym')) 270s assert (isequal (e(2), 3 <= x)) 270s assert (logical (e(3))) 270s assert (isa (e(4), 'sym')) 270s assert (isequal (e(4), 2*x <= 10)) 270s 2 tests, 2 passed, 0 known failure, 0 skipped 270s [inst/@sym/any.m] 270s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/any.m 270s ***** test 270s % matrix 270s a = [0 0; 1 0]; 270s s = sym(a); 270s assert (isequal (any (s), any (a))) 270s assert (isequal (any (s,1), any (a,1))) 270s assert (isequal (any (s,2), any (a,2))) 270s ***** test 270s % vector 270s a = [0 1 0]; 270s s = sym(a); 270s assert (isequal (any (s), any (a))) 270s assert (isequal (any (s,1), any (a,1))) 270s assert (isequal (any (s,2), any (a,2))) 270s ***** test 270s % should fail on symbols 270s syms x 270s s = [0 1 x]; 270s try 270s any (s) 270s waserr = false; 270s catch 270s waserr = true; 270s end 270s assert (waserr) 270s 3 tests, 3 passed, 0 known failure, 0 skipped 270s [inst/@sym/cond.m] 270s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/cond.m 270s ***** test 270s A = [1 2; 3 4]; 270s B = sym(A); 270s k1 = cond(A); 270s k2 = cond(B); 270s k3 = double(k2); 270s assert (k1 - k3 <= 100*eps) 270s ***** test 270s % matrix with symbols 270s syms x positive 270s A = [x 0; sym(0) 2*x]; 270s k1 = cond(A); 270s assert (isequal (k1, sym(2))) 270s 2 tests, 2 passed, 0 known failure, 0 skipped 270s [inst/@sym/fresnelc.m] 270s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/fresnelc.m 270s ***** error fresnelc (sym(1), 2) 270s ***** test 270s a = fresnelc(sym(0)); 270s assert (isequal (a, sym(0))) 270s ***** test 270s b = fresnelc(sym('oo')); 270s assert (isequal (b, sym(1)/2)) 270s ***** test 270s % values in a matrix 270s syms x 270s a = fresnelc([sym(0) sym('oo') x 1]); 270s b = [sym(0) sym(1)/2 fresnelc(x) fresnelc(sym(1))]; 270s assert (isequal (a, b)) 270s ***** test 270s % round trip 270s syms x 270s f = fresnelc (x); 270s h = function_handle (f); 270s A = h (1.1); 270s B = fresnelc (1.1); 270s assert (A, B) 270s 5 tests, 5 passed, 0 known failure, 0 skipped 270s [inst/@sym/flipud.m] 270s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/flipud.m 270s ***** test 270s % simple 270s syms x 270s A = [x 2; sym(pi) x]; 270s B = [sym(pi) x; x 2]; 270s assert (isequal (flipud(A), B)) 271s ***** test 271s % simple, odd # rows 271s syms x 271s A = [x 2; sym(pi) x; [1 2]]; 271s B = [[1 2]; sym(pi) x; x 2]; 271s assert (isequal (flipud(A), B)) 271s ***** test 271s % scalar 271s syms x 271s assert (isequal (flipud(x), x)) 271s 3 tests, 3 passed, 0 known failure, 0 skipped 271s [inst/@sym/tanh.m] 271s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/tanh.m 271s ***** error tanh (sym(1), 2) 271s ***** assert (isequaln (tanh (sym(nan)), sym(nan))) 271s ***** shared x, d 271s d = 1; 271s x = sym('1'); 271s ***** test 271s f1 = tanh(x); 271s f2 = tanh(d); 271s assert( abs(double(f1) - f2) < 1e-15 ) 271s ***** test 271s D = [d d; d d]; 271s A = [x x; x x]; 271s f1 = tanh(A); 271s f2 = tanh(D); 271s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 271s ***** test 271s % round trip 271s y = sym('y'); 271s A = tanh (d); 271s f = tanh (y); 271s h = function_handle (f); 271s B = h (d); 271s assert (A, B, -eps) 271s 5 tests, 5 passed, 0 known failure, 0 skipped 271s [inst/@sym/rewrite.m] 271s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/rewrite.m 271s ***** test 271s syms x 271s assert (isequal (rewrite(x, 'exp'), x)) 271s ***** test 271s % empty 271s e = sym([]); 271s assert (isequal (rewrite(e, 'sin'), e)) 271s ***** test 271s syms x 271s A = [exp(x) exp(2*x)]; 271s B = [sinh(x) + cosh(x) sinh(2*x) + cosh(2*x)]; 271s assert (isequal (rewrite(A, 'sin'), B)) 271s 3 tests, 3 passed, 0 known failure, 0 skipped 271s [inst/@sym/subsindex.m] 271s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/subsindex.m 271s ***** test 271s i = sym(1); 271s a = 7; 271s assert(a(i)==a); 271s i = sym(2); 271s a = 2:2:10; 271s assert(a(i)==4); 271s ***** test 271s i = sym([1 3 5]); 271s a = 1:10; 271s assert( isequal (a(i), [1 3 5])) 271s ***** test 271s i = sym([1 3 5]); 271s a = sym(1:10); 271s assert( isequal (a(i), sym([1 3 5]))); 271s ***** test 271s % should be an error if it doesn't convert to double 271s syms x 271s a = 1:10; 271s try 271s a(x) 271s waserr = false; 271s catch 271s waserr = true; 271s end 271s assert(waserr) 272s ***** test 272s syms x 272s assert (isequal (x(sym (true)), x)) 272s assert (isequal (x(sym (false)), sym ([]))) 272s ***** test 272s x = 6; 272s assert (isequal (x(sym (true)), 6)) 272s assert (isequal (x(sym (false)), [])) 272s ***** test 272s a = sym([10 12 14]); 272s assert (isequal (a(sym ([true false true])), a([1 3]))) 272s assert (isequal (a(sym ([false false false])), sym (ones(1,0)))) 272s ***** test 272s a = [10 11; 12 13]; 272s p = [true false; true true]; 272s assert (isequal (a(sym (p)), a(p))) 272s p = [false false false]; 272s assert (isequal (a(sym (p)), a(p))) 272s ***** error 272s a = [10 12]; 272s I = [sym(true) 2]; 272s b = a(I); 272s 9 tests, 9 passed, 0 known failure, 0 skipped 272s [inst/@sym/det.m] 272s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/det.m 272s ***** assert (isequal (det(sym([])), 1)) 272s ***** test 272s syms x y real 272s assert (isequal (det([x 5; 7 y]), x*y-35)) 272s ***** test 272s syms x 272s assert (isequal (det(x), x)) 272s assert (isequal (det(sym(-6)), sym(-6))) 272s 3 tests, 3 passed, 0 known failure, 0 skipped 272s [inst/@sym/ellipke.m] 272s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/ellipke.m 272s ***** error ellipke (sym(1), 2) 272s ***** test 272s for i = 2:10 272s [K E] = ellipke (sym (1)/i); 272s [k e] = ellipke (1/i); 272s assert (double ([K E]), [k e], 2*eps) 272s end 273s 2 tests, 2 passed, 0 known failure, 0 skipped 273s [inst/@sym/mrdivide.m] 273s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/mrdivide.m 273s ***** test 273s % scalar 273s syms x 273s assert (isa( x/x, 'sym')) 273s assert (isequal( x/x, sym(1))) 273s assert (isa( 2/x, 'sym')) 273s assert (isa( x/2, 'sym')) 273s ***** test 273s % matrix / scalar 273s D = 2*[0 1; 2 3]; 273s A = sym(D); 273s assert (isequal ( A/2 , D/2 )) 273s assert (isequal ( A/sym(2) , D/2 )) 274s ***** test 274s % I/A: either invert A or leave unevaluated: not bothered which 274s A = sym([1 2; 3 4]); 274s B = sym(eye(2)) / A; 274s assert (isequal (B, inv(A)) || strncmpi (sympy (B), 'MatPow', 6)) 274s ***** xtest 274s % immutable test, upstream: TODO 274s A = sym([1 2; 3 4]); 274s B = sym('ImmutableDenseMatrix([[Integer(1), Integer(2)], [Integer(3), Integer(4)]])'); 274s assert (isequal (A/A, B/B)) 274s :18: SyntaxWarning: invalid escape sequence '\(' 274s ***** test 274s % A = C/B is C = A*B 274s A = sym([1 2; 3 4]); 274s B = sym([1 3; 4 8]); 274s C = A*B; 274s A2 = C / B; 274s assert (isequal (A, A2)) 274s ***** test 274s A = [1 2; 3 4]; 274s B = A / A; 274s % assert (isequal (B, sym(eye(2)) 274s assert (isequal (B(1,1), 1)) 274s assert (isequal (B(2,2), 1)) 274s assert (isequal (B(2,1), 0)) 274s assert (isequal (B(1,2), 0)) 274s ***** test 274s A = sym([5 6]); 274s B = sym([1 2; 3 4]); 274s C = A*B; 274s A2 = C / B; 274s assert (isequal (A, A2)) 274s 7 tests, 7 passed, 0 known failure, 0 skipped 274s [inst/@sym/ccode.m] 274s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/ccode.m 274s ***** shared x,y,z 274s syms x y z 274s ***** test 274s % basic test 274s f = x*sin(y) + abs(z); 274s source = ccode(f); 274s expected = 'x*sin(y) + fabs(z)'; 274s assert(strcmp(source, expected)) 274s ***** test 274s % output test 274s f = x*sin(y) + abs(z); 274s [C, H] = ccode(f, 'file', '', 'show_header', false); 274s 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'); 274s 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'); 274s assert(strcmp(C.name, 'file.c')) 274s assert(strcmp(H.name, 'file.h')) 274s hwin = strrep(expected_h_code, sprintf('\n'), sprintf('\r\n')); 274s assert (strcmp (H.code, expected_h_code) || strcmp (H.code, hwin)) 274s s1 = expected_c_code; 274s s2 = strrep(expected_c_code, sprintf('\n'), sprintf('\r\n')); 274s assert (strcmp (C.code, s1) || strcmp (C.code, s2)) 274s 2 tests, 2 passed, 0 known failure, 0 skipped 274s [inst/@sym/besselj.m] 274s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/besselj.m 274s ***** test 274s X = [1 2 3; 4 5 6]; 274s ns = [sym(0) 1 -2; sym(1)/2 -sym(3)/2 pi]; 274s n = double(ns); 274s A = double(besselj(ns, X)); 274s B = besselj(n, X); 274s assert (all (all (abs (A - B) < 50*eps*abs(A)))) 275s ***** test 275s % roundtrip 275s syms x 275s A = besselj(2, 10); 275s q = besselj(2, x); 275s h = function_handle(q); 275s B = h(10); 275s assert (abs (A - B) <= eps*abs(A)) 275s ***** error besselj(sym('x')) 275s 3 tests, 3 passed, 0 known failure, 0 skipped 275s [inst/@sym/gradient.m] 275s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/gradient.m 275s ***** shared x,y,z 275s syms x y z 275s ***** test 275s % 1D 275s f = x^2; 275s assert (isequal (gradient(f), diff(f,x))) 275s assert (isequal (gradient(f,{x}), diff(f,x))) 275s assert (isequal (gradient(f,[x]), diff(f,x))) 275s assert (isequal (gradient(f,x), diff(f,x))) 275s ***** test 275s % const 275s f = sym(1); 275s g = sym(0); 275s assert (isequal (gradient(f), g)) 275s assert (isequal (gradient(f,x), g)) 275s ***** test 275s % double const 275s f = 1; 275s g = sym(0); 275s assert (isequal (gradient(f,x), g)) 275s ***** test 275s % 1D fcn in 2d/3d 275s f = sin(y); 275s assert (isequal (gradient(f), diff(f,y))) 275s assert (isequal (gradient(f, {x,y}), [sym(0); diff(f,y)])) 275s assert (isequal (gradient(f, [x y]), [sym(0); diff(f,y)])) 275s assert (isequal (size (gradient(f, {x,y})), [2 1])) 275s assert (isequal (gradient(f, {x,y,z}), [0; diff(f,y); 0])) 275s assert (isequal (gradient(f, [x y z]), [0; diff(f,y); 0])) 275s assert (isequal (size (gradient(f, {x,y,z})), [3 1])) 275s ***** test 275s % grad is column vector 275s f = sin(y); 275s assert (isequal (size (gradient(f, {x,y})), [2 1])) 275s assert (isequal (size (gradient(f, {x,y,z})), [3 1])) 275s assert (isequal (size (gradient(f, [x y])), [2 1])) 275s assert (isequal (size (gradient(f, [x;y])), [2 1])) 275s ***** test 275s % 2d fcn in 2d/3d 275s f = sin(exp(x)*y); 275s g2 = [diff(f,x); diff(f,y)]; 275s g3 = [diff(f,x); diff(f,y); diff(f,z)]; 275s assert (isequal (gradient(f), g2)) 275s assert (isequal (gradient(f, {x,y}), g2)) 275s assert (isequal (gradient(f, {x,y,z}), g3)) 276s ***** test 276s % 2d fcn in 2d/3d 276s f = sin(exp(x)*y+sinh(z)); 276s g2 = [diff(f,x); diff(f,y)]; 276s g3 = [diff(f,x); diff(f,y); diff(f,z)]; 276s assert (isequal (gradient(f), g3)) 276s assert (isequal (gradient(f, {x,y}), g2)) 276s assert (isequal (gradient(f, {x,y,z}), g3)) 276s ***** error gradient(sym('x'), 42, 42) 276s ***** error gradient([sym('x') sym('x')]) 276s 9 tests, 9 passed, 0 known failure, 0 skipped 276s [inst/@sym/fix.m] 276s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/fix.m 276s ***** test 276s d = 3/2; 276s x = sym('3/2'); 276s f1 = fix(x); 276s f2 = fix(d); 276s assert (isequal (f1, f2)) 276s ***** test 276s D = [1.1 4.6; -3.4 -8.9]; 276s A = [sym(11)/10 sym(46)/10; sym(-34)/10 sym(-89)/10]; 276s f1 = fix(A); 276s f2 = fix(D); 276s assert( isequal (f1, f2)) 276s ***** test 276s d = sym(-11)/10; 276s c = -1; 276s assert (isequal (fix (d), c)) 276s ***** test 276s d = sym(-19)/10; 276s c = -1; 276s assert (isequal (fix (d), c)) 276s 4 tests, 4 passed, 0 known failure, 0 skipped 276s [inst/@sym/ldivide.m] 276s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/ldivide.m 276s ***** test 276s % scalar 276s syms x 276s assert (isa (x .\ 1, 'sym')) 276s assert (isa (x .\ x, 'sym')) 276s assert (isequal (x .\ 1, 1/x)) 276s assert (isequal (x .\ x, sym(1))) 276s ***** test 276s % matrix-scalar 276s D = [1 1; 2 3]; 276s A = sym(D); 276s assert (isequal ( A .\ 6 , D .\ 6 )) 276s assert (isequal ( A .\ sym(6) , D .\ 6 )) 276s assert (isequal ( D .\ sym(6) , D .\ 6 )) 277s ***** test 277s % matrix-matrix 277s D = [1 2; 3 4]; 277s A = sym(D); 277s assert (isequal ( A .\ A , D .\ D )) 277s assert (isequal ( A .\ D , D .\ D )) 277s assert (isequal ( D .\ A , D .\ D )) 277s ***** test 277s % matrix .\ matrix with symbols 277s syms x y 277s A = [x y; x^2 2*y]; 277s B = [y x; x y]; 277s assert (isequal ( A .\ A , sym(ones(2, 2)) )) 277s assert (isequal ( B .\ A , [x/y y/x; x 2] )) 277s ***** test 277s % scalar .\ matrix 277s D = 3*[1 2; 3 4]; 277s A = sym(D); 277s assert (isequal ( 3 .\ A , 3 .\ D )) 277s 5 tests, 5 passed, 0 known failure, 0 skipped 277s [inst/@sym/reshape.m] 277s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/reshape.m 277s ***** test 277s d = [2 4 6; 8 10 12]; 277s a = sym(d); 277s assert (isequal (reshape(a, [1 6]), reshape(d, [1 6]))) 277s assert (isequal (reshape(a, 1, 6), reshape(d, 1, 6))) 277s assert (isequal (reshape(a, 2, 3), reshape(d, 2, 3))) 277s assert (isequal (reshape(a, 3, 2), reshape(d, 3, 2))) 277s assert (isequal (reshape(a, 6, 1), reshape(d, 6, 1))) 278s ***** shared x, a, d 278s syms x 278s a = [1 x^2 x^4; x x^3 x^5]; 278s d = [0 2 4; 1 3 5]; 278s 278s ***** test 278s b = reshape(a, [1 6]); 278s assert (isequal (size(b), [1 6])) 278s assert (isequal (b, x.^reshape(d,1,6))) 278s 278s ***** test 278s b = reshape(a, [6 1]); 278s assert (isequal (size(b), [6 1])) 278s assert (isequal (b, x.^reshape(d,6,1))) 278s b = reshape(b, size(a)); 278s assert (isequal (size(b), [2 3])) 278s assert (isequal (b, a)) 278s 278s ***** test 278s b = a(:); 278s assert( isequal (size(b), [6 1])) 278s assert( isequal (b, x.^(d(:)))) 278s 278s ***** test 278s % reshape scalar 278s assert (logical( reshape(x, 1, 1) == x )) 278s assert (logical( reshape(x, [1 1]) == x )) 278s ***** shared a 278s syms a 278s ***** error reshape(a, 2, 1) 278s ***** error reshape(a, 1, 2) 278s ***** error reshape(a, 1, 1, 1) 278s ***** error reshape(a, [1, 1, 1]) 278s 9 tests, 9 passed, 0 known failure, 0 skipped 278s [inst/@sym/ztrans.m] 278s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/ztrans.m 278s ***** test 278s % basic Z-transform table checks 278s % X1, ..., X4 must have inner radius of convergence 1 278s syms n z 278s % trick to extract the closed form formula using the fact that inner roc = 1 278s closed_form = @(X) subs (X, abs (1 / z), 1 / sym (2)); 278s % check if ztrans(f) == X 278s check_ztrans = @(f, X) logical (simplify (closed_form (ztrans (f)) == X)); 278s f1 = sym (1); 278s X1 = 1 / (1 - 1 / z); 278s assert (check_ztrans (f1, X1)); 278s f2 = n; 278s X2 = (1 / z) / (1 - 1 / z)^2; 278s assert (check_ztrans (f2, X2)); 278s f3 = n^2; 278s X3 = (1 / z) * (1 + 1 / z) / (1 - 1 / z)^3; 278s assert (check_ztrans (f3, X3)); 278s f4 = n^3; 278s X4 = (1 / z) * (1 + 4 / z + 1 / z^2) / (1 - 1 / z)^4; 278s assert (check_ztrans (f4, X4)); 278s % basic matrix checks 278s A1 = ztrans ([f1 f2; f3 f4]); 278s B1 = [ztrans(f1) ztrans(f2); ztrans(f3) ztrans(f4)]; 278s assert (isequal (A1, B1)); 278s A2 = ztrans ([f1 f2; f3 f4], z); 278s B2 = [ztrans(f1, z) ztrans(f2, z); ztrans(f3, z) ztrans(f4, z)]; 278s assert (isequal (A2, B2)); 278s A3 = ztrans ([f1 f2; f3 f4], n, z); 278s B3 = [ztrans(f1, n, z) ztrans(f2, n, z); ztrans(f3, n, z) ztrans(f4, n, z)]; 278s assert (isequal (A3, B3)); 286s ***** test 286s % additional Z-transform table checks 286s % X1, ..., X4 must have inner radius of convergence a 286s syms n nonnegative integer 286s syms m positive integer 286s syms a 286s syms z 286s % trick to extract the closed form formula using the fact that inner roc = a 286s closed_form = @(X) subs (X, abs (a / z), 1 / sym (2)); 286s % check if ztrans(f) == X 286s check_ztrans = @(f, X) logical (simplify (closed_form (ztrans (f)) == X)); 286s f1 = a^n; 286s X1 = 1 / (1 - a / z); 286s assert (check_ztrans (f1, X1)); 286s f2 = n * a^n; 286s X2 = (a / z) / (1 - a / z)^2; 286s assert (check_ztrans (f2, X2)); 286s f3 = n^2 * a^n; 286s X3 = (a / z) * (1 + a / z) / (1 - a / z)^3; 286s assert (check_ztrans (f3, X3)); 286s f4 = nchoosek(n + m - 1, m - 1) * a^n; 286s X4 = 1 / (1 - a / z)^m; 286s assert (check_ztrans (f4, X4)); 286s % additional matrix checks 286s A1 = ztrans (f1, [n m; m n], [z a; a z]); 286s B1 = [ztrans(f1, n, z) ztrans(f1, m, a); ztrans(f1, m, a) ztrans(f1, n, z)]; 286s assert (isequal (A1, B1)); 286s A2 = ztrans (f1, m, [z a; a z]); 286s B2 = [ztrans(f1, m, z) ztrans(f1, m, a); ztrans(f1, m, a) ztrans(f1, m, z)]; 286s assert (isequal (A2, B2)); 286s A3 = ztrans (f1, [n m; m n], a); 286s B3 = [ztrans(f1, n, a) ztrans(f1, m, a); ztrans(f1, m, a) ztrans(f1, n, a)]; 286s assert (isequal (A3, B3)); 291s ***** test 291s % Kronecker delta checks 291s syms n n0 nonnegative integer 291s syms z 291s assert (isequal (ztrans (kroneckerDelta (n)), 1)); 291s assert (isequal (ztrans (kroneckerDelta (n - n0)), 1 / z^n0)); 291s ***** test 291s % basic var selection checks 291s syms n m z w 291s assert (isequal (ztrans (1 / factorial (n)), exp (1 / z))); 291s assert (isequal (ztrans (1 / factorial (z)), exp (1 / w))); 291s assert (isequal (ztrans (1 / factorial (m), w), exp (1 / w))); 291s assert (isequal (ztrans (1 / factorial (m), m, w), exp (1 / w))); 292s ***** test 292s % additional var selection checks 292s syms n m z 292s f = kroneckerDelta(m) / factorial (n); 292s assert (isequal (ztrans (f, z), exp (1 / z) * kroneckerDelta (m))); 292s assert (isequal (ztrans (f, n, z), exp (1 / z) * kroneckerDelta (m))); 292s assert (isequal (ztrans (f, m, z), 1 / factorial (n))); 292s ***** test 292s % if no t, use symvar: take x before a 292s syms a x z 292s assert (isequal (ztrans (a / factorial (x)), a * exp (1 / z))); 292s ***** error ztrans (sym ('n')^sym ('n', 'nonnegative', 'integer')) 292s 7 tests, 7 passed, 0 known failure, 0 skipped 292s [inst/@sym/rdivide.m] 292s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/rdivide.m 292s ***** test 292s % scalar 292s syms x 292s assert (isa (x ./ 1, 'sym')) 292s assert (isa (x ./ x, 'sym')) 292s assert (isequal (x ./ 1, x)) 292s assert (isequal (x ./ x, sym(1))) 293s ***** test 293s % matrix-scalar 293s D = 2*[0 1; 2 3]; 293s A = sym(D); 293s assert (isequal ( A./2 , D/2 )) 293s assert (isequal ( A./sym(2) , D/2 )) 293s assert (isequal ( D./sym(2) , D/2 )) 293s ***** test 293s % matrix ./ matrix 293s D = [1 2; 3 4]; 293s A = sym(D); 293s assert (isequal ( A./A , D./D )) 293s assert (isequal ( A./D , D./D )) 293s assert (isequal ( D./A , D./D )) 293s ***** test 293s % matrix ./ matrix with symbols 293s syms x y 293s A = [x y; x^2 2*y]; 293s B = [y x; x y]; 293s assert (isequal ( A./A , sym(ones(2,2)) )) 293s assert (isequal ( A./B , [x/y y/x; x 2] )) 293s ***** test 293s % scalar ./ matrix 293s D = [1 2; 3 4]; 293s A = sym(D); 293s assert (isequal ( 12./A , 12./D )) 293s 5 tests, 5 passed, 0 known failure, 0 skipped 293s [inst/@sym/triu.m] 293s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/triu.m 293s ***** test 293s % scalar 293s syms x 293s assert (isequal (triu(x), x)) 293s assert (isequal (triu(x,0), x)) 293s assert (isequal (triu(x,1), 0)) 293s assert (isequal (triu(x,-1), 0)) 294s ***** test 294s % with symbols 294s syms x 294s A = [x 2*x; 3*x 4*x]; 294s assert (isequal (triu(A), [x 2*x; 0 4*x])) 294s ***** test 294s % diagonal shifts 294s B = round(10*rand(3,4)); 294s A = sym(B); 294s assert (isequal (triu(A), triu(B))) 294s assert (isequal (triu(A,0), triu(B,0))) 294s assert (isequal (triu(A,1), triu(B,1))) 294s assert (isequal (triu(A,-1), triu(B,-1))) 294s ***** test 294s % double array pass through 294s B = round(10*rand(3,4)); 294s assert (isequal (triu(B,sym(1)), triu(B,1))) 294s assert (isa (triu(B,sym(1)), 'double')) 294s ***** test 294s % immutable test 294s A = sym('ImmutableDenseMatrix([[Integer(1), Integer(2)], [Integer(3), Integer(4)]])'); 294s assert (isequal (triu (A), sym ([1 2; 0 4]))) 294s assert (isequal (tril (A), sym ([1 0; 3 4]))) 294s :18: SyntaxWarning: invalid escape sequence '\(' 294s 5 tests, 5 passed, 0 known failure, 0 skipped 294s [inst/@sym/mod.m] 294s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/mod.m 294s ***** error mod (sym(1), 2, 3 ,4) 294s ***** assert (isequal (mod (sym(5), 4), sym(1))) 295s ***** assert (isequal (mod ([sym(5) 8], 4), [1 0] )) 295s ***** assert (isequal (mod (sym(5), [2 3]), [1 2] )) 295s ***** assert (isequal (mod ([sym(5) sym(6)], [2 3]), [1 0] )) 295s ***** test 295s syms x 295s assert (isequal ( mod (5*x, 3), 2*x )) 295s ***** test 295s syms x 295s a = [7*x^2 + 3*x + 3 3*x; 13*x^4 6*x]; 295s assert (isequal ( mod (a,3), [x^2 0; x^4 0] )) 296s ***** test 296s % vector of polys with mix of vars: symvar on each 296s syms x y 296s a = [6*x 7*y]; 296s b = mod(a, 4); 296s c = [2*x 3*y]; 296s assert (isequal (b, c)) 296s ***** test 296s % coeff has variable 296s syms x 296s n = sym('n', 'integer'); 296s p = (3*n + 2)*x; 296s q = mod(p, 3); 296s assert (isequal (q, 2*x)) 296s ***** test 296s % coeff has variable 296s syms x a 296s p = a*x; 296s q = mod(p, 3); 296s q = children(q); 296s q = q(2); % order might be fragile! 296s w = subs(q, a, 5); 296s assert (isequal (w, 2)) 296s ***** test 296s % different modulo 296s syms x y 296s q = mod([5*x + 10 5*y + 10], [2 3]); 296s assert (isequal (q, [x 2*y + 1])) 297s 11 tests, 11 passed, 0 known failure, 0 skipped 297s [inst/@sym/atanh.m] 297s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/atanh.m 297s ***** error atanh (sym(1), 2) 297s ***** assert (isequaln (atanh (sym(nan)), sym(nan))) 297s ***** shared x, d 297s d = 1/2; 297s x = sym('1/2'); 297s ***** test 297s f1 = atanh(x); 297s f2 = atanh(d); 297s assert( abs(double(f1) - f2) < 1e-15 ) 297s ***** test 297s D = [d d; d d]; 297s A = [x x; x x]; 297s f1 = atanh(A); 297s f2 = atanh(D); 297s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 297s ***** test 297s % round trip 297s y = sym('y'); 297s A = atanh (d); 297s f = atanh (y); 297s h = function_handle (f); 297s B = h (d); 297s assert (A, B, -eps) 297s 5 tests, 5 passed, 0 known failure, 0 skipped 297s [inst/@sym/vertcat.m] 297s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/vertcat.m 297s ***** test 297s % basic 297s syms x 297s A = [x; x]; 297s B = vertcat(x, x); 297s C = vertcat(x, x, x); 297s assert (isa (A, 'sym')) 297s assert (isa (B, 'sym')) 297s assert (isa (C, 'sym')) 297s assert (isequal (size(A), [2 1])) 297s assert (isequal (size(B), [2 1])) 297s assert (isequal (size(C), [3 1])) 297s ***** test 297s % basic, part 2 297s syms x 297s A = [x; 1]; 297s B = [1; x]; 297s C = [1; 2; x]; 297s assert (isa (A, 'sym')) 297s assert (isa (B, 'sym')) 297s assert (isa (C, 'sym')) 297s assert (isequal (size(A), [2 1])) 297s assert (isequal (size(B), [2 1])) 297s assert (isequal (size(C), [3 1])) 297s ***** test 297s % column vectors 297s a = [sym(1); 2]; 297s b = [sym(3); 4]; 297s assert (isequal ( [a;b] , [1; 2; 3; 4] )) 297s assert (isequal ( [a;b;a] , [1; 2; 3; 4; 1; 2] )) 297s ***** test 297s % row vectors 297s a = [sym(1) 2]; 297s b = [sym(3) 4]; 297s assert (isequal ( [a;b] , [1 2; 3 4] )) 297s assert (isequal ( [a;b;a] , [1 2; 3 4; 1 2] )) 297s ***** test 297s % row vector, other row 297s a = [sym(1) 2]; 297s assert (isequal ( [a; [sym(3) 4]] , [1 2; 3 4] )) 298s ***** test 298s % empty vectors 298s v = [sym(1) sym(2)]; 298s a = [v; []]; 298s assert (isequal (a, v)) 298s a = [[]; v; []]; 298s assert (isequal (a, v)) 298s a = [v; []; []]; 298s assert (isequal (a, v)) 298s ***** xtest 298s % FIXME: is this Octave bug? worth worrying about 298s syms x 298s a = [x; [] []]; 298s assert (isequal (a, x)) 298s !!!!! known failure 298s octave_base_value::map_value(): wrong type argument 'null_matrix' 298s ***** test 298s % more empty vectors 298s v = [sym(1) sym(2)]; 298s q = sym(ones(0, 2)); 298s assert (isequal ([v; q], v)) 298s ***** error 298s v = [sym(1) sym(2)]; 298s q = sym(ones(0, 3)); 298s w = vertcat(v, q); 298s ***** test 298s % Octave 3.6 bug: should pass on 3.8.1 and matlab 298s a = [sym(1) 2]; 298s assert (isequal ( [a; [3 4]] , [1 2; 3 4] )) 298s assert (isequal ( [a; sym(3) 4] , [1 2; 3 4] )) 298s % more examples 298s syms x 298s [x [x x]; x x x]; 298s [[x x] x; x x x]; 298s [[x x] x; [x x] x]; 298s [x x x; [x x] x]; 298s ***** test 298s % issue #700 298s A = sym ([1 2]); 298s B = simplify (A); 298s assert (isequal ([B; A], [A; B])) 298s 11 tests, 10 passed, 1 known failure, 0 skipped 298s [inst/@sym/private_disp_name.m] 298s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/private_disp_name.m 298s ***** test 298s syms x 298s s = private_disp_name(x, 'x'); 298s assert (strcmp (s, 'x')) 298s 1 test, 1 passed, 0 known failure, 0 skipped 298s [inst/@sym/ellipticCPi.m] 298s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/ellipticCPi.m 298s ***** error ellipticCPi (sym (1)) 298s ***** error ellipticCPi (sym (1), 2, 3) 298s ***** assert (double (ellipticCPi (0, sym (1)/2)), 1.854074677, 10e-10) 298s ***** assert (double (ellipticCPi (sym (6)/10, sym(71)/10)), 1.29469534336658, -20*eps) 299s 4 tests, 4 passed, 0 known failure, 0 skipped 299s [inst/@sym/logint.m] 299s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/logint.m 299s ***** error logint (sym(1), 2) 299s ***** xtest 299s assert (isequaln (logint (sym(nan)), sym(nan))) 299s !!!!! known failure 299s assert (isequaln (logint (sym (nan)), sym (nan))) failed 299s ***** shared x, d 299s d = 2; 299s x = sym('2'); 299s ***** test 299s f1 = logint(x); 299s f2 = 1.045163780117492784845; 299s assert( abs(double(f1) - f2) < 1e-15 ) 299s ***** test 299s D = [d d; d d]; 299s A = [x x; x x]; 299s f1 = logint(A); 299s f2 = 1.045163780117492784845; 299s f2 = [f2 f2; f2 f2]; 299s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 299s ***** test 299s % round trip 299s y = sym('y'); 299s A = logint (d); 299s f = logint (y); 299s h = function_handle (f); 299s B = h (d); 299s assert (A, B, -eps) 299s 5 tests, 4 passed, 1 known failure, 0 skipped 299s [inst/@sym/lu.m] 299s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/lu.m 299s ***** test 299s % scalar 299s [l, u, p] = lu(sym(6)); 299s assert (isequal (l, sym(1))) 299s assert (isequal (u, sym(6))) 299s assert (isequal (p, sym(1))) 299s syms x 299s [l, u, p] = lu(x); 299s assert (isequal (l*u, p*x)) 299s [l, u] = lu(x); 299s assert (isequal (l*u, x)) 299s ***** test 299s % perm 299s A = sym(fliplr(2*eye(3))); 299s [L, U, P] = lu(A); 299s assert (isequal (L*U, P*A)) 299s [L, U, P] = lu(A, 'matrix'); 299s assert (isequal (L*U, P*A)) 299s [L, U, p] = lu(A, 'vector'); 299s assert (isequal (L*U, A(p,:))) 299s [L, U] = lu(A); 299s assert (isequal (L*U, A)) 299s ***** test 299s % p is col vectpr 299s A = sym([0 2; 3 4]); 299s [L, U, p] = lu(A, 'vector'); 299s assert(iscolumn(p)) 299s ***** test 299s % simple matrix 299s A = [1 2; 3 4]; 299s B = sym(A); 299s [L, U, P] = lu(B); 299s assert (isequal (L*U, P*B)) 299s assert (isequal (U(2,1), sym(0))) 299s % needs pivot 299s A = [0 2; 3 4]; 299s B = sym(A); 299s [L, U, P] = lu(B); 299s [Ld, Ud, Pd] = lu(A); 299s assert (isequal (L*U, P*A)) 299s assert (isequal (U(2,1), sym(0))) 299s % matches regular LU 299s assert ( max(max(double(L)-Ld)) <= 10*eps) 299s assert ( max(max(double(U)-Ud)) <= 10*eps) 299s assert ( isequal (P, Pd)) 300s ***** test 300s % rectangular 300s A = sym([1 2; 3 4; 5 6]); 300s [L, U] = lu (A); 300s assert (isequal (L*U, A)) 300s ***** test 300s % rectangular 300s A = sym([1 2 3; 4 5 6]); 300s [L, U] = lu (A); 300s assert (isequal (L*U, A)) 300s ***** test 300s % rectangular, repeated row 300s A = sym([1 2 3; 2 4 6]); 300s [L, U] = lu (A); 300s assert (isequal (L*U, A)) 300s ***** test 300s % rectangular, needs permutation 300s A = sym([0 0 0; 1 2 3]); 300s [L, U] = lu (A); 300s assert (isequal (L*U, A)) 300s assert (~isequal (tril (L), L)) 300s [L, U, P] = lu (A); 300s assert (isequal (L*U, P*A)) 300s assert (isequal (tril (L), L)) 300s 8 tests, 8 passed, 0 known failure, 0 skipped 300s [inst/@sym/tand.m] 300s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/tand.m 300s ***** error tand (sym(1), 2) 300s ***** assert (isequaln (tand (sym(nan)), sym(nan))) 300s ***** test 300s f1 = tand (sym(1)); 300s f2 = tand (1); 300s assert (double (f1), f2, -eps) 300s ***** test 300s D = [10 30; 110 -45]; 300s A = sym(D); 300s f1 = tand (A); 300s f2 = tand (D); 300s assert (double (f1), f2, -eps) 300s 4 tests, 4 passed, 0 known failure, 0 skipped 300s [inst/@sym/sym2poly.m] 300s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/sym2poly.m 300s ***** shared x,y,a,b,c 300s syms x y a b c 301s ***** assert (isequal (sym2poly (x^2 + 3*x - 4), [1 3 -4])) 301s ***** assert (isequal (sym2poly (x^6 - x^3), [1 0 0 -1 0 0 0])) 301s ***** assert (isequal (sym2poly (x^2 + 3*x - 4, x), [1 3 -4])) 301s ***** assert (norm (sym2poly (pi*x^2 + exp(sym(1))) - [pi 0 exp(1)]) < 10*eps) 301s ***** assert (isa (sym2poly (x^2 + 3*x - 4), 'double')) 301s ***** assert (isa (sym2poly (x^2 + 3*x - 4, x), 'sym')) 301s ***** assert (isequal (sym2poly (x^2+y*x, x), [sym(1) y sym(0)])) 302s ***** assert (isequal (sym2poly (x^2+y*x, y), [x x^2])) 302s ***** assert (isequal (sym2poly (poly2sym ([a b c], x), x), [a b c])) 302s ***** assert (isequal (poly2sym (sym2poly(a*x^2 + c, x), x), a*x^2 + c)) 302s ***** assert (isequal (sym2poly (poly2sym ([1 2 3])), [1 2 3])) 302s ***** error 302s % too many symbols for single-input 302s p = a*x^2 + 2; 302s c = sym2poly (p); 302s ***** assert (isequal (sym2poly (sym(5)), sym(5))) 302s 13 tests, 13 passed, 0 known failure, 0 skipped 302s [inst/@sym/inv.m] 302s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/inv.m 302s ***** test 302s % scalar 302s syms x 302s assert (isequal (inv(x), 1/x)) 303s ***** test 303s % diagonal 303s syms x 303s A = [sym(1) 0; 0 x]; 303s B = [sym(1) 0; 0 1/x]; 303s assert (isequal (inv(A), B)) 303s ***** test 303s % 2x2 inverse 303s A = [1 2; 3 4]; 303s assert (max (max (abs (double (inv (sym (A))) - inv(A)))) <= 3*eps) 303s ***** error 303s syms a; 303s A = [a a; a a]; 303s inv(A) 303s ***** error 303s syms a; 303s A = [a a]; 303s inv(A) 303s 5 tests, 5 passed, 0 known failure, 0 skipped 303s [inst/@sym/cumprod.m] 303s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/cumprod.m 303s ***** shared x, y 303s x = sym ('x'); 303s y = sym ('y'); 303s ***** error cumprod (x, 1, 2) 303s ***** assert (isequal (cumprod ([-x; -2*x; -3*x]), [-x; 2*x^2; -6*x^3])) 303s ***** assert (isequal (expand (cumprod ([x + i, x - i])), [x + i, x^2 + 1])) 303s ***** assert (isequal (cumprod ([1, x; y, 2], 1), [1, x; y, 2*x] )) 304s ***** assert (isequal (cumprod ([1, x; y, 2], 2), [1, x; y, 2*y] )) 304s ***** test cumprod ([x, x], [2, 1]); # ensure behaves like builtin cumprod 304s ***** test cumprod ([x, x], [1, -2]); # ensure behaves like builtin cumprod 304s ***** error cumprod (x, []) 304s ***** error cumprod (x, {1}) 304s ***** error cumprod (x, struct('a', 1)) 304s ***** error cumprod (x, x) 304s ***** error cumprod (x, 0) 304s ***** error cumprod (x, -1) 304s 13 tests, 13 passed, 0 known failure, 0 skipped 304s [inst/@sym/fresnels.m] 304s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/fresnels.m 304s ***** error fresnels (sym(1), 2) 304s ***** test 304s a = fresnels(sym(0)); 304s assert (isequal (a, sym(0))) 304s ***** test 304s b = fresnels(sym('oo')); 304s assert (isequal (b, sym(1)/2)) 304s ***** test 304s % values in a matrix 304s syms x 304s a = fresnels([sym(0) sym('oo') x 1]); 304s b = [sym(0) sym(1)/2 fresnels(x) fresnels(sym(1))]; 304s assert (isequal (a, b)) 304s ***** test 304s % round trip 304s syms x 304s f = fresnels (x); 304s h = function_handle (f); 304s A = h (1.1); 304s B = fresnels (1.1); 304s assert (A, B) 304s 5 tests, 5 passed, 0 known failure, 0 skipped 304s [inst/@sym/psi.m] 304s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/psi.m 304s ***** assert (isequal (psi (sym (1)), -eulergamma)) 304s ***** assert (isequal (psi (1, sym (1)), sym (pi)^2/6)) 304s ***** assert (isinf (psi (sym ('inf')))) 304s ***** test 304s % compare to Maple: evalf(Psi(-101/100)); 304s maple = vpa ('100.3963127058453949545769053445198842332424', 40); 304s us = vpa (psi (sym (-101)/100), 40); 304s assert (abs(double(maple-us)) < 1e-39) 304s ***** test 304s % compare to Maple: evalf(Psi(1, 3*I-2)); 304s maple = vpa ('-0.1651414829219882371561038184133243839778799', 40) - ... 304s vpa ('0.1960040752985823275302034466611711263617296j', 40); 304s us = vpa (psi (1, sym (-2) + sym(3i)), 40); 304s assert (abs(double(maple-us)) < 1e-39) 305s ***** test 305s % should match @double/psi 305s if (exist ('psi','builtin')) 305s assert (psi (pi), double (psi (sym (pi))), -3*eps) 305s assert (psi (100), double (psi (sym (100))), -3*eps) 305s assert (psi (1e-3), double (psi (1/sym (1e3))), -3*eps) 305s if (exist ('OCTAVE_VERSION', 'builtin')) 305s % 2014a doesn't support negative or complex arguments 305s assert (psi (-1.5), double (psi (sym (-3)/2)), -3*eps) 305s assert (psi (-8.3), double (psi (sym (-83)/10)),-4*eps) 305s assert (psi (2i), double (psi (sym (2i))), -3*eps) 305s assert (psi (10i+3), double (psi (sym (10i)+3)), -3*eps) 305s end 305s end 305s ***** test 305s % @double/psi loses accuracy near the poles: note higher rel tol 305s if (exist ('psi','builtin')) 305s if (exist ('OCTAVE_VERSION', 'builtin')) 305s assert (psi (-1.1), double (psi (sym (-11)/10)), -6*eps) 305s assert (psi (-1.01), double (psi (sym (-101)/100)), -50*eps) 305s end 305s end 305s ***** test 305s if (exist ('psi','builtin')) 305s assert (psi (1, pi), double (psi (1, sym (pi))), -3*eps) 305s assert (psi (1, 100), double (psi (1, sym (100))), -3*eps) 305s assert (psi (1, 1e-4), double (psi (1, 1/sym (1e4))), -3*eps) 305s end 305s ***** test 305s if (exist ('psi','builtin')) 305s assert (psi (2, pi), double (psi (2, sym (pi))), -3*eps) 305s assert (psi (2, 1000), double (psi (2, sym (1000))), -3*eps) 305s assert (psi (2, 1e-4), double (psi (2, 1/sym (1e4))), -3*eps) 305s end 306s ***** test 306s % round trip 306s if (exist ('psi','builtin')) 306s syms x 306s f = psi (x); 306s h = function_handle (f); 306s A = h (1.1); 306s B = psi (1.1); 306s assert (A, B) 306s end 306s 10 tests, 10 passed, 0 known failure, 0 skipped 306s [inst/@sym/isvector.m] 306s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/isvector.m 306s ***** assert(isvector(sym('x'))) 306s ***** assert(isvector(sym([1 2 3]))) 306s ***** assert(isvector(sym([1; 2]))) 306s ***** assert(~isvector(sym([1 2; 3 4]))) 306s ***** assert(~isvector(sym([]))) 306s ***** assert(isvector(sym(ones(1,0)))) 306s ***** assert(~isvector(sym(ones(0,3)))) 306s 7 tests, 7 passed, 0 known failure, 0 skipped 306s [inst/@sym/hilb.m] 306s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/hilb.m 306s ***** test 306s A = hilb (sym(3)); 306s 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]; 306s assert (isequal (A, B)) 306s 1 test, 1 passed, 0 known failure, 0 skipped 306s [inst/@sym/subs.m] 306s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/subs.m 306s ***** error subs (sym(1), 2, 3, 4) 306s ***** shared x,y,t,f 306s syms x y t 306s f = x*y; 306s ***** test 306s assert( isequal( subs(f, x, y), y^2 )) 306s assert( isequal( subs(f, y, sin(x)), x*sin(x) )) 306s assert( isequal( subs(f, x, 16), 16*y )) 306s ***** test 306s % multiple subs w/ cells 306s assert( isequal( subs(f, {x}, {t}), y*t )) 306s assert( isequal( subs(f, {x y}, {t t}), t*t )) 306s assert( isequal( subs(f, {x y}, {t 16}), 16*t )) 306s assert( isequal( subs(f, {x y}, {16 t}), 16*t )) 306s assert( isequal( subs(f, {x y}, {2 16}), 32 )) 306s ***** test 306s % multiple subs w/ vectors 306s assert( isequal( subs(f, [x y], [t t]), t*t )) 306s assert( isequal( subs(f, [x y], [t 16]), 16*t )) 306s assert( isequal( subs(f, [x y], [2 16]), 32 )) 307s ***** test 307s % anything you can think of 307s assert( isequal( subs(f, [x y], {t t}), t*t )) 307s assert( isequal( subs(f, {x y}, [t t]), t*t )) 307s assert( isequal( subs(f, {x; y}, [t; t]), t*t )) 307s ***** test 307s % sub in doubles gives sym (matches SMT 2013b) 307s % FIXME: but see 307s % http://www.mathworks.co.uk/help/symbolic/gradient.html 307s assert( isequal( subs(f, {x y}, {2 pi}), 2*sym(pi) )) 307s assert( ~isa(subs(f, {x y}, {2 pi}), 'double')) 307s assert( isa(subs(f, {x y}, {2 pi}), 'sym')) 307s assert( isa(subs(f, {x y}, {2 sym(pi)}), 'sym')) 307s assert( isa(subs(f, {x y}, {sym(2) sym(pi)}), 'sym')) 307s ***** shared x,y,t,f,F 307s syms x y t 307s f = sin(x)*y; 307s F = [f; 2*f]; 307s ***** test 307s % need the simultaneous=True flag in SymPy (matches SMT 2013b) 307s assert( isequal( subs(f, [x t], [t 6]), y*sin(t) )) 307s assert( isequal( subs(F, [x t], [t 6]), [y*sin(t); 2*y*sin(t)] )) 307s ***** test 307s % swap x and y (also needs simultaneous=True 307s assert( isequal( subs(f, [x y], [y x]), x*sin(y) )) 307s ***** test 307s % but of course both x and y to t still works 307s assert( isequal( subs(f, [x y], [t t]), t*sin(t) )) 307s ***** shared 307s ***** test 307s % Issue #10, subbing matrices in for scalars 307s syms y 307s a = sym([1 2; 3 4]); 307s f = sin(y); 307s g = subs(f, y, a); 307s assert (isequal (g, sin(a))) 307s ***** test 307s % Issue #10, subbing matrices in for scalars 307s syms y 307s a = sym([1 2]); 307s g = subs(sin(y), {y}, {a}); 307s assert (isequal (g, sin(a))) 307s ***** test 307s % Issue #10, subbing matrices in for scalars 307s syms y 307s a = sym([1; 2]); 307s g = subs(sin(y), {y}, a); 307s assert (isequal (g, sin(a))) 307s ***** test 307s % Issue #10, subbing matrices in for scalars 307s syms y 307s a = [10 20 30]; 307s f = 2*y; 307s g = subs(f, y, a); 307s assert (isequal (g, 2*a)) 307s assert (isa (g, 'sym')) 307s ***** test 307s % Issue #10, sub matrices in for two scalars 307s syms x y 307s a = [10 20 30]; 307s f = x^2*y; 307s g = subs(f, {x y}, {a a+1}); 307s h = a.^2.*(a+1); 307s assert (isequal (g, h)) 308s ***** test 308s % Issue #10, sub matrices in for two scalars 308s syms x y z 308s a = [10 20 30]; 308s f = x^2*y; 308s g = subs(f, {x y}, {a z}); 308s h = a.^2*z; 308s assert (isequal (g, h)) 308s g = subs(f, {x y}, {a 6}); 308s h = a.^2*6; 308s assert (isequal (g, h)) 308s ***** error 308s syms x y 308s a = [10 20 30]; 308s f = x^2*y; 308s g = subs(f, {x y}, {[10 20 30] [10 20]}); 308s ***** test 308s % two inputs 308s syms x y 308s assert (isequal (subs (2*x, 6), sym(12))) 308s assert (isequal (subs (2*x*y^2, 6), 12*y^2)) 308s assert (isequal (subs (2*y, 6), sym(12))) 308s assert (isequal (subs (sym(2), 6), sym(2))) 308s ***** test 308s % only two inputs, vector 308s syms x 308s assert (isequal (subs (2*x, [3 5]), sym([6 10]))) 308s ***** test 308s % SMT compat, subbing in vec/mat for nonexist x 308s syms x y z 308s % you might think this would be y: 308s assert (~ isequal (subs (y, x, [1 2]), y)) 308s % but it gives two y's: 308s assert (isequal (subs (y, x, [1 2]), [y y])) 308s assert (isequal (subs (sym(42), [3 5]), sym([42 42]))) 308s assert (isequal (subs (sym(42), x, []), sym([]))) 308s assert (isequal (subs (y, {x y}, {[1 2; 3 4], 6}), sym([6 6; 6 6]))) 308s assert (isequal (subs (y, {x z}, {[1 2; 3 4], 6}), [y y; y y])) 309s ***** test 309s syms x y 309s assert (isequal (subs (sym(42), x, y), sym(42))) 309s assert (isequal (subs (sym(42), y), sym(42))) 309s assert (isequal (subs (sym(42)), sym(42))) 309s ***** test 309s % empty lists 309s assert (isequal (subs (sym(42), {}, {}), sym(42))) 309s assert (isequal (subs (42, sym([]), sym([])), sym(42))) 309s ***** test 309s syms x y 309s f = x*y; 309s x = 6; y = 7; 309s g = subs (f); 309s assert (isequal (g, sym (42))) 309s assert (isa (g, 'sym')) 309s ***** test 309s syms x y 309s f = x*y; 309s x = 6; 309s g = subs (f); 309s assert (isequal (g, 6*y)) 309s ***** test 309s syms x y 309s f = x*y; 309s xsave = x; 309s x = 6; 309s g = subs (f); 309s assert (isequal (g, 6*y)) 309s assert (isequal (f, xsave*y)) 309s ***** test 309s syms a x y 309s f = a*x*y; 309s a = 6; 309s clear x 309s g = subs (f); 309s syms x 309s assert (isequal (g, 6*x*y)) 309s 25 tests, 25 passed, 0 known failure, 0 skipped 309s [inst/@sym/acsch.m] 309s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/acsch.m 309s ***** error acsch (sym(1), 2) 309s ***** assert (isequaln (acsch (sym(nan)), sym(nan))) 309s ***** shared x, d 309s d = 1; 309s x = sym('1'); 309s ***** test 309s f1 = acsch(x); 309s f2 = acsch(d); 309s assert( abs(double(f1) - f2) < 1e-15 ) 309s ***** test 309s D = [d d; d d]; 309s A = [x x; x x]; 309s f1 = acsch(A); 309s f2 = acsch(D); 309s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 310s ***** test 310s % round trip 310s y = sym('y'); 310s A = acsch (d); 310s f = acsch (y); 310s h = function_handle (f); 310s B = h (d); 310s assert (A, B, -eps) 310s 5 tests, 5 passed, 0 known failure, 0 skipped 310s [inst/@sym/partfrac.m] 310s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/partfrac.m 310s ***** test 310s % basic 310s syms x y z 310s assert(logical( partfrac(y/(x + 2)/(x + 1),x) == -y/(x + 2) + y/(x + 1) )) 310s assert(logical( factor(partfrac(x^2/(x^2 - y^2),y)) == factor(x/(2*(x + y)) + x/(2*(x - y)) ))) 310s assert(logical( factor(partfrac(x^2/(x^2 - y^2),x)) == factor(-y/(2*(x + y)) + y/(2*(x - y)) + 1 ))) 310s 1 test, 1 passed, 0 known failure, 0 skipped 310s [inst/@sym/pinv.m] 310s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/pinv.m 310s ***** test 310s % scalar 310s syms x 310s assert (isequal (pinv(x), 1/x)) 310s ***** test 310s % 2x3 310s A = [1 2 3; 4 5 6]; 310s assert (max (max (abs (double (pinv (sym (A))) - pinv(A)))) <= 10*eps) 311s 2 tests, 2 passed, 0 known failure, 0 skipped 311s [inst/@sym/asech.m] 311s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/asech.m 311s ***** error asech (sym(1), 2) 311s ***** assert (isequaln (asech (sym(nan)), sym(nan))) 311s ***** shared x, d 311s d = 1/2; 311s x = sym('1/2'); 311s ***** test 311s f1 = asech(x); 311s f2 = asech(d); 311s assert( abs(double(f1) - f2) < 1e-15 ) 311s ***** test 311s D = [d d; d d]; 311s A = [x x; x x]; 311s f1 = asech(A); 311s f2 = asech(D); 311s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 311s ***** test 311s % round trip 311s y = sym('y'); 311s A = asech (d); 311s f = asech (y); 311s h = function_handle (f); 311s B = h (d); 311s assert (A, B, -eps) 311s 5 tests, 5 passed, 0 known failure, 0 skipped 311s [inst/@sym/function_handle.m] 311s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/function_handle.m 311s ***** shared x,y,z 311s syms x y z 311s ***** test 311s % basic test 311s h = function_handle(2*x); 311s assert(isa(h, 'function_handle')) 311s assert(h(3)==6) 311s ***** test 311s % autodetect inputs 311s h = function_handle(2*x*y, x+y); 311s [t1, t2] = h(3,5); 311s assert(t1 == 30 && t2 == 8) 311s ***** test 311s % specified inputs 311s h = function_handle(2*x*y, 'vars', [x y]); 311s assert(h(3,5)==30) 311s h = function_handle(2*x*y, x+y, 'vars', [x y]); 311s [t1, t2] = h(3,5); 311s assert(t1 == 30 && t2 == 8) 311s ***** test 311s % cell arrays for vars list 311s h = function_handle(2*x*y, x+y, 'vars', {x y}); 311s [t1, t2] = h(3,5); 311s assert(t1 == 30 && t2 == 8) 311s h = function_handle(2*x*y, x+y, 'vars', {'x' 'y'}); 311s [t1, t2] = h(3,5); 311s assert(t1 == 30 && t2 == 8) 311s ***** test 311s % cell arrays specfies order, overriding symvar order 311s h = function_handle(x*y, 12/y, 'vars', {y x}); 311s [t1, t2] = h(3, 6); 311s assert(t1 == 18 && t2 == 4) 311s h = function_handle(x*y, 12/y, 'vars', [y x]); 311s [t1, t2] = h(3, 6); 311s assert(t1 == 18 && t2 == 4) 311s ***** test 311s % cell arrays specfies order, overriding symvar order 311s h = function_handle(x*y, 12/y, 'vars', {y x}); 311s [t1, t2] = h(3, 6); 311s assert(t1 == 18 && t2 == 4) 311s h = function_handle(x*y, 12/y, 'vars', [y x]); 311s [t1, t2] = h(3, 6); 311s assert(t1 == 18 && t2 == 4) 312s ***** test 312s % Functions with different names in Sympy. 312s f = abs(x); % becomes Abs(x) 312s h = function_handle(f); 312s assert(h(-10) == 10) 312s f = ceil(x); 312s h = function_handle(f); 312s assert(h(10.1) == 11) 312s ***** test 312s % 'file' with empty filename returns handle 312s h = function_handle(2*x*y, 'file', ''); 312s assert(isa(h, 'function_handle')) 312s assert(h(3,5)==30) 312s h = function_handle(2*x*y, 'vars', {x y}, 'file', ''); 312s assert(isa(h, 'function_handle')) 312s assert(h(3,5)==30) 312s ***** test 312s % output to disk 312s fprintf('\n') 312s if (exist ('OCTAVE_VERSION', 'builtin')) 312s temp_file = tempname('', 'oct_'); 312s else 312s temp_file = tempname(); 312s end 312s % allow loading function from temp_file 312s [temp_path, ans, ans] = fileparts(temp_file); 312s addpath(temp_path); 312s f = function_handle(2*x*y, 2^x, 'vars', {x y z}, 'file', temp_file); 312s assert( isa(f, 'function_handle')) 312s addpath(temp_path); % Matlab 2014a needs this? 312s [a,b] = f(10,20,30); 312s assert (isnumeric (a) && isnumeric (b)) 312s assert (a == 400) 312s assert (b == 1024) 312s if (exist ('OCTAVE_VERSION', 'builtin')) 312s assert (unlink([temp_file '.m']) == 0) 312s else 312s delete ([temp_file '.m']) 312s end 312s % remove temp_path from load path 312s rmpath(temp_path); 312s 312s Wrote file /tmp/oct_NiqFPP.m. 312s ***** test 312s % output to disk: also works with .m specified 312s if (exist ('OCTAVE_VERSION', 'builtin')) 312s temp_file = [tempname('', 'oct_') '.m']; 312s else 312s temp_file = [tempname() '.m']; 312s end 312s % allow loading function from temp_file 312s [temp_path, ans, ans] = fileparts(temp_file); 312s addpath(temp_path); 312s f = function_handle(2*x*y, 2^x, 'vars', {x y z}, 'file', temp_file); 312s assert( isa(f, 'function_handle')) 312s addpath(temp_path); % Matlab 2014a needs this? 312s [a,b] = f(10,20,30); 312s assert (isnumeric (a) && isnumeric (b)) 312s assert (a == 400) 312s assert (b == 1024) 312s if (exist ('OCTAVE_VERSION', 'builtin')) 312s assert (unlink(temp_file) == 0) 312s else 312s delete (temp_file) 312s end 312s % remove temp_path from load path 312s rmpath(temp_path); 312s Wrote file /tmp/oct_2eMM6V.m. 312s ***** test 312s % non-scalar outputs 312s H = [x y z]; 312s M = [x y; z 16]; 312s V = [x;y;z]; 312s h = function_handle(H, M, V); 312s [t1,t2,t3] = h(1,2,3); 312s assert(isequal(t1, [1 2 3])) 312s assert(isequal(t2, [1 2; 3 16])) 312s assert(isequal(t3, [1;2;3])) 312s ***** test 312s % non-scalar outputs in .m files 312s H = [x y z]; 312s M = [x y; z 16]; 312s V = [x;y;z]; 312s if (exist ('OCTAVE_VERSION', 'builtin')) 312s temp_file = tempname('', 'oct_'); 312s else 312s temp_file = tempname(); 312s end 312s % allow loading function from temp_file 312s [temp_path, ans, ans] = fileparts(temp_file); 312s addpath(temp_path); 312s h = function_handle(H, M, V, 'vars', {x y z}, 'file', temp_file); 312s assert( isa(h, 'function_handle')) 312s addpath(temp_path); % Matlab 2014a needs this? 312s [t1,t2,t3] = h(1,2,3); 312s assert(isequal(t1, [1 2 3])) 312s assert(isequal(t2, [1 2; 3 16])) 312s assert(isequal(t3, [1;2;3])) 312s if (exist ('OCTAVE_VERSION', 'builtin')) 312s assert (unlink([temp_file '.m']) == 0) 312s else 312s delete ([temp_file '.m']) 312s end 312s % remove temp_path from load path 312s rmpath(temp_path); 312s Wrote file /tmp/oct_rXwIU0.m. 312s ***** test 312s % order of outputs is lexiographic 312s syms a A x y 312s f = y + 10*a + 100*x + 1000*A; 312s h = function_handle(f); 312s assert (h(1, 2, 3, 4) == 1000 + 20 + 300 + 4) 312s ***** test 312s % https://github.com/cbm755/octsympy/issues/854 312s f = function_handle (x + 1i*sqrt (sym(3))); 312s assert (f (1), complex (1, sqrt (3)), -eps) 312s 14 tests, 14 passed, 0 known failure, 0 skipped 312s [inst/@sym/tan.m] 312s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/tan.m 312s ***** error tan (sym(1), 2) 312s ***** assert (isequaln (tan (sym(nan)), sym(nan))) 312s ***** shared x, d 312s d = 1; 312s x = sym('1'); 312s ***** test 312s f1 = tan(x); 312s f2 = tan(d); 312s assert( abs(double(f1) - f2) < 1e-15 ) 312s ***** test 312s D = [d d; d d]; 312s A = [x x; x x]; 312s f1 = tan(A); 312s f2 = tan(D); 312s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 312s ***** test 312s % round trip 312s y = sym('y'); 312s A = tan (d); 312s f = tan (y); 312s h = function_handle (f); 312s B = h (d); 312s assert (A, B, -eps) 312s 5 tests, 5 passed, 0 known failure, 0 skipped 312s [inst/@sym/zeros.m] 312s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/zeros.m 312s ***** test 312s y = zeros(sym(2)); 312s x = [0 0; 0 0]; 312s assert( isequal( y, sym(x))) 312s ***** test 312s y = zeros(sym(2), 1); 312s x = [0; 0]; 312s assert( isequal( y, sym(x))) 312s ***** test 312s y = zeros(sym(1), 2); 312s x = [0 0]; 312s assert( isequal( y, sym(x))) 313s ***** test 313s y = zeros (sym([2 3])); 313s x = sym (zeros ([2 3])); 313s assert (isequal (y, x)) 313s ***** assert( isa( zeros(sym(2), 'double'), 'double')) 313s ***** assert( isa( zeros(3, sym(3), 'single') , 'single')) 313s ***** assert( isa( zeros(3, sym(3)), 'sym')) 313s ***** assert( isa( zeros(3, sym(3), 'sym'), 'sym')) 313s ***** xtest 313s % Issue #13 313s assert( isa( zeros(3, 3, 'sym'), 'sym')) 313s !!!!! known failure 313s invalid data type specified 313s 9 tests, 8 passed, 1 known failure, 0 skipped 313s [inst/@sym/permute.m] 313s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/permute.m 313s ***** error permute (sym(1)) 313s ***** error permute (sym(1), 2, 3) 313s ***** test 313s D = round(10*rand(5,3)); 313s A = sym(D); 313s B = permute(A, [1 2]); 313s assert (isequal(B, A)) 313s B = permute(A, [2 1]); 313s assert (isequal(B, A.')) 313s ***** test 313s syms x 313s A = [1 x]; 313s B = permute(A, [2 1]); 313s assert (isequal(B, [1; x])) 313s 4 tests, 4 passed, 0 known failure, 0 skipped 313s [inst/@sym/gammainc.m] 313s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/gammainc.m 313s ***** assert (isequal (gammainc (sym(0), 1), sym(0))) 313s ***** assert (isequal (gammainc (sym(0), 2), sym(0))) 313s ***** assert (isequal (gammainc (sym('oo'), 1), sym(1))) 313s ***** assert (isequal (gammainc (sym(0), 1, 'upper'), sym(1))) 313s ***** assert (isequal (gammainc (sym(0), 2, 'upper'), sym(1))) 313s ***** assert (isequal (gammainc (sym('oo'), 1, 'upper'), sym(0))) 313s ***** test 313s % default is lower 313s syms x a 313s assert (isequal (gammainc (x, a), gammainc(x, a, 'lower'))) 313s ***** test 313s % compare to double 313s x = 5; a = 1; 313s A = gammainc (x, a); 313s B = double (gammainc (sym(x), a)); 313s assert(A, B, -eps) 314s ***** test 314s % compare to double where gamma(a) != 1 314s x = 5; a = 3; 314s A = gammainc (x, a); 314s B = double (gammainc (sym(x), a)); 314s assert(A, B, -eps) 314s ***** test 314s % compare to double 314s x = 100; a = 1; 314s A = gammainc (x, a); 314s B = double (gammainc (sym(x), a)); 314s assert(A, B, -eps) 314s ***** test 314s % compare to double 314s xs = sym(1)/1000; x = 1/1000; a = 1; 314s A = gammainc (x, a); 314s B = double (gammainc (xs, a)); 314s assert(A, B, -eps) 314s ***** test 314s % compare to double 314s x = 5; a = 1; 314s A = gammainc (x, a, 'upper'); 314s B = double (gammainc (sym(x), a, 'upper')); 314s assert(A, B, -10*eps) 314s ***** test 314s % compare to double 314s x = 10; a = 1; 314s A = gammainc (x, a, 'upper'); 314s B = double (gammainc (sym(x), a, 'upper')); 314s assert(A, B, -10*eps) 314s ***** test 314s % compare to double 314s x = 40; a = 1; 314s A = gammainc (x, a, 'upper'); 314s B = double (gammainc (sym(x), a, 'upper')); 314s assert(A, B, -10*eps) 314s ***** test 314s % compare to double 314s xs = sym(1)/1000; x = 1/1000; a = 1; 314s A = gammainc (x, a, 'upper'); 314s B = double (gammainc (xs, a, 'upper')); 314s assert(A, B, -eps) 314s ***** test 314s % vectorized 314s P = gammainc([sym(pi) 2], [1 3]); 314s expected = [gammainc(pi, sym(1)) gammainc(2, sym(3))]; 314s assert (isequal (P, expected)) 314s ***** test 314s % vectorized 314s P = gammainc(sym(pi), [1 3]); 314s expected = [gammainc(sym(pi), 1) gammainc(sym(pi), 3)]; 314s assert (isequal (P, expected)) 314s ***** test 314s % vectorized 314s P = gammainc([sym(pi) 2], 1); 314s expected = [gammainc(pi, sym(1)) gammainc(2, sym(1))]; 314s assert (isequal (P, expected)) 314s ***** test 314s % round trip 314s syms x a 314s f = gammainc (x, a, 'upper'); 314s h = function_handle (f, 'vars', [x a]); 314s A = h (1.1, 2); 314s B = gammainc (1.1, 2, 'upper'); 314s assert (A, B) 314s ***** test 314s % round trip 314s syms x a 314s f = gammainc (x, a, 'lower'); 314s h = function_handle (f, 'vars', [x a]); 314s A = h (1.1, 2); 314s B = gammainc (1.1, 2, 'lower'); 314s assert (A, B) 315s ***** test 315s % round trip 315s syms x a 315s f = gammainc (x, a, 'upper'); 315s h = function_handle (f, 'vars', [x a]); 315s A = h (1.1, 2.2); 315s B = gammainc (1.1, 2.2, 'upper'); 315s assert (A, B) 315s ***** test 315s % round trip 315s syms x a 315s f = gammainc (x, a, 'lower'); 315s h = function_handle (f, 'vars', [x a]); 315s A = h (1.1, 2.2); 315s B = gammainc (1.1, 2.2, 'lower'); 315s assert (A, B) 315s 22 tests, 22 passed, 0 known failure, 0 skipped 315s [inst/@sym/dawson.m] 315s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/dawson.m 315s ***** test 315s if (exist ('OCTAVE_VERSION', 'builtin')) 315s % dawson missing on Matlab, Issue #742 315s A = dawson([1 2]); 315s B = double(dawson(sym([1 2]))); 315s assert(A, B, -eps) 315s end 315s 1 test, 1 passed, 0 known failure, 0 skipped 315s [inst/@sym/isnan.m] 315s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/isnan.m 315s ***** shared x,zoo,oo,snan 315s oo = sym(inf); 315s zoo = sym('zoo'); 315s x = sym('x'); 315s snan = sym(nan); 315s ***** test 315s % various ops that give nan 315s assert (isnan(0*oo)) 315s assert (isnan(0*zoo)) 315s assert (isnan(snan)) 315s assert (isnan(snan-snan)) 315s assert (isnan(oo+snan)) 315s assert (isnan(oo-oo)) 315s assert (isnan(oo-zoo)) 315s assert (isnan(oo+zoo)) 315s assert (~isnan(oo)) 315s assert (~isnan(zoo)) 315s assert (~isnan(oo+oo)) 315s ***** test 315s % more ops give nan 315s assert(isnan(x+snan)) 315s assert(isnan(x*snan)) 315s assert(isnan(0*snan)) 315s assert(isnan(x+nan)) 315s assert(isnan(x*nan)) 315s assert(isnan(sym(0)*nan)) 315s ***** test 315s % array 315s assert (isequal( isnan([oo zoo]), [0 0] )) 315s assert (isequal( isnan([10 snan]), [0 1] )) 315s assert (isequal( isnan([snan snan]), [1 1] )) 315s assert (isequal( isnan([snan x]), [1 0] )) 315s ***** test 315s % sub in to algebraic expression gives nan 315s y = x - oo; 315s y = subs(y, x, oo); 315s assert(isnan(y)) 315s ***** test 315s % Must not contain string 'symbol'; these all should make an 315s % actual nan. Actually a ctor test, not isnan. 315s y = sym(nan); 315s assert (isempty (strfind (sympy (y), 'Symbol'))) 315s y = sym('nan'); 315s assert (isempty (strfind (sympy (y), 'Symbol'))) 315s y = sym('NaN'); 315s assert (isempty( strfind (sympy (y), 'Symbol'))) 315s 5 tests, 5 passed, 0 known failure, 0 skipped 315s [inst/@sym/orth.m] 315s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/orth.m 315s ***** test 315s A = [1 2; 3 6]; 315s K = orth(A); 315s L = orth(sym(A)); 315s assert (isequal (size(L), [2 1])) 315s dif1 = abs (double(L) - K); 315s dif2 = abs (double(L) + K); 315s assert (all (dif1 < 1e-15) || all (dif2 < 1e-15)) 315s ***** test 315s A = [1; 3]; 315s K = orth(A); 315s L = orth(sym(A)); 315s assert (isequal (size(L), [2 1])) 315s dif1 = abs (double(L) - K); 315s dif2 = abs (double(L) + K); 315s assert (all (dif1 < 1e-16) || all (dif2 < 1e-16)) 315s ***** test 315s A = sym([1 2; 3 4]); 315s L = orth(sym(A)); 315s assert (isequal (size(L), [2 2])) 315s v = L(:, 1); 315s w = L(:, 2); 315s assert (isAlways (v' * v == 1)) 315s assert (isAlways (w' * w == 1)) 315s assert (isAlways (v' * w == 0)) 316s ***** test 316s A = sym([1 1; 1 0; 1 0]); 316s L = orth(sym(A)); 316s assert (isequal (size(L), [3 2])) 316s v = L(:, 1); 316s w = L(:, 2); 316s assert (isAlways (v' * v == 1)) 316s assert (isAlways (w' * w == 1)) 316s assert (isAlways (v' * w == 0)) 316s % y and z components must be equal 316s assert (isAlways (v(2) == v(3))) 316s assert (isAlways (w(2) == w(3))) 316s 4 tests, 4 passed, 0 known failure, 0 skipped 316s [inst/@sym/sinc.m] 316s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/sinc.m 316s ***** error sinc (sym(1), 2) 316s ***** assert (isequaln (sinc (sym(nan)), sym(nan))) 316s ***** assert (isequal (sinc (sym(0)), sym(1))) 316s ***** assert (isequal (sinc (sym(1)), sym(0))) 316s ***** assert (isequal (sinc (-sym(1)), sym(0))) 316s ***** assert (double (sinc (sym(pi))), sinc (pi), -10*eps) 316s ***** test 316s A = [-sym(1)/2 sym(1)/2 pi; -sym(7)/2 sym(71)/2 sym(101)/3]; 316s D = double (A); 316s assert (sinc (D), double (sinc (A)), -200*eps) 317s ***** test 317s A = [sym(51)/2 sym(1001)/3 sym(10001)/3 sym(100001)/3]; 317s D = double (A); 317s assert (sinc (D), double (sinc (A)), 1e-10) 317s ***** test 317s % round trip 317s syms x 317s A = sinc (1); 317s f = sinc (x); 317s h = function_handle (f); 317s B = h (1); 317s assert (A, B, -eps) 317s ***** test 317s % round trip 317s syms x 317s f = sinc (x); 317s h = function_handle (f); 317s A = sinc (1.5); 317s B = h (1.5); 317s assert (A, B, -eps) 317s ***** test 317s syms x 317s h = function_handle (sinc (x)); 317s A = double (sinc (sym (12)/10)); 317s B = h (1.2); 317s C = sinc (1.2); 317s assert (A, B, -eps) 317s assert (A, C, -eps) 317s 11 tests, 11 passed, 0 known failure, 0 skipped 317s [inst/@sym/times.m] 317s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/times.m 317s ***** test 317s % scalar 317s syms x 317s assert (isa (x.*2, 'sym')) 317s assert (isequal (x.*2, x*2)) 317s assert (isequal (2.*sym(3), sym(6))) 317s assert (isequal (sym(2).*3, sym(6))) 317s ***** test 317s % matrix-matrix and matrix-scalar 317s D = [0 1; 2 3]; 317s A = sym(D); 317s assert (isequal ( 2.*A , 2*D )) 317s assert (isequal ( A.*2 , 2*D )) 317s assert (isequal ( A.*A , D.*D )) 317s assert (isequal ( A.*D , D.*D )) 317s assert (isequal ( D.*A , D.*D )) 318s ***** test 318s syms x 318s A = [1 x]; 318s B = [2 3]; 318s assert (isequal (A.*B, [2 3*x])) 318s ***** test 318s % immutable test 318s A = sym([1 2]); 318s B = sym('ImmutableDenseMatrix([[Integer(1), Integer(2)]])'); 318s assert (isequal (A.*A, B.*B)) 318s :18: SyntaxWarning: invalid escape sequence '\(' 318s ***** test 318s % MatrixSymbol test 318s A = sym([1 2; 3 4]); 318s B = sym('ImmutableDenseMatrix([[Integer(1), Integer(2)], [Integer(3), Integer(4)]])'); 318s C = sym('MatrixSymbol("C", 2, 2)'); 318s assert (~ isempty (strfind (sympy (C.*C), 'Hadamard'))) 318s assert (~ isempty (strfind (sympy (A.*C), 'Hadamard'))) 318s assert (~ isempty (strfind (sympy (C.*A), 'Hadamard'))) 318s assert (~ isempty (strfind (sympy (B.*C), 'Hadamard'))) 318s assert (~ isempty (strfind (sympy (C.*B), 'Hadamard'))) 318s :18: SyntaxWarning: invalid escape sequence '\(' 318s :18: SyntaxWarning: invalid escape sequence '\(' 318s 5 tests, 5 passed, 0 known failure, 0 skipped 318s [inst/@sym/linspace.m] 318s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/linspace.m 318s ***** test 318s a = linspace(sym(3), 5, 5); 318s b = [sym(6) 7 8 9 10]/2; 318s assert (isequal (a, b)) 318s ***** test 318s % non-integers 318s A = linspace(0, sym(pi), 10); 318s assert (length (A) == 10); 318s assert (isequal (A(6), 5*sym(pi)/9)); 318s ***** test 318s % default argument for N 318s A = linspace(1, 100); 318s assert (length (A) == 100); 318s ***** test 318s % special case for just N = 1 318s A = linspace(sym(2), 3, 1); 318s assert (isequal (A, 3)) 318s A = linspace(sym(2), 3, 0); 318s assert (isequal (A, 3)) 318s A = linspace(sym(2), 3, sym(3)/2); 318s assert (isequal (A, 3)) 318s 4 tests, 4 passed, 0 known failure, 0 skipped 318s [inst/@sym/sec.m] 318s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/sec.m 318s ***** error sec (sym(1), 2) 319s ***** assert (isequaln (sec (sym(nan)), sym(nan))) 319s ***** shared x, d 319s d = 1; 319s x = sym('1'); 319s ***** test 319s f1 = sec(x); 319s f2 = sec(d); 319s assert( abs(double(f1) - f2) < 1e-15 ) 319s ***** test 319s D = [d d; d d]; 319s A = [x x; x x]; 319s f1 = sec(A); 319s f2 = sec(D); 319s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 319s ***** test 319s % round trip 319s y = sym('y'); 319s A = sec (d); 319s f = sec (y); 319s h = function_handle (f); 319s B = h (d); 319s assert (A, B, -eps) 319s 5 tests, 5 passed, 0 known failure, 0 skipped 319s [inst/@sym/min.m] 319s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/min.m 319s ***** test 319s % scalars with dim 319s a = min(sym(pi), [], 1); 319s b = sym(pi); 319s assert (isequal (a, b)); 319s a = min(sym(pi), [], 2); 319s assert (isequal (a, b)); 319s a = max(sym(pi), [], 1); 319s assert (isequal (a, b)); 319s a = max(sym(pi), [], 2); 319s assert (isequal (a, b)); 319s ***** shared A, D 319s D = [0 1 2 3]; 319s A = sym(D); 319s ***** test 319s % row vectors 319s assert (isequal (min(A), sym(min(D)))) 319s assert (isequal (min(A), sym(0))) 319s assert (isequal (max(A), sym(max(D)))) 319s assert (isequal (max(A), sym(3))) 319s ***** test 319s % row vectors with dim 319s assert (isequal (min(A, [], 1), sym(min(D, [], 1)))) 319s assert (isequal (min(A, [], 2), sym(min(D, [], 2)))) 319s assert (isequal (max(A, [], 1), sym(max(D, [], 1)))) 319s assert (isequal (max(A, [], 2), sym(max(D, [], 2)))) 319s ***** test 319s % column vectors 319s A = A.'; 319s D = D.'; 319s assert (isequal (min(A), sym(min(D)))) 319s assert (isequal (min(A), sym(0))) 319s assert (isequal (max(A), sym(max(D)))) 319s assert (isequal (max(A), sym(3))) 319s ***** test 319s % row vectors with dim 319s assert (isequal (min(A, [], 1), sym(min(D, [], 1)))) 319s assert (isequal (min(A, [], 2), sym(min(D, [], 2)))) 319s assert (isequal (max(A, [], 1), sym(max(D, [], 1)))) 319s assert (isequal (max(A, [], 2), sym(max(D, [], 2)))) 319s ***** shared 319s ***** test 319s % empty 319s a = min(sym([])); 319s assert(isempty(a)) 319s a = max(sym([])); 319s assert(isempty(a)) 319s ***** test 319s % matrix 319s A = [1 4 6; 2 2 5]; 319s A = sym(A); 319s assert (isequal (min(A), sym([1 2 5]))) 319s assert (isequal (min(A, [], 1), sym([1 2 5]))) 319s assert (isequal (min(A, [], 2), sym([1; 2]))) 319s assert (isequal (max(A), sym([2 4 6]))) 319s assert (isequal (max(A, [], 1), sym([2 4 6]))) 319s assert (isequal (max(A, [], 2), sym([6; 5]))) 320s ***** test 320s % index output is double not sym 320s [m, I] = min(sym(2), [], 1); 320s assert (strcmp(class(I), 'double')) 320s [m, I] = max(sym(2), [], 1); 320s assert (strcmp(class(I), 'double')) 320s ***** test 320s % empty rows/columns, I is double 320s A = sym(zeros(0, 4)); 320s [m, I] = min(A, [], 1); 320s assert (strcmp(class(I), 'double')) 320s [m, I] = max(A, [], 1); 320s assert (strcmp(class(I), 'double')) 320s A = sym(zeros(3, 0)); 320s [m, I] = min(A, [], 2); 320s assert (strcmp(class(I), 'double')) 320s [m, I] = max(A, [], 2); 320s assert (strcmp(class(I), 'double')) 320s ***** test 320s % index output 320s A = [0 1 9; 10 7 4]; 320s B = sym(A); 320s [m1, I1] = min(A); 320s [m2, I2] = min(B); 320s assert (isequal (I1, I2)) 320s assert (isequal (m1, double(m2))) 320s [m1, I1] = max(A); 320s [m2, I2] = max(B); 320s assert (isequal (I1, I2)) 320s assert (isequal (m1, double(m2))) 320s ***** test 320s % index output, with dim 320s A = [0 1 9; 10 7 4]; 320s B = sym(A); 320s [m1, I1] = min(A, [], 1); 320s [m2, I2] = min(B, [], 1); 320s assert (isequal (I1, I2)) 320s assert (isequal (m1, double(m2))) 320s [m1, I1] = min(A, [], 2); 320s [m2, I2] = min(B, [], 2); 320s assert (isequal (I1, I2)) 320s assert (isequal (m1, double(m2))) 320s [m1, I1] = max(A, [], 1); 320s [m2, I2] = max(B, [], 1); 320s assert (isequal (I1, I2)) 320s assert (isequal (m1, double(m2))) 320s [m1, I1] = max(A, [], 2); 320s [m2, I2] = max(B, [], 2); 320s assert (isequal (I1, I2)) 320s assert (isequal (m1, double(m2))) 321s ***** test 321s % empty columns 321s A = sym(zeros(0, 4)); 321s [m, I] = min(A, [], 1); 321s assert (isequal (size(m), [0 4])) 321s assert (isequal (size(I), [0 4])) 321s [m, I] = max(A, [], 1); 321s assert (isequal (size(m), [0 4])) 321s assert (isequal (size(I), [0 4])) 321s ***** test 321s % empty rows 321s A = sym(zeros(3, 0)); 321s [m, I] = min(A, [], 2); 321s assert (isequal (size(m), [3 0])) 321s assert (isequal (size(I), [3 0])) 321s [m, I] = max(A, [], 2); 321s assert (isequal (size(m), [3 0])) 321s assert (isequal (size(I), [3 0])) 321s ***** test 321s % another empty case 321s % we differ slightly from double which gives 1x0/0x1 321s A = sym(zeros(3, 0)); 321s [m, I] = min(A, [], 1); 321s assert (isempty (m)) 321s assert (isempty (I)) 321s A = sym(zeros(0, 3)); 321s [m, I] = min(A, [], 2); 321s assert (isempty (m)) 321s assert (isempty (I)) 321s ***** test 321s % empty without index output 321s A = sym(zeros(3, 0)); 321s assert (isempty (min (A, [], 1))) 321s assert (isempty (max (A, [], 1))) 321s assert (isempty (min (A, [], 2))) 321s assert (isempty (max (A, [], 2))) 321s A = sym(zeros(0, 3)); 321s assert (isempty (min (A, [], 1))) 321s assert (isempty (max (A, [], 1))) 321s assert (isempty (min (A, [], 2))) 321s assert (isempty (max (A, [], 2))) 321s ***** test 321s % binary op form, one a scalar 321s A = sym([3 1 9]); 321s m = min(A, sym(2)); 321s M = max(A, sym(2)); 321s assert (isequal (m, sym([2 1 2]))) 321s assert (isequal (M, sym([3 2 9]))) 321s m = min(sym(2), A); 321s M = max(sym(2), A); 321s assert (isequal (m, sym([2 1 2]))) 321s assert (isequal (M, sym([3 2 9]))) 321s ***** test 321s % binary op form, both scalar 321s m = min(sym(1), sym(2)); 321s M = max(sym(2), sym(2)); 321s assert (isequal (m, sym(1))) 321s assert (isequal (M, sym(2))) 321s ***** test 321s syms x y 321s assert (isequal (children (min (x, y)), [x y])) 321s ***** test 321s syms x y z 321s A = [x 1; y z]; 321s assert (isequal (min (A, [], 1), [min(x, y) min(1, z)])) 321s assert (isequal (max (A, [], 1), [max(x, y) max(1, z)])) 321s assert (isequal (min (A, [], 2), [min(x, 1); min(y, z)])) 321s assert (isequal (max (A, [], 2), [max(x, 1); max(y, z)])) 322s ***** test 322s syms x y positive 322s a = min([x 2 y -6]); 322s assert (isequal (a, -6)) 322s a = max([x y -6]); 322s assert (isequal (a, max(x, y))) 322s ***** test 322s syms x negative 322s a = min([x 6 10]); 322s assert (isequal (a, x)) 322s a = max([x -2 6]); 322s assert (isequal (a, 6)) 322s 21 tests, 21 passed, 0 known failure, 0 skipped 322s [inst/@sym/horner.m] 322s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/horner.m 322s ***** error horner (sym(1), 2, 3) 322s ***** assert (isAlways (horner(sym(1)) == 1)) 322s ***** test 322s syms x 322s assert (isAlways (horner(x) == x)) 322s ***** test 322s syms x a 322s p = a^2 + a*x + 2*a + 2*x; 322s assert (isequal (horner (p, a), a*(a+x+2) + 2*x)) 322s q = a^2 + 2*a + x*(a + 2); 322s assert (isequal (horner (p, x), q)) 322s assert (isequal (horner (p), q)) 322s ***** test 322s syms x 322s p = poly2sym ([2 4 6 8], x); 322s q = horner (p); 322s assert (isAlways (p == q)) 322s assert (isAlways (horner(2*x^3 + 4*x^2 + 6*x + 8) == q)) 323s ***** test 323s % non-sym input 323s syms x 323s assert (isequal (horner(6, x), sym(6))) 323s 6 tests, 6 passed, 0 known failure, 0 skipped 323s [inst/@sym/resize.m] 323s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/resize.m 323s ***** test 323s B = sym([1 0 0; 0 0 0]); 323s assert (isequal (resize (sym(1), 2, 3), B)) 323s assert (isequal (resize (sym(1), [2 3]), B)) 323s ***** test 323s B = sym([1 0; 0 0]); 323s assert (isequal (resize (sym(1), 2), B)) 323s ***** test 323s A = sym([pi 2; 3 4]); 323s assert (isequal (resize (A, 1), sym(pi))) 323s ***** assert (isequal (size (resize (sym(1), 0, 0)), [0 0])) 323s ***** assert (isequal (size (resize (sym(1), 6, 0)), [6 0])) 323s ***** assert (isequal (size (resize (sym(1), 0, 3)), [0 3])) 323s ***** error resize (sym(1)) 323s ***** error resize (sym(1), 2, 3, 4) 323s ***** error resize (sym(1), [2 3 4]) 323s 9 tests, 9 passed, 0 known failure, 0 skipped 323s [inst/@sym/fortran.m] 323s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/fortran.m 323s ***** shared x,y,z 323s syms x y z 324s ***** test 324s % basic test 324s f = x*sin(y) + abs(z); 324s source = fortran(f); 324s expected = ' x*sin(y) + abs(z)'; 324s s1 = strrep (expected, 'abs', 'Abs'); 324s assert (strcmp (source, expected) || strcmp (source, s1)) 324s ***** test 324s % output test 324s f = x*sin(y) + abs(z); 324s [F,H] = fortran(f, 'file', '', 'show_header', false); 324s 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'); 324s 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'); 324s assert(strcmp(F.name, 'file.f90')) 324s assert(strcmp(H.name, 'file.h')) 324s %disp(expected_f_code); disp(F.code) 324s s1 = strrep (expected_f_code, 'abs', 'Abs'); 324s s2 = strrep (expected_f_code, sprintf ('\n'), sprintf ('\r\n')); 324s s3 = strrep (s2, 'abs', 'Abs'); 324s s4 = strrep (expected_h_code, sprintf ('\n'), sprintf ('\r\n')); 324s assert (strcmp (F.code, expected_f_code) || strcmp (F.code, s1) || strcmp (F.code, s2) || strcmp (F.code, s3)) 324s assert (strcmp (H.code, expected_h_code) || strcmp (H.code, s4)) 324s 2 tests, 2 passed, 0 known failure, 0 skipped 324s [inst/@sym/setdiff.m] 324s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/setdiff.m 324s ***** test 324s A = sym([1 2 3]); 324s B = sym([1 2 4]); 324s C = setdiff(A, B); 324s D = sym([3]); 324s assert (isequal (C, D)) 324s ***** test 324s % one nonsym 324s A = sym([1 2 3]); 324s B = [1 2 4]; 324s C = setdiff(A, B); 324s D = sym([3]); 324s assert (isequal (C, D)) 324s ***** test 324s % empty 324s A = sym([1 2 3]); 324s C = setdiff(A, A); 324s assert (isempty (C)) 324s ***** test 324s % empty input 324s A = sym([1 2]); 324s C = setdiff(A, []); 324s assert (isequal (C, A) || isequal (C, sym([2 1]))) 324s ***** test 324s % scalar 324s syms x 324s assert (isequal (setdiff([x 1], x), sym(1))) 324s assert (isempty (setdiff(x, x))) 324s ***** test 324s A = interval(sym(1), 3); 324s B = interval(sym(2), 5); 324s C = setdiff(A, B); 324s assert( isequal( C, interval(sym(1), 2, false, true))) 324s 6 tests, 6 passed, 0 known failure, 0 skipped 324s [inst/@sym/laplace.m] 324s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/laplace.m 324s ***** test 324s % basic 324s syms t s u w 324s assert(logical( laplace(cos(3*t)) == s/(s^2+9) )) 324s assert(logical( laplace(t^3) == 6/s^4 )) 325s ***** test 325s % matlab SMT compat 325s syms t s u w z 325s assert(logical( laplace(exp(2*t)) == 1/(s-2) )) 325s assert(logical( laplace(exp(2*s)) == 1/(z-2) )) 325s assert(logical( laplace(exp(2*u),w) == 1/(w-2) )) 325s assert(logical( laplace(exp(2*u),u,w) == 1/(w-2) )) 325s ***** test 325s syms x s t z 325s % matlab SMT prefers t over x 325s assert (isequal (laplace (x*exp (t), z), x/(z - 1))) 325s % as usual, you can just specify: 325s assert (isequal (laplace(x*exp(t), t, z), x/(z - 1))) % SMT result 325s assert (isequal (laplace(x*exp(t), x, z), exp(t)/z^2)) 325s ***** test 325s syms x a s 325s % if no t, use symvar: take x before a 325s assert (isequal (laplace (a*exp (x)), a/(s - 1))) 325s ***** error laplace (sym('t')*sym('t', 'real')) 326s ***** test 326s % constant, issue #250 326s syms s 326s f = laplace(2, s); 326s assert (isequal (f, 2/s)) 326s ***** test 326s % Dirac delta and Heaviside tests 326s syms t s 326s assert (isequal (laplace(dirac(t-3)), exp(-3*s))) 326s assert (isequal (laplace((t-3)*heaviside(t-3)), exp(-3*s)/s^2)) 326s ***** xtest 326s % Differential operator to algebraic 326s % SymPy cannot evaluate? (Issue #170) 326s syms s f(t) 326s assert(logical( laplace(diff(f(t),t),t,s) == s*laplace(f(t),t,s)-f(0) )) 326s 8 tests, 8 passed, 0 known failure, 0 skipped 326s [inst/@sym/arg.m] 326s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/arg.m 326s ***** test 326s syms x 326s assert (isequal (angle (x), arg (x))); 326s 1 test, 1 passed, 0 known failure, 0 skipped 326s [inst/@sym/plus.m] 326s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/plus.m 326s ***** test 326s % basic addition 326s syms x 326s assert (isa (x+5, 'sym')) 326s assert (isa (5+x, 'sym')) 326s assert (isa (5+sym(4), 'sym')) 326s assert (isequal (5+sym(4), sym(9))) 326s ***** test 326s % array addition 326s syms x 326s D = [0 1; 2 3]; 326s A = [sym(0) 1; sym(2) 3]; 326s DZ = D - D; 326s assert( isequal ( A + D , 2*D )) 326s assert( isequal ( D + A , 2*D )) 326s assert( isequal ( A + A , 2*D )) 326s assert( isequal ( A + 2 , D + 2 )) 326s assert( isequal ( 4 + A , 4 + D )) 327s ***** test 327s % ensure MatrixExpr can be manipulated somewhat 327s syms n m integer 327s A = sym('A', [n m]); 327s B = subs(A, [n m], [5 6]); 327s B = B + 1; 327s assert (isa (B, 'sym')) 327s C = B(1, 1); % currently makes a MatrixElement 327s C = C + 1; 327s assert (isa (C, 'sym')) 327s 3 tests, 3 passed, 0 known failure, 0 skipped 327s [inst/@sym/real.m] 327s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/real.m 327s ***** assert (isequal (real (sym (4) + 3i),4)) 327s ***** test 327s syms x y real 327s z = x + 1i*y; 327s assert (isequal (real (z),x)) 327s ***** test 327s syms x y real 327s Z = [4 x + 1i*y; x 4 + 3i]; 327s assert (isequal (real (Z),[4 x; x 4])) 327s ***** test 327s syms x real 327s d = exp (x*i); 327s assert (isequal (real (d), cos (x))) 327s ***** test 327s % round trip 327s syms x 327s d = 3 - 5i; 327s f = real (x); 327s A = real (d); 327s h = function_handle (f); 327s B = h (d); 327s assert (A, B) 327s 5 tests, 5 passed, 0 known failure, 0 skipped 327s [inst/@sym/expm.m] 327s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/expm.m 327s ***** test 327s % scalar 327s syms x 327s assert (isequal (expm(x), exp(x))) 327s ***** test 327s % diagonal 327s A = [sym(1) 0; 0 sym(3)]; 327s B = [exp(sym(1)) 0; 0 exp(sym(3))]; 327s assert (isequal (expm(A), B)) 327s ***** test 327s % diagonal w/ x 327s syms x positive 327s A = [sym(1) 0; 0 x+2]; 327s B = [exp(sym(1)) 0; 0 exp(x+2)]; 327s assert (isequal (expm(A), B)) 327s ***** test 327s % non-diagonal 327s syms x positive 327s A = [sym(1) 2; 0 x+2]; 327s B = expm(A); 327s C = double(subs(B, x, 4)); 327s D = expm(double(subs(A, x, 4))); 327s assert (max (max (abs (C - D))) <= 1e-11) 328s 4 tests, 4 passed, 0 known failure, 0 skipped 328s [inst/@sym/dirac.m] 328s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/dirac.m 328s ***** error dirac (sym(1), 2) 328s ***** assert (isequaln (dirac (sym(nan)), sym(nan))) 328s ***** shared x, d 328s d = 1; 328s x = sym('1'); 328s ***** test 328s f1 = dirac(x); 328s f2 = dirac(d); 328s assert( abs(double(f1) - f2) < 1e-15 ) 328s ***** test 328s D = [d d; d d]; 328s A = [x x; x x]; 328s f1 = dirac(A); 328s f2 = dirac(D); 328s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 328s ***** test 328s % round trip 328s y = sym('y'); 328s A = dirac (d); 328s f = dirac (y); 328s h = function_handle (f); 328s B = h (d); 328s assert (A, B, -eps) 328s 5 tests, 5 passed, 0 known failure, 0 skipped 328s [inst/@sym/ellipticK.m] 328s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/ellipticK.m 328s ***** error ellipticK (sym(1), 2) 328s ***** assert (isequal (ellipticK (sym (0)), sym (pi)/2)) 328s ***** assert (isequal (ellipticK (sym (-inf)), sym (0))) 328s ***** assert (double (ellipticK (sym (1)/2)), 1.854074677, 10e-10) 328s ***** assert (double (ellipticK (sym (pi)/4)), 2.225253684, 10e-10) 328s ***** assert (double (ellipticK (sym (-55)/10)), 0.9324665884, 10e-11) 328s ***** test 328s % compare to double ellipke 328s m = 1/5; 328s ms = sym(1)/5; 328s [K, E] = ellipke (m); 328s assert (double (ellipticK (ms)), K, -1e-15) 328s assert (double (ellipticE (ms)), E, -1e-15) 328s ***** test 328s % compare to double ellipke 328s if (exist ('OCTAVE_VERSION', 'builtin')) 328s m = -10.3; 328s ms = -sym(103)/10; 328s [K, E] = ellipke (m); 328s assert (double (ellipticK (ms)), K, -1e-15) 328s assert (double (ellipticE (ms)), E, -1e-15) 328s end 328s ***** test 328s % compare to Maple 328s us = vpa (ellipticK (sym (7)), 40); 328s % > evalf(EllipticK(sqrt(7)), 40); 328s maple = vpa ('0.6168027921799632674669917683443602673441', 40) - ... 328s vpa ('0.9114898734184488922164103102629560336918j', 40); 328s assert (abs (double (maple - us)), 0, 1e-39) 328s 9 tests, 9 passed, 0 known failure, 0 skipped 328s [inst/@sym/ei.m] 328s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/ei.m 328s ***** test 328s syms x 328s f = ei(sym(0)); 328s assert (double(f) == -inf) 329s ***** test 329s D = [1.895117816355937 4.954234356001890]; 329s A = ei(sym([1 2])); 329s assert (all (abs(double(A) - D) < 1e-15)) 329s 2 tests, 2 passed, 0 known failure, 0 skipped 329s [inst/@sym/atand.m] 329s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/atand.m 329s ***** error atand (sym(1), 2) 329s ***** assert (isequaln (atand (sym(nan)), sym(nan))) 329s ***** test 329s f1 = atand (sym(1)/2); 329s f2 = atand (1/2); 329s assert (double (f1), f2, -eps) 329s ***** test 329s D = [1 2; 3 4]/4; 329s A = sym([1 2; 3 4])/4; 329s f1 = atand (A); 329s f2 = atand (D); 329s assert (double (f1), f2, -eps) 329s 4 tests, 4 passed, 0 known failure, 0 skipped 329s [inst/@sym/children.m] 329s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/children.m 329s ***** test 329s % basics, sum 329s syms x y 329s f = 2*x + x*x + sin(y); 329s assert (isempty (setxor (children(f), [2*x x*x sin(y)]))) 329s ***** test 329s % basics, product 329s syms x y 329s f = 2*x*sin(y); 329s assert (isempty (setxor (children(f), [2 x sin(y)]))) 329s ***** test 329s % basics, product and powers 329s syms x y 329s f = 2*x^2*y^3; 329s assert (isempty (setxor (children(f), [2 x^2 y^3]))) 329s ***** test 329s % eqn, ineq 329s syms x y 329s lhs = 2*x^2; rhs = y^3 + 7; 329s assert (isequal (children(lhs == rhs), [lhs rhs])) 329s assert (isequal (children(lhs < rhs), [lhs rhs])) 329s assert (isequal (children(lhs >= rhs), [lhs rhs])) 329s ***** test 329s % matrix 329s syms x y 329s f = [4 + y 1 + x; 2 + x 3 + x]; 329s c = children(f); 329s ec = {[4 y], [1 x]; [2 x], [3 x]}; 329s assert (isequal (size(c), size(ec))) 329s for i=1:length(c) 329s assert (isempty (setxor (c{i}, ec{i}))) 329s end 330s ***** test 330s % matrix, sum/prod 330s syms x y 330s f = [x + y; x*sin(y); sin(x)]; 330s ec = {[x y]; [x sin(y)]; [x]}; 330s c = children(f); 330s assert (isequal (size(c), size(ec))) 330s for i=1:length(c) 330s assert (isempty (setxor (c{i}, ec{i}))) 330s end 330s ***** test 330s % scalar symbol 330s syms x 330s assert (isequal (children(x), x)) 330s ***** test 330s % scalar number 330s x = sym(6); 330s assert (isequal (children(x), x)) 330s ***** test 330s % symbolic size matrix 330s syms n m integer 330s A = sym('a', [n m]); 330s C = children (A); 330s assert (isequal (C(2), n)) 330s assert (isequal (C(3), m)) 330s ***** xtest 330s % symbolic size matrix, fails on newer SymPy Issue #1089 330s syms n m integer 330s A = sym('a', [n m]); 330s assert (isequal (children (A), [sym('a') n m])) 330s !!!!! known failure 330s assert (isequal (children (A), [sym('a'), n, m])) failed 330s 10 tests, 9 passed, 1 known failure, 0 skipped 330s [inst/@sym/conj.m] 330s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/conj.m 330s ***** test 330s a = sym(6); 330s b = sym(5i); 330s assert (isequal (conj(a), a)) 330s assert (isequal (conj(b), -b)) 330s assert (isequal (conj(a+b), a-b)) 330s ***** test 330s syms x 330s assert (isequal (conj(conj(x)), x)) 330s ***** test 330s syms x real 330s assert (isequal (conj(x), x)) 330s ***** test 330s % array 330s syms x 330s A = [x 6+1i; sym(1) x+2i]; 330s B = [conj(x) 6-1i; sym(1) conj(x)-2i]; 330s assert (isequal (conj(A), B)) 330s ***** test 330s % true/false 330s t = sym(true); 330s f = sym(false); 330s assert (isequal ( conj(t), t)) 330s assert (isequal ( conj(f), f)) 330s ***** test 330s % round trip 330s syms x 330s d = 3 - 5i; 330s f = conj (x); 330s A = conj (d); 330s h = function_handle (f); 330s B = h (d); 330s assert (A, B) 330s 6 tests, 6 passed, 0 known failure, 0 skipped 330s [inst/@sym/isinf.m] 330s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/isinf.m 330s ***** shared x,zoo,oo,snan 330s oo = sym(inf); 330s zoo = sym('zoo'); 330s x = sym('x'); 330s snan = sym(nan); 330s ***** test 330s % various ops that give inf and nan 330s assert (isinf(oo)) 330s assert (isinf(zoo)) 330s assert (isinf(oo+oo)) 330s assert (~isinf(oo+zoo)) 330s assert (~isinf(0*oo)) 330s assert (~isinf(0*zoo)) 330s assert (~isinf(snan)) 330s assert (~isinf(oo-oo)) 330s assert (~isinf(oo-zoo)) 331s ***** test 331s % arrays 331s assert (isequal( isinf([oo zoo]), [1 1] )) 331s assert (isequal( isinf([oo 1]), [1 0] )) 331s assert (isequal( isinf([10 zoo]), [0 1] )) 331s assert (isequal( isinf([x oo x]), [0 1 0] )) 331s ***** test 331s % Must not contain string 'symbol'; these all should make an 331s % actual infinity. Actually a ctor test, not isinf. 331s % IIRC, SMT in Matlab 2013b fails. 331s oo = sym(inf); 331s assert (isempty (strfind (sympy (oo), 'Symbol'))) 331s oo = sym(-inf); 331s assert (isempty (strfind (sympy (oo), 'Symbol'))) 331s oo = sym('inf'); 331s assert (isempty (strfind (sympy (oo), 'Symbol'))) 331s oo = sym('-inf'); 331s assert (isempty (strfind (sympy (oo), 'Symbol'))) 331s oo = sym('Inf'); 331s assert (isempty (strfind (sympy (oo), 'Symbol'))) 331s ***** test 331s % ops with infinity shouldn't collapse 331s syms x oo zoo 331s y = x + oo; 331s assert (~isempty (strfind (lower (sympy (y)), 'add') )) 331s y = x - oo; 331s assert (~isempty (strfind (lower (sympy (y)), 'add') )) 331s y = x - zoo; 331s assert (~isempty (strfind (lower (sympy (y)), 'add') )) 331s y = x*oo; 331s assert (~isempty (strfind (lower (sympy (y)), 'mul') )) 331s ***** test 331s % ops with infinity are not necessarily infinite 331s syms x oo zoo 331s y = x + oo; 331s assert(~isinf(y)) % SMT 2014a says "true", I disagree 331s y = x - zoo; 331s assert(~isinf(y)) 331s y = x*oo; 331s assert(~isinf(y)) 331s 5 tests, 5 passed, 0 known failure, 0 skipped 331s [inst/@sym/and.m] 331s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/and.m 331s ***** shared t, f 331s t = sym(true); 331s f = sym(false); 331s ***** test 331s % simple 331s assert (isequal (t & f, f)) 331s assert (isequal (t & t, t)) 331s ***** test 331s % mix wih nonsym 331s assert (isequal (t & false, f)) 331s assert (isequal (t & true, t)) 331s assert (isequal (t & 0, f)) 331s assert (isequal (t & 1, t)) 331s assert (isa (t & false, 'sym')) 331s assert (isa (t & 1, 'sym')) 331s ***** test 331s % array 331s w = [t t f f]; 331s z = [t f t f]; 331s assert (isequal (w & z, [t f f f])) 331s ***** test 331s % number 331s assert (isequal( sym(1) & t, t)) 331s assert (isequal( sym(0) & t, f)) 331s ***** test 331s % output is sym even for scalar t/f 331s assert (isa (t & f, 'sym')) 331s ***** test 331s % eqns, exclusive 331s syms x 331s e = (x == 3) & (x^2 == 9); 331s assert (isequal (subs(e, x, [-3 0 3]), [f f t])) 331s ***** error and (sym('x'), 2, 3) 331s 7 tests, 7 passed, 0 known failure, 0 skipped 331s [inst/@sym/taylor.m] 331s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/taylor.m 331s ***** test 331s syms x 331s f = exp(x); 331s expected = 1 + x + x^2/2 + x^3/6 + x^4/24 + x^5/120; 331s assert (isequal (taylor(f), expected)) 331s assert (isequal (taylor(f,x), expected)) 331s assert (isequal (taylor(f,x,0), expected)) 332s ***** test 332s syms x 332s f = exp(x); 332s expected = 1 + x + x^2/2 + x^3/6 + x^4/24; 332s assert (isequal (taylor(f,'order',5), expected)) 332s assert (isequal (taylor(f,x,'order',5), expected)) 332s assert (isequal (taylor(f,x,0,'order',5), expected)) 332s ***** test 332s % key/value ordering doesn't matter 332s syms x 332s f = exp(x); 332s g1 = taylor(f, 'expansionPoint', 1, 'order', 3); 332s g2 = taylor(f, 'order', 3, 'expansionPoint', 1); 332s assert (isequal (g1, g2)) 332s ***** test 332s syms x 332s f = x^2; 332s assert (isequal (taylor(f,x,0,'order',0), 0)) 332s assert (isequal (taylor(f,x,0,'order',1), 0)) 332s assert (isequal (taylor(f,x,0,'order',2), 0)) 332s assert (isequal (taylor(f,x,0,'order',3), x^2)) 332s assert (isequal (taylor(f,x,0,'order',4), x^2)) 332s ***** test 332s syms x y 332s f = exp(x)+exp(y); 332s expected = 2 + x + x^2/2 + x^3/6 + x^4/24 + y + y^2/2 + y^3/6 + y^4/24; 332s assert (isAlways(taylor(f,[x,y],'order',5)== expected)) 332s assert (isAlways(taylor(f,[x,y],[0,0],'order',5) == expected)) 333s ***** test 333s % key/value ordering doesn't matter 333s syms x 333s f = exp(x); 333s g1 = taylor(f, 'expansionPoint', 1, 'order', 3); 333s g2 = taylor(f, 'order', 3, 'expansionPoint', 1); 333s assert (isequal (g1, g2)) 333s ***** test 333s syms x 333s f = x^2; 333s assert (isequal (taylor(f,x,0,'order',0), 0)) 333s assert (isequal (taylor(f,x,0,'order',1), 0)) 333s assert (isequal (taylor(f,x,0,'order',2), 0)) 333s assert (isequal (taylor(f,x,0,'order',3), x^2)) 333s assert (isequal (taylor(f,x,0,'order',4), x^2)) 333s ***** test 333s % syms for a and order 333s syms x 333s f = x^2; 333s assert (isequal (taylor(f,x,sym(0),'order',sym(2)), 0)) 333s assert (isequal (taylor(f,x,sym(0),'order',sym(4)), x^2)) 334s ***** test 334s syms x y 334s f = exp (x^2 + y^2); 334s expected = 1+ x^2 +y^2 + x^4/2 + x^2*y^2 + y^4/2; 334s assert (isAlways(taylor(f,[x,y],'order',5)== expected)) 334s assert (isAlways(taylor(f,[x,y],'expansionPoint', [0,0],'order',5) == expected)) 334s ***** test 334s syms x y 334s f = sqrt(1+x^2+y^2); 334s expected = 1+ x^2/2 +y^2/2 - x^4/8 - x^2*y^2/4 - y^4/8; 334s assert (isAlways(taylor(f,[x,y],'order',6)== expected)) 334s assert (isAlways(taylor(f,[x,y],'expansionPoint', [0,0],'order',5) == expected)) 335s ***** test 335s syms x y 335s f = sin (x^2 + y^2); 335s 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; 335s assert (isAlways(taylor(f,[x,y],'expansionPoint', [1,0],'order',3) == expected)) 336s ***** test 336s % key/value ordering doesn't matter 336s syms x y 336s f = exp(x+y); 336s g1 = taylor(f, 'expansionPoint',1, 'order', 3); 336s g2 = taylor(f, 'order', 3, 'expansionPoint',1); 336s assert (isAlways(g1== g2)) 336s ***** test 336s syms x y 336s f = x^2 + y^2; 336s assert (isAlways(taylor(f,[x,y],[0,0],'order',0)== sym(0) )) 336s assert (isAlways(taylor(f,[x,y],[0,0],'order',1)== sym(0) )) 336s assert (isAlways(taylor(f,[x,y],[0,0],'order',2)== sym(0) )) 336s assert (isAlways(taylor(f,[x,y],[0,0],'order',3)== sym(x^2 + y^2))) 336s assert (isAlways(taylor(f,[x,y],[0,0],'order',4)== sym(x^2 + y^2))) 336s ***** test 336s % expansion point 336s syms x a 336s f = x^2; 336s g = taylor(f,x,2); 336s assert (isequal (simplify(g), f)) 336s assert (isequal (g, 4*x+(x-2)^2-4)) 336s g = taylor(f,x,a); 336s assert (isequal (simplify(g), f)) 337s ***** test 337s % wrong order-1 series with nonzero expansion pt: 337s % upstream bug https://github.com/sympy/sympy/issues/9351 337s syms x 337s g = x^2 + 2*x + 3; 337s h = taylor (g, x, 4, 'order', 1); 337s assert (isequal (h, 27)) 337s ***** test 337s syms x y z 337s g = x^2 + 2*y + 3*z; 337s h = taylor (g, [x,y,z], 'order', 4); 337s assert (isAlways(h == g)) ; 337s ***** test 337s syms x y z 337s g = sin(x*y*z); 337s h = taylor (g, [x,y,z], 'order', 4); 337s assert (isAlways(h == x*y*z)) ; 337s ***** error 337s syms x y 337s taylor(0, [x, y], [1, 2, 3]); 337s 18 tests, 18 passed, 0 known failure, 0 skipped 337s [inst/@sym/besseljn.m] 337s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/besseljn.m 337s ***** test 337s % roundtrip 337s syms x 337s A = double(besseljn(sym(2), sym(9))); 337s q = besseljn(sym(2), x); 337s h = function_handle(q); 337s B = h(9); 337s assert (abs (A - B) <= eps) 337s ***** error jn(sym('x')) 337s 2 tests, 2 passed, 0 known failure, 0 skipped 337s [inst/@sym/kron.m] 337s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/kron.m 337s ***** error kron (sym (2)) 337s ***** test 337s syms x y 337s A = [sin(x), sin(y); x, y]; 337s B = ones(2); 337s 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]); 337s assert (isequal (kron(A, B), expected)) 338s ***** test 338s syms x y 338s A = [sin(x), sin(y); x, y]; 338s B = 2; 338s assert (isequal (kron(A, B), 2*A)) 338s ***** test 338s syms x y 338s A = [sin(x), sin(y)]; 338s B = 2; 338s assert (isequal( kron(B, A), 2*A)) 338s ***** test 338s syms x y; 338s X = [tan(x), tan(x)]; 338s Y = [cot(x); cot(x)]; 338s expected = sym(ones(2)); 338s assert (isequal (simplify(kron(X, Y)), expected)) 338s ***** test 338s syms x y z 338s X = [x, y, z]; 338s Y = [y, y; x, x]; 338s 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]; 338s assert (isequal (kron(X, Y), expected)) 338s ***** test 338s syms x y 338s X = [x, x^2; y, y^2]; 338s Y = [1, 0; 0, 1]; 338s expected = [x, x^2, 0, 0; y, y^2, 0, 0; 0, 0, x, x^2; 0, 0, y, y^2]; 338s assert (isequal (kron(Y, X), expected)) 339s ***** test 339s syms x y z 339s assert (isequal (kron (x, y, z), x*y*z)) 339s assert (isequal (kron (x, y, z, 4), 4*x*y*z)) 339s assert (isequal (kron ([2 3], y, z), [2 3]*y*z)) 339s assert (isequal (kron ([2 3], [4; 5], y), [8 12; 10 15]*y)) 339s ***** test 339s syms x y 339s A = kron ([x y], [1, -1; -1, 1], [2 3; 4 5]); 339s D = kron ([7 9], [1, -1; -1, 1], [2 3; 4 5]); 339s A = double (subs (A, [x y], [7 9])); 339s assert (isequal (A, D)) 340s 9 tests, 9 passed, 0 known failure, 0 skipped 340s [inst/@sym/gammaln.m] 340s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/gammaln.m 340s ***** assert (isequal (gammaln (sym (3)), log (sym (2)))) 340s ***** assert (isequal (gammaln (sym (10)), log (gamma (sym (10))))) 340s ***** test 340s % compare to Maple: evalf(lnGAMMA(Pi)); 340s maple = vpa ('0.827694592323437101529578558452359951153502', 40); 340s us = vpa (gammaln (sym(pi)), 40); 340s assert (abs(double(maple-us)) < 1e-39) 340s ***** test 340s % compare to Maple: evalf(lnGAMMA(3+2*I)); 340s maple = vpa ('-0.0316390593739611898037677296008797172022603', 40) + ... 340s vpa ('2.02219319750132712401643376238334982100512j', 40); 340s us = vpa (gammaln (sym(3) + 2i), 40); 340s assert (abs(double(maple-us)) < 1e-39) 340s ***** test 340s % compare to Maple: evalf(lnGAMMA(-1.5)); 340s % notably, @double/gammaln has zero imag part 340s maple = vpa ('0.8600470153764810145109326816703567873271571', 40) - ... 340s vpa ('6.2831853071795864769252867665590057683943388j', 40); 340s us = vpa (gammaln (-sym(3)/2), 40); 340s assert (abs(double(maple-us)) < 1e-39) 340s ***** assert (gammaln (pi), double (gammaln (sym (pi))), -3*eps) 340s ***** assert (gammaln (100), double (gammaln (sym (100))), -3*eps) 340s ***** assert (gammaln (1e-3), double (gammaln (1/sym (1e3))), -100*eps) 340s ***** test 340s % round trip 340s syms x 340s f = gammaln (x); 340s h = function_handle (f); 340s A = h (1.1); 340s B = gammaln (1.1); 340s assert (A, B) 340s 9 tests, 9 passed, 0 known failure, 0 skipped 340s [inst/@sym/nextprime.m] 340s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/nextprime.m 340s ***** assert (isequal (nextprime(sym(2)), 3)); 340s ***** assert (isequal (nextprime(sym(18)), 19)); 340s ***** assert (isequal (nextprime(sym([1 2 3])), [2 3 5])); 340s ***** assert (isequal (nextprime(sym([-1 0])), [2 2])); 340s ***** test 340s % result is a sym 340s p = nextprime(sym(2)); 340s assert (isa (p, 'sym')) 340s 5 tests, 5 passed, 0 known failure, 0 skipped 340s [inst/@sym/logspace.m] 340s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/logspace.m 340s ***** test 340s % default argument for N 340s A = logspace(0, 2); 340s assert (length (A) == 50); 341s ***** test 341s % special case: pi as end pt 341s A = logspace(-sym(3), sym(pi), 3); 341s assert (isequal (A(end), sym(pi))) 341s ***** test 341s A = logspace(-sym(4), 0, 3); 341s B = [sym(1)/10000 sym(1)/100 sym(1)]; 341s assert (isequal (A, B)) 341s ***** test 341s % vpa support, might need recent sympy for sympy issue #10063 341s n = 32; 341s A = logspace(-vpa(1,n), 0, 3); 341s B = [10^(-vpa(1,n)) 10^(-vpa(sym(1)/2,n)) vpa(1,n)]; 341s assert (isequal (A, B)) 341s assert (max(abs(double(A) - logspace(-1, 0, 3))) < 1e-15) 341s 4 tests, 4 passed, 0 known failure, 0 skipped 341s [inst/@sym/degree.m] 341s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/degree.m 341s ***** error degree (sym(1), 2, 3) 341s ***** test 341s syms x 341s assert (isequal (degree(x^3), 3)) 341s assert (isequal (degree(x^3 + 6), 3)) 341s ***** test 341s % specify variable 341s syms x y 341s p = x^2 + y*x + 1; 341s assert (isequal (degree(p), 2)) 341s assert (isequal (degree(p, x), 2)) 341s assert (isequal (degree(p, y), 1)) 342s ***** test 342s syms x a oo 342s assert (isequal (degree(x^3, a), 0)) 342s assert (isequal (degree(sym(1), a), 0)) 342s assert (isequal (degree(sym(0), a), -oo)) 342s ***** xtest 342s % constant inputs 342s syms oo 342s assert (isequal (degree(sym(1)), 0)) 342s assert (isequal (degree(sym(0)), -oo)) 342s 5 tests, 5 passed, 0 known failure, 0 skipped 342s [inst/@sym/atan2.m] 342s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/atan2.m 342s ***** error atan2 (1) 342s ***** error atan2 (1, 2, 3) 342s ***** test 342s % some angles 342s e = sym(1); 342s a = atan2(0, e); 342s assert (isequal (a, sym(0))) 342s a = atan2(e, 0); 342s assert (isequal (a, sym(pi)/2)) 342s ***** test 342s % symbols can give numerical answer 342s syms x positive 342s a = atan2(0, x); 342s assert (isequal (a, sym(0))) 342s a = atan2(x, 0); 342s assert (isequal (a, sym(pi)/2)) 342s a = atan2(-x, 0); 342s assert (isequal (a, -sym(pi)/2)) 342s ***** test 342s % matrices 342s x = sym([1 -2; 0 0]); 342s y = sym([0 0; 8 -3]); 342s a = atan2(y, x); 342s sp = sym(pi); 342s aex = [0 sp; sp/2 -sp/2]; 342s assert (isequal (a, aex)) 343s ***** test 343s % round trip 343s syms x y 343s xd = -2; yd = -3; 343s f = atan2 (x, y); 343s A = atan2 (xd, yd); 343s h = function_handle (f); 343s B = h (xd, yd); 343s assert (A, B, -eps) 343s 6 tests, 6 passed, 0 known failure, 0 skipped 343s [inst/@sym/coth.m] 343s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/coth.m 343s ***** error coth (sym(1), 2) 343s ***** assert (isequaln (coth (sym(nan)), sym(nan))) 343s ***** shared x, d 343s d = 1; 343s x = sym('1'); 343s ***** test 343s f1 = coth(x); 343s f2 = coth(d); 343s assert( abs(double(f1) - f2) < 1e-15 ) 343s ***** test 343s D = [d d; d d]; 343s A = [x x; x x]; 343s f1 = coth(A); 343s f2 = coth(D); 343s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 343s ***** test 343s % round trip 343s y = sym('y'); 343s A = coth (d); 343s f = coth (y); 343s h = function_handle (f); 343s B = h (d); 343s assert (A, B, -eps) 343s 5 tests, 5 passed, 0 known failure, 0 skipped 343s [inst/@sym/coshint.m] 343s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/coshint.m 343s ***** error coshint (sym(1), 2) 343s ***** xtest 343s assert (isequaln (coshint (sym(nan)), sym(nan))) 343s !!!!! known failure 343s assert (isequaln (coshint (sym (nan)), sym (nan))) failed 343s ***** shared x, d 343s d = 1; 343s x = sym('1'); 343s ***** test 343s f1 = coshint(x); 343s f2 = 0.8378669409802082408947; 343s assert( abs(double(f1) - f2) < 1e-15 ) 343s ***** test 343s D = [d d; d d]; 343s A = [x x; x x]; 343s f1 = coshint(A); 343s f2 = 0.8378669409802082408947; 343s f2 = [f2 f2; f2 f2]; 343s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 343s ***** test 343s % round trip 343s y = sym('y'); 343s A = coshint (d); 343s f = coshint (y); 343s h = function_handle (f); 343s B = h (d); 343s assert (A, B, -eps) 343s 5 tests, 4 passed, 1 known failure, 0 skipped 343s [inst/@sym/ellipticE.m] 343s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/ellipticE.m 343s ***** error ellipticE (sym(1), 2, 3) 343s ***** assert (double (ellipticE (sym (-105)/10)), 3.70961391, 10e-9) 343s ***** assert (double (ellipticE (sym (-pi)/4)), 1.844349247, 10e-10) 343s ***** assert (double (ellipticE (sym (0))), 1.570796327, 10e-10) 343s ***** assert (double (ellipticE (sym (1))), 1, 10e-1) 343s ***** test 343s % compare to Maple 343s us = vpa (ellipticE (sym(7)/6, sym(13)/7), 40); 343s % > evalf(EllipticE(sin(7/6), sqrt(13/7)), 40); 343s maple = vpa ('0.6263078268598504591831743625971763209496', 40) + ... 343s vpa ('0.1775496232203171126975790989055865596501j', 40); 343s assert (abs (double (maple - us)), 0, 2e-39) 344s ***** test 344s % compare to Maple 344s us = vpa (ellipticE (sym(8)/7), 40); 344s % > evalf(EllipticE(sqrt(8/7)), 40); 344s maple = vpa ('0.8717182992576322508542205614105802333270', 40) + ... 344s vpa ('0.1066754320328976949531350910798010526685j', 40); 344s assert (abs (double (maple - us)), 0, 2e-39) 344s 7 tests, 7 passed, 0 known failure, 0 skipped 344s [inst/@sym/atan.m] 344s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/atan.m 344s ***** error atan (sym(1), 2) 344s ***** assert (isequaln (atan (sym(nan)), sym(nan))) 344s ***** shared x, d 344s d = 1; 344s x = sym('1'); 344s ***** test 344s f1 = atan(x); 344s f2 = atan(d); 344s assert( abs(double(f1) - f2) < 1e-15 ) 344s ***** test 344s D = [d d; d d]; 344s A = [x x; x x]; 344s f1 = atan(A); 344s f2 = atan(D); 344s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 344s ***** test 344s % round trip 344s y = sym('y'); 344s A = atan (d); 344s f = atan (y); 344s h = function_handle (f); 344s B = h (d); 344s assert (A, B, -eps) 344s 5 tests, 5 passed, 0 known failure, 0 skipped 344s [inst/@sym/ezsurf.m] 344s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/ezsurf.m 344s ***** error 344s syms u v t 344s ezsurf(u*v, 2*u*v, 3*v*t) 344s ***** error 344s syms u v t 344s ezsurf(u*v, 2*u*v, u*v*t) 344s 2 tests, 2 passed, 0 known failure, 0 skipped 344s [inst/@sym/cumsum.m] 344s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/cumsum.m 344s ***** shared x, y 344s x = sym ('x'); 344s y = sym ('y'); 344s ***** error cumsum (x, 1, 2) 344s ***** assert (isequal (cumsum ([-x; -2*x; -3*x]), [-x; -3*x; -6*x])) 345s ***** assert (isequal (cumsum ([x + 2i*y, 2*x + i*y]), [x + 2i*y, 3*x + 3i*y])) 345s ***** assert (isequal (cumsum ([x, 2*x; 3*x, 4*x], 1), [1*x, 2*x; 4*x, 6*x] )) 345s ***** assert (isequal (cumsum ([x, 2*x; 3*x, 4*x], 2), [1*x, 3*x; 3*x, 7*x] )) 345s ***** test cumsum ([x, x], [2, 1]); # ensure behaves like builtin cumsum 346s ***** test cumsum ([x, x], [1, -2]); # ensure behaves like builtin cumsum 346s ***** error cumsum (x, []) 346s ***** error cumsum (x, {1}) 346s ***** error cumsum (x, struct('a', 1)) 346s ***** error cumsum (x, x) 346s ***** error cumsum (x, 0) 346s ***** error cumsum (x, -1) 346s 13 tests, 13 passed, 0 known failure, 0 skipped 346s [inst/@sym/transpose.m] 346s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/transpose.m 346s ***** test 346s x = sym(1); 346s assert (isequal (x.', x)) 346s ***** assert (isempty (sym([]).')) 346s ***** test 346s syms x; 346s assert (isequal (x.', x)) 346s ***** test 346s A = [1 2; 3 4]; 346s assert(isequal( sym(A).' , sym(A.') )) 346s ***** test 346s A = [1 2] + 1i; 346s assert(isequal( sym(A).' , sym(A.') )) 346s 5 tests, 5 passed, 0 known failure, 0 skipped 346s [inst/@sym/cos.m] 346s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/cos.m 346s ***** error cos (sym(1), 2) 346s ***** assert (isequaln (cos (sym(nan)), sym(nan))) 346s ***** shared x, d 346s d = 1; 346s x = sym('1'); 346s ***** test 346s f1 = cos(x); 346s f2 = cos(d); 346s assert( abs(double(f1) - f2) < 1e-15 ) 346s ***** test 346s D = [d d; d d]; 346s A = [x x; x x]; 346s f1 = cos(A); 346s f2 = cos(D); 346s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 346s ***** test 346s % round trip 346s y = sym('y'); 346s A = cos (d); 346s f = cos (y); 346s h = function_handle (f); 346s B = h (d); 346s assert (A, B, -eps) 346s 5 tests, 5 passed, 0 known failure, 0 skipped 346s [inst/@sym/isconstant.m] 346s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/isconstant.m 346s ***** test 346s syms x 346s A = [x 2 3]; 346s B = [false true true]; 346s assert (isequal (isconstant (A), B)) 346s ***** test 346s syms x 346s A = [x 2; 3 x]; 346s B = [false true; true false]; 346s assert (isequal (isconstant (A), B)) 346s 2 tests, 2 passed, 0 known failure, 0 skipped 346s [inst/@sym/ellipticF.m] 346s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/ellipticF.m 346s ***** error ellipticF (sym(1)) 346s ***** error ellipticF (sym(1), 2, 3) 346s ***** assert (double (ellipticF (sym (pi)/3, sym (-105)/10)), 0.6184459461, 10e-11) 346s ***** assert (double (ellipticF (sym (pi)/4, sym (-pi))), 0.6485970495, 10e-11) 347s ***** assert (double (ellipticF (sym (1), sym (-1))), 0.8963937895, 10e-11) 347s ***** assert (double (ellipticF (sym (pi)/6, sym (0))), 0.5235987756, 10e-11) 347s ***** test 347s % compare to Maple 347s us = vpa (ellipticF (sym(11)/10, sym(9)/4), 40); 347s % > evalf(EllipticF(sin(11/10), sqrt(9/4)), 40); 347s maple = vpa ('1.206444996991058996424988192917728014427', 40) - ... 347s vpa ('0.8157358125823472313001683083685348517476j', 40); 347s assert (abs (double (maple - us)), 0, 1e-39) 347s 7 tests, 7 passed, 0 known failure, 0 skipped 347s [inst/@sym/besseli.m] 347s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/besseli.m 347s ***** test 347s X = [1 2 3; 4 5 6]; 347s ns = [sym(0) 1 -2; sym(1)/2 -sym(3)/2 pi]; 347s n = double(ns); 347s A = double(besseli(ns, X)); 347s B = besseli(n, X); 347s assert (all (all (abs (A - B) < 100*eps*abs(A)))) 347s ***** test 347s % roundtrip 347s syms x 347s A = besseli(2, 10); 347s q = besseli(2, x); 347s h = function_handle(q); 347s B = h(10); 347s assert (abs (A - B) <= eps*abs(A)) 347s ***** error besseli(sym('x')) 347s 3 tests, 3 passed, 0 known failure, 0 skipped 347s [inst/@sym/pretty.m] 347s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/pretty.m 347s ***** test 347s % simple 347s syms x 347s s1 = pretty(sin(x)); 347s s2 = sprintf(' sin(x)\n'); 347s assert (strcmp (s1, s2)) 347s ***** test 347s % force ascii 347s syms x 347s s1 = pretty(sin(x/2), 'ascii'); 347s s2 = sprintf(' /x\\\n sin|-|\n \\2/\n'); 347s swin = strrep(s1, sprintf('\r\n'), sprintf('\n')); 347s assert (strcmp (s1, s2) || strcmp (swin, s2)) 348s ***** test 348s % force unicode 348s syms x 348s s1 = pretty(sin(x/2), 'unicode'); 348s s2 = sprintf(' ⎛x⎞\n sin⎜─⎟\n ⎝2⎠\n'); 348s swin = strrep(s1, sprintf('\r\n'), sprintf('\n')); 348s assert (strcmp (s1, s2) || strcmp (swin, s2)) 348s 3 tests, 3 passed, 0 known failure, 0 skipped 348s [inst/@sym/assumeAlso.m] 348s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/assumeAlso.m 348s ***** test 348s syms x 348s x = assumeAlso(x, 'positive'); 348s a = assumptions(x); 348s assert(strcmp(a, 'x: positive')) 348s ***** error 348s syms x 348s x = assumeAlso (x, x); 348s ***** test 348s syms x positive 348s x = assumeAlso(x, 'integer'); 348s [tilde, a] = assumptions(x, 'dict'); 348s assert(a{1}.integer) 348s assert(a{1}.positive) 348s ***** test 348s % multiple assumptions 348s syms x positive 348s x = assumeAlso(x, 'integer', 'even'); 348s [tilde, a] = assumptions(x, 'dict'); 348s assert(a{1}.integer) 348s assert(a{1}.positive) 348s assert(a{1}.even) 348s ***** test 348s % multiple assumptions 348s syms x integer 348s x = assumeAlso (x, 'even', 'positive'); 348s [tilde, a] = assumptions (x, 'dict'); 348s assert (a{1}.integer) 348s assert (a{1}.even) 348s assert (a{1}.positive) 348s ***** test 348s % has output so avoids workspace 348s syms x positive 348s x2 = x; 348s f = sin(x); 348s assumeAlso(x, 'integer'); 348s a = assumptions(x); 348s assert(strcmp(a, 'x: positive, integer') || strcmp(a, 'x: integer, positive')) 348s a = assumptions(x2); 348s assert(strcmp(a, 'x: positive, integer') || strcmp(a, 'x: integer, positive')) 348s a = assumptions(f); 348s assert(strcmp(a, 'x: positive, integer') || strcmp(a, 'x: integer, positive')) 348s ***** test 348s % has no output so does workspace 348s syms x positive 348s x2 = x; 348s f = sin(x); 348s assumeAlso(x, 'integer'); 348s a = assumptions(x); 348s assert(strcmp(a, 'x: positive, integer') || strcmp(a, 'x: integer, positive')) 348s a = assumptions(x2); 348s assert(strcmp(a, 'x: positive, integer') || strcmp(a, 'x: integer, positive')) 348s a = assumptions(f); 348s assert(strcmp(a, 'x: positive, integer') || strcmp(a, 'x: integer, positive')) 348s ***** error 348s syms a 348s assumeAlso (a > 0) 348s ***** test 348s syms x y 348s assumeAlso ([x y], 'even') 348s assert (strcmp (assumptions (x), 'x: even')) 348s assert (strcmp (assumptions (y), 'y: even')) 348s ***** test 348s syms x y positive 348s f = sin (2*x); 348s assumeAlso ([x y], 'even') 348s assert (strcmp (assumptions (x), 'x: even, positive') || strcmp (assumptions (x), 'x: positive, even')) 348s assert (strcmp (assumptions (y), 'y: even, positive') || strcmp (assumptions (y), 'y: positive, even')) 348s assert (strcmp (assumptions (f), 'x: even, positive') || strcmp (assumptions (f), 'x: positive, even')) 349s ***** test 349s % with output, original x and y are unchanged 349s syms x y positive 349s f = sin (2*x); 349s [p, q] = assumeAlso ([x y], 'even'); 349s assert (strcmp (assumptions (x), 'x: positive')) 349s assert (strcmp (assumptions (y), 'y: positive')) 349s assert (strcmp (assumptions (f), 'x: positive')) 349s assert (strcmp (assumptions (p), 'x: even, positive') || strcmp (assumptions (p), 'x: positive, even')) 349s assert (strcmp (assumptions (q), 'y: even, positive') || strcmp (assumptions (q), 'y: positive, even')) 349s 11 tests, 11 passed, 0 known failure, 0 skipped 349s [inst/@sym/cosint.m] 349s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/cosint.m 349s ***** error cosint (sym(1), 2) 349s ***** xtest 349s assert (isequaln (cosint (sym(nan)), sym(nan))) 349s !!!!! known failure 349s assert (isequaln (cosint (sym (nan)), sym (nan))) failed 349s ***** shared x, d 349s d = 1; 349s x = sym('1'); 349s ***** test 349s f1 = cosint(x); 349s f2 = 0.3374039229009681346626; 349s assert( abs(double(f1) - f2) < 1e-15 ) 349s ***** test 349s D = [d d; d d]; 349s A = [x x; x x]; 349s f1 = cosint(A); 349s f2 = 0.3374039229009681346626; 349s f2 = [f2 f2; f2 f2]; 349s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 349s ***** test 349s % round trip 349s y = sym('y'); 349s A = cosint (d); 349s f = cosint (y); 349s h = function_handle (f); 349s B = h (d); 349s assert (A, B, -eps) 349s 5 tests, 4 passed, 1 known failure, 0 skipped 349s [inst/@sym/coeffs.m] 349s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/coeffs.m 349s ***** error coeffs (sym(1), 2, 3, 4) 349s ***** error coeffs (sym(1), 2, 'al') 349s ***** error coeffs (sym(1), 'al') 349s ***** test 349s % simple 349s syms x 349s [c, t] = coeffs(6*x*x + 27); 349s assert (isequal (c, [6 27])) 349s assert (isequal (t, [x*x 1])) 349s ***** test 349s % specify a variable 349s syms x 349s [c, t] = coeffs(6*x*x + 27, x); 349s assert (isequal (c, [6 27])) 349s assert (isequal (t, [x*x 1])) 349s ***** test 349s % specify another variable 349s syms x y 349s [c, t] = coeffs(6*x + 27, y); 349s assert (isequal (c, 6*x + 27)) 349s assert (isequal (t, 1)) 349s ***** test 349s % weird SMT order 349s syms x 349s a1 = [27 6]; 349s a2 = [6 27]; 349s c = coeffs(6*x*x + 27); 349s assert (isequal (c, a1)) 349s coeffs(6*x*x + 27); 349s assert (isequal (ans, a1)) 349s [c, t] = coeffs(6*x*x + 27); 349s assert (isequal (c, a2)) 350s ***** test 350s % no weird order with "all" 350s syms x 350s c = coeffs(6*x*x + 27, 'all'); 350s assert (isequal (c, [6 0 27])) 350s ***** test 350s % "all" 350s syms x 350s [c, t] = coeffs(6*x*x + 27, 'all'); 350s assert (isequal (c, [6 0 27])) 350s assert (isequal (t, [x^2 x 1])) 350s ***** test 350s % "All" 350s syms x 350s [c, t] = coeffs(6*x, 'All'); 350s assert (isequal (c, [6 0])) 350s assert (isequal (t, [x 1])) 350s ***** test 350s % multivariable array 350s syms x y 350s [c, t] = coeffs(6*x*x + 27*y*x + 36, [x y]); 350s a = [6 27 36]; 350s s = [x^2 x*y 1]; 350s assert (isequal (c, a)) 350s assert (isequal (t, s)) 350s % with list 350s [c, t] = coeffs(6*x*x + 27*y*x + 36, {x y}); 350s assert (isequal (c, a)) 350s assert (isequal (t, s)) 350s ***** test 350s % other symbols treated as part of coeffs 350s syms x y 350s [c, t] = coeffs(6*x*x + 27*y*x + 36, x); 350s a = [6 27*y 36]; 350s s = [x^2 x 1]; 350s assert (isequal (c, a)) 350s assert (isequal (t, s)) 351s ***** error 351s % TODO: multivariate all not working (https://github.com/cbm755/octsympy/issues/720) 351s syms x y 351s [c, t] = coeffs(6*x^2 + 7*y + 19, [x y], 'all'); 351s ***** test 351s % empty same as not specifying; maybe not SMT compatible: 351s % https://github.com/cbm755/octsympy/pull/708#discussion_r94292831 351s syms x y 351s [c, t] = coeffs(6*x*x + 27*y*x + 36, {}); 351s a = [6 27 36]; 351s assert (isequal (c, a)) 351s [c, t] = coeffs(6*x*x + 27*y*x + 36); 351s assert (isequal (c, a)) 351s ***** test 351s % no input defaults to all symbols (not symvar to get x) 351s syms x y 351s [c, t] = coeffs(6*x*x + 27*y*x + 36); 351s assert (isequal (c, [6 27 36])) 351s ***** test 351s % non sym input 351s syms x 351s assert (isequal (coeffs(6, x), sym(6))) 351s ***** test 351s % constant input without x 351s assert (isequal (coeffs(sym(6)), sym(6))) 351s ***** test 351s % constant input without x 351s assert (isequal (coeffs (sym(6), {}), sym(6))) 351s % irrational coefficients 351s syms x 351s f = x^2 + sqrt(sym(2))*x; 351s [c1, t1] = coeffs (f); 351s [c2, t2] = coeffs (f, x); 351s assert (isequal (c1, c2)) 351s assert (isequal (t1, t2)) 352s 18 tests, 18 passed, 0 known failure, 0 skipped 352s [inst/@sym/mldivide.m] 352s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/mldivide.m 352s ***** test 352s % scalar 352s syms x 352s assert (isa( x\x, 'sym')) 352s assert (isequal( x\x, sym(1))) 352s assert (isa( 2\x, 'sym')) 352s assert (isa( x\2, 'sym')) 352s ***** test 352s % scalar \ matrix: easy, no system 352s D = 2*[0 1; 2 3]; 352s A = sym(D); 352s assert (isequal ( 2 \ A , D/2 )) 352s assert (isequal ( sym(2) \ A , D/2 )) 352s ***** test 352s % singular matrix 352s A = sym([1 2; 2 4]); 352s b = sym([5; 10]); 352s x = A \ b; 352s syms c1 352s y = [-2*c1 + 5; c1]; 352s assert (isequal (x, y)) 352s ***** test 352s % singular matrix, mult RHS 352s A = sym([1 2; 2 4]); 352s B = sym([[5; 10] [0; 2] [0; 0]]); 352s x = A \ B; 352s syms c1 c5 352s y = [-2*c1 + 5 nan -2*c5; c1 nan c5]; 352s assert (isequaln (x, y)) 352s ***** warning 352s % vpa, nearly singular matrix 352s A = sym([1 2; 2 4]); 352s A(1,1) = vpa('1.001'); 352s b = sym([1; 2]); 352s x = A \ b; 352s y = [sym(0); vpa('0.5')]; 352s assert (isequal (x, y)) 352s ***** warning 352s % vpa, singular rhs 352s A = sym([1 2; 2 4]); 352s b = [vpa('1.01'); vpa('2')]; 352s x = A \ b; 352s assert (all(isnan(x))) 352s 6 tests, 6 passed, 0 known failure, 0 skipped 352s [inst/@sym/prod.m] 352s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/prod.m 352s ***** error prod (sym(1), 2, 3) 352s ***** error prod (sym(1), 42) 352s ***** shared x,y,z 352s syms x y z 353s ***** assert (isequal (prod (x), x)) 353s ***** assert (isequal (prod ([x y z]), x*y*z)) 353s ***** assert (isequal (prod ([x; y; z]), x*y*z)) 353s ***** assert (isequal (prod ([x y z], 1), [x y z])) 353s ***** assert (isequal (prod ([x y z], 2), x*y*z)) 353s ***** shared a,b 353s b = [1 2; 3 4]; a = sym(b); 353s ***** assert (isequal (prod(a), prod(b))) 353s ***** assert (isequal (prod(a,1), prod(b,1))) 353s ***** assert (isequal (prod(a,2), prod(b,2))) 353s ***** test 353s % weird inputs 353s a = prod('xx', sym(1)); 353s assert (isequal (a, sym('xx'))) 353s 11 tests, 11 passed, 0 known failure, 0 skipped 353s [inst/@sym/ellipticPi.m] 353s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/ellipticPi.m 353s ***** error ellipticPi (sym (1)) 353s ***** error ellipticPi (sym (1), 2, 3, 4) 353s ***** assert (double (ellipticPi (sym (-23)/10, sym (pi)/4, 0)), 0.5876852228, 10e-11) 353s ***** assert (double (ellipticPi (sym (1)/3, sym (pi)/3, sym (1)/2)), 1.285032276, 10e-11) 353s ***** assert (double (ellipticPi (sym (2), sym (pi)/6, sym (2))), 0.7507322117, 10e-11) 354s ***** xtest 354s % FIXME: search/report upstream 354s assert (double (ellipticPi (sym (-1), 0, sym (1))), 0) 354s !!!!! known failure 354s ASSERT errors for: assert (double (ellipticPi (sym (-1), 0, sym (1))),0) 354s 354s Location | Observed | Expected | Reason 354s () NaN 0 'NaN' mismatch 354s ***** xtest 354s % FIXME: this is a regression somewhere: loss of precision: Issue #1064 354s % compare to Maple, complete 354s us = vpa (ellipticPi (sym(1)/6, sym(4)/3), 40); 354s % > evalf(EllipticPi(sin(1/6), sqrt(4/3)), 40); 354s maple = vpa ('2.019271696236161760696477679310987869058', 40) - ... 354s vpa ('1.708165765120289929280805062355360570830j', 40); 354s assert (abs (double (maple - us)), 0, 2e-39) 356s !!!!! known failure 356s ASSERT errors for: assert (abs (double (maple - us)),0,2e-39) 356s 356s Location | Observed | Expected | Reason 356s () 5.7666e-32 0 Abs err 5.7666e-32 exceeds tol 2e-39 by 6e-32 356s ***** test 356s % compare to Maple, complete 356s us = vpa (ellipticPi (sym(1)/6, sym(4)/3), 40); 356s % > evalf(EllipticPi(sin(1/6), sqrt(4/3)), 40); 356s maple = vpa ('2.019271696236161760696477679310987869058', 40) - ... 356s vpa ('1.708165765120289929280805062355360570830j', 40); 356s assert (abs (double (maple - us)), 0, 2e-30) 359s ***** test 359s % compare to Maple, incomplete 359s us = vpa (ellipticPi (sym(8)/7, sym(4)/3, sym(2)/7), 40); 359s % > evalf(EllipticPi(sin(4/3), 8/7, sqrt(2/7)), 40); 359s maple = vpa ('2.089415796799294830305265090302275542033', 40) - ... 359s vpa ('4.798862045930802761256228043192491271947j', 40); 359s assert (abs (double (maple - us)), 0, 6e-39) 359s 9 tests, 7 passed, 2 known failures, 0 skipped 359s [inst/@sym/cart2pol.m] 359s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/cart2pol.m 359s ***** test 359s % multiple non-scalar inputs 359s x = sym ('x', [2 2]); 359s assume (x, 'real'); 359s y = sym ('y', [2 2]); 359s assume (y, 'real'); 359s [theta, r] = cart2pol (x, y); 359s assert (isequal (r, sqrt (x.^2 + y.^2))); 359s assert (isequal (tan (theta), y ./ x)); 359s % mixing scalar inputs with non-scalar inputs 359s syms z real 359s [theta_2, r_2, z_2] = cart2pol (x, y, z); 359s assert (isequal (r_2, sqrt (x.^2 + y.^2))); 359s assert (isequal (tan (theta_2), y ./ x)); 359s assert (isequal (z_2, z * ones (2, 2))); 360s ***** test 360s % column vector with 2 entries 360s syms x y real 360s [theta, r] = cart2pol ([x; y]); 360s assert (isequal (r, sqrt (x.^2 + y.^2))); 360s assert (isequal (tan (theta), y ./ x)); 360s % column vector with 3 entries 360s syms z real 360s [theta_2, r_2, z_2] = cart2pol ([x; y; z]); 360s assert (isequal (r_2, sqrt (x.^2 + y.^2))); 360s assert (isequal (tan (theta_2), y ./ x)); 360s assert (isequal (z_2, z)); 361s ***** test 361s % matrix with 2 columns 361s syms x y u v real 361s C = [x y; u v]; 361s [theta, r] = cart2pol (C); 361s assert (isequal (r, [sqrt(x.^2+y.^2); sqrt(u.^2+v.^2)])); 361s assert (isequal (tan (theta), [y/x; v/u])); 361s % matrix with 3 columns 361s syms z w real 361s C_2 = [x y z; u v w]; 361s [theta_2, r_2, z_2] = cart2pol (C_2); 361s assert (isequal (r, [sqrt(x.^2+y.^2); sqrt(u.^2+v.^2)])); 361s assert (isequal (tan (theta), [y/x; v/u])); 361s assert (isequal (z_2, [z; w])); 362s 3 tests, 3 passed, 0 known failure, 0 skipped 362s [inst/@sym/imag.m] 362s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/imag.m 362s ***** assert (isequal (imag (sym (4) + 3i),3)) 362s ***** test 362s syms x y real 362s z = x + 1i*y; 362s assert (isequal (imag (z),y)) 362s ***** test 362s syms x y real 362s Z = [4 x + 1i*y; 1i*y 4 + 3i]; 362s assert (isequal (imag (Z),[0 y; y 3])) 362s ***** test 362s syms x real 362s d = exp (x*i); 362s assert (isequal (imag (d), sin (x))) 362s ***** test 362s % round trip 362s syms x 362s d = 3 - 5i; 362s f = imag (x); 362s A = imag (d); 362s h = function_handle (f); 362s B = h (d); 362s assert (A, B) 362s 5 tests, 5 passed, 0 known failure, 0 skipped 362s [inst/@sym/isna.m] 362s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/isna.m 362s ***** test 362s % no sym should be NA 362s syms x oo 362s assert (~isna(sym(1))) 362s assert (~isna(x)) 362s assert (~isna(oo)) 362s assert (~isna(sym(nan))) 362s assert (isequal (isna (sym ([1 nan])), [false false])) 362s 1 test, 1 passed, 0 known failure, 0 skipped 362s [inst/@sym/power.m] 362s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/power.m 362s ***** test 362s % scalar .^ scalar 362s syms x 362s assert (isa (x.^2, 'sym')) 362s assert (isa (2.^x, 'sym')) 362s assert (isa (x.^x, 'sym')) 362s assert (isequal (x.^2, x^2)) 362s assert (isequal (2.^x, 2^x)) 362s assert (isequal (x.^x, x^x)) 362s ***** test 362s % scalar .^ matrix 362s D = [0 1; 2 3]; 362s A = sym(D); 362s assert (isequal ( sym(2).^D , 2.^D )) 362s assert (isequal ( sym(2).^A , 2.^A )) 362s assert (isequal ( 2.^D , 2.^A )) 362s assert (isequal ( 2.^A , 2.^A )) 362s ***** test 362s % matrix .^ matrix 362s syms x 362s A = [x 2*x; 3*x 4*x]; 362s D = [0 1; 2 3]; 362s B = sym(D); 362s assert (isequal ( A.^D, [1 2*x; 9*x^2 64*x^3] )) 362s assert (isequal ( A.^B, [1 2*x; 9*x^2 64*x^3] )) 363s ***** test 363s % matrix .^ scalar 363s syms x 363s A = [x 2*x]; 363s assert (isequal ( A.^2, [x^2 4*x^2] )) 363s assert (isequal ( A.^sym(2), [x^2 4*x^2] )) 363s ***** test 363s % 1^oo 363s % (sympy >= 0.7.5 gives NaN, SMT R2013b: gives 1) 363s oo = sym(inf); 363s assert (isnan (1^oo)) 363s ***** test 363s % 1^zoo 363s % (1 on sympy 0.7.4--0.7.6, but nan in git (2014-12-12, a210908d4)) 363s zoo = sym('zoo'); 363s assert (isnan (1^zoo)) 363s ***** test 363s % immutable test 363s A = sym([1 2]); 363s B = sym('ImmutableDenseMatrix([[Integer(1), Integer(2)]])'); 363s assert (isequal (A.^A, B.^B)) 363s :18: SyntaxWarning: invalid escape sequence '\(' 363s 7 tests, 7 passed, 0 known failure, 0 skipped 363s [inst/@sym/isprime.m] 363s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/isprime.m 363s ***** assert (isprime (sym(5))) 363s ***** assert (~isprime (sym(4))) 363s ***** assert (~isprime (sym(0))) 363s ***** assert (~isprime (sym(1))) 363s ***** test 363s a = [5 7 6; 1 2 337]; 363s assert (isequal (isprime (a), [true true false; false true true])) 363s ***** assert (~isprime(sym(-4))) 363s ***** assert (~isprime(sym(4i))) 363s ***** assert (~isprime(sym(3)/5)) 363s ***** error 363s isprime(sym('x')); 363s 9 tests, 9 passed, 0 known failure, 0 skipped 363s [inst/@sym/isequaln.m] 363s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/isequaln.m 363s ***** test 363s a = sym([1 2]); 363s b = a; 363s assert (isequaln (a, b)) 363s b(1) = 42; 363s assert (~isequaln (a, b)) 363s ***** test 363s a = sym([1 2; 3 4]); 363s b = a; 363s assert (isequaln (a, b)) 363s b(1) = 42; 363s assert (~isequaln (a, b)) 363s ***** test 363s a = sym([nan; 2]); 363s b = a; 363s assert (isequaln (a, b)) 363s ***** test 363s a = sym([nan 2; 3 4]); 363s b = a; 363s assert (isequaln (a, b)) 363s ***** test 363s % more than two arrays 363s a = sym([nan 2 3]); 363s b = a; 363s c = a; 363s assert (isequaln (a, b, c)) 363s c(1) = 42; 363s assert (~isequaln (a, b, c)) 364s 5 tests, 5 passed, 0 known failure, 0 skipped 364s [inst/@sym/piecewise.m] 364s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/piecewise.m 364s ***** test 364s % basic 364s syms x real 364s f = piecewise (abs (x) < 1, 1); 364s assert (isnan (subs (f, -1))); 364s assert (isequal (subs (f, 0), 1)); 364s assert (isnan (subs (f, 1))); 364s ***** test 364s % heaviside 364s syms x real 364s f = rewrite (heaviside (x, 1 / sym (2)), 'Piecewise'); 364s g = piecewise (x < 0, 0, x == 0, 1 / sym (2), x > 0, 1); 364s assert (logical (simplify (f == g))); 364s 2 tests, 2 passed, 0 known failure, 0 skipped 364s [inst/@sym/numden.m] 364s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/numden.m 364s ***** error numden (sym(1), 2) 364s ***** test 364s syms x 364s [n, d] = numden (1/x); 364s assert (isequal (n, sym(1)) && isequal (d, x)) 364s ***** test 364s syms x y 364s n1 = [sym(1); x]; 364s d1 = [x; y]; 364s [n, d] = numden (n1 ./ d1); 364s assert (isequal (n, n1) && isequal (d, d1)) 364s ***** test 364s [n, d] = numden (sym(2)); 364s assert (isequal (n, 2)); 364s assert (isequal (d, 1)); 364s ***** test 364s syms x y 364s [n, d] = numden ((x + pi)/(y + 6)); 364s assert (isequal (n, x + pi)); 364s assert (isequal (d, y + 6)); 364s ***** test 364s syms x y 364s [n, d] = numden ((x^2 + y^2)/(x*y)); 364s assert (isequal (n, x^2 + y^2)); 364s assert (isequal (d, x*y)); 364s 6 tests, 6 passed, 0 known failure, 0 skipped 364s [inst/@sym/disp.m] 364s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/disp.m 364s ***** test 364s syms x 364s s = disp(sin(x)); 364s assert(strcmp(s, sprintf(' sin(x)\n'))) 364s ***** test 364s syms x 364s s = disp(sin(x/2), 'flat'); 364s assert(strcmp(s, sprintf(' sin(x/2)\n'))) 365s ***** test 365s % Examples of 2x0 and 0x2 empty matrices: 365s a = sym([1 2; 3 4]); 365s b2x0 = a([true true], [false false]); 365s b0x2 = a([false false], [true true]); 365s assert (isequal (size (b2x0), [2 0])) 365s assert (isequal (size (b0x2), [0 2])) 365s s = disp(b2x0); 365s assert(strcmp(s, sprintf(' []\n'))) 365s s = disp(b0x2); 365s assert(strcmp(s, sprintf(' []\n'))) 365s 3 tests, 3 passed, 0 known failure, 0 skipped 365s [inst/@sym/jordan.m] 365s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/jordan.m 365s ***** test 365s % basic 365s A = sym ([2 1 0 0; 0 2 1 0; 0 0 3 0; 0 1 -1 3]); 365s [V, J] = jordan (A); 365s assert (isequal (inv (V) * A * V, J)); 365s assert (isequal (J, sym ([2 1 0 0; 0 2 0 0; 0 0 3 0; 0 0 0 3]))) 365s % the first 2 generalized eigenvectors form a cycle 365s assert (isequal ((A - J(1, 1) * eye (4)) * V(:, 1), zeros (4, 1))); 365s assert (isequal ((A - J(2, 2) * eye (4)) * V(:, 2), V(:, 1))); 365s % the last 2 generalized eigenvectors are eigenvectors 365s assert (isequal ((A - J(3, 3) * eye (4)) * V(:, 3), zeros (4, 1))); 365s assert (isequal ((A - J(4, 4) * eye (4)) * V(:, 4), zeros (4, 1))); 366s ***** test 366s % scalars 366s assert (isequal (jordan (sym (-10)), sym (-10))); 366s assert (isequal (jordan (sym ('x')), sym ('x'))); 366s ***** test 366s % diagonal matrices 366s A = diag (sym ([6 6 7])); 366s [V1, D] = eig (A); 366s [V2, J] = jordan (A); 366s assert (isequal (V1, V2)); 366s assert (isequal (D, J)); 366s ***** test 366s % matrices of unknown entries 366s A = [sym('a') sym('b'); sym('c') sym('d')]; 366s [V, D] = eig (A); 366s J = jordan (A); 366s assert (isequal (simplify (D), simplify (J))); 366s ***** test 366s % matrices of mixed entries 366s A = [sym('x')+9 sym('y'); sym(0) 6]; 366s [V, D] = eig (A); 366s J = jordan (A); 366s assert (isequal (simplify (D), simplify (J))); 366s 5 tests, 5 passed, 0 known failure, 0 skipped 366s [inst/@sym/mpower.m] 366s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/mpower.m 366s ***** test 366s syms x 366s assert(isequal(x^(sym(4)/5), x.^(sym(4)/5))) 366s ***** test 366s % integer powers of scalars 366s syms x 366s assert (isequal (x^2, x*x)) 366s assert (isequal (x^sym(3), x*x*x)) 367s ***** test 367s % array ^ integer 367s syms x y 367s A = [x 2; y 4]; 367s assert (isequal (A^2, A*A)) 367s assert (isequal (simplify(A^3 - A*A*A), [0 0; 0 0])) 367s ***** test 367s % array ^ rational 367s Ad = [1 2; 0 3]; 367s A = sym(Ad); 367s B = A^(sym(1)/3); 367s Bd = Ad^(1/3); 367s assert (max(max(abs(double(B) - Bd))) < 1e-14) 367s ***** test 367s % non-integer power 367s A = sym([1 2; 0 3]); 367s B = A^pi; 367s C = [1 -1+3^sym(pi); 0 sym(3)^pi]; 367s assert (isequal (B, C)) 367s ***** test 367s % matpow 367s syms n 367s A = sym([1 2; 3 4]); 367s B = A^n; 367s C = 10 + B + B^2; 367s D = subs(C, n, 1); 367s E = 10 + A + A^2; 367s assert (isequal (simplify(D), simplify(E))) 369s ***** test 369s % matpow, sub in zero gives identity 369s A = sym([1 2; 0 3]); 369s syms n; 369s B = A^n; 369s C = subs(B, n, 1); 369s assert (isequal (C, A)) 369s C = subs(B, n, 0); 369s assert (isequal (C, sym(eye(2)))) 370s ***** xtest 370s % scalar^array (e.g., defined by matrix exponential) not implemented in SymPy? 370s % on 1.0 < SymPy <= 1.5.1, you can form the expression but still cannot eval 370s syms x 370s A = [1 2; 3 4]; 370s B = x^A; 370s assert (strcmp (regexprep (disp (B, 'flat'), '\s+', ''), 'x**Matrix([[1,2],[3,4]])')) 370s % sub in and compare to double 370s Bs = subs(B, x, sym(3)/2); 370s D1 = double(Bs); 370s D2 = (3/2)^[1 2; 3 4]; 370s assert (max(max(abs(D1 - D2))) < 1e-14) 370s !!!!! known failure 370s Python exception: TypeError: unsupported operand type(s) for ** or pow(): 'Symbol' and 'MutableDenseMatrix' 370s occurred at line 2 of the Python code block: 370s return x**y 370s ***** error 370s A = sym([1 2; 3 4]); 370s B = A^A; 370s 9 tests, 8 passed, 1 known failure, 0 skipped 370s [inst/@sym/asind.m] 370s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/asind.m 370s ***** error asind (sym(1), 2) 370s ***** assert (isequaln (asind (sym(nan)), sym(nan))) 370s ***** test 370s f1 = asind (sym(1)/2); 370s f2 = asind (1/2); 370s assert (double (f1), f2, -eps) 370s ***** test 370s D = [1 2; 3 4]/4; 370s A = sym([1 2; 3 4])/4; 370s f1 = asind (A); 370s f2 = asind (D); 370s assert (double (f1), f2, -eps) 370s 4 tests, 4 passed, 0 known failure, 0 skipped 370s [inst/@sym/chebyshevT.m] 370s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/chebyshevT.m 370s ***** error chebyshevT (sym(1)) 370s ***** error chebyshevT (sym(1), 2, 3) 370s ***** assert (isequaln (chebyshevT (2, sym(nan)), sym(nan))) 370s ***** shared x 370s syms x 370s ***** assert(isequal(chebyshevT(0, x), sym(1))) 370s ***** assert(isequal(chebyshevT(1, x), x)) 370s ***** assert(isequal(chebyshevT(2, x), 2*x*x - 1)) 370s ***** assert(isequal(chebyshevT([0 1 2], x), [sym(1) x (2*x*x-1)])) 371s ***** test 371s % round trip 371s syms n z 371s f = chebyshevT (n, z); 371s h = function_handle (f, 'vars', [n z]); 371s A = h (1.1, 2.2); 371s B = chebyshevT (1.1, 2.2); 371s assert (A, B) 371s 8 tests, 8 passed, 0 known failure, 0 skipped 371s [inst/@sym/chol.m] 371s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/chol.m 371s ***** error chol (sym ([1 2; 3 4])); 371s ***** error chol (sym ([1 2; 3 4; 5 6])); 371s ***** test 371s A = chol(hilb(sym(2))); 371s B = [[1 0]; sym(1)/2 sqrt(sym(3))/6]; 371s assert( isequal( A, B )) 371s 3 tests, 3 passed, 0 known failure, 0 skipped 371s [inst/@sym/rhs.m] 371s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/rhs.m 371s ***** test 371s syms x 371s f = x + 1 == 2*x; 371s assert (isequal (rhs(f), 2*x)) 371s ***** error 371s syms x 371s rhs(x) 371s 2 tests, 2 passed, 0 known failure, 0 skipped 371s [inst/@sym/length.m] 371s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/length.m 371s ***** test 371s a = sym([1 2 3]); 371s assert(length(a) == 3); 371s ***** test 371s % 2D array 371s a = sym([1 2 3; 4 5 6]); 371s assert(length(a) == 3); 371s ***** test 371s % empty 371s a = sym([]); 371s assert(length(a) == 0); 371s 3 tests, 3 passed, 0 known failure, 0 skipped 371s [inst/@sym/erfc.m] 371s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/erfc.m 371s ***** error erfc (sym(1), 2) 371s ***** assert (isequaln (erfc (sym(nan)), sym(nan))) 371s ***** shared x, d 371s d = 1; 371s x = sym('1'); 371s ***** test 371s f1 = erfc(x); 371s f2 = erfc(d); 371s assert( abs(double(f1) - f2) < 1e-15 ) 371s ***** test 371s D = [d d; d d]; 371s A = [x x; x x]; 371s f1 = erfc(A); 371s f2 = erfc(D); 371s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 371s ***** test 371s % round trip 371s y = sym('y'); 371s A = erfc (d); 371s f = erfc (y); 371s h = function_handle (f); 371s B = h (d); 371s assert (A, B, -eps) 371s 5 tests, 5 passed, 0 known failure, 0 skipped 371s [inst/@sym/charpoly.m] 371s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/charpoly.m 371s ***** error charpoly (sym (1), 1, 2) 371s ***** error charpoly (sym ([1 2])) 371s ***** test 371s syms x 371s A = sym([1 2; 3 4]); 371s assert (isequal (charpoly(A, x), x^2 - 5*x -2)) 372s ***** test 372s syms x 372s A = sym([1 2; 3 4]); 372s B = sym([1 -5 -2]); 372s assert (isequal (charpoly(A), B)) 372s ***** test 372s syms x 372s A = sym([x x; x x]); 372s B = sym([1 -2*x 0]); 372s assert (isequal (charpoly(A), B)) 372s 5 tests, 5 passed, 0 known failure, 0 skipped 372s [inst/@sym/solve.m] 372s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/solve.m 372s ***** test 372s % Simple, single variable, single solution 372s syms x 372s d = solve(10*x == 50); 372s assert (isequal (d, 5)) 372s ***** test 372s % Single variable, multiple solutions 372s syms x 372s d = solve(x^2 == 4); 372s assert (length(d) == 2); 372s assert (isequal (d, [2; -2]) || isequal (d, [-2; 2])) 372s ***** shared x,y,eq 372s syms x y 372s eq = 10*x == 20*y; 372s ***** test 372s d = solve(eq, x); 372s assert (isequal (d, 2*y)) 372s ***** test 372s d = solve(eq, y); 372s assert (isequal (d, x/2)) 372s ***** test 372s d = solve(eq); 372s assert (isequal (d, 2*y)) 372s ***** shared x,y 372s syms x y 372s ***** test 372s d = solve(2*x - 3*y == 0, x + y == 1); 372s assert (isequal (d.x, sym(3)/5) && isequal(d.y, sym(2)/5)) 372s ***** test 372s d = solve(2*x - 3*y == 0, x + y == 1, x, y); 372s assert (isequal (d.x, sym(3)/5) && isequal(d.y, sym(2)/5)) 373s ***** test 373s % Multiple solutions, multiple variables 373s d = solve(x^2 == 4, x + y == 1); 373s assert (length(d) == 2); 373s % FIXME: SMT has d.x gives vector and d.y giving vector, what is 373s % more intuitive? 373s for i = 1:2 373s assert (isequal (d{i}.x + d{i}.y, 1)) 373s assert (isequal ((d{i}.x)^2, 4)) 373s end 373s ***** test 373s % No solutions 373s syms x y z 373s d = solve(x == y, z); 373s assert (isempty (d)); 373s ***** test 373s % Multiple outputs with single solution 373s [X, Y] = solve(2*x + y == 5, x + y == 3); 373s assert (isequal (X, 2)) 373s assert (isequal (Y, 1)) 373s ***** test 373s % system: vector of equations, vector of vars 373s [X, Y] = solve([2*x + y == 5, x + y == 3], [x y]); 373s assert (isequal (X, 2)) 373s assert (isequal (Y, 1)) 373s ***** test 373s % system: vector of equations, individual vars 373s [X, Y] = solve([2*x + y == 5, x + y == 3], x, y); 373s assert (isequal (X, 2)) 373s assert (isequal (Y, 1)) 373s ***** test 373s % system: individual equations, vector of vars 373s [X, Y] = solve(2*x + y == 5, x + y == 3, [x y]); 373s assert (isequal (X, 2)) 373s assert (isequal (Y, 1)) 373s ***** test 373s % Multiple outputs with multiple solns 373s [X, Y] = solve(x*x == 4, x == 2*y); 373s assert ((isequal (X, [2; -2]) && isequal (Y, [1; -1])) || ... 373s (isequal (X, [-2; 2]) && isequal (Y, [-1; 1]))) 373s ***** test 373s % Multiple outputs with multiple solns, specify vars 373s [X, Y] = solve(x*x == 4, x == 2*y, x, y); 373s assert ((isequal (X, [2; -2]) && isequal (Y, [1; -1])) || ... 373s (isequal (X, [-2; 2]) && isequal (Y, [-1; 1]))) 374s ***** error 374s % mult outputs not allowed for scalar equation, even with mult soln (?) 374s [s1, s2] = solve(x^2 == 4, x); 374s ***** test 374s % overdetermined 374s X = solve(2*x - 10 == 0, 3*x - 15 == 0, x); 374s assert (isequal (X, sym(5))) 374s ***** test 374s a = solve(2*x >= 10, 10*x <= 50); 374s assert (isequal( a, x==sym(5))) 374s ***** test 374s A = solve([2*x == 4*y, 2 == 3], x); 374s assert (isempty (A)) 374s ***** test 374s % Issue #850 374s A = solve (sym(pi)^2*x + y == 0); 374s assert (isequal (A, -y/sym(pi)^2)) 374s ***** test 374s % https://github.com/sympy/sympy/issues/14632 374s A = solve([2*x == 4*y, sym(2) == 2], x); 374s assert (isequal (A, 2*y)) 374s ***** test 374s % https://github.com/sympy/sympy/issues/14632 374s A = solve([2*x^2 == 32*y^2, sym(2) == 2], x); 374s B = solve([2*x^2 == 32*y^2], x); 374s assert (isequal (A, B) || isequal (A, flip (B))) 374s ***** test 374s A = solve ([x+1 0], x); 374s assert (isequal (A, sym (-1))) 374s ***** test 374s A = solve (x + 1, x); 374s assert (isequal (A, sym (-1))) 374s A = solve (x, x); 374s assert (isequal (A, sym (0))) 374s 24 tests, 24 passed, 0 known failure, 0 skipped 374s [inst/@sym/uminus.m] 374s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/uminus.m 374s ***** test 374s % scalar 374s syms x 374s assert (isa (-x, 'sym')) 374s assert (isequal (-(-x), x)) 375s ***** test 375s % matrix 375s D = [0 1; 2 3]; 375s A = sym(D); 375s assert( isequal( -A, -D )) 375s 2 tests, 2 passed, 0 known failure, 0 skipped 375s [inst/@sym/ifourier.m] 375s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/ifourier.m 375s ***** error ifourier (sym(1), 2, 3, 4) 375s ***** test 375s % matlab SMT compat 375s syms t r u x w 375s Pi=sym('pi'); 375s assert(logical( ifourier(exp(-abs(w))) == 1/(Pi*(x^2 + 1)) )) 375s assert(logical( ifourier(exp(-abs(x))) == 1/(Pi*(t^2 + 1)) )) 375s assert(logical( ifourier(exp(-abs(r)),u) == 1/(Pi*(u^2 + 1)) )) 375s assert(logical( ifourier(exp(-abs(r)),r,u) == 1/(Pi*(u^2 + 1)) )) 377s ***** test 377s % basic 377s syms x w 377s Pi=sym('pi'); 377s assert(logical( ifourier(exp(-w^2/4)) == 1/(sqrt(Pi)*exp(x^2)) )) 377s assert(logical( ifourier(sqrt(Pi)/exp(w^2/4)) == exp(-x^2) )) 378s ***** test 378s % Dirac delta tests 378s syms x w 378s Pi=sym('pi'); 378s assert(logical( ifourier(dirac(w-2)) == exp(2*1i*x)/(2*Pi) )) 378s assert (logical( ifourier(sym(2), w, x) == 2*dirac(x) )) 378s ***** test 378s % advanced test 378s syms x w c d 378s Pi=sym('pi'); 378s 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); 378s assert(logical( simplify(ifourier(cos(c*w)+2*sin(3*d*w)+exp(-abs(w)))-f) == 0 )) 379s ***** xtest 379s % Inverse Fourier transform cannot recover non-smooth functions 379s % SymPy cannot evaluate correctly?? 379s syms x w 379s assert(logical( ifourier(2/(w^2 + 1)) == exp(-abs(x)) )) 379s assert(logical( ifourier(2/(w^2 + 1)) == heaviside(x)/exp(x) + heaviside(-x)*exp(x) )) 379s assert(logical( ifourier(-(w*4)/(w^4 + 2*w^2 + 1) )== -x*exp(-abs(x))*1i )) 379s assert(logical( ifourier(-(w*4)/(w^4 + 2*w^2 + 1) )== -x*(heaviside(x)/exp(x) + heaviside(-x)*exp(x))*1i )) 380s !!!!! known failure 380s assert (logical (ifourier (2 / (w ^ 2 + 1)) == exp (-abs (x)))) failed 380s ***** error ifourier (sym('k', 'positive')*sym('k')) 380s ***** test 380s % SMT compact, prefers k over symvar 380s syms k x y 380s assert (isequal (ifourier(y*exp(-k^2/4)), y/sqrt(sym(pi))*exp(-x^2))) 380s 8 tests, 7 passed, 1 known failure, 0 skipped 380s [inst/@sym/cosh.m] 380s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/cosh.m 380s ***** error cosh (sym(1), 2) 380s ***** assert (isequaln (cosh (sym(nan)), sym(nan))) 380s ***** shared x, d 380s d = 1; 380s x = sym('1'); 380s ***** test 380s f1 = cosh(x); 380s f2 = cosh(d); 380s assert( abs(double(f1) - f2) < 1e-15 ) 380s ***** test 380s D = [d d; d d]; 380s A = [x x; x x]; 380s f1 = cosh(A); 380s f2 = cosh(D); 380s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 380s ***** test 380s % round trip 380s y = sym('y'); 380s A = cosh (d); 380s f = cosh (y); 380s h = function_handle (f); 380s B = h (d); 380s assert (A, B, -eps) 380s 5 tests, 5 passed, 0 known failure, 0 skipped 380s [inst/@sym/laguerreL.m] 380s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/laguerreL.m 380s ***** shared x 380s syms x 380s ***** assert (isequal (laguerreL(0, x), sym(1))) 380s ***** assert (isequal (laguerreL(1, x), 1-x)) 380s ***** assert (isequal (laguerreL(2, x), x^2/2 - 2*x + 1)) 381s ***** error laguerreL(x) 381s ***** error laguerreL(1, 2, x, 3) 381s ***** shared 381s ***** test 381s if (pycall_sympy__ ('return Version(spver) > Version("1.4")')) 381s syms x 381s assert (isequal (laguerreL (-3, x), exp(x)*(x^2/2 + 2*x + 1))) 381s end 381s ***** test 381s syms x n 381s L = laguerreL([2 n], x); 381s expected = [laguerreL(2, x) laguerreL(n, x)]; 381s assert (isequal (L, expected)) 381s ***** test 381s syms x y 381s L = laguerreL([1; 2], [x; y]); 381s expected = [laguerreL(1, x); laguerreL(2, y)]; 381s assert (isequal (L, expected)) 381s ***** test 381s syms x n 381s assert (isequal (laguerreL(n, 0, x), laguerreL(n, x))) 381s ***** shared x, y, n 381s syms x y n 381s ***** assert (isequal (laguerreL([1 n], 0, x), laguerreL([1 n], x))) 381s ***** test 381s L = laguerreL([1; n], [pi; 0], [x; y]); 381s expected = [laguerreL(1, pi, x); laguerreL(n, 0, y)]; 381s assert (isequal (L, expected)) 381s ***** test 381s L = laguerreL([1 n], [pi 0], x); 381s expected = [laguerreL(1, pi, x) laguerreL(n, 0, x)]; 381s assert (isequal (L, expected)) 381s ***** test 381s L = laguerreL([1 n], pi, [x y]); 381s expected = [laguerreL(1, pi, x) laguerreL(n, pi, y)]; 381s assert (isequal (L, expected)) 382s ***** test 382s L = laguerreL(1, [pi 0], [x y]); 382s expected = [laguerreL(1, pi, x) laguerreL(1, 0, y)]; 382s assert (isequal (L, expected)) 382s ***** test 382s L = laguerreL([1 n], pi, x); 382s expected = [laguerreL(1, pi, x) laguerreL(n, pi, x)]; 382s assert (isequal (L, expected)) 382s ***** test 382s L = laguerreL(1, [pi 0], x); 382s expected = [laguerreL(1, pi, x) laguerreL(1, 0, x)]; 382s assert (isequal (L, expected)) 382s ***** test 382s L = laguerreL(1, pi, [x y]); 382s expected = [laguerreL(1, pi, x) laguerreL(1, pi, y)]; 382s assert (isequal (L, expected)) 382s ***** test 382s % round trip 382s f = laguerreL (n, x); 382s h = function_handle (f); 382s A = h (1, 3.2); 382s B = laguerreL (1, 3.2); 382s assert (A, B) 382s A = h ([1 2], [3.3 4.4]); 382s B = laguerreL ([1 2], [3.3 4.4]); 382s assert (A, B) 382s ***** error 382s % round trip 382s f = laguerreL (n, y, x); 382s h = function_handle (f); 382s 19 tests, 19 passed, 0 known failure, 0 skipped 382s [inst/@sym/cot.m] 382s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/cot.m 382s ***** error cot (sym(1), 2) 382s ***** assert (isequaln (cot (sym(nan)), sym(nan))) 382s ***** shared x, d 382s d = 1; 382s x = sym('1'); 382s ***** test 382s f1 = cot(x); 382s f2 = cot(d); 382s assert( abs(double(f1) - f2) < 1e-15 ) 382s ***** test 382s D = [d d; d d]; 382s A = [x x; x x]; 382s f1 = cot(A); 382s f2 = cot(D); 382s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 382s ***** test 382s % round trip 382s y = sym('y'); 382s A = cot (d); 382s f = cot (y); 382s h = function_handle (f); 382s B = h (d); 382s assert (A, B, -eps) 382s 5 tests, 5 passed, 0 known failure, 0 skipped 382s [inst/@sym/eval.m] 382s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/eval.m 382s ***** error eval (sym(1), 2) 382s ***** assert (isnumeric (eval (sym(3)))) 382s ***** assert (isnumeric (eval (sin (sym(3))))) 382s ***** test 382s syms x y 382s f = 2*x*y; 382s x = 3; 382s y = 4; 382s g = eval (f); 382s assert (isequal (g, 24)) 382s ***** test 382s syms x y 382s f = 2*x*y; 382s clear y 382s x = 3; 382s g = eval (f); 382s assert (isequal (g, 6*sym('y'))) 382s ***** test 382s % do not convert inputs to sym, for SMT compat 382s nearpi = pi + 1e-14; % sym could make this pi 382s x = sym('x'); 382s f = 2*x; 382s x = nearpi; 382s d = eval (f); 382s assert (abs (d - 2*pi) > 1e-15) 383s 6 tests, 6 passed, 0 known failure, 0 skipped 383s [inst/@sym/symvar.m] 383s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/symvar.m 383s ***** error symvar (sym(1), 2, 3) 383s ***** test 383s %% some empty cases 383s assert (isempty (symvar (sym(1)))); 383s assert (isempty (symvar (sym(1),1))); 383s assert (isempty (symvar (sym(1),0))); 383s assert (isempty (symvar (sym('x'),0))); 383s ***** shared x,y,f 383s x=sym('x'); y=sym('y'); f=x^2+3*x*y-y^2; 383s ***** assert (isequal (symvar (f), [x y])); 383s ***** assert (isequal (symvar (f, 1), x)); 383s ***** test 383s %% closest to x 383s syms x y a b c xx 383s alpha = sym('alpha'); 383s % https://www.mathworks.com/matlabcentral/newsreader/view_thread/237730 383s assert( isequal (symvar (b*xx*exp(alpha) + c*sin(a*y), 2), [xx y])) 383s %% tests to match Matlab R2013b 383s ***** shared x,y,z,a,b,c,X,Y,Z 383s syms x y z a b c X Y Z 383s ***** test 383s %% X,Y,Z first if no 2nd argument 383s s = prod([x y z a b c X Y Z]); 383s assert (isequal( symvar (s), [X Y Z a b c x y z] )) 383s ***** test 383s %% uppercase have *low* priority with argument? 383s s = prod([x y z a b c X Y Z]); 383s assert (isequal (symvar (s,4), [x, y, z, c] )) 383s ***** test 383s %% closest to x 383s s = prod([y z a b c Y Z]); 383s assert (isequal( symvar (s,6), [ y, z, c, b, a, Y] )) 383s s = prod([a b c Y Z]); 383s assert (isequal( symvar (s,4), [ c, b, a, Y] )) 384s ***** test 384s %% upper case letters in correct order 384s s = X*Y*Z; 384s assert (isequal( symvar (s,3), [X Y Z] )) 384s ***** test 384s % diff. assumptions make diff. symbols 384s x1 = sym('x'); 384s x2 = sym('x', 'positive'); 384s f = x1*x2; 384s assert (length (symvar (f)) == 2) 384s z = symvar (f, 1); 384s assert (xor (isequal (z, x1), isequal (z, x2))) 384s 10 tests, 10 passed, 0 known failure, 0 skipped 384s [inst/@sym/assume.m] 384s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/assume.m 384s ***** test 384s syms x 384s x = assume(x, 'positive'); 384s a = assumptions(x); 384s assert(strcmp(a, 'x: positive')) 384s x = assume(x, 'even'); 384s a = assumptions(x); 384s assert(strcmp(a, 'x: even')) 384s x = assume(x, 'odd'); 384s a = assumptions(x); 384s assert(strcmp(a, 'x: odd')) 384s ***** error 384s syms x 384s x = assume (x, x); 384s ***** error 384s syms x 384s x = assume (x/pi, 'integer') 384s ***** test 384s % multiple assumptions 384s syms x 384s x = assume(x, 'positive', 'integer'); 384s [tilde, a] = assumptions(x, 'dict'); 384s assert(a{1}.integer) 384s assert(a{1}.positive) 384s ***** test 384s % multiple assumptions 384s syms x 384s x = assume(x, 'even', 'positive'); 384s [tilde, a] = assumptions(x, 'dict'); 384s assert(a{1}.even) 384s assert(a{1}.positive) 384s ***** test 384s % has output so avoids workspace 384s syms x positive 384s x2 = x; 384s f = sin(x); 384s x = assume(x, 'negative'); 384s a = assumptions(x); 384s assert(strcmp(a, 'x: negative')) 384s a = assumptions(x2); 384s assert(strcmp(a, 'x: positive')) 384s a = assumptions(f); 384s assert(strcmp(a, 'x: positive')) 384s ***** test 384s % clear: has output so avoids workspace 384s syms x positive 384s f = 2*x; 384s x2 = assume(x, 'clear'); 384s assert (~ isempty (assumptions (f))); 384s ***** test 384s % has no output so does workspace 384s syms x positive 384s x2 = x; 384s f = sin(x); 384s assume(x, 'negative'); 384s a = assumptions(x); 384s assert(strcmp(a, 'x: negative')) 384s a = assumptions(x2); 384s assert(strcmp(a, 'x: negative')) 384s a = assumptions(f); 384s assert(strcmp(a, 'x: negative')) 384s ***** test 384s % clear: has not output so does workspace 384s syms x positive 384s f = 2*x; 384s assume(x, 'clear'); 384s assert (isempty (assumptions (f))); 384s assert (isempty (assumptions ())); 384s ***** test 384s syms x positive 384s assume (x, 'clear') 384s assert (isempty (assumptions ())) 384s ***** error 384s syms x 384s x2 = assume (x, 'clear', 'real'); 385s ***** error 385s syms a 385s assume (a > 0) 385s ***** test 385s syms x y 385s assume ([x y], 'real') 385s assert (strcmp (assumptions (x), 'x: real')) 385s assert (strcmp (assumptions (y), 'y: real')) 385s ***** test 385s syms x y 385s assume ([x y], 'positive', 'even') 385s assert (strcmp (assumptions (x), 'x: positive, even') || strcmp (assumptions (x), 'x: even, positive')) 385s assert (strcmp (assumptions (y), 'y: positive, even') || strcmp (assumptions (y), 'y: even, positive')) 385s ***** test 385s % with output, original x and y are unchanged 385s syms x y 385s [p, q] = assume ([x y], 'real'); 385s assert (isempty (assumptions (x))) 385s assert (isempty (assumptions (y))) 385s assert (strcmp (assumptions (p), 'x: real')) 385s assert (strcmp (assumptions (q), 'y: real')) 385s ***** test 385s % matrix input 385s syms a b c d 385s assume ([a b; c d], 'real') 385s assert (strcmp (assumptions (a), 'a: real')) 385s assert (strcmp (assumptions (b), 'b: real')) 385s assert (strcmp (assumptions (c), 'c: real')) 385s assert (strcmp (assumptions (d), 'd: real')) 385s 16 tests, 16 passed, 0 known failure, 0 skipped 385s [inst/@sym/limit.m] 385s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/limit.m 385s ***** error limit (sym(1), 2, 3, 4, 5) 385s ***** shared x, oo 385s syms x 385s oo = sym(inf); 385s ***** assert (isa (limit(x, x, pi), 'sym')) 385s ***** assert (isequal (limit(x, x, pi), sym(pi))) 385s ***** assert (isequal (limit(sin(x)/x, x, 0), 1)) 385s ***** test 385s % left/right-hand limit 385s assert (isequal (limit(1/x, x, 0, 'right'), oo)) 385s assert (isequal (limit(1/x, x, 0), oo)) 385s assert (isequal (limit(1/x, x, 0, 'left'), -oo)) 385s assert (isequal (limit(1/x, x, oo), 0)) 385s assert (isequal (limit(sign(x), x, 0, 'left'), -1)) 385s assert (isequal (limit(sign(x), x, 0, 'right'), 1)) 385s assert (isequal (limit(sign(x), x, 0, '-'), -1)) 385s assert (isequal (limit(sign(x), x, 0, '+'), 1)) 386s ***** test 386s % matrix 386s syms y 386s A = [x 1/x x*y]; 386s B = sym([3 sym(1)/3 3*y]); 386s assert (isequal (limit(A, x, 3), B)) 386s ***** test 386s % omitting arguments 386s syms a 386s assert (isequal (limit(a), 0)) 386s assert (isequal (limit(a*x+a+2), a+2)) 386s assert (isequal (limit(a*x+a+2, 6), 7*a+2)) 386s ***** test 386s % constants 386s assert (isequal (limit(sym(6)), 6)) 386s assert (isequal (limit(sym(6), 7), 6)) 386s assert (isequal (limit([sym(6) sym(2)], 7), [6 2])) 386s ***** test 386s % double constant, with sym limit 386s a = limit (6, sym(0)); 386s assert (isa (a, 'sym')) 386s assert (isequal (a, sym(6))) 386s 9 tests, 9 passed, 0 known failure, 0 skipped 386s [inst/@sym/fliplr.m] 386s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/fliplr.m 386s ***** test 386s % simple 386s syms x 386s A = [x 2; sym(pi) x]; 386s B = [2 x; x sym(pi)]; 386s assert (isequal (fliplr(A), B)) 386s ***** test 386s % simple, odd # cols 386s syms x 386s A = [x 2 sym(pi); x 1 2]; 386s B = [sym(pi) 2 x; 2 1 x]; 386s assert (isequal (fliplr(A), B)) 386s ***** test 386s % scalar 386s syms x 386s assert (isequal (fliplr(x), x)) 386s 3 tests, 3 passed, 0 known failure, 0 skipped 386s [inst/@sym/rank.m] 386s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/rank.m 386s ***** test 386s A = sym([1 2; 3 4]); 386s assert (rank(A) == 2); 387s ***** test 387s A = sym([1 2 3; 3 4 5]); 387s assert (rank(A) == 2); 387s ***** test 387s A = sym([1 2; 1 2]); 387s assert (rank(A) == 1); 387s ***** test 387s A = sym([1 2; 3 4]); 387s assert (rank(A) == 2); 387s ***** assert (rank(sym(1)) == 1); 387s ***** assert (rank(sym(0)) == 0); 387s ***** assert (rank(sym('x', 'positive')) == 1); 387s 7 tests, 7 passed, 0 known failure, 0 skipped 387s [inst/@sym/euler.m] 387s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/euler.m 387s ***** error euler (sym(1), 2, 3) 387s ***** assert (isequal (euler (sym(0)), sym(1))) 387s ***** test 387s m = sym([0 1 2; 8 10 888889]); 387s A = euler (m); 387s B = sym([1 0 -1; 1385 -50521 0]); 387s assert (isequal (A, B)) 387s ***** test 387s syms x 387s assert (isequal (euler(6, x), x^6 - 3*x^5 + 5*x^3 - 3*x)) 387s ***** assert (isnan (euler (3, sym(nan)))) 387s ***** test 387s syms m x 387s em = euler (m, x); 387s A = subs(em, [m x], [2 sym(pi)]); 387s assert (isequal (A, sym(pi)^2 - sym(pi))) 387s ***** test 387s % vectorized 387s syms x y 387s A = euler([1; 2], [x; y]); 387s B = [x - sym(1)/2; y^2 - y]; 387s assert (isequal (A, B)) 387s ***** test 387s % round trip 387s syms m z 387s f = euler (m, z); 387s h = function_handle (f, 'vars', [m z]); 387s A = h (2, 2.2); 387s B = euler (2, 2.2); 387s assert (A, B) 388s ***** test 388s % compare vpa to maple: Digits:=34; evalf(euler(13, exp(1)+Pi*I/13)); 388s A = vpa('1623.14184180556920918624604530515') + ... 388s vpa('4270.98066989140286451493108809574')*1i; 388s z = vpa (exp(1), 32) + vpa(pi, 32)/13*1i; 388s B = euler (13, z); 388s relerr = abs(double(abs((B - A)/A))); 388s assert (relerr < 20*eps); 389s ***** xtest 389s % as above, high-prec result broken in 1.12: https://github.com/sympy/sympy/issues/24156 389s A = vpa('1623.14184180556920918624604530515') + ... 389s vpa('4270.98066989140286451493108809574')*1i; 389s z = vpa (exp(1), 32) + vpa(pi, 32)/13*1i; 389s B = euler (13, z); 389s relerr = abs(double(abs((B - A)/A))); 389s assert (relerr < 2e-31); 391s !!!!! known failure 391s assert (relerr < 2e-31) failed 391s 10 tests, 9 passed, 1 known failure, 0 skipped 391s [inst/@sym/lhs.m] 391s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/lhs.m 391s ***** test 391s syms x y 391s f = x + 1 == 2*y; 391s assert (isequal (lhs(f), x + 1)) 391s assert (isequal (rhs(f), 2*y)) 391s ***** test 391s syms x y 391s f = x + 1 < 2*y; 391s assert (isequal (lhs(f), x + 1)) 391s assert (isequal (rhs(f), 2*y)) 391s ***** test 391s syms x y 391s f = x + 1 >= 2*y; 391s assert (isequal (lhs(f), x + 1)) 391s assert (isequal (rhs(f), 2*y)) 391s ***** test 391s syms x y 391s A = [x == y 2*x < 2*y; 3*x > 3*y 4*x <= 4*y; 5*x >= 5*y x < 0]; 391s L = [x 2*x; 3*x 4*x; 5*x x]; 391s R = [y 2*y; 3*y 4*y; 5*y 0]; 391s assert (isequal( lhs(A), L)) 391s assert (isequal( rhs(A), R)) 391s ***** error 391s syms x 391s lhs(x) 391s ***** error 391s lhs(sym(true)) 392s ***** error 392s syms x 392s A = [1 + x == 2*x sym(6)]; 392s lhs(A) 392s 7 tests, 7 passed, 0 known failure, 0 skipped 392s [inst/@sym/diag.m] 392s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/diag.m 392s ***** test 392s % scalar 392s syms x 392s assert (isequal (diag(x), x)) 392s ***** test 392s % row,col vec input 392s syms x 392s r = [1 x 2]; 392s c = [sym(1); x]; 392s assert (isequal (diag(diag(c)), c)) 392s assert (isequal (diag(c), [sym(1) 0; 0 x])) 392s assert (isequal (diag(diag(r)), r.')) 392s assert (isequal (diag(r), [sym(1) 0 0; 0 x 0; sym(0) 0 2])) 392s ***** test 392s % create matrix, kth diag 392s syms x 392s r = [1 x]; 392s z = sym(0); 392s assert (isequal (diag (x, 0), x)) 392s assert (isequal (diag (x, 1), [z x; z z])) 392s assert (isequal (diag (x, -1), [z z; x z])) 392s assert (isequal (diag (x, 2), [z z x; z z z; z z z])) 392s assert (isequal (diag (r, 1), [z 1 z; z z x; z z z])) 392s ***** test 392s % extract kth diag 392s A = sym([1 2 3; 4 5 6]); 392s assert (isequal (diag(A), sym([1; 5]))) 392s assert (isequal (diag(A, 0), sym([1; 5]))) 392s assert (isequal (diag(A, 1), sym([2; 6]))) 392s assert (isequal (diag(A, 2), sym(3))) 392s assert (isequal (diag(A, -1), sym(4))) 392s assert (isempty (diag(A, -2))) 392s assert (isempty (diag(A, 3))) 392s 4 tests, 4 passed, 0 known failure, 0 skipped 392s [inst/@sym/dot.m] 392s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/dot.m 392s ***** error dot (sym(1), 2, 3) 392s ***** test 392s a = sym([1; 1; 0]); 392s b = sym([1; 2; 4]); 392s c = dot(a, b); 392s assert (isequal (c, sym(3))) 393s ***** test 393s syms x 393s a = sym([x; 0; 0]); 393s b = sym([0; 1; 0]); 393s c = dot(a, b); 393s assert (isequal (c, sym(0))) 393s ***** test 393s assert (isequal (dot (sym([1 i]), sym([i 2])), sym(-i))) 393s 4 tests, 4 passed, 0 known failure, 0 skipped 393s [inst/@sym/prevprime.m] 393s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/prevprime.m 393s ***** assert (isequal (prevprime(sym(3)), 2)); 393s ***** assert (isequal (prevprime(sym(20)), 19)); 393s ***** assert (isequal (prevprime(sym([3 5 10])), [2 3 7])); 393s ***** error prevprime(sym(2)) 393s ***** error prevprime(sym(-2)) 393s ***** test 393s % result is a sym 393s p = prevprime(sym(3)); 393s assert (isa (p, 'sym')) 393s 6 tests, 6 passed, 0 known failure, 0 skipped 393s [inst/@sym/logical.m] 393s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/logical.m 393s ***** test 393s % basics, many others in isAlways.m 393s assert (logical(true)) 393s assert (~(logical(false))) 393s ***** test 393s % numbers to logic? 393s assert (logical(sym(1))) 393s assert (logical(sym(-1))) 393s assert (~logical(sym(0))) 393s ***** test 393s % eqns, "structurally equivalent" 393s syms x 393s e = logical(x == x); 393s assert ( islogical (e)) 393s assert (e) 393s e = logical(x == 1); 393s assert ( islogical (e)) 393s assert (~e) 393s ***** test 393s % eqn could have solutions but are false in general 393s syms x 393s e = logical(x^2 == x); 393s assert ( islogical (e)) 393s assert (~e) 393s e = logical(2*x == x); 393s assert ( islogical (e)) 393s assert (~e) 393s ***** test 393s % FIXME: (not sure yet) T/F matrices should stay sym until logical() 393s a = sym(1); 393s e = a == a; 393s assert (isa (e, 'sym')) 393s assert (islogical (logical (e))) 393s e = [a == a a == 0 a == a]; 393s assert (isa (e, 'sym')) 393s assert (islogical (logical (e))) 393s ***** test 393s % sym vectors of T/F to logical 393s a = sym(1); 393s e = [a == a a == 0 a == a]; 393s w = logical(e); 393s assert (islogical (w)) 393s assert (isequal (w, [true false true])) 393s e = e'; 393s w = logical(e); 393s assert (islogical (w)) 393s assert (isequal (w, [true; false; true])) 393s ***** test 393s % sym matrix of T/F to logical 393s a = sym([1 2 3; 4 5 6]); 393s b = sym([1 2 0; 4 0 6]); 393s e = a == b; 393s w = logical(e); 393s assert (islogical (w)) 393s assert (isequal (w, [true true false; true false true])) 394s ***** error 394s syms x 394s logical(x); 394s ***** error 394s logical(sym(nan)) 394s ***** test 394s % but oo and zoo are non-zero so we call those true 394s % (SMT errors on these) FIXME 394s syms oo zoo 394s assert (logical (oo)) 394s % assert (logical (zoo)) 394s ***** test 394s % older Octave (< 4.2) didn't automatically do "if (logical(obj))" 394s e = sym(true); 394s if (e) 394s assert(true); 394s else 394s assert(false); 394s end 394s ***** test 394s % more of above 394s e2 = sym(1) == sym(1); 394s if (e2) 394s assert(true); 394s else 394s assert(false); 394s end 394s e3 = sym([1 2]) == sym([1 1]); 394s if (e3(1)) 394s assert(true); 394s else 394s assert(false); 394s end 394s 12 tests, 12 passed, 0 known failure, 0 skipped 394s [inst/@sym/bessely.m] 394s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/bessely.m 394s ***** test 394s X = [1 2 3; 4 5 6]; 394s ns = [sym(0) 1 -2; sym(1)/2 -sym(3)/2 pi]; 394s n = double(ns); 394s A = double(bessely(ns, X)); 394s B = bessely(n, X); 394s assert (all (all (abs (A - B) < 50*eps*abs(A)))) 394s ***** test 394s % roundtrip 394s syms x 394s A = bessely(2, 10); 394s q = bessely(2, x); 394s h = function_handle(q); 394s B = h(10); 394s assert (abs (A - B) <= eps*abs(A)) 394s ***** error bessely(sym('x')) 394s 3 tests, 3 passed, 0 known failure, 0 skipped 394s [inst/@sym/subsasgn.m] 394s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/subsasgn.m 394s ***** shared a,b 394s b = [1:4]; 394s a = sym(b); 394s ***** test a(1) = 10; b(1) = 10; 394s assert(isequal( a, b )) 395s ***** test I = logical([1 0 1 0]); 395s a(I) = 2; b(I) = 2; 395s assert(isequal( a, b )) 395s ***** test I = logical([1 0 1 0]); 395s a(I) = [2 4]; b(I) = [2 4]; 395s assert(isequal( a, b )) 395s ***** test I = logical([1 0 1 0]); 395s a(I) = [2; 4]; b(I) = [2; 4]; 395s assert(isequal( a, b )) 395s ***** shared 395s ***** test 395s b = 1:4; b = [b; 2*b; 3*b]; 395s a = sym(b); 395s rhs = [10 11; 12 13]; 395s a([1:2],[1:2]) = rhs; 395s b([1:2],[1:2]) = rhs; 395s assert(isequal( a, b )) 395s a(1:2,1:2) = rhs; 395s assert(isequal( a, b )) 395s ***** test 395s % slice : 395s b = 1:4; b = [b; 2*b]; 395s a = sym(b); 395s rhs = [10 11; 12 13]; 395s a(:,2:3) = rhs; 395s b(:,2:3) = rhs; 395s assert(isequal( a, b )) 395s ***** test 395s % grow 2D 395s b = 1:4; b = [b; 2*b]; 395s a = sym(b); 395s rhs = [10 11; 12 13]; 395s a([1 end+1],end:end+1) = rhs; 395s b([1 end+1],end:end+1) = rhs; 395s assert(isequal( a, b )) 396s ***** test 396s % grow from nothing 396s clear a 396s a(3) = sym (1); 396s b = sym ([0 0 1]); 396s assert (isequal (a, b)) 396s ***** test 396s % grow from nothing, 2D 396s clear a 396s a(2, 3) = sym (1); 396s b = sym ([0 0 0; 0 0 1;]); 396s assert (isequal (a, b)) 396s ***** test 396s % linear indices of 2D 396s b = 1:4; b = [b; 2*b; 3*b]; 396s a = sym(b); 396s b(1:4) = [10 11 12 13]; 396s a(1:4) = [10 11 12 13]; 396s assert(isequal( a, b )) 396s b(1:4) = [10 11; 12 13]; 396s a(1:4) = [10 11; 12 13]; 396s assert(isequal( a, b )) 396s ***** error 396s % Wrong shape matrix RHS: Matlab/Octave don't allow this on doubles. 396s % Matlab SMT 2013b gets it wrong. We throw an error. 396s rhs = [10 11; 12 13]; 396s a = sym (magic (3)); 396s a(1:2,1:2) = rhs(:); 396s ***** test 396s % Issue #963: vector RHS with diff orientation from 2D indexing 396s b = 1:4; b = [b; 2*b; 3*b]; 396s a = sym(b); 396s b(1:2:3, 1) = 11:2:13; 396s a(1:2:3, 1) = sym(11:2:13); 396s assert (isequal (a, b)) 396s b(1:2:3, 1) = 1:2:3; 396s a(1:2:3, 1) = 1:2:3; 396s assert (isequal (a, b)) 397s ***** test 397s % Issue #963: vector RHS with diff orientation from 2D indexing 397s a = sym (magic (3)); 397s b = a; 397s a(1:2:3, 2) = [14 15]; 397s b(1:2:3, 2) = [14; 15]; 397s assert (isequal (a, b)) 397s a(2, 1:2:3) = [24 25]; 397s b(2, 1:2:3) = [24; 25]; 397s assert (isequal (a, b)) 397s ***** test 397s % 1D growth and 'end' 397s g = sym([1 2 3]); 397s g(3:4) = [67 68]; 397s g(end:end+1) = [12 14]; 397s assert(isequal( g, [1 2 67 12 14] )) 397s ***** test 397s % expanding empty and scalar 397s syms x 397s c = sym([]); 397s c(1) = x; 397s assert(isequal( c, x )) 397s c(2) = 2*x; 397s assert(isequal( c, [x 2*x] )) 397s ***** shared a,b,I,J 397s b = 1:4; b = [b; 3*b; 5*b]; a = sym(b); 397s I = logical([1 0 1]); 397s J = logical([1 0 1 0]); 397s ***** assert(isequal( a(I,J), b(I,J) )) 397s ***** test 397s rhs = [90 91; 92 93]; 397s b(I, J) = rhs; 397s a(I, J) = rhs; 397s assert(isequal( a, b )) 397s ***** test 397s b(I, J) = 100; 397s a(I, J) = 100; 397s assert(isequal( a, b )) 398s ***** shared 398s ***** test 398s % logical with all false 398s syms x 398s y = x; 398s y(false) = 6; 398s assert(isequal( y, x )); 398s a = [x x]; 398s a([false false]) = [6 6]; 398s assert(isequal( a, [x x] )); 398s ***** test 398s % issue #18, scalar access 398s syms x 398s x(1) = sym(6); 398s assert(isequal( x, sym(6) )); 398s x(1) = 6; 398s assert(isequal( x, sym(6) )); 398s x(true) = 88; 398s assert(isequal( x, sym(88) )); 398s ***** test 398s % bug: assignment to column vector used to fail 398s A = sym(zeros(3,1)); 398s A(1) = 5; 398s ***** test 398s % symfun creation (generic function) 398s syms x 398s g(x) = x*x; 398s assert(isa(g,'symfun')) 398s ***** test 398s % symfun creation (generic function) 398s syms x g(x) 398s assert(isa(g,'symfun')) 398s ***** test 398s % symfun creation when g already exists and is a sym/symfun 398s syms x 398s g = x; 398s syms g(x) 398s assert(isa(g,'symfun')) 398s clear g 398s g(x) = x; 398s g(x) = x*x; 398s assert(isa(g,'symfun')) 398s ***** test 398s % Issue #443: assignment with sym indices 398s A = sym([10 11]); 398s A(sym(1)) = 12; 398s assert (isequal (A, sym([12 11]))) 398s ***** test 398s % Issue #443: assignment with sym indices 398s A = sym([10 11]); 398s A(sym(1), 1) = 12; 398s assert (isequal (A, sym([12 11]))) 398s A(sym(1), sym(1)) = 13; 398s assert (isequal (A, sym([13 11]))) 398s ***** test 398s % Issue #443: assignment with sym indices, increase size 398s A = sym([10 11]); 398s A(sym(2), 1) = 12; 398s assert (isequal (A, sym([10 11; 12 0]))) 398s ***** error 398s % Issue #443 398s A = sym([10 11]); 398s A(2, sym('x')) = sym(12); 398s ***** error 398s % Issue #443 398s A = sym([10 11]); 398s A(sym(2), sym('x')) = sym(12); 398s ***** error 398s % issue #445 398s A = sym([10 11]); 398s A(1.1) = 13 398s ***** error 398s % issue #445 398s A = sym([10 11]); 398s A(sym(pi)) = 13 398s ***** error 398s % issue #445 398s A = sym([1 2; 3 4]); 398s A(1.3, 1.2) = 13 398s ***** test 398s % older expansion tests 398s syms x 398s f = [2*x 3*x]; 398s f(2) = 4*x; 398s assert (isequal (f, [2*x 4*x])) 398s f(2) = 2; 398s assert (isequal(f, [2*x 2])) 398s g = f; 398s g(1,3) = x*x; 398s assert (isequal(g, [2*x 2 x^2])) 398s g = f; 398s g(3) = x*x; 398s assert (isequal(g, [2*x 2 x^2])) 398s g = f; 398s g(3) = 4; 398s assert (isequal(g, [2*x 2 4])) 399s ***** test 399s % older slicing tests 399s syms x 399s f = [1 x^2 x^4]; 399s f(1:2) = [x x]; 399s assert (isequal( f, [x x x^4] )) 399s f(1:2) = [1 2]; 399s assert (isequal( f, [1 2 x^4] )) 399s f(end-1:end) = [3 4]; 399s assert (isequal( f, [1 3 4] )) 399s f(3:4) = [10 11]; 399s assert (isequal( f, [1 3 10 11] )) 399s f(end:end+1) = [12 14]; 399s assert (isequal( f, [1 3 10 12 14] )) 399s ***** test 399s % struct.str = sym, sometimes calls subsasgn 399s d = struct(); 399s syms x 399s d.a = x; 399s assert (isa (d, 'struct')) 399s assert (isequal (d.a, x)) 399s d.('a') = x; 399s assert (isa (d, 'struct')) 399s assert (isequal (d.a, x)) 399s d = setfield(d, 'a', x); 399s assert (isa (d, 'struct')) 399s assert (isequal (d.a, x)) 399s % at least on Oct 3.8, this calls sym's subsasgn 399s d = struct(); 399s d = setfield(d, 'a', x); 399s assert (isa (d, 'struct')) 399s assert (isequal (d.a, x)) 399s ***** test 399s % bool scalar assignments of true/false into sym 399s syms x 399s a = sym([1 2 x 3]); 399s b = [1 2 10 4]; 399s e = a == b; 399s assert (logical (e(2))) 399s e(2) = false; 399s assert (~logical (e(2))) 400s ***** test 400s % bool vector assignments of true/false into sym 400s syms x 400s a = sym([1 2 x 3]); 400s b = [1 2 10 4]; 400s e = a == b; 400s e(1:2) = [true true]; 400s assert (isequal (e, [sym(1)==1 sym(2)==2 x==10 sym(3)==4])) 400s ***** test 400s % bool scalar promoted to vector assignments into sym 400s syms x 400s a = sym([1 2 x 3]); 400s b = [1 2 10 4]; 400s e = a == b; 400s e(1:2) = true; 400s assert (isequal (e, [sym(1)==1 sym(2)==2 x==10 sym(3)==4])) 400s ***** test 400s % grow scalar equality expression into a matrix of equalities 400s syms a b c d 400s e = a == b; 400s e(2) = c == d; 400s assert (isequal (e, [a==b c==d])) 400s ***** shared a, b, I 400s b = [1:4]; b = [b; 3*b; 5*b]; 400s a = sym(b); 400s I = mod (b, 5) > 1; 400s ***** test 400s A = a; A(I) = 2*b(I); 400s B = b; B(I) = 2*b(I); 400s assert (isequal (A, B)) 400s ***** test 400s % scalar RHS 400s A = a; A(I) = 17; 400s B = b; B(I) = 17; 400s assert (isequal (A, B)) 401s ***** test 401s % nonetheless, above strange case should give right answer 401s I = logical([1 0 1 0; 0 1 0 1; 1 0 1 0]); 401s rhs = 2*b(I); 401s rhs2 = reshape(rhs, 2, 3); 401s A0 = a; A1 = a; 401s A0(I) = rhs; 401s A1(I) = rhs2; 401s assert (isequal (A0, A1)) 401s ***** shared AA, BB 401s BB = [1 2 3; 4 5 6]; 401s AA = sym(BB); 401s ***** test 401s A = AA; B = BB; 401s B([1 6]) = [8 9]; 401s A([1 6]) = [8 9]; 401s assert (isequal (A, B)) 401s ***** test 401s % rhs scalar 401s A = AA; B = BB; 401s B([1 6]) = 88; 401s A([1 6]) = 88; 401s assert (isequal (A, B)) 401s ***** test 401s % If rhs is not a vector, make sure col-based access works 401s rhs = [18 20; 19 21]; 401s A = AA; B = BB; 401s B([1 6]) = 88; 401s A([1 6]) = 88; 401s B([1 2 3 4]) = rhs; 401s A([1 2 3 4]) = rhs; 401s assert (isequal (A, B)) 401s ***** test 401s % Growth 401s A = AA; B = BB; 401s A(1,5) = 10; 401s B(1,5) = 10; 401s assert (isequal (A, B)) 401s ***** shared 401s ***** test 401s % Check row deletion 1D 401s a = sym([1; 3; 5]); 401s b = sym([3; 5]); 401s a(1) = []; 401s assert( isequal( a, b)) 401s ***** test 401s % Check column deletion 1D 401s a = sym([1, 4, 8]); 401s b = sym([4, 8]); 401s a(1) = []; 401s assert( isequal( a, b)) 402s ***** test 402s % Check row deletion 2D 402s a = sym([1, 2; 3, 4]); 402s b = sym([3, 4]); 402s a(1, :) = []; 402s assert( isequal( a, b)) 402s ***** test 402s % Check column deletion 2D 402s a = sym([1, 2; 3, 4]); 402s b = sym([2; 4]); 402s a(:, 1) = []; 402s assert( isequal( a, b)) 402s ***** test 402s % General assign 402s a = sym([1, 2; 3, 4]); 402s b = sym([5, 5; 5, 5]); 402s a(:) = 5; 402s assert( isequal( a, b)) 402s ***** test 402s % Empty matrix 402s a = sym([1, 2; 3, 4]); 402s a(:) = []; 402s assert( isequal( a, sym([]))) 402s ***** test 402s % Disassemble matrix 402s a = sym([1 2; 3 4; 5 6]); 402s b = sym([3 5 2 4 6]); 402s a(1) = []; 402s assert (isequal (a, b)); 402s ***** error 402s a = sym([1, 2; 3, 4]); 402s a(1, 2) = []; 402s ***** test 402s % Issue #964 402s a = sym(10); 402s a(1) = []; 402s assert (isempty (a)) 402s assert (isequal (a, zeros(1, 0))) 402s ***** test 402s % Issue #963: scalar asgn to empty part of matrix 402s A = sym (magic (3)); 402s B = A; 402s A(1, []) = 42; 402s assert (isequal (A, B)) 402s A([], 2) = 42; 402s assert (isequal (A, B)) 402s A([]) = 42; 402s assert (isequal (A, B)) 402s A([], []) = 42; 402s assert (isequal (A, B)) 402s A(2:3, []) = 42; 402s assert (isequal (A, B)) 402s A([], 2:3) = 42; 402s assert (isequal (A, B)) 402s A(:, []) = 42; 402s assert (isequal (A, B)) 402s A([], :) = 42; 402s assert (isequal (A, B)) 403s ***** test 403s % Issue #1026 403s a = sym(1:5); 403s a(1:3) = []; 403s assert (isequal (a, sym([4 5]))) 403s ***** test 403s % Issue #1026 403s B = eye(4); 403s A = sym(B); 403s A(1:2, :) = []; 403s B(1:2, :) = []; 403s assert (isequal (A, B)) 403s ***** error 403s % TODO: do we care what error? 403s A = sym (magic (3)); 403s A(2:3, []) = [66; 66]; 403s ***** error 403s A = sym (magic (3)); 403s A([]) = [66; 66]; 403s ***** error 403s A = sym (magic (3)); 403s A([], 1) = [66; 66]; 403s ***** test 403s % Issue #966: empty indexing, empty RHS, A unchanged 403s B = magic(3); 403s A = sym(B); 403s A(1, []) = []; 403s assert (isequal (A, B)) 403s A([], 2) = []; 403s assert (isequal (A, B)) 403s A([], []) = []; 403s assert (isequal (A, B)) 403s A(2:3, []) = []; 403s assert (isequal (A, B)) 403s A([], 2:3) = []; 403s assert (isequal (A, B)) 403s A(:, []) = []; 403s assert (isequal (A, B)) 403s A([], :) = []; 403s assert (isequal (A, B)) 404s ***** test 404s % Issue 967 404s B = [1 2; 3 4]; 404s A = sym(B); 404s A([]) = []; 404s assert (isequal (A, B)) 404s ***** test 404s % Issue #965 404s a = sym(7); 404s a([]) = []; 404s assert (isequal (a, sym(7))) 404s ***** test 404s % Issue #965 404s a = sym(7); 404s a([]) = 42; 404s assert (isequal (a, sym(7))) 404s ***** error 404s % Issue #965 404s a = sym(7); 404s a([]) = [42 42] 404s ***** test 404s b = eye (3); 404s a = sym (b); 404s I = [2 3; 4 5]; 404s a(I) = -2*I; 404s b(I) = -2*I; 404s assert (isequal (a, sym (b))); 404s assert (size (a), [3 3]); 404s ***** error 404s syms x 404s A = [1 x; x 2]; 404s A(5) = x; 404s ***** test 404s % 2D indexing with length in one dimension more than 2 404s a = sym ([1 2; 3 4; 5 6]); 404s indices = [1 4; 2 5; 3 6]; 404s b = [10 11; 12 13; 14 15]; 404s a(indices) = b; 404s assert (isequal (a, sym (b))); 404s ***** test 404s A = sym ([0 0 0]); 404s indices = [false true false]; 404s A(indices) = 1; 404s assert (isequal (A, sym ([0 1 0]))); 404s A(indices) = []; 404s assert (isequal (A, sym ([0 0]))); 404s indices = [false false]; 404s A(indices) = []; 404s assert (isequal (A, sym ([0 0]))); 405s ***** shared a, b 405s a = [1 2 3 5; 4 5 6 9; 7 5 3 2]; 405s b = sym (a); 405s ***** test 405s A = a; B = b; 405s A(true) = 0; 405s B(true) = 0; 405s assert (isequal (A, B)) 405s ***** test 405s A = a; B = b; 405s A(false) = 0; 405s B(false) = 0; 405s assert (isequal (A, B)) 405s ***** test 405s c = [false true]; 405s A = a; B = b; 405s A(c) = 0; B(c) = 0; 405s assert (isequal (A, B)) 405s d = c | true; 405s A(d) = 1; B(d) = 1; 405s assert (isequal (A, B)) 405s d = c & false; 405s A(d) = 2; B(d) = 2; 405s assert (isequal (A, B)) 405s ***** test 405s c = [false true false true; true false true false; false true false true]; 405s A = a; B = b; 405s A(c) = 0; B(c) = 0; 405s assert (isequal (A, B)) 405s d = c | true; 405s A(d) = 1; B(d) = 1; 405s assert (isequal (A, B)) 405s d = c & false; 405s A(d) = 2; B(d) = 2; 405s assert (isequal (A, B)) 406s ***** test 406s c = [false true false true false]; 406s A = a; B = b; 406s A(c) = 0; B(c) = 0; 406s assert (isequal (A, B)) 406s d = c | true; 406s A(d) = 1; B(d) = 1; 406s assert (isequal (A, B)) 406s d = c & false; 406s A(d) = 2; B(d) = 2; 406s assert (isequal (A, B)) 406s ***** test 406s c = [false; true; false; true; false]; 406s A = a; B = b; 406s A(c) = 0; B(c) = 0; 406s assert (isequal (A, B)) 406s d = c | true; 406s A(d) = 1; B(d) = 1; 406s assert (isequal (A, B)) 406s d = c & false; 406s A(d) = 2; B(d) = 2; 406s assert (isequal (A, B)) 406s ***** test 406s c = [false true; false true; true false]; 406s A = a; B = b; 406s A(c) = 0; B(c) = 0; 406s assert (isequal (A, B)) 406s d = c | true; 406s A(d) = 1; B(d) = 1; 406s assert (isequal (A, B)) 406s d = c & false; 406s A(d) = 2; B(d) = 2; 406s assert (isequal (A, B)) 407s 77 tests, 77 passed, 0 known failure, 0 skipped 407s [inst/@sym/display.m] 407s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/display.m 407s ***** test 407s assert(true) 407s 1 test, 1 passed, 0 known failure, 0 skipped 407s [inst/@sym/erfi.m] 407s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/erfi.m 407s ***** error erfi (sym(1), 2) 407s ***** assert (isequaln (erfi (sym(nan)), sym(nan))) 407s ***** shared x, d 407s d = 0; 407s x = sym('0'); 407s ***** test 407s f1 = erfi(x); 407s f2 = 0; 407s assert( abs(double(f1) - f2) < 1e-15 ) 407s ***** test 407s D = [d d; d d]; 407s A = [x x; x x]; 407s f1 = erfi(A); 407s f2 = 0; 407s f2 = [f2 f2; f2 f2]; 407s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 407s ***** test 407s % round trip 407s y = sym('y'); 407s A = erfi (d); 407s f = erfi (y); 407s h = function_handle (f); 407s B = h (d); 407s assert (A, B, -eps) 407s 5 tests, 5 passed, 0 known failure, 0 skipped 407s [inst/@sym/asec.m] 407s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/asec.m 407s ***** error asec (sym(1), 2) 407s ***** assert (isequaln (asec (sym(nan)), sym(nan))) 407s ***** shared x, d 407s d = 2; 407s x = sym('2'); 407s ***** test 407s f1 = asec(x); 407s f2 = asec(d); 407s assert( abs(double(f1) - f2) < 1e-15 ) 407s ***** test 407s D = [d d; d d]; 407s A = [x x; x x]; 407s f1 = asec(A); 407s f2 = asec(D); 407s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 407s ***** test 407s % round trip 407s y = sym('y'); 407s A = asec (d); 407s f = asec (y); 407s h = function_handle (f); 407s B = h (d); 407s assert (A, B, -eps) 407s 5 tests, 5 passed, 0 known failure, 0 skipped 407s [inst/@sym/fourier.m] 407s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/fourier.m 407s ***** test 407s % matlab SMT compatibiliy for arguments 407s syms r x u w v 407s Pi=sym('pi'); 407s assert(logical( fourier(exp(-x^2)) == sqrt(Pi)/exp(w^2/4) )) 407s assert(logical( fourier(exp(-w^2)) == sqrt(Pi)/exp(v^2/4) )) 407s assert(logical( fourier(exp(-r^2),u) == sqrt(Pi)/exp(u^2/4) )) 407s assert(logical( fourier(exp(-r^2),r,u) == sqrt(Pi)/exp(u^2/4) )) 409s ***** test 409s % basic tests 409s syms x w 409s assert(logical( fourier(exp(-abs(x))) == 2/(w^2 + 1) )) 409s assert(logical( fourier(x*exp(-abs(x))) == -(w*4*1i)/(w^4 + 2*w^2 + 1) )) 410s ***** test 410s % Dirac delta tests 410s syms x w 410s Pi=sym('pi'); 410s assert(logical( fourier(dirac(x-2)) == exp(-2*1i*w) )) 410s assert (logical( fourier(sym(2), x, w) == 4*Pi*dirac(w) )) 410s ***** test 410s % advanced test 410s syms x w c d 410s Pi=sym('pi'); 410s F=Pi*(dirac(w-c)+dirac(w+c))+2*Pi*1i*(dirac(w+3*d)-dirac(w-3*d))+2/(w^2+1); 410s assert(logical( fourier(cos(c*x)+2*sin(3*d*x)+exp(-abs(x))) == expand(F) )) 411s ***** xtest 411s % Differential operator to algebraic 411s % SymPy cannot evaluate? (Issue #170) 411s syms x w f(x) 411s assert(logical( fourier(diff(f(x),x),x,w) == -1i*w*fourier(f(x),x,w) )) 412s !!!!! known failure 412s assert (logical (fourier (diff (f (x), x), x, w) == -1i * w * fourier (f (x), x, w))) failed 412s 5 tests, 4 passed, 1 known failure, 0 skipped 412s [inst/@sym/log2.m] 412s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/log2.m 412s ***** assert (isequal (log2 (sym (1024)), sym (10))) 412s ***** assert (isequal (log2 (sym ([2 16; 32 1])), sym ([1 4; 5 0]))) 412s ***** test 412s % round-trip 412s syms x 412s f = log2 (x); 412s h = function_handle (f); 412s A = h (1.1); 412s B = log2 (1.1); 412s assert (A, B, -5*eps) 412s 3 tests, 3 passed, 0 known failure, 0 skipped 412s [inst/@sym/ne.m] 412s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/ne.m 412s ***** test 412s % simple 412s x = sym(1); y = sym(1); e = x ~= y; 412s assert (~logical (e)) 412s x = sym(1); y = sym(2); e = x ~= y; 412s assert (logical(e)) 412s ***** test 412s % array -- array 412s syms x 412s a = sym([1 3 3 2*x]); 412s b = sym([2 x 3 10]); 412s e = a ~= b; 412s assert (isa (e, 'sym')) 412s assert (logical (e(1))) 412s assert (isa (e(2), 'sym')) 412s assert (isequal (e(2), 3 ~= x)) 412s assert (~logical (e(3))) 412s assert (isa (e(4), 'sym')) 412s assert (isequal (e(4), 2*x ~= 10)) 412s ***** test 412s % oo 412s syms oo x 412s e = oo ~= x; 412s assert (isa (e, 'sym')) 412s s = strtrim (disp (e, 'flat')); 412s % SymPy <= 0.7.6.x will be '!=', newer gives 'Ne', test both 412s assert (strcmp (s, 'oo != x') || strcmp (s, 'Ne(oo, x)')) 412s ***** test 412s % nan 412s syms oo x 412s snan = sym(nan); 412s e = snan ~= sym(0); 412s assert (logical (e)) 412s e = snan ~= snan; 412s assert (logical (e)) 413s 4 tests, 4 passed, 0 known failure, 0 skipped 413s [inst/@sym/acosd.m] 413s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/acosd.m 413s ***** error acosd (sym(1), 2) 413s ***** assert (isequaln (acosd (sym(nan)), sym(nan))) 413s ***** test 413s f1 = acosd (sym(1)/2); 413s f2 = acosd (1/2); 413s assert (double (f1), f2, -eps) 413s ***** test 413s D = [1 2; 3 4]/4; 413s A = sym([1 2; 3 4])/4; 413s f1 = acosd (A); 413s f2 = acosd (D); 413s assert (double (f1), f2, -eps) 413s 4 tests, 4 passed, 0 known failure, 0 skipped 413s [inst/@sym/formula.m] 413s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/formula.m 413s ***** test 413s syms x 413s assert (isequal (formula(x), x)) 413s assert (isequal (formula(2*x), 2*x)) 413s 1 test, 1 passed, 0 known failure, 0 skipped 413s [inst/@sym/besselh.m] 413s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/besselh.m 413s ***** test 413s % default to k=1 413s syms z a 413s A = besselh(a, z); 413s B = besselh(a, 1, z); 413s assert (isequal (A, B)) 413s ***** error besselh(sym('z')) 413s ***** error besselh(2, 0, sym('z')) 413s ***** error besselh(2, 3, sym('z')) 413s ***** test 413s % doubles, relative error 413s X = [1 2 pi; 4i 5 6+6i]; 413s Xs = sym(X); 413s Alpha = [pi 3 1; 3 2 0]; 413s Alphas = sym(Alpha); 413s for k = 1:2 413s A = double(besselh(Alphas, k, Xs)); 413s B = besselh(Alpha, k, X); 413s assert (all (all (abs(A - B) < 10*eps*abs(A)))) 413s end 414s ***** test 414s % round-trip 414s syms x 414s for k = 1:2 414s A = besselh(4, k, 10); 414s q = besselh(4, k, x); 414s h = function_handle(q); 414s B = h(10); 414s assert (abs(A - B) <= eps*abs(A)) 414s end 414s 6 tests, 6 passed, 0 known failure, 0 skipped 414s [inst/@sym/zeta.m] 414s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/zeta.m 414s ***** error zeta (sym(1), 2, 3) 414s ***** assert (isequaln (zeta (sym(nan)), sym(nan))) 414s ***** test 414s f1 = zeta (sym(2)); 414s f2 = pi^2/6; 414s assert (double (f1), f2, -1e-15) 414s ***** test 414s A = sym([0 2; 4 6]); 414s f1 = zeta (A); 414s f2 = [-1/2 pi^2/6; pi^4/90 pi^6/945]; 414s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 414s ***** test 414s % round trip 414s y = sym('y'); 414s f = zeta (y); 414s h = function_handle (f); 414s A = zeta (2); 414s B = h (2); 414s assert (A, B, -eps) 414s ***** test 414s syms x 414s assert (isequal (zeta (0, x), zeta(x))) 414s ***** test 414s % ensure its the nth deriv wrt x, not the n deriv 414s syms x n 414s F = zeta (n, x); 414s F = subs(F, n, 3); 414s assert (isequal (F, diff (zeta (x), x, x, x))) 414s 7 tests, 7 passed, 0 known failure, 0 skipped 414s [inst/@sym/acot.m] 414s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/acot.m 414s ***** error acot (sym(1), 2) 414s ***** assert (isequaln (acot (sym(nan)), sym(nan))) 414s ***** shared x, d 414s d = 1; 414s x = sym('1'); 414s ***** test 414s f1 = acot(x); 414s f2 = acot(d); 414s assert( abs(double(f1) - f2) < 1e-15 ) 414s ***** test 414s D = [d d; d d]; 414s A = [x x; x x]; 414s f1 = acot(A); 414s f2 = acot(D); 414s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 414s ***** test 414s % round trip 414s y = sym('y'); 414s A = acot (d); 414s f = acot (y); 414s h = function_handle (f); 414s B = h (d); 414s assert (A, B, -eps) 414s 5 tests, 5 passed, 0 known failure, 0 skipped 414s [inst/@sym/subsref.m] 414s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/subsref.m 414s ***** shared a,b 414s b = [1:4]; 414s a = sym(b); 414s ***** assert(isequal( a(1), b(1) )) 414s ***** assert(isequal( a(2), b(2) )) 414s ***** assert(isequal( a(4), b(4) )) 414s ***** assert(isempty( a([]) )) 414s ***** shared a,b 414s b = [1:4]; b = [b; 3*b; 5*b]; 414s a = sym(b); 415s ***** assert(isequal( a(1), b(1) )) 415s ***** assert(isequal( a(2), b(2) )) 415s ***** assert(isequal( a(4), b(4) )) 415s ***** assert(isequal( a(:,:), a )) 415s ***** assert(isequal( a(1:2,1:3), a(1:2,1:3) )) 415s ***** assert(isequal( a(1:2:3,[1 2 4]), b(1:2:3,[1 2 4]) )) 415s ***** assert(isequal( a(1:2:3,[4 2 3 1]), b(1:2:3,[4 2 3 1]) )) 415s ***** assert(isequal( a(1:2:3,[4 1 1 1]), b(1:2:3,[4 1 1 1]) )) 415s ***** assert(isequal( a([],:), b([],:) )) 415s ***** assert(isequal( size(a([],:)), [0 4] )) 415s ***** assert(isequal( a(1:2,[]), b(1:2,[]) )) 415s ***** assert(isequal( size(a(1:2,[])), [2 0] )) 415s ***** assert(isempty( a(1:2,[]) )) 415s ***** assert(isempty( a([],[]) )) 415s ***** assert(isequal( a([],[]), sym([]) )) 415s ***** assert(~isequal( a(1:2,[]), sym([]) )) 415s ***** shared e 415s e = sym([1 3 5; 2 4 6]); 415s ***** assert(isequal( e(:), sym((1:6)') )) 415s ***** assert(isequal( e([1 2 3]), sym([1 2 3]) )) 415s ***** assert(isequal( e([1; 3; 4]), sym([1; 3; 4]) )) 415s ***** assert(isempty( e([]) )) 415s ***** assert(isempty( e('') )) 415s ***** assert(isequal( e([]), sym([]) )) 415s ***** shared a,b 415s b = 1:5; a = sym(b); 415s ***** assert(isequal( a([1 2 5]), b([1 2 5]) )) 415s ***** assert(isequal( a([1; 2; 5]), b([1; 2; 5]) )) 416s ***** shared x 416s syms x 416s ***** test 416s % logical with empty result 416s assert(isempty( x(false) )) 416s a = [x x]; 416s assert(isempty( a([false false]) )) 416s ***** test 416s % issue 18, scalar access 416s assert(isequal( x(1), x )) 416s assert(isequal( x(true), x )) 416s ***** shared 416s ***** test 416s % older access tests 416s syms x 416s f = [x 2; 3 4*x]; 416s % element access 416s assert (logical( f(1,1) == x )) 416s assert (logical( f(1,2) == 2 )) 416s % linear access of 2d array 416s assert (logical( f(1) == x )) 416s assert (logical( f(2) == 3 )) % column based 416s assert (logical( f(3) == 2 )) 416s ***** shared a,b 416s % effectively a random matrix 416s a = reshape( round(50*(sin(1:20)+1)), 5,4); 416s b = sym(a); 416s ***** test 416s % older array refs test 416s assert (logical(b(1,1) == a(1,1))) 416s assert (logical(b(3,1) == a(3,1))) 416s assert (logical(b(1,3) == a(1,3))) 416s assert (logical(b(4,4) == a(4,4))) 416s ***** test 416s % older array refs test: linear indices 416s assert (logical(b(1) == a(1))) 416s assert (logical(b(3) == a(3))) 416s assert (logical(b(13) == a(13))) 416s ***** test 416s % older array refs test: end 416s assert (all(all(logical( b(end,1) == a(end,1) )))) 416s assert (all(all(logical( b(2,end) == a(2,end) )))) 416s assert (all(all(logical( b(end,end) == a(end,end) )))) 416s assert (all(all(logical( b(end-1,1) == a(end-1,1) )))) 416s assert (all(all(logical( b(2,end-1) == a(2,end-1) )))) 416s assert (all(all(logical( b(end-1,end-1) == a(end-1,end-1) )))) 416s ***** shared 416s ***** test 416s % older slicing tests 416s syms x 416s a = [1 2 3 4 5 6]; a = [a; 3*a; 5*a; 2*a; 4*a]; 416s b = sym(a); 416s assert (isequal( b(:,1), a(:,1) )) 416s assert (isequal( b(:,2), a(:,2) )) 416s assert (isequal( b(1,:), a(1,:) )) 416s assert (isequal( b(2,:), a(2,:) )) 416s assert (isequal( b(:,:), a(:,:) )) 416s assert (isequal( b(1:3,2), a(1:3,2) )) 416s assert (isequal( b(1:4,:), a(1:4,:) )) 416s assert (isequal( b(1:2:5,:), a(1:2:5,:) )) 416s assert (isequal( b(1:2:4,:), a(1:2:4,:) )) 416s assert (isequal( b(2:2:4,3), a(2:2:4,3) )) 416s assert (isequal( b(2:2:4,3), a(2:2:4,3) )) 418s ***** test 418s % 2D arrays 418s b = [1:4]; b = [b; 3*b; 5*b]; 418s a = sym(b); 418s I = rand(size(b)) > 0.5; 418s assert (isequal (a(I), b(I))) 418s I = I(:); 418s assert (isequal (a(I), b(I))) 418s I = I'; 418s assert (isequal (a(I), b(I))) 418s I = logical(zeros(size(b))); 418s assert (isequal (a(I), b(I))) 418s ***** test 418s % 1D arrays, does right with despite warning 418s r = [1:6]; 418s ar = sym(r); 418s c = r'; 418s ac = sym(c); 418s Ir = rand(size(r)) > 0.5; 418s Ic = rand(size(c)) > 0.5; 418s assert (isequal (ar(Ir), r(Ir))) 418s assert (isequal (ac(Ic), c(Ic))) 418s assert (isequal (ar(Ic), r(Ic))) 418s assert (isequal (ac(Ir), c(Ir))) 419s ***** test 419s % rccross tests 419s B = [1 2 3 4; 5 6 7 9; 10 11 12 13]; 419s A = sym(B); 419s assert (isequal (A([1 3],[2 3]), B([1 3], [2 3]) )) 419s assert (isequal (A(1,[2 3]), B(1,[2 3]) )) 419s assert (isequal (A([1 2],4), B([1 2],4) )) 419s assert (isequal (A([2 1],[4 2]), B([2 1],[4 2]) )) 419s assert (isequal (A([],[]), B([],[]) )) 419s ***** error 419s % issue #445 419s A = sym([10 11]); 419s A(1.1) 419s ***** error 419s % issue #445 419s A = sym([10 11]); 419s A(sym(4)/3) 419s ***** error 419s % issue #445 419s A = sym([1 2; 3 4]); 419s A(1.1, 1) 419s ***** error 419s % issue #445 419s A = sym([1 2; 3 4]); 419s A(1, sym(4)/3) 419s ***** error 419s A = sym([1 2; 3 4]); 419s A(5) 419s ***** shared a, b 419s a = [1 2 3 5; 4 5 6 9; 7 5 3 2]; 419s b = sym (a); 419s ***** test 419s c = true; 419s assert (isequal (a(c), b(c))) 419s c = false; 419s assert (isequal (a(c), b(c))) 419s ***** test 419s c = [false true]; 419s assert (isequal (a(c), b(c))) 419s d = c | true; 419s assert (isequal (a(d), b(d))) 419s d = c & false; 419s assert (isequal (a(d), b(d))) 419s ***** test 419s c = [false true false true; true false true false; false true false true]; 419s assert (isequal (a(c), b(c))) 419s d = c | true; 419s assert (isequal (a(d), b(d))) 419s d = c & false; 419s assert (isequal (a(d), b(d))) 420s ***** test 420s c = [false true false true false]; 420s assert (isequal (a(c), b(c))) 420s d = c | true; 420s assert (isequal (a(d), b(d))) 420s d = c & false; 420s assert (isequal (a(d), b(d))) 420s ***** test 420s c = [false; true; false; true; false]; 420s assert (isequal (a(c), b(c))) 420s d = c | true; 420s assert (isequal (a(d), b(d))) 420s d = c & false; 420s assert (isequal (a(d), b(d))) 420s ***** test 420s c = [false true; false true; true false]; 420s assert (isequal (a(c), b(c))) 420s d = c | true; 420s assert (isequal (a(d), b(d))) 420s d = c & false; 420s assert (isequal (a(d), b(d))) 420s ***** shared 420s ***** test 420s % Orientation of empty results of logical indexing on row or column vectors 420s r = [1:6]; 420s c = r'; 420s ar = sym(r); 420s ac = sym(c); 420s assert (isequal (ar(false), r(false))) 420s assert (isequal (ac(false), c(false))) 420s assert (isequal (ar(false (1, 6)), r(false (1, 6)))) 420s assert (isequal (ac(false (1, 6)), c(false (1, 6)))) 420s assert (isequal (ar(false (6, 1)), r(false (6, 1)))) 420s assert (isequal (ac(false (6, 1)), c(false (6, 1)))) 420s 50 tests, 50 passed, 0 known failure, 0 skipped 420s [inst/@sym/isallconstant.m] 420s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/isallconstant.m 420s ***** assert (isallconstant([sym(1) 2 3])) 420s ***** test 420s syms x 420s assert (~isallconstant([sym(1) x 3])) 420s ***** test 420s syms x 420s assert (~isallconstant([sym(1) x; sym(2) 3])) 421s 3 tests, 3 passed, 0 known failure, 0 skipped 421s [inst/@sym/end.m] 421s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/end.m 421s ***** test 421s % scalar 421s syms x 421s y = x(1:end); 421s assert (isequal (x, y)) 421s ***** test 421s % vector 421s syms x 421s A = [1 2 x 4]; 421s y = A(end-1:end); 421s assert (isequal (y, [x 4])) 421s ***** test 421s % subset of matrix 421s syms x 421s A = [1 2 x; x 3 9; 4 x*x 6]; 421s y = A(end,1:end-1); 421s assert (isequal (y, [4 x*x])) 421s ***** test 421s % linear index of matrix 421s syms x 421s A = [1 2 x; x 3 9]; 421s y = A(end); 421s assert (isequal (y, sym(9))) 421s 4 tests, 4 passed, 0 known failure, 0 skipped 421s [inst/@sym/uplus.m] 421s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/uplus.m 421s ***** test 421s syms x 421s assert (isa (+x, 'sym')) 421s assert (isequal (+x, x)) 421s ***** test 421s A = sym([0 -1 inf]); 421s assert( isequal ( +A, A)) 421s 2 tests, 2 passed, 0 known failure, 0 skipped 421s [inst/@sym/sinhint.m] 421s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/sinhint.m 421s ***** error sinhint (sym(1), 2) 421s ***** xtest 421s assert (isequaln (sinhint (sym(nan)), sym(nan))) 421s !!!!! known failure 421s assert (isequaln (sinhint (sym (nan)), sym (nan))) failed 421s ***** shared x, d 421s d = 1; 421s x = sym('1'); 421s ***** test 421s f1 = sinhint(x); 421s f2 = 1.057250875375728514572; 421s assert( abs(double(f1) - f2) < 1e-15 ) 421s ***** test 421s D = [d d; d d]; 421s A = [x x; x x]; 421s f1 = sinhint(A); 421s f2 = 1.057250875375728514572; 421s f2 = [f2 f2; f2 f2]; 421s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 421s ***** test 421s % round trip 421s y = sym('y'); 421s A = sinhint (d); 421s f = sinhint (y); 421s h = function_handle (f); 421s B = h (d); 421s assert (A, B, -eps) 421s 5 tests, 4 passed, 1 known failure, 0 skipped 421s [inst/@sym/interval.m] 421s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/interval.m 421s ***** test 421s a = interval(sym(1), 2); 421s assert (isa (a, 'sym')) 421s ***** test 421s % some set subtraction 421s a = interval(sym(0), 4); 421s b = interval(sym(0), 1); 421s c = interval(sym(1), 4, true); 421s q = a - b; 421s assert (isequal( q, c)) 421s 2 tests, 2 passed, 0 known failure, 0 skipped 421s [inst/@sym/isNone.m] 421s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/isNone.m 421s ***** test 421s None = pycall_sympy__ ('return None'); 421s ***** shared None 421s None = pycall_sympy__ ('return None'); 421s ***** assert (isNone(None)) 421s ***** assert (~isNone(sym('x'))) 421s ***** assert (islogical(isNone(None))) 421s ***** test 421s a = [1 None]; 421s a = [None None]; 421s a = [None; 1]; 421s a = [None; None]; 421s a = [None 2; 3 None]; 421s ***** test 421s a = sym([1 2]); 421s a(1,2) = None; 421s assert (isequal (a, [sym(1) None])); 421s ***** assert (isequal (None(1), None)); 421s ***** error None(None); 421s ***** error x=sym('x'); x(None); 421s ***** error x=1; x(None); 421s ***** error None(None); 422s ***** error 1 + None; 422s ***** error None - 1; 422s ***** error 6*None; 422s ***** error 2^None; 422s ***** error [1 2].*None; 422s ***** error isconstant(None); 422s ***** error nnz(None); 422s ***** error logical(None); 422s ***** error isAlways(None); 422s ***** error logical([sym(true) None]); 422s ***** error isAlways([sym(true) None]); 422s ***** assert (isequal (children(None), None)) 422s ***** assert (isequal (repmat(None, 1, 2), [None None])) 422s ***** assert (isequal (fliplr(None), None)) 422s ***** assert (isequal (flipud(None), None)) 422s 26 tests, 26 passed, 0 known failure, 0 skipped 422s [inst/@sym/asinh.m] 422s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/asinh.m 422s ***** error asinh (sym(1), 2) 422s ***** assert (isequaln (asinh (sym(nan)), sym(nan))) 422s ***** shared x, d 422s d = 1; 422s x = sym('1'); 422s ***** test 422s f1 = asinh(x); 422s f2 = asinh(d); 422s assert( abs(double(f1) - f2) < 1e-15 ) 422s ***** test 422s D = [d d; d d]; 422s A = [x x; x x]; 422s f1 = asinh(A); 422s f2 = asinh(D); 422s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 422s ***** test 422s % round trip 422s y = sym('y'); 422s A = asinh (d); 422s f = asinh (y); 422s h = function_handle (f); 422s B = h (d); 422s assert (A, B, -eps) 422s 5 tests, 5 passed, 0 known failure, 0 skipped 422s [inst/@sym/sign.m] 422s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/sign.m 422s ***** error sign (sym(1), 2) 422s ***** assert (isequaln (sign (sym(nan)), sym(nan))) 422s ***** shared x, d 422s d = 1; 422s x = sym('1'); 422s ***** test 422s f1 = sign(x); 422s f2 = sign(d); 422s assert( abs(double(f1) - f2) < 1e-15 ) 422s ***** test 422s D = [d d; d d]; 422s A = [x x; x x]; 422s f1 = sign(A); 422s f2 = sign(D); 422s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 422s ***** test 422s % round trip 422s y = sym('y'); 422s A = sign (d); 422s f = sign (y); 422s h = function_handle (f); 422s B = h (d); 422s assert (A, B, -eps) 422s 5 tests, 5 passed, 0 known failure, 0 skipped 422s [inst/@sym/isempty.m] 422s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/isempty.m 422s ***** shared se, a 422s se = sym ([]); 422s a = sym ([1 2]); 422s ***** assert (~isempty (sym (1))) 422s ***** assert (isempty (sym (se))) 422s ***** assert (isempty (se == [])) 422s ***** test 422s ***** test se(1) = 10; 422s ***** test assert ( isa (se, 'sym')) 422s ***** test assert ( isequal (se, 10)) 422s ***** shared 422s ***** test 422s % empty matrices 422s A = sym('A', [3 0]); 422s assert (isempty (A)) 422s A = sym(ones(3,0)); 422s assert (isempty (A)) 422s ***** test 422s % non-empty symbolic-size matrices 422s syms n integer 422s A = sym('A', [3 n]); 422s assert (~isempty (A)) 422s ***** xtest 422s % empty symbolic-size matrices 422s % FIXME: will fail until size stop lying by saying 1x1 422s syms n integer 422s A = sym('A', [0 n]); 422s assert (isempty (A)) 422s A = sym('A', [n 0]); 422s assert (isempty (A)) 422s !!!!! known failure 422s assert (isempty (A)) failed 422s 10 tests, 9 passed, 1 known failure, 0 skipped 422s [inst/@sym/bernoulli.m] 422s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/bernoulli.m 422s ***** error bernoulli (sym(1), 2, 3) 422s ***** assert (isequal (bernoulli (sym(8)), -sym(1)/30)) 423s ***** assert (isequal (bernoulli (sym(9)), sym(0))) 423s ***** test syms x 423s assert (isequal (bernoulli(3,x), x^3 - 3*x^2/2 + x/2)) 423s ***** test 423s % two different definitions in literature 423s assert (isequal (abs (bernoulli (sym(1))), sym(1)/2)) 423s ***** test 423s % we use B_1 = 1/2 423s if (pycall_sympy__ ('return Version(spver) >= Version("1.12.dev")')) 423s assert (isequal (bernoulli (sym(1)), sym(1)/2)) 423s end 423s !!!!! test failed 423s Python exception: TypeError: '>=' not supported between instances of 'int' and 'str' 423s occurred at line 1 of the Python code block: 423s return Version(spver) >= Version("1.12.dev") 423s ***** test 423s m = sym([0 2; 8 888889]); 423s A = bernoulli (m); 423s B = [1 sym(1)/6; -sym(1)/30 0]; 423s assert (isequal (A, B)) 423s ***** test 423s syms x 423s A = bernoulli ([0; 1], x); 423s B = [sym(1); x - sym(1)/2]; 423s assert (isequal (A, B)) 423s ***** test 423s % round trip 423s syms n x 423s f = bernoulli (n, x); 423s h = function_handle (f, 'vars', [n x]); 423s A = h (2, 2.2); 423s B = bernoulli (2, 2.2); 423s assert (A, B) 423s 9 tests, 8 passed, 0 known failure, 0 skipped 423s [inst/@sym/sqrt.m] 423s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/sqrt.m 423s ***** error sqrt (sym(1), 2) 423s ***** assert (isequaln (sqrt (sym(nan)), sym(nan))) 423s ***** shared x, d 423s d = 1; 423s x = sym('1'); 423s ***** test 423s f1 = sqrt(x); 423s f2 = sqrt(d); 423s assert( abs(double(f1) - f2) < 1e-15 ) 423s ***** test 423s D = [d d; d d]; 423s A = [x x; x x]; 423s f1 = sqrt(A); 423s f2 = sqrt(D); 423s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 423s ***** test 423s % round trip 423s y = sym('y'); 423s A = sqrt (d); 423s f = sqrt (y); 423s h = function_handle (f); 423s B = h (d); 423s assert (A, B, -eps) 423s 5 tests, 5 passed, 0 known failure, 0 skipped 423s [inst/@sym/beta.m] 423s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/beta.m 423s ***** error beta (sym(1), 2, 3) 423s ***** assert (isequal (double (beta (sym(1), 2)), 1/2)) 423s ***** assert (isinf (double (beta (sym(1), 0)))) 423s ***** test 423s % round trip 423s syms x y 423s f = beta (x, y); 423s h = function_handle (f); 423s A = h (1.1, 2.2); 423s B = beta (1.1, 2.2); 423s assert (A, B) 423s 4 tests, 4 passed, 0 known failure, 0 skipped 423s [inst/@sym/null.m] 423s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/null.m 423s ***** test 423s A = sym([1 2; 3 4]); 423s assert (isempty (null (A))) 424s ***** assert (isempty (null (sym(4)))) 424s ***** test 424s A = sym([1 2 3; 3 4 5]); 424s assert (isequal (null(A), sym([1;-2;1]))) 424s 3 tests, 3 passed, 0 known failure, 0 skipped 424s [inst/@sym/argnames.m] 424s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/argnames.m 424s ***** test 424s % basic tests 424s syms x 424s f = 2*x; 424s assert (isempty (argnames(x))) 424s assert (isempty (argnames(f))) 424s 1 test, 1 passed, 0 known failure, 0 skipped 424s [inst/@sym/ceil.m] 424s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/ceil.m 424s ***** error ceil (sym(1), 2) 424s ***** assert (isequaln (ceil (sym(nan)), sym(nan))) 424s ***** shared x, d 424s d = 3/2; 424s x = sym('3/2'); 424s ***** test 424s f1 = ceil(x); 424s f2 = ceil(d); 424s assert( abs(double(f1) - f2) < 1e-15 ) 424s ***** test 424s D = [d d; d d]; 424s A = [x x; x x]; 424s f1 = ceil(A); 424s f2 = ceil(D); 424s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 424s ***** test 424s % round trip 424s y = sym('y'); 424s A = ceil (d); 424s f = ceil (y); 424s h = function_handle (f); 424s B = h (d); 424s assert (A, B, -eps) 424s 5 tests, 5 passed, 0 known failure, 0 skipped 424s [inst/@sym/csc.m] 424s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/csc.m 424s ***** error csc (sym(1), 2) 424s ***** assert (isequaln (csc (sym(nan)), sym(nan))) 424s ***** shared x, d 424s d = 1; 424s x = sym('1'); 424s ***** test 424s f1 = csc(x); 424s f2 = csc(d); 424s assert( abs(double(f1) - f2) < 1e-15 ) 424s ***** test 424s D = [d d; d d]; 424s A = [x x; x x]; 424s f1 = csc(A); 424s f2 = csc(D); 424s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 424s ***** test 424s % round trip 424s y = sym('y'); 424s A = csc (d); 424s f = csc (y); 424s h = function_handle (f); 424s B = h (d); 424s assert (A, B, -eps) 424s 5 tests, 5 passed, 0 known failure, 0 skipped 424s [inst/@sym/acsc.m] 424s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/acsc.m 424s ***** error acsc (sym(1), 2) 424s ***** assert (isequaln (acsc (sym(nan)), sym(nan))) 424s ***** shared x, d 424s d = 1; 424s x = sym('1'); 424s ***** test 424s f1 = acsc(x); 424s f2 = acsc(d); 424s assert( abs(double(f1) - f2) < 1e-15 ) 424s ***** test 424s D = [d d; d d]; 424s A = [x x; x x]; 424s f1 = acsc(A); 424s f2 = acsc(D); 424s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 424s ***** test 424s % round trip 424s y = sym('y'); 424s A = acsc (d); 424s f = acsc (y); 424s h = function_handle (f); 424s B = h (d); 424s assert (A, B, -eps) 424s 5 tests, 5 passed, 0 known failure, 0 skipped 424s [inst/@sym/rows.m] 424s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/rows.m 424s ***** test 424s a = sym([1 2 3]); 424s assert (rows(a) == 1) 424s ***** test 424s a = sym([1 2 3; 4 5 6]); 424s assert (rows(a) == 2) 424s 2 tests, 2 passed, 0 known failure, 0 skipped 424s [inst/@sym/isAlways.m] 424s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/isAlways.m 424s ***** test 424s % basics 424s assert(isAlways(true)) 424s assert(isAlways(1==1)) 424s assert(isAlways(sym(1)==sym(1))) 424s assert(isAlways(sym(1)==1)) 424s ***** test 424s % numbers to logic? 424s assert (isAlways(sym(1))) 424s assert (isAlways(sym(-1))) 424s assert (~isAlways(sym(0))) 424s ***** shared x 424s syms x 424s ***** test 424s % in this case it is boolean 424s expr = x - x == 0; 424s assert (logical(expr)) 424s assert (isAlways(expr)) 424s % and both are logical type 424s assert (islogical(logical(expr))) 424s assert (islogical(isAlways(expr))) 424s ***** test 424s % structurally same and mathematically true 424s % (here expr should be sym, non-boolean) 424s expr = x == x; 424s assert (logical(expr)) 424s assert (isAlways(expr)) 424s %assert (~islogical(expr)) % FIXME: Issue #56 424s %assert (isa(expr, 'sym)) 424s ***** test 424s % structurally same and mathematically true 424s % (here expr should be sym, non-boolean) 424s expr = 1 + x == x + 1; 424s assert (logical(expr)) 424s assert (isAlways(expr)) 425s ***** test 425s % non-zero numbers are true 425s assert (isAlways(sym(1))) 425s assert (isAlways(sym(-10))) 425s assert (~isAlways(sym(0))) 425s ***** shared x, y 425s syms x y 425s ***** test 425s % structurally same and mathematically true 425s % (here expr should be sym, non-boolean) 425s expr = x*(1+y) == x*(y+1); 425s assert (logical(expr)) 425s assert (isAlways(expr)) 425s assert (islogical(isAlways(expr))) 425s ***** test 425s % Now for some differences 425s % simplest example from SymPy FAQ 425s expr = x*(1+y) == x+x*y; 425s assert (~logical(expr)) 425s assert (isAlways(expr)) 425s ***** test 425s % more differences 1, these don't simplify in sympy (as of 2016-01) 425s expr = (x+1)^2 == x*x + 2*x + 1; 425s assert (~logical(expr)) 425s assert (isAlways(expr)) 425s ***** test 425s % more differences 2 425s expr = sin(2*x) == 2*sin(x)*cos(x); 425s assert (~logical(expr)) 425s assert (isAlways(expr)) 425s ***** test 425s % more differences 3, false 425s expr = x*(x+y) == x^2 + x*y + 1; 425s assert (~logical(expr)) 425s assert (~isAlways(expr)) 425s assert (~isAlways(expr, 'unknown', 'error')) 425s ***** test 425s % logically not equal, math equal 425s exprn = x*(x+y) ~= x^2 + x*y; 425s assert (logical(exprn)) 425s assert (~isAlways(exprn)) 425s ***** test 425s % logically not equal, math not equal 425s exprn = x*(x+y) ~= x^2 + x*y + 1; 425s assert (logical(exprn)) 425s assert (isAlways(exprn)) 425s ***** test 425s % equal and not equal 425s e1 = sin(x)^2 + cos(x)^2 == 1; 425s e2 = sin(x)^2 + cos(x)^2 == 2; 425s assert (~logical(e1)) 425s assert (isAlways(e1)) 425s assert (~logical(e2)) 425s assert (~isAlways(e2)) 425s assert (~isAlways(e2, 'unknown', 'error')) 425s ***** error isAlways(x, 'unknown', 'kevin') 425s ***** error isAlways(x, 'unknown') 426s ***** error isAlways(x, 'kevin', 'true') 426s ***** error 426s a = [x*(x+y)==x^2+x*y x==y]; 426s b = isAlways(a, 'unknown', 'error'); 426s ***** error 426s a = x==y; 426s b = isAlways(a, 'unknown', 'error'); 426s ***** test 426s % array, unknown keyword 426s a = [x==x x==x+1 x==y x*(x+y)==x^2+x*y cos(x)^2+sin(x)^2==2]; 426s b = isAlways(a, 'unknown', false); 426s c = isAlways(a, 'unknown', 'false'); 426s expect = [true false false true false]; 426s assert (islogical(b)) 426s assert (isequal (b, expect)) 426s assert (isequal (c, expect)) 426s b = isAlways(a, 'unknown', true); 426s c = isAlways(a, 'unknown', 'true'); 426s expect = [true false true true false]; 426s assert (islogical(b)) 426s assert (isequal (b, expect)) 426s assert (isequal (c, expect)) 427s ***** test 427s % ineq 427s e = x*(x+y) <= x^2 + x*y + 1; 427s assert (~logical(e)) 427s assert (isAlways(e)) 427s e = x*(x+y) <= x^2 + x*y; 427s assert (~logical(e)) 427s assert (isAlways(e)) 427s 21 tests, 21 passed, 0 known failure, 0 skipped 427s [inst/@sym/trace.m] 427s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/trace.m 427s ***** test 427s % scalar 427s syms x 427s assert (isequal (trace(x), x)) 427s ***** test 427s syms x 427s A = [x 3; 2*x 5]; 427s assert (isequal (trace(A), x + 5)) 427s 2 tests, 2 passed, 0 known failure, 0 skipped 427s [inst/@sym/igamma.m] 427s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/igamma.m 427s ***** test 427s % mostly tested in @sym/gammainc 427s syms x 427s assert (isequal (igamma (2, x), gammainc(x, 2, 'upper'))) 427s ***** test 427s % unregularized 427s B = double (igamma (sym(3), 1)); 427s A = gammainc (1, 3, 'upper')*gamma (3); 427s assert (A, B, -2*eps) 427s ***** test 427s % something like a round trip: no igamma() 427s syms x a 427s f = igamma (a, x); 427s h = function_handle (f, 'vars', [a x]); 427s A = h (1.1, 2.2); 427s B = double (igamma (sym(11)/10, sym(22)/10)); 427s C = gammainc (2.2, 1.1, 'upper')*gamma(1.1); 427s assert (A, B, -10*eps) 427s assert (A, C, -10*eps) 427s 3 tests, 3 passed, 0 known failure, 0 skipped 427s [inst/@sym/equationsToMatrix.m] 427s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/equationsToMatrix.m 427s ***** test 427s syms x y z 427s [A, B] = equationsToMatrix ([x + y - z == 1, 3*x - 2*y + z == 3, 4*x - 2*y + z + 9 == 0], [x, y, z]); 427s a = sym ([1 1 -1; 3 -2 1; 4 -2 1]); 427s b = sym ([1; 3; -9]); 427s assert (isequal (A, a)) 427s assert (isequal (B, b)) 428s ***** test 428s syms x y z 428s 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]); 428s a = sym ([3 -3 -5; 4 -7 -3; 4 -9 -3]); 428s assert (isequal (A, a)) 428s ***** test 428s syms x y 428s [A, B] = equationsToMatrix ([3*x + 9*y - 5 == 0, -8*x - 3*y == -2]); 428s a = sym ([3 9; -8 -3]); 428s b = sym ([5; -2]); 428s assert (isequal (A, a)) 428s assert (isequal (B, b)) 428s ***** test 428s % override symvar order 428s syms x y 428s [A, B] = equationsToMatrix ([3*x + 9*y - 5 == 0, -8*x - 3*y == -2], [y x]); 428s a = sym ([9 3; -3 -8]); 428s b = sym ([5; -2]); 428s assert (isequal (A, a)) 428s assert (isequal (B, b)) 428s ***** test 428s syms x y z 428s [A, B] = equationsToMatrix ([x - 9*y + z == -5, -9*y*z == -5], [y, x]); 428s a = sym ([[-9 1]; -9*z 0]); 428s b = sym ([-5 - z; -5]); 428s assert (isequal (A, a)) 428s assert (isequal (B, b)) 429s ***** test 429s syms x y 429s [A, B] = equationsToMatrix (-6*x + 4*y == 5, 4*x - 4*y - 5, x, y); 429s a = sym ([-6 4; 4 -4]); 429s b = sym ([5; 5]); 429s assert (isequal (A, a)) 429s assert (isequal (B, b)) 429s ***** test 429s % vertical list of equations 429s syms x y 429s [A, B] = equationsToMatrix ([-6*x + 4*y == 5; 4*x - 4*y - 5], [x y]); 429s a = sym ([-6 4; 4 -4]); 429s b = sym ([5; 5]); 429s assert (isequal (A, a)) 429s assert (isequal (B, b)) 429s ***** test 429s syms x y 429s [A, B] = equationsToMatrix (5*x == 1, y, x - 6*y - 7, y); 429s a = sym ([0; 1; -6]); 429s b = sym ([1 - 5*x; 0; -x + 7]); 429s assert (isequal (A, a)) 429s assert (isequal (B, b)) 429s ***** error 429s syms x y 429s [A, B] = equationsToMatrix (x^2 + y^2 == 1, x - y + 1, x, y); 430s ***** test 430s % single equation 430s syms x 430s [A, B] = equationsToMatrix (3*x == 2, x); 430s a = sym (3); 430s b = sym (2); 430s assert (isequal (A, a)) 430s assert (isequal (B, b)) 430s ***** test 430s % single equation w/ symvar 430s syms x 430s [A, B] = equationsToMatrix (3*x == 2); 430s a = sym (3); 430s b = sym (2); 430s assert (isequal (A, a)) 430s assert (isequal (B, b)) 430s ***** error 430s syms x 430s equationsToMatrix (3*x == 2, [x x]) 430s 12 tests, 12 passed, 0 known failure, 0 skipped 430s [inst/@sym/columns.m] 430s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/columns.m 430s ***** test 430s a = sym([1 2 3]); 430s assert (columns(a) == 3) 430s ***** test 430s a = sym([1; 2]); 430s assert (columns(a) == 1) 430s 2 tests, 2 passed, 0 known failure, 0 skipped 430s [inst/@sym/tril.m] 430s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/tril.m 430s ***** test 430s syms x 430s assert (isequal (tril(x), x)) 430s ***** test 430s % with symbols 430s syms x 430s A = [x 2*x; 3*x 4*x]; 430s assert (isequal (tril(A), [x 0; 3*x 4*x])) 430s ***** test 430s % diagonal shifts 430s B = round(10*rand(3,4)); 430s A = sym(B); 430s assert (isequal (tril(A), tril(B))) 430s assert (isequal (tril(A,0), tril(B,0))) 430s assert (isequal (tril(A,1), tril(B,1))) 430s assert (isequal (tril(A,-1), tril(B,-1))) 431s ***** test 431s % double array pass through 431s B = round(10*rand(3,4)); 431s assert (isequal (tril(B,sym(1)), tril(B,1))) 431s assert (isa (tril(B,sym(1)), 'double')) 431s 4 tests, 4 passed, 0 known failure, 0 skipped 431s [inst/@sym/toeplitz.m] 431s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/toeplitz.m 431s ***** test 431s % rect 431s R = [10 20 40]; C = [10 30]; 431s A = sym(toeplitz(R,C)); 431s B = toeplitz(sym(R),sym(C)); 431s assert (isequal (A, B)) 431s R = [10 20]; C = [10 30 50]; 431s A = sym(toeplitz(R,C)); 431s B = toeplitz(sym(R),sym(C)); 431s assert (isequal (A, B)) 431s ***** test 431s % symbols 431s syms x y 431s R = [10 20 40]; C = [10 30]; 431s Rs = [10 x 40]; Cs = [10 y]; 431s A = toeplitz(R,C); 431s B = toeplitz(Rs,Cs); 431s assert (isequal (A, subs(B,[x,y],[20 30]))) 431s ***** test 431s % hermitian 431s syms a b c 431s A = [a b c; conj(b) a b; conj(c) conj(b) a]; 431s B = toeplitz([a,b,c]); 431s assert (isequal( A, B)) 431s ***** warning 431s % mismatch 431s syms x 431s B = toeplitz([10 x], [1 3 x]); 432s ***** warning 432s % scalar 432s B = toeplitz(sym(2), 3); 432s assert (isequal (B, sym(2))) 432s ***** test 432s % mismatch 432s syms x y 432s fprintf('\n one warning expected\n') % how to quiet this one? 432s A = toeplitz([10 2], [1 3 5]); 432s s = warning ('off', 'OctSymPy:toeplitz:diagconflict'); 432s B = toeplitz([10 x], [1 3 y]); 432s warning(s) 432s assert (isequal (A, subs(B, [x,y], [2 5]))) 432s 432s one warning expected 432s warning: toeplitz: column wins diagonal conflict 432s warning: called from 432s toeplitz at line 84 column 7 432s __test__ at line 6 column 4 432s test at line 682 column 11 432s /tmp/tmp.z6rOfyWbUA at line 2542 column 31 432s 432s 6 tests, 6 passed, 0 known failure, 0 skipped 432s [inst/@sym/lambertw.m] 432s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/lambertw.m 432s ***** test 432s % W(x)*exp(W(x)) == x 432s syms x 432s T = lambertw(x)*exp(lambertw(x)); 432s T = double (subs (T, x, 10)); 432s assert (isequal (T, 10)); 432s ***** test 432s % k, x not x, k to match SMT 432s syms x 432s T = lambertw(2, x)*exp(lambertw(2, x)); 432s T = double (subs (T, x, 10)); 432s assert (abs(T - 10) < 1e-15) 432s ***** assert (isequal (lambertw(sym(0)), sym(0))) 432s ***** assert ( isequal (lambertw (-1/exp(sym(1))), -sym(1))) 432s ***** assert ( isequal (lambertw (0, -1/exp(sym(1))), -sym(1))) 432s ***** assert ( isequal (lambertw (-1, -1/exp(sym(1))), -sym(1))) 432s ***** xtest 432s % W(x)*exp(W(x)) == x; FIXME: a failure in SymPy? 432s syms x 432s T = simplify(lambertw(x)*exp(lambertw(x))); 432s assert (isequal (T, x)) 432s !!!!! known failure 432s assert (isequal (T, x)) failed 432s ***** assert (abs (lambertw(pi) - double(lambertw(sym(pi)))) < 5*eps) 432s ***** assert (abs (lambertw(-1, 5) - double(lambertw(-1, sym(5)))) < 5*eps) 432s ***** assert (abs (lambertw(2, 2) - double(lambertw(2, sym(2)))) < 5*eps) 432s ***** test 432s % round trip 432s syms x k 432s A = lambertw (5); 432s f = lambertw (x); 432s h = function_handle (f); 432s B = h (5); 432s assert (A, B) 432s 432s A = lambertw (3, 5); 432s f = lambertw (k, x); 432s h = function_handle (f); 432s B = h (3, 5); 432s assert (A, B) 432s 11 tests, 10 passed, 1 known failure, 0 skipped 432s [inst/@sym/sympy.m] 432s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/sympy.m 432s ***** assert (strcmp (sympy (sym(pi)), 'pi')) 433s ***** assert (strcmp (sympy (sym(1)), 'Integer(1)')) 433s ***** assert (strcmp (sympy (sym(2)/3), 'Rational(2, 3)')) 433s ***** assert (strcmp (sympy (sym('x')), 'Symbol(''x'')')) 433s ***** test 433s x = sym('x'); 433s assert (isequal (sym(sympy(x)), x)) 433s :18: SyntaxWarning: invalid escape sequence '\(' 433s 5 tests, 5 passed, 0 known failure, 0 skipped 433s [inst/@sym/lt.m] 433s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/lt.m 433s ***** test 433s % simple 433s x = sym(1); y = sym(1); e = x < y; 433s assert (~logical (e)) 433s x = sym(1); y = sym(2); e = x < y; 433s assert (logical (e)) 433s ***** test 433s % mix sym and double 433s x = sym(1); y = 1; e = x < y; 433s assert (~logical (e)) 433s x = sym(1); y = 2; e = x < y; 433s assert (logical (e)) 433s x = 1; y = sym(1); e = x < y; 433s assert (~logical (e)) 433s x = 1; y = sym(2); e = x < y; 433s assert (logical (e)) 433s ***** test 433s % Type of the output is sym or logical? 433s % FIXME: in current version, they are sym 433s x = sym(1); y = sym(1); e1 = x < y; 433s x = sym(1); y = sym(2); e2 = x < y; 433s %assert (islogical (e1)) 433s %assert (islogical (e2)) 433s assert (isa (e1, 'sym')) 433s assert (isa (e2, 'sym')) 433s ***** test 433s % ineq w/ symbols 433s syms x y 433s e = x < y; 433s assert (~islogical (e)) 433s assert (isa (e, 'sym')) 433s ***** test 433s % array -- array 433s syms x 433s a = sym([1 3 3 2*x]); 433s b = sym([2 x 3 10]); 433s e = a < b; 433s assert (isa (e, 'sym')) 433s assert (logical (e(1))) 433s assert (isa (e(2), 'sym')) 433s assert (isequal (e(2), 3 < x)) 433s assert (~logical (e(3))) 433s assert (isa (e(4), 'sym')) 433s assert (isequal (e(4), 2*x < 10)) 433s ***** test 433s % array -- scalar 433s syms x oo 433s a = sym([1 x oo]); 433s b = sym(3); 433s e = a < b; 433s assert (isa (e, 'sym')) 433s assert (logical (e(1))) 433s assert (isa (e(2), 'sym')) 433s assert (isequal (e(2), x < 3)) 433s assert (~logical (e(3))) 433s ***** test 433s % scalar -- array 433s syms x oo 433s a = sym(1); 433s b = sym([2 x -oo]); 433s e = a < b; 433s assert (isa (e, 'sym')) 433s assert (logical (e(1))) 433s assert (isa (e(2), 'sym')) 433s assert (isequal (e(2), 1 < x)) 433s assert (~logical (e(3))) 433s ***** test 433s % ineq w/ nan 433s syms x 433s snan = sym(nan); 433s e = x < snan; 433s assert (~logical (e)) 433s e = snan < x; 433s assert (~logical (e)) 433s b = [sym(0) x]; 433s e = b < snan; 433s assert (isequal (e, [false false])) 433s ***** test 433s % oo 433s syms oo x 433s e = oo < x; 433s assert (isa (e, 'sym')) 433s assert (strcmp (strtrim (disp (e, 'flat')), 'oo < x')) 433s ***** test 433s % sympy true matrix 433s a = sym([1 3 3]); 433s b = sym([2 4 1]); 433s e = a < b; 433s %assert (~isa (e, 'sym')) 433s %assert (islogical (e)) 433s assert (isequal (e, [true true false])) 434s ***** test 434s % oo, finite real variables 434s syms oo 434s syms z real 434s assumeAlso(z, 'finite') 434s e = -oo < z; 434s assert (isequal (e, sym(true))) 434s e = z < oo; 434s assert (isequal (e, sym(true))) 434s ***** test 434s % -oo, positive var (known failure w/ sympy 0.7.6.x) 434s syms oo 434s syms z positive 434s e = -oo < z; 434s assert (logical (e)) 434s assert (isequal (e, sym(true))) 434s ***** test 434s % positive 434s syms z positive 434s e = -1 < z; 434s assert (isequal (e, sym(true))) 434s ***** test 434s syms oo 434s z = sym('z', 'negative'); 434s e = z < oo; 434s assert (isequal (e, sym(true))) 434s 14 tests, 14 passed, 0 known failure, 0 skipped 434s [inst/@sym/hypot.m] 434s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/hypot.m 434s ***** assert (isequal (hypot (sym(3), 4), sym(5))) 434s ***** test 434s % compare to @double (note Matlab hypot only takes 2 inputs) 434s A = hypot (hypot ([1 2 3], [4 5 6]), [7 8 9]); 434s B = double (hypot (sym([1 2 3]), [4 5 6], [7 8 9])); 434s assert (A, B, -eps) 434s ***** test 434s % compare to @double, with complex 434s A = hypot ([1+2i 3+4i], [1 3+1i]); 434s B = double (hypot (sym([1+2i 3+4i]), [1 3+1i])); 434s assert (A, B, -eps) 434s ***** test 434s % matrices 434s x = sym([1 -2; 0 3]); 434s y = sym([0 0; 8 4]); 434s A = hypot (x, y); 434s B = sym([1 2; 8 5]); 434s assert (isequal (A, B)) 435s 4 tests, 4 passed, 0 known failure, 0 skipped 435s [inst/@sym/nnz.m] 435s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/nnz.m 435s ***** assert (nnz (sym ([1])) == 1) 435s ***** assert (nnz (sym ([0])) == 0) 435s ***** assert (nnz (sym ([])) == 0) 435s ***** assert (nnz (sym ([1 0; 0 3])) == 2) 435s ***** test 435s syms x 435s assert (nnz ([x 0]) == 1) 435s ***** assert (nnz (sym (true)) == 1) 435s ***** assert (nnz (sym (false)) == 0) 435s ***** assert (nnz (sym (inf)) == 1) 435s ***** assert (nnz (sym (nan)) == 1) 435s 9 tests, 9 passed, 0 known failure, 0 skipped 435s [inst/@sym/hessian.m] 435s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/hessian.m 435s ***** error hessian (sym(1), 2, 3) 435s ***** error hessian ([sym(1) sym(2)]) 435s ***** shared x,y,z 435s syms x y z 435s ***** test 435s % 1D 435s f = x^2; 435s assert (isequal (hessian(f), diff(f,x,x))) 435s assert (isequal (hessian(f,{x}), diff(f,x,x))) 435s assert (isequal (hessian(f,x), diff(f,x,x))) 435s ***** test 435s % const 435s f = sym(1); 435s g = sym(0); 435s assert (isequal (hessian(f), g)) 435s assert (isequal (hessian(f,x), g)) 435s ***** test 435s % double const 435s f = 1; 435s g = sym(0); 435s assert (isequal (hessian(f,x), g)) 435s ***** test 435s % linear 435s f = 42*x; 435s g = sym(0); 435s assert (isequal (hessian(f), g)) 435s assert (isequal (hessian(f,x), g)) 435s ***** test 435s % linear 435s f = 42*x - sym('a')*y; 435s g = [0 0; 0 0]; 435s assert (isequal (hessian(f, {x y}), g)) 435s ***** test 435s % 2d 435s f = x*cos(y); 435s g = [0 -sin(y); -sin(y) -f]; 435s assert (isequal (hessian(f), g)) 435s assert (isequal (hessian(f, {x y}), g)) 435s ***** test 435s % 3d 435s f = x*cos(z); 435s Hexp = [0 0 -sin(z); sym(0) 0 0; -sin(z) 0 -f]; 435s H = hessian(f, {x y z}); 435s assert (isequal (H, Hexp)) 435s 9 tests, 9 passed, 0 known failure, 0 skipped 435s [inst/@sym/polylog.m] 435s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/polylog.m 435s ***** assert (isequal (polylog (sym('s'), 0), sym(0))) 435s ***** assert (isequal (double (polylog (1, sym(-1))), -log(2))) 435s ***** assert (isequal (double (polylog (0, sym(2))), -2)) 436s ***** assert (isequal (double (polylog (-1, sym(2))), 2)) 436s ***** assert (isequal (double (polylog (-2, sym(3))), -1.5)) 436s ***** assert (isequal (double (polylog (-3, sym(2))), 26)) 436s ***** assert (isequal (double (polylog (-4, sym(3))), -15)) 436s ***** assert (isequal (double (polylog (1, sym(1)/2)), log(2))) 436s ***** test 436s % round trip 436s syms s z 436s f = polylog (s, z); 436s h = function_handle (f, 'vars', [s z]); 436s A = h (1.1, 2.2); 436s B = polylog (1.1, 2.2); 436s assert (A, B) 436s 9 tests, 9 passed, 0 known failure, 0 skipped 436s [inst/@sym/sinh.m] 436s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/sinh.m 436s ***** error sinh (sym(1), 2) 436s ***** assert (isequaln (sinh (sym(nan)), sym(nan))) 436s ***** shared x, d 436s d = 1; 436s x = sym('1'); 436s ***** test 436s f1 = sinh(x); 436s f2 = sinh(d); 436s assert( abs(double(f1) - f2) < 1e-15 ) 436s ***** test 436s D = [d d; d d]; 436s A = [x x; x x]; 436s f1 = sinh(A); 436s f2 = sinh(D); 436s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 436s ***** test 436s % round trip 436s y = sym('y'); 436s A = sinh (d); 436s f = sinh (y); 436s h = function_handle (f); 436s B = h (d); 436s assert (A, B, -eps) 436s 5 tests, 5 passed, 0 known failure, 0 skipped 436s [inst/@sym/factorial.m] 436s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/factorial.m 436s ***** error factorial (sym(1), 2) 436s ***** xtest 436s assert (isequaln (factorial (sym(nan)), sym(nan))) 436s !!!!! known failure 436s assert (isequaln (factorial (sym (nan)), sym (nan))) failed 436s ***** shared x, d 436s d = 1; 436s x = sym('1'); 436s ***** test 436s f1 = factorial(x); 436s f2 = factorial(d); 436s assert( abs(double(f1) - f2) < 1e-15 ) 436s ***** test 436s D = [d d; d d]; 436s A = [x x; x x]; 436s f1 = factorial(A); 436s f2 = factorial(D); 436s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 436s ***** test 436s % round trip 436s y = sym('y'); 436s A = factorial (d); 436s f = factorial (y); 436s h = function_handle (f); 436s B = h (d); 436s assert (A, B, -eps) 436s 5 tests, 4 passed, 1 known failure, 0 skipped 436s [inst/@sym/acoth.m] 436s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/acoth.m 436s ***** error acoth (sym(1), 2) 436s ***** assert (isequaln (acoth (sym(nan)), sym(nan))) 436s ***** shared x, d 436s d = 2; 436s x = sym('2'); 436s ***** test 436s f1 = acoth(x); 436s f2 = acoth(d); 436s assert( abs(double(f1) - f2) < 1e-15 ) 436s ***** test 436s D = [d d; d d]; 436s A = [x x; x x]; 436s f1 = acoth(A); 436s f2 = acoth(D); 436s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 436s ***** test 436s % round trip 436s y = sym('y'); 436s A = acoth (d); 436s f = acoth (y); 436s h = function_handle (f); 436s B = h (d); 436s assert (A, B, -eps) 436s 5 tests, 5 passed, 0 known failure, 0 skipped 436s [inst/@sym/sech.m] 436s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/sech.m 436s ***** error sech (sym(1), 2) 436s ***** assert (isequaln (sech (sym(nan)), sym(nan))) 436s ***** shared x, d 436s d = 1; 436s x = sym('1'); 436s ***** test 436s f1 = sech(x); 436s f2 = sech(d); 436s assert( abs(double(f1) - f2) < 1e-15 ) 436s ***** test 436s D = [d d; d d]; 436s A = [x x; x x]; 436s f1 = sech(A); 436s f2 = sech(D); 436s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 437s ***** test 437s % round trip 437s y = sym('y'); 437s A = sech (d); 437s f = sech (y); 437s h = function_handle (f); 437s B = h (d); 437s assert (A, B, -eps) 437s 5 tests, 5 passed, 0 known failure, 0 skipped 437s [inst/@sym/eye.m] 437s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/eye.m 437s ***** test 437s y = eye(sym(2)); 437s x = [1 0; 0 1]; 437s assert( isequal( y, sym(x))) 437s ***** test 437s y = eye(sym(2), 1); 437s x = [1; 0]; 437s assert( isequal( y, sym(x))) 437s ***** test 437s y = eye(sym(1), 2); 437s x = [1 0]; 437s assert( isequal( y, sym(x))) 437s ***** test 437s y = eye (sym([2 3])); 437s x = sym (eye ([2 3])); 437s assert (isequal (y, x)) 437s ***** assert( isa( eye(sym(2), 'double'), 'double')) 437s ***** assert( isa( eye(3, sym(3), 'single') , 'single')) 437s ***** assert( isa( eye(3, sym(3)), 'sym')) 437s ***** assert( isa( eye(3, sym(3), 'sym'), 'sym')) 437s ***** xtest 437s % Issue #13 437s assert( isa( eye(3, 3, 'sym'), 'sym')) 437s !!!!! known failure 437s invalid data type specified 437s 9 tests, 8 passed, 1 known failure, 0 skipped 437s [inst/@sym/gt.m] 437s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/gt.m 437s ***** test 437s % simple 437s x = sym(1); y = sym(1); e = x > y; 437s assert (~logical (e)) 437s x = sym(1); y = sym(2); e = x > y; 437s assert (~logical (e)) 437s ***** test 437s % array -- array 437s syms x 437s a = sym([1 3 3 2*x]); 437s b = sym([2 x 3 10]); 437s e = a > b; 437s assert (isa (e, 'sym')) 437s assert (~logical (e(1))) 437s assert (isa (e(2), 'sym')) 437s assert (isequal (e(2), 3 > x)) 437s assert (~logical (e(3))) 437s assert (isa (e(4), 'sym')) 437s assert (isequal (e(4), 2*x > 10)) 437s 2 tests, 2 passed, 0 known failure, 0 skipped 437s [inst/@sym/intersect.m] 437s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/intersect.m 437s ***** test 437s A = sym([1 2 3]); 437s B = sym([1 2 4]); 437s C = intersect(A, B); 437s D = sym([1 2]); 437s assert (isequal (C, D)) 437s ***** test 437s % one nonsym 437s A = sym([1 2 3]); 437s B = [1 2 4]; 437s C = intersect(A, B); 437s D = sym([1 2]); 437s assert (isequal (C, D)) 437s ***** test 437s % empty 437s A = sym([1 2 3]); 437s C = intersect(A, A); 437s assert (isequal (C, A)) 437s ***** test 437s % empty input 437s A = sym([1 2]); 437s C = intersect(A, []); 437s assert (isequal (C, sym([]))) 438s ***** test 438s % scalar 438s syms x 438s assert (isequal (intersect([x 1], x), x)) 438s assert (isequal (intersect(x, x), x)) 438s ***** test 438s A = interval(sym(1), 3); 438s B = interval(sym(2), 5); 438s C = intersect(A, B); 438s assert( isequal( C, interval(sym(2), 3))) 438s 6 tests, 6 passed, 0 known failure, 0 skipped 438s [inst/@sym/symprod.m] 438s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/symprod.m 438s ***** error symprod (sym(1), 2, 3, 4, 5) 438s ***** test 438s % simple 438s syms n 438s assert (isequal (symprod(n, n, 1, 10), factorial(sym(10)))) 438s assert (isequal (symprod(n, n, sym(1), sym(10)), factorial(10))) 438s ***** test 438s % one input 438s syms n 438s f = symprod (n); 438s g = factorial (n); 438s assert (isequal (f, g)) 438s f = symprod (2*n); 438s g = 2^n * factorial (n); 438s assert (isequal (f, g)) 438s ***** test 438s % constant input 438s f = symprod (sym(2)); 438s syms x 438s g = 2^x; 438s assert (isequal (f, g)) 438s ***** test 438s % two inputs 438s syms n 438s f = symprod (2*n, n); 438s g = 2^n * factorial (n); 438s assert (isequal (f, g)) 438s ***** test 438s % two inputs, second is range 438s syms n 438s f = symprod (n, [1 6]); 438s g = 720; 438s assert (isequal (f, g)) 438s f = symprod (n, [sym(1) 6]); 438s g = 720; 438s assert (isequal (f, g)) 438s f = symprod (2*n, [1 6]); 438s g = sym(2)^6*720; 438s assert (isequal (f, g)) 438s ***** test 438s % three inputs, last is range 438s syms n 438s f = symprod (2*n, n, [1 4]); 438s g = sym(384); 438s assert (isequal (f, g)) 438s f = symprod (2*n, n, [sym(1) 4]); 438s g = sym(384); 438s assert (isequal (f, g)) 438s f = symprod (2, n, [sym(1) 4]); 438s g = sym(16); 438s assert (isequal (f, g)) 439s ***** test 439s % three inputs, no range 439s syms n 439s f = symprod (2*n, 1, 4); 439s g = sym(384); 439s assert (isequal (f, g)) 439s f = symprod (5, sym(1), 3); 439s g = sym(125); 439s assert (isequal (f, g)) 439s ***** test 439s % infinite product 439s syms a n oo 439s zoo = sym('zoo'); 439s assert (isequal (symprod(a, n, 1, oo), a^oo)) 439s assert (isequal (symprod(a, n, 1, inf), a^oo)) 439s 9 tests, 9 passed, 0 known failure, 0 skipped 439s [inst/@sym/round.m] 439s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/round.m 439s ***** test 439s d = 3/2; 439s x = sym('3/2'); 439s f1 = round(x); 439s f2 = round(d); 439s assert (isequal (f1, f2)) 439s ***** xtest 439s % ideally rounding direction would match Octave 439s d = 5/2; 439s x = sym('5/2'); 439s f1 = round(x); 439s f2 = round(d); 439s assert (isequal (f1, f2)) 439s !!!!! known failure 439s assert (isequal (f1, f2)) failed 439s ***** test 439s D = [1.1 4.6; -3.4 -8.9]; 439s A = [sym(11)/10 sym(46)/10; sym(-34)/10 sym(-89)/10]; 439s f1 = round(A); 439s f2 = round(D); 439s assert( isequal (f1, f2)) 439s ***** test 439s d = sym(-11)/10; 439s c = -1; 439s assert (isequal (round (d), c)) 439s ***** test 439s d = sym(-19)/10; 439s c = -2; 439s assert (isequal (round (d), c)) 439s ***** test 439s d = 7j/2; 439s x = sym(7j)/2; 439s f1 = round (x); 439s f2 = round (d); 439s assert (isequal (f1, f2)) 439s ***** test 439s d = 5/3 - 4j/7; 439s x = sym(5)/3 - sym(4j)/7; 439s f1 = round (x); 439s f2 = round (d); 439s assert (isequal (f1, f2)) 440s 7 tests, 6 passed, 1 known failure, 0 skipped 440s [inst/@sym/ellipticCE.m] 440s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/ellipticCE.m 440s ***** error ellipticCE (sym (1), 2) 440s ***** assert (isequal (ellipticCE (sym (0)), sym (1))) 440s ***** assert (isequal (ellipticCE (sym (1)), sym (pi)/2)) 440s ***** assert (double (ellipticCE (sym (pi)/4)), 1.482786927, 10e-10) 440s ***** assert (double (ellipticCE (sym (pi)/2)), 1.775344699, 10e-10) 440s 5 tests, 5 passed, 0 known failure, 0 skipped 440s [inst/@sym/simplify.m] 440s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/simplify.m 440s ***** shared x,p,q 440s syms x 440s p = x^2 + x + 1; 440s q = horner (p); 440s ***** assert(~isequal( p - q, 0)) 440s ***** assert(isequal( simplify(p - q), 0)) 440s 2 tests, 2 passed, 0 known failure, 0 skipped 440s [inst/@sym/all.m] 440s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/all.m 440s ***** test 440s % matrix 440s a = [0 3; 1 2]; 440s s = sym (a); 440s assert (isequal (all (s), all (a))) 440s assert (isequal (all (s,1), all (a,1))) 440s assert (isequal (all (s,2), all (a,2))) 440s ***** test 440s % vector 440s a = [1 2 3]; 440s s = sym (a); 440s assert (isequal (all (s), all (a))) 440s assert (isequal (all (s,1), all (a,1))) 440s assert (isequal (all (s,2), all (a,2))) 440s ***** test 440s % should fail on symbols 440s syms x 440s s = [1 2 x]; 440s try 440s all (s) 440s waserr = false; 440s catch 440s waserr = true; 440s end 440s assert (waserr) 440s 3 tests, 3 passed, 0 known failure, 0 skipped 440s [inst/@sym/airy.m] 440s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/airy.m 440s ***** test 440s syms z 440s a = airy(0, z); 440s ap = airy(1, z); 440s assert (isequal (diff (a), ap)) 440s assert (isequal (diff (ap), z*a)) 440s ***** test 440s syms z 440s b = airy(2, z); 440s bp = airy(3, z); 440s assert (isequal (diff (b), bp)) 440s assert (isequal (diff (bp), z*b)) 440s ***** test 440s % default to k=0 440s syms z 440s a = airy(0, z); 440s a2 = airy(z); 440s assert (isequal (a, a2)) 441s ***** error airy(0, sym('x'), 2) 441s ***** error airy(4, sym('z')) 441s ***** error airy(-1, sym('z')) 441s ***** test 441s % symbolic k 441s syms z 441s b1 = airy(2, z); 441s b2 = airy(sym(2), z); 441s assert (isequal (b1, b2)) 441s ***** test 441s % doubles, relative error 441s X = [1 2 pi; 4i 5 6+6i]; 441s Xs = sym(X); 441s for k = 0:3 441s A = double(airy(k, Xs)); 441s B = airy(k, X); 441s assert (all (all (abs(A - B) < 500*eps*abs(A)))) 441s end 441s ***** test 441s % round-trip 441s syms x 441s for k = 0:3 441s A = airy(k, 10); 441s q = airy(k, x); 441s h = function_handle(q); 441s B = h(10); 441s assert (abs(A-B) < 500*eps*abs(A)) 441s end 441s 9 tests, 9 passed, 0 known failure, 0 skipped 441s [inst/@sym/besselk.m] 441s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/besselk.m 441s ***** test 441s X = [1 2 3; 4 5 6]; 441s ns = [sym(0) 1 -2; sym(1)/2 -sym(3)/2 pi]; 441s n = double(ns); 441s A = double(besselk(ns, X)); 441s B = besselk(n, X); 441s assert (all (all (abs (A - B) < 2*eps*abs(A)))) 442s ***** test 442s % roundtrip 442s syms x 442s A = besselk(2, 10); 442s q = besselk(2, x); 442s h = function_handle(q); 442s B = h(10); 442s assert (abs (A - B) <= eps*abs(A)) 442s ***** error besselk(sym('x')) 442s 3 tests, 3 passed, 0 known failure, 0 skipped 442s [inst/@sym/minus.m] 442s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/minus.m 442s ***** test 442s % scalar 442s syms x 442s assert (isa (x-1, 'sym')) 442s assert (isa (x-x, 'sym')) 442s assert (isequal (x-x, sym(0))) 442s ***** test 442s % matrices 442s D = [0 1; 2 3]; 442s A = sym(D); 442s DZ = D - D; 442s assert (isequal ( A - D , DZ )) 442s assert (isequal ( A - A , DZ )) 442s assert (isequal ( D - A , DZ )) 442s assert (isequal ( A - 2 , D - 2 )) 442s assert (isequal ( 4 - A , 4 - D )) 443s 2 tests, 2 passed, 0 known failure, 0 skipped 443s [inst/@sym/cross.m] 443s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/cross.m 443s ***** error cross (sym(1), 2, 3) 443s ***** test 443s a = sym([1; 0; 0]); 443s b = sym([0; 1; 0]); 443s c = cross(a, b); 443s assert (isequal (c, sym([0; 0; 1]))) 443s ***** test 443s syms x 443s a = sym([x; 0; 0]); 443s b = sym([0; 1; 0]); 443s c = cross(a, b); 443s assert (isequal (c, sym([0; 0; x]))) 443s 3 tests, 3 passed, 0 known failure, 0 skipped 443s [inst/@sym/horzcat.m] 443s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/horzcat.m 443s ***** test 443s % basic 443s syms x 443s A = [x x]; 443s B = horzcat(x, x); 443s C = horzcat(x, x, x); 443s assert (isa (A, 'sym')) 443s assert (isa (B, 'sym')) 443s assert (isa (C, 'sym')) 443s assert (isequal (size(A), [1 2])) 443s assert (isequal (size(B), [1 2])) 443s assert (isequal (size(C), [1 3])) 443s ***** test 443s % basic, part 2 443s syms x 443s A = [x 1]; 443s B = [1 x]; 443s C = [1 2 x]; 443s assert (isa (A, 'sym')) 443s assert (isa (B, 'sym')) 443s assert (isa (C, 'sym')) 443s assert (isequal (size(A), [1 2])) 443s assert (isequal (size(B), [1 2])) 443s assert (isequal (size(C), [1 3])) 443s ***** test 443s % row vectors 443s a = [sym(1) 2]; 443s b = [sym(3) 4]; 443s assert (isequal ( [a b] , [1 2 3 4] )) 443s assert (isequal ( [a 3 4] , [1 2 3 4] )) 443s assert (isequal ( [3 4 a] , [3 4 1 2] )) 443s assert (isequal ( [a [3 4]] , [1 2 3 4] )) 443s assert (isequal ( [a sym(3) 4] , [1 2 3 4] )) 443s assert (isequal ( [a [sym(3) 4]] , [1 2 3 4] )) 443s ***** test 443s % col vectors 443s a = [sym(1); 2]; 443s b = [sym(3); 4]; 443s assert (isequal ( [a b] , [1 3; 2 4] )) 443s assert (isequal ( [a b a] , [1 3 1; 2 4 2] )) 444s ***** test 444s % empty vectors 444s v = sym(1); 444s a = [v []]; 444s assert (isequal (a, v)) 444s a = [[] v []]; 444s assert (isequal (a, v)) 444s a = [v [] []]; 444s assert (isequal (a, v)) 444s ***** test 444s % more empty vectors 444s v = [sym(1) sym(2)]; 444s q = sym(ones(1, 0)); 444s assert (isequal ([v q], v)) 444s ***** error 444s v = [sym(1) sym(2)]; 444s q = sym(ones(3, 0)); 444s w = horzcat(v, q); 444s ***** test 444s % issue #700 444s A = sym ([1 2]); 444s B = simplify (A); 444s assert (isequal ([B A], [A B])) 444s 8 tests, 8 passed, 0 known failure, 0 skipped 444s [inst/@sym/diff.m] 444s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/diff.m 444s ***** shared x,y,z 444s syms x y z 444s ***** test 444s % basic 444s assert(logical( diff(sin(x)) - cos(x) == 0 )) 444s assert(logical( diff(sin(x),x) - cos(x) == 0 )) 444s assert(logical( diff(sin(x),x,x) + sin(x) == 0 )) 444s ***** test 444s % these fail when doubles are not converted to sym 444s assert(logical( diff(sin(x),x,2) + sin(x) == 0 )) 444s assert(logical( diff(sym(1),x) == 0 )) 444s assert(logical( diff(1,x) == 0 )) 444s assert(logical( diff(pi,x) == 0 )) 444s ***** test 444s % symbolic diff of const (w/o variable) fails in sympy, but we work around 444s assert (isequal (diff(sym(1)), sym(0))) 444s ***** test 444s % nth symbolic diff of const 444s assert (isequal (diff(sym(1), 2), sym(0))) 444s assert (isequal (diff(sym(1), sym(1)), sym(0))) 444s ***** test 444s % octave's vector difference still works 444s assert(isempty(diff(1))) 444s assert((diff([2 6]) == 4)) 444s ***** test 444s % other forms 444s f = sin(x); 444s g = diff(f,x,2); 444s assert (isequal (diff(f,2), g)) 444s assert (isequal (diff(f,sym(2)), g)) 444s g = diff(f,x); 444s assert (isequal (diff(f), g)) 444s assert (isequal (diff(f,1), g)) 445s ***** test 445s % old SMT supported (still does?) the 'n' before the 'x' 445s % we might remove this someday, no longer seems documented in SMT 445s f = sin(x); 445s g = diff(f,x,2); 445s assert (isequal (diff(f,2,x), g)) 445s assert (isequal (diff(f,sym(2),x), g)) 445s g = diff(f,x); 445s assert (isequal (diff(f,1,x), g)) 445s ***** test 445s % matrix 445s A = [x sin(x); x*y 10]; 445s B = [1 cos(x); y 0]; 445s assert(isequal(diff(A,x),B)) 445s ***** test 445s % bug: use symvar 445s a = x*y; 445s b = diff(a); 445s assert (isequal (b, y)) 445s ***** test 445s % bug: symvar should be used on the matrix, not comp-by-comp 445s a = [x y x*x]; 445s b = diff(a); 445s assert (~isequal (b(2), 1)) 445s assert (isequal (b, [1 0 2*x])) 445s b = diff(a,1); 445s assert (~isequal (b(2), 1)) 445s assert (isequal (b, [1 0 2*x])) 445s 10 tests, 10 passed, 0 known failure, 0 skipped 445s [inst/@sym/numel.m] 445s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/numel.m 445s ***** test 445s a = sym([1 2 3]); 445s assert(numel(a) == 3); 445s ***** test 445s % 2D array 445s a = sym([1 2 3; 4 5 6]); 445s assert(numel(a) == 6); 445s ***** test 445s % empty 445s a = sym([]); 445s assert(numel(a) == 0); 445s 3 tests, 3 passed, 0 known failure, 0 skipped 445s [inst/@sym/acosh.m] 445s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/acosh.m 445s ***** error acosh (sym(1), 2) 445s ***** assert (isequaln (acosh (sym(nan)), sym(nan))) 445s ***** shared x, d 445s d = 1; 445s x = sym('1'); 445s ***** test 445s f1 = acosh(x); 445s f2 = acosh(d); 445s assert( abs(double(f1) - f2) < 1e-15 ) 445s ***** test 445s D = [d d; d d]; 445s A = [x x; x x]; 445s f1 = acosh(A); 445s f2 = acosh(D); 445s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 445s ***** test 445s % round trip 445s y = sym('y'); 445s A = acosh (d); 445s f = acosh (y); 445s h = function_handle (f); 445s B = h (d); 445s assert (A, B, -eps) 445s 5 tests, 5 passed, 0 known failure, 0 skipped 445s [inst/@sym/repmat.m] 445s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/repmat.m 445s ***** test 445s % simple 445s syms x 445s A = [x x x; x x x]; 445s assert (isequal (repmat(x, 2, 3), A)) 445s ***** test 445s % block cf double 445s A = [1 2 3; 4 5 6]; 445s B = sym(A); 445s C = repmat(A, 2, 3); 445s D = repmat(B, 2, 3); 445s assert (isequal (C, D)) 446s ***** test 446s % empty 446s A = repmat(sym([]), 2, 3); 446s assert (isempty(A)); 446s assert (isequal (size(A), [0 0])) 446s ***** test 446s % more empties 446s A = repmat(sym(pi), [0 0]); 446s assert (isequal (size(A), [0 0])) 446s A = repmat(sym(pi), [0 3]); 446s assert (isequal (size(A), [0 3])) 446s A = repmat(sym(pi), [2 0]); 446s assert (isequal (size(A), [2 0])) 446s 4 tests, 4 passed, 0 known failure, 0 skipped 446s [inst/@sym/ellipticCK.m] 446s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/ellipticCK.m 446s ***** error ellipticCK (sym (1), 2) 446s ***** assert (double (ellipticCK (sym (1)/2)), 1.8541, 10e-5) 446s ***** assert (double (ellipticCK (sym (101)/10)), 0.812691836806976, -3*eps) 446s ***** assert (isequal (ellipticCK (sym (1)), sym(pi)/2)) 446s 4 tests, 4 passed, 0 known failure, 0 skipped 446s [inst/@sym/erfinv.m] 446s >>>>> /tmp/autopkgtest.Hm10sW/build.g3l/src/inst/@sym/erfinv.m 446s ***** error erfinv (sym(1), 2) 446s ***** assert (isequaln (erfinv (sym(nan)), sym(nan))) 446s ***** shared x, d 446s d = 1/2; 446s x = sym('1/2'); 446s ***** test 446s f1 = erfinv(x); 446s f2 = erfinv(d); 446s assert( abs(double(f1) - f2) < 1e-15 ) 446s ***** test 446s D = [d d; d d]; 446s A = [x x; x x]; 446s f1 = erfinv(A); 446s f2 = erfinv(D); 446s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 446s ***** test 446s % round trip 446s y = sym('y'); 446s A = erfinv (d); 446s f = erfinv (y); 446s h = function_handle (f); 446s B = h (d); 446s assert (A, B, -eps) 446s 5 tests, 5 passed, 0 known failure, 0 skipped 446s Checking C++ files ... 446s 447s Done running the unit tests. 447s Summary: 2401 tests, 2370 passed, 30 known failures, 0 skipped 447s Some tests failed. Giving up... 447s autopkgtest [01:24:40]: test command1: -----------------------] 448s command1 FAIL non-zero exit status 1 448s autopkgtest [01:24:41]: test command1: - - - - - - - - - - results - - - - - - - - - - 448s autopkgtest [01:24:41]: @@@@@@@@@@@@@@@@@@@@ summary 448s command1 FAIL non-zero exit status 1 457s flock: timeout while waiting to get lock 457s Creating nova instance adt-oracular-i386-octave-symbolic-20240603-011711-juju-7f2275-prod-proposed-migration-environment-3-a69af571-5ad4-4078-b528-c274ea3944e6 from image adt/ubuntu-oracular-amd64-server-20240602.img (UUID bf7f0902-7bef-4722-b812-8bedce4dd7ad)...