0s autopkgtest [10:21:39]: starting date and time: 2024-06-16 10:21:39+0000 0s autopkgtest [10:21:39]: git checkout: 433ed4cb Merge branch 'skia/nova_flock' into 'ubuntu/5.34+prod' 0s autopkgtest [10:21:39]: host juju-7f2275-prod-proposed-migration-environment-3; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.54ul7tc4/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:sympy --apt-upgrade octave-symbolic --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=sympy/1.12.1-1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-3@lcy02-81.secgroup --name adt-oracular-amd64-octave-symbolic-20240616-102138-juju-7f2275-prod-proposed-migration-environment-3-d998726b-14fe-476c-8c8c-c86c7a524d76 --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/ 80s autopkgtest [10:22:59]: testbed dpkg architecture: amd64 80s autopkgtest [10:22:59]: testbed apt version: 2.9.3 80s autopkgtest [10:22:59]: @@@@@@@@@@@@@@@@@@@@ test bed setup 80s Get:1 http://ftpmaster.internal/ubuntu oracular-proposed InRelease [110 kB] 80s Get:2 http://ftpmaster.internal/ubuntu oracular-proposed/restricted Sources [7052 B] 80s Get:3 http://ftpmaster.internal/ubuntu oracular-proposed/main Sources [36.1 kB] 80s Get:4 http://ftpmaster.internal/ubuntu oracular-proposed/multiverse Sources [2576 B] 80s Get:5 http://ftpmaster.internal/ubuntu oracular-proposed/universe Sources [389 kB] 80s Get:6 http://ftpmaster.internal/ubuntu oracular-proposed/main i386 Packages [38.2 kB] 80s Get:7 http://ftpmaster.internal/ubuntu oracular-proposed/main amd64 Packages [53.8 kB] 80s Get:8 http://ftpmaster.internal/ubuntu oracular-proposed/restricted i386 Packages [6732 B] 80s Get:9 http://ftpmaster.internal/ubuntu oracular-proposed/restricted amd64 Packages [28.9 kB] 80s Get:10 http://ftpmaster.internal/ubuntu oracular-proposed/universe i386 Packages [138 kB] 80s Get:11 http://ftpmaster.internal/ubuntu oracular-proposed/universe amd64 Packages [317 kB] 80s Get:12 http://ftpmaster.internal/ubuntu oracular-proposed/multiverse i386 Packages [3884 B] 80s Get:13 http://ftpmaster.internal/ubuntu oracular-proposed/multiverse amd64 Packages [8364 B] 80s Fetched 1140 kB in 0s (4708 kB/s) 80s Reading package lists... 82s Reading package lists... 82s Building dependency tree... 82s Reading state information... 82s Calculating upgrade... 83s The following packages will be upgraded: 83s apt apt-utils libapt-pkg6.0t64 libldap-common libldap2 83s 5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 83s Need to get 2875 kB of archives. 83s After this operation, 11.3 kB of additional disk space will be used. 83s Get:1 http://ftpmaster.internal/ubuntu oracular/main amd64 libapt-pkg6.0t64 amd64 2.9.5 [1023 kB] 83s Get:2 http://ftpmaster.internal/ubuntu oracular/main amd64 apt amd64 2.9.5 [1403 kB] 83s Get:3 http://ftpmaster.internal/ubuntu oracular/main amd64 apt-utils amd64 2.9.5 [223 kB] 83s Get:4 http://ftpmaster.internal/ubuntu oracular/main amd64 libldap-common all 2.6.7+dfsg-1~exp1ubuntu9 [31.5 kB] 83s Get:5 http://ftpmaster.internal/ubuntu oracular/main amd64 libldap2 amd64 2.6.7+dfsg-1~exp1ubuntu9 [195 kB] 83s Fetched 2875 kB in 0s (43.9 MB/s) 83s (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 ... 74430 files and directories currently installed.) 83s Preparing to unpack .../libapt-pkg6.0t64_2.9.5_amd64.deb ... 83s Unpacking libapt-pkg6.0t64:amd64 (2.9.5) over (2.9.3) ... 83s Setting up libapt-pkg6.0t64:amd64 (2.9.5) ... 84s (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 ... 74430 files and directories currently installed.) 84s Preparing to unpack .../archives/apt_2.9.5_amd64.deb ... 84s Unpacking apt (2.9.5) over (2.9.3) ... 84s Setting up apt (2.9.5) ... 84s (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 ... 74430 files and directories currently installed.) 84s Preparing to unpack .../apt-utils_2.9.5_amd64.deb ... 84s Unpacking apt-utils (2.9.5) over (2.9.3) ... 84s Preparing to unpack .../libldap-common_2.6.7+dfsg-1~exp1ubuntu9_all.deb ... 84s Unpacking libldap-common (2.6.7+dfsg-1~exp1ubuntu9) over (2.6.7+dfsg-1~exp1ubuntu8) ... 84s Preparing to unpack .../libldap2_2.6.7+dfsg-1~exp1ubuntu9_amd64.deb ... 84s Unpacking libldap2:amd64 (2.6.7+dfsg-1~exp1ubuntu9) over (2.6.7+dfsg-1~exp1ubuntu8) ... 84s Setting up apt-utils (2.9.5) ... 84s Setting up libldap-common (2.6.7+dfsg-1~exp1ubuntu9) ... 84s Setting up libldap2:amd64 (2.6.7+dfsg-1~exp1ubuntu9) ... 84s Processing triggers for man-db (2.12.1-2) ... 86s Processing triggers for libc-bin (2.39-0ubuntu9) ... 88s Reading package lists... 88s Building dependency tree... 88s Reading state information... 88s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 88s Hit:1 http://ftpmaster.internal/ubuntu oracular-proposed InRelease 88s Hit:2 http://ftpmaster.internal/ubuntu oracular InRelease 88s Hit:3 http://ftpmaster.internal/ubuntu oracular-updates InRelease 88s Hit:4 http://ftpmaster.internal/ubuntu oracular-security InRelease 89s Reading package lists... 89s Reading package lists... 90s Building dependency tree... 90s Reading state information... 90s Calculating upgrade... 90s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 90s Reading package lists... 90s Building dependency tree... 90s Reading state information... 91s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 91s autopkgtest [10:23:10]: rebooting testbed after setup commands that affected boot 94s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 105s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 109s autopkgtest [10:23:28]: testbed running kernel: Linux 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 110s autopkgtest [10:23:29]: @@@@@@@@@@@@@@@@@@@@ apt-source octave-symbolic 111s Get:1 http://ftpmaster.internal/ubuntu oracular/universe octave-symbolic 3.1.1-2 (dsc) [2289 B] 111s Get:2 http://ftpmaster.internal/ubuntu oracular/universe octave-symbolic 3.1.1-2 (tar) [266 kB] 111s Get:3 http://ftpmaster.internal/ubuntu oracular/universe octave-symbolic 3.1.1-2 (diff) [6096 B] 111s gpgv: Signature made Tue Jun 13 21:02:30 2023 UTC 111s gpgv: using RSA key 3F464391498FE874BDB5D98F2124AA1983785C90 111s gpgv: issuer "rafael@debian.org" 111s gpgv: Can't check signature: No public key 111s dpkg-source: warning: cannot verify inline signature for ./octave-symbolic_3.1.1-2.dsc: no acceptable signature found 111s autopkgtest [10:23:30]: testing package octave-symbolic version 3.1.1-2 111s autopkgtest [10:23:30]: build not needed 112s autopkgtest [10:23:31]: test command1: preparing testbed 112s Reading package lists... 112s Building dependency tree... 112s Reading state information... 113s Starting pkgProblemResolver with broken count: 0 113s Starting 2 pkgProblemResolver with broken count: 0 113s Done 113s The following additional packages will be installed: 113s aglfn autoconf automake autopoint autotools-dev cme cpp cpp-13 113s cpp-13-x86-64-linux-gnu cpp-x86-64-linux-gnu debhelper debugedit 113s dh-autoreconf dh-octave dh-octave-autopkgtest dh-strip-nondeterminism 113s diffstat dwz fontconfig fonts-freefont-otf g++ g++-13 113s g++-13-x86-64-linux-gnu g++-x86-64-linux-gnu gcc gcc-13 gcc-13-base 113s gcc-13-x86-64-linux-gnu gcc-x86-64-linux-gnu gettext gfortran gfortran-13 113s gfortran-13-x86-64-linux-gnu gfortran-x86-64-linux-gnu gnuplot-data 113s gnuplot-nox hdf5-helpers intltool-debian libaec-dev libaec0 113s libalgorithm-c3-perl libaliased-perl libamd-comgr2 libamd3 libamdhip64-5 113s libapp-cmd-perl libapt-pkg-perl libarchive-zip-perl libarpack2t64 113s libarray-intspan-perl libasan8 libasound2-data libasound2t64 libatomic1 113s libavahi-client3 libavahi-common-data libavahi-common3 113s libb-hooks-endofscope-perl libb-hooks-op-check-perl libberkeleydb-perl 113s libblas-dev libblas3 libboolean-perl libbtf2 libcairo2 libcamd3 113s libcapture-tiny-perl libcarp-assert-more-perl libcc1-0 libccolamd3 113s libcgi-pm-perl libcholmod5 libclass-c3-perl libclass-data-inheritable-perl 113s libclass-load-perl libclass-method-modifiers-perl libclass-xsaccessor-perl 113s libclone-choose-perl libclone-perl libcolamd3 libcombblas2.0.0t64 113s libconfig-model-backend-yaml-perl libconfig-model-dpkg-perl 113s libconfig-model-perl libconfig-tiny-perl libconst-fast-perl 113s libconvert-binhex-perl libcpanel-json-xs-perl libcups2t64 113s libcurl4-openssl-dev libcxsparse4 libdata-dpath-perl 113s libdata-messagepack-perl libdata-optlist-perl libdata-section-perl 113s libdata-validate-domain-perl libdata-validate-ip-perl 113s libdata-validate-uri-perl libdatrie1 libdebhelper-perl 113s libdevel-callchecker-perl libdevel-size-perl libdevel-stacktrace-perl 113s libdouble-conversion3 libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 113s libdrm-radeon1 libdynaloader-functions-perl libegl-mesa0 libegl1 113s libemail-address-xs-perl libencode-locale-perl liberror-perl 113s libevent-pthreads-2.1-7t64 libexception-class-perl libexporter-lite-perl 113s libexporter-tiny-perl libfabric1 libfftw3-bin libfftw3-dev libfftw3-double3 113s libfftw3-long3 libfftw3-mpi3 libfftw3-quad3 libfftw3-single3 113s libfile-basedir-perl libfile-find-rule-perl libfile-homedir-perl 113s libfile-listing-perl libfile-stripnondeterminism-perl libfile-which-perl 113s libflac12t64 libfltk-gl1.3t64 libfltk1.3t64 libfont-ttf-perl libfontenc1 113s libgbm1 libgcc-13-dev libgetopt-long-descriptive-perl libgfortran-13-dev 113s libgfortran5 libgif7 libgl-dev libgl1 libgl1-mesa-dri libgl2ps1.4 113s libglapi-mesa libglpk40 libglu1-mesa libglvnd0 libglx-dev libglx-mesa0 113s libglx0 libgomp1 libgraphicsmagick++-q16-12t64 libgraphicsmagick-q16-3t64 113s libgraphite2-3 libharfbuzz0b libhash-merge-perl libhdf5-103-1t64 113s libhdf5-cpp-103-1t64 libhdf5-dev libhdf5-fortran-102t64 libhdf5-hl-100t64 113s libhdf5-hl-cpp-100t64 libhdf5-hl-fortran-100t64 libhdf5-openmpi-103-1t64 113s libhsa-runtime64-1 libhsakmt1 libhtml-form-perl libhtml-html5-entities-perl 113s libhtml-parser-perl libhtml-tagset-perl libhtml-tokeparser-simple-perl 113s libhtml-tree-perl libhttp-cookies-perl libhttp-date-perl 113s libhttp-message-perl libhttp-negotiate-perl libhwasan0 libhwloc-plugins 113s libhwloc15 libhwy1t64 libhypre-2.28.0 libice6 libimath-3-1-29t64 113s libimport-into-perl libindirect-perl libinput-bin libinput10 libio-html-perl 113s libio-interactive-perl libio-socket-ssl-perl libio-string-perl 113s libio-stringy-perl libio-tiecombine-perl libipc-run3-perl 113s libipc-system-simple-perl libisl23 libiterator-perl libiterator-util-perl 113s libitm1 libjack-jackd2-0 libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev 113s libjson-maybexs-perl libjson-perl libjxl0.9 libklu2 liblapack-dev liblapack3 113s liblcms2-2 liblist-compare-perl liblist-moreutils-perl 113s liblist-moreutils-xs-perl liblist-someutils-perl liblist-utilsby-perl 113s libllvm17t64 liblog-any-adapter-screen-perl liblog-any-perl 113s liblog-log4perl-perl liblsan0 libltdl7 liblua5.4-0 liblwp-mediatypes-perl 113s liblwp-protocol-https-perl libmailtools-perl libmarkdown2 libmd4c0 libmetis5 113s libmime-tools-perl libmldbm-perl libmodule-implementation-perl 113s libmodule-pluggable-perl libmodule-runtime-perl libmoo-perl 113s libmoox-aliases-perl libmouse-perl libmousex-nativetraits-perl 113s libmousex-strictconstructor-perl libmp3lame0 libmpc3 libmpg123-0t64 113s libmro-compat-perl libmtdev1t64 libmumps-5.6t64 libmunge2 113s libnamespace-clean-perl libncurses-dev libnet-domain-tld-perl 113s libnet-http-perl libnet-ipv6addr-perl libnet-netmask-perl 113s libnet-smtp-ssl-perl libnet-ssleay-perl libnetaddr-ip-perl 113s libnumber-compare-perl libobject-pad-perl libogg0 libopenexr-3-1-30 113s libopengl0 libopenmpi3t64 libopus0 libpackage-stash-perl libpango-1.0-0 113s libpangocairo-1.0-0 libpangoft2-1.0-0 libparams-classify-perl 113s libparams-util-perl libparams-validate-perl libparse-debcontrol-perl 113s libparse-recdescent-perl libpath-iterator-rule-perl libpath-tiny-perl 113s libpciaccess0 libpcre2-16-0 libperlio-gzip-perl libperlio-utf8-strict-perl 113s libpetsc-real3.19t64 libpixman-1-0 libpmix2t64 libpod-constants-perl 113s libpod-parser-perl libpod-pom-perl libportaudio2 libproc-processtable-perl 113s libpsm-infinipath1 libpsm2-2 libptscotch-7.0 libqhull-r8.0 libqrupdate1 113s libqscintilla2-qt5-15 libqscintilla2-qt5-l10n libqt5core5t64 libqt5dbus5t64 113s libqt5gui5t64 libqt5help5 libqt5network5t64 libqt5printsupport5t64 113s libqt5sql5t64 libqt5widgets5t64 libqt5xml5t64 libquadmath0 librdmacm1t64 113s libreadline-dev libregexp-common-perl libregexp-pattern-license-perl 113s libregexp-pattern-perl libregexp-wildcards-perl librole-tiny-perl 113s libsamplerate0 libscalapack-openmpi2.2 libscotch-7.0 libsereal-decoder-perl 113s libsereal-encoder-perl libset-intspan-perl libsm6 libsndfile1 113s libsoftware-copyright-perl libsoftware-license-perl 113s libsoftware-licensemoreutils-perl libsort-versions-perl libspqr4 libssl-dev 113s libstdc++-13-dev libstrictures-perl libstring-copyright-perl 113s libstring-escape-perl libstring-license-perl libstring-rewriteprefix-perl 113s libsub-exporter-perl libsub-exporter-progressive-perl libsub-identify-perl 113s libsub-install-perl libsub-name-perl libsub-quote-perl libsub-uplevel-perl 113s libsuitesparseconfig7 libsundials-ida6 libsundials-nvecparallel-petsc6 113s libsundials-sunlinsol3 libsundials-sunmatrix4 libsuperlu-dist8 libsuperlu6 113s libsyntax-keyword-try-perl libsz2 libterm-readkey-perl 113s libtest-exception-perl libtext-autoformat-perl libtext-glob-perl 113s libtext-levenshtein-damerau-perl libtext-levenshteinxs-perl 113s libtext-markdown-discount-perl libtext-reform-perl libtext-template-perl 113s libtext-unidecode-perl libtext-xslate-perl libthai-data libthai0 113s libtime-duration-perl libtime-moment-perl libtimedate-perl libtoml-tiny-perl 113s libtool libtrilinos-amesos-13.2 libtrilinos-aztecoo-13.2 113s libtrilinos-epetra-13.2 libtrilinos-epetraext-13.2 libtrilinos-galeri-13.2 113s libtrilinos-ifpack-13.2 libtrilinos-kokkos-13.2 libtrilinos-ml-13.2 113s libtrilinos-teuchos-13.2 libtrilinos-trilinosss-13.2 113s libtrilinos-triutils-13.2 libtrilinos-zoltan-13.2 libtry-tiny-perl libtsan2 113s libubsan1 libucx0 libumfpack6 libunicode-utf8-perl liburi-perl 113s libvariable-magic-perl libvorbis0a libvorbisenc2 libvulkan1 libwacom-common 113s libwacom9 libwayland-client0 libwayland-server0 libwebpmux3 libwmflite-0.2-7 113s libwww-mechanize-perl libwww-perl libwww-robotrules-perl libx11-dev 113s libx11-xcb1 libxau-dev libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 113s libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-present0 libxcb-randr0 113s libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 113s libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xinput0 libxcb-xkb1 113s libxcb1-dev libxcursor1 libxdmcp-dev libxfixes3 libxfont2 libxft2 113s libxinerama1 libxkbcommon-x11-0 libxkbfile1 libxml-libxml-perl 113s libxml-namespacesupport-perl libxml-sax-base-perl libxml-sax-perl libxmu6 113s libxnvctrl0 libxrandr2 libxrender1 libxs-parse-keyword-perl 113s libxs-parse-sublike-perl libxshmfence1 libxt6t64 libxxf86vm1 113s libyaml-libyaml-perl libyaml-pp-perl libyaml-tiny-perl licensecheck lintian 113s lzip lzop m4 mpi-default-bin ocl-icd-libopencl1 octave octave-common 113s octave-dev octave-symbolic openmpi-bin openmpi-common patchutils 113s perl-openssl-defaults po-debconf python3-mpmath python3-sympy t1utils 113s tex-common texinfo texinfo-lib unzip x11-common x11-xkb-utils x11proto-dev 113s xorg-sgml-doctools xserver-common xtrans-dev xvfb zlib1g-dev 113s Suggested packages: 113s autoconf-archive gnu-standards autoconf-doc libconfig-model-cursesui-perl 113s libconfig-model-itself-perl cpp-doc gcc-13-locales cpp-13-doc dh-make 113s g++-multilib g++-13-multilib gcc-13-doc gcc-multilib manpages-dev flex bison 113s gdb gcc-doc gcc-13-multilib gdb-x86-64-linux-gnu gettext-doc libasprintf-dev 113s libgettextpo-dev gfortran-multilib gfortran-doc gfortran-13-multilib 113s gfortran-13-doc libcoarrays-dev gnuplot-doc alsa-utils libasound2-plugins 113s liblapack-doc libconfig-model-openssh-perl libterm-readline-perl-perl 113s | libterm-readline-gnu-perl cups-common libcurl4-doc libidn-dev libkrb5-dev 113s libldap2-dev librtmp-dev libssh2-1-dev pkgconf libfftw3-doc libfftw3-mpi-dev 113s libxml-parser-perl libiodbc2-dev default-libmysqlclient-dev 113s graphicsmagick-dbg libhdf5-doc libdata-dump-perl libio-compress-brotli-perl 113s libhwloc-contrib-plugins jackd2 liblcms2-utils libdbd-csv-perl 113s liblog-dispatch-filerotate-perl librrds-perl libxml-dom-perl 113s libcrypt-ssleay-perl ncurses-doc opus-tools libscalar-number-perl 113s libqscintilla2-doc qgnomeplatform-qt5 qt5-image-formats-plugins readline-doc 113s scalapack-doc libssl-doc libstdc++-13-doc libbareword-filehandles-perl 113s libmultidimensional-perl libxstring-perl libdatetime-format-rfc3339-perl 113s libtool-doc gcj-jdk libbusiness-isbn-perl libregexp-ipv6-perl libwacom-bin 113s libauthen-ntlm-perl libx11-doc libxcb-doc binutils-multiarch m4-doc 113s opencl-icd libmail-box-perl python-mpmath-doc python3-gmpy2 113s python3-matplotlib texlive-fonts-extra dvipng python-sympy-doc texlive-base 113s texlive-latex-base texlive-plain-generic texlive-fonts-recommended zip 113s Recommended packages: 113s libconfig-model-approx-perl libconfig-model-lcdproc-perl 113s libconfig-model-openssh-perl libconfig-model-systemd-perl 113s libconfig-model-tkui-perl fonts-liberation groff alsa-ucm-conf 113s alsa-topology-conf libcgi-fast-perl libclass-c3-xs-perl libfuse-perl 113s libarchive-cpio-perl libgl1-amber-dri ghostscript fonts-urw-base35 113s libhtml-format-perl libjson-xs-perl liblist-someutils-xs-perl 113s libipc-shareable-perl liblog-dispatch-perl libfreezethaw-perl 113s libmath-base85-perl libauthen-sasl-perl libsocket6-perl 113s libpackage-stash-xs-perl libtie-ixhash-perl qttranslations5-l10n libqt5svg5 113s qt5-gtk-platformtheme qtwayland5 libqt5sql5-sqlite | libqt5sql5-mysql 113s | libqt5sql5-odbc | libqt5sql5-psql | libqt5sql5-tds | libqt5sql5-ibase 113s libre-engine-re2-perl libtypes-serialiser-perl libltdl-dev 113s mesa-vulkan-drivers | vulkan-icd libdata-dump-perl libhttp-daemon-perl 113s libxml-sax-expat-perl libopenblas0 | libblis4 pstoedit epstool 113s default-jre-headless octave-doc libmail-sendmail-perl python3-pil 113s python3-numpy isympy-common xfonts-base 114s The following NEW packages will be installed: 114s aglfn autoconf automake autopkgtest-satdep autopoint autotools-dev cme cpp 114s cpp-13 cpp-13-x86-64-linux-gnu cpp-x86-64-linux-gnu debhelper debugedit 114s dh-autoreconf dh-octave dh-octave-autopkgtest dh-strip-nondeterminism 114s diffstat dwz fontconfig fonts-freefont-otf g++ g++-13 114s g++-13-x86-64-linux-gnu g++-x86-64-linux-gnu gcc gcc-13 gcc-13-base 114s gcc-13-x86-64-linux-gnu gcc-x86-64-linux-gnu gettext gfortran gfortran-13 114s gfortran-13-x86-64-linux-gnu gfortran-x86-64-linux-gnu gnuplot-data 114s gnuplot-nox hdf5-helpers intltool-debian libaec-dev libaec0 114s libalgorithm-c3-perl libaliased-perl libamd-comgr2 libamd3 libamdhip64-5 114s libapp-cmd-perl libapt-pkg-perl libarchive-zip-perl libarpack2t64 114s libarray-intspan-perl libasan8 libasound2-data libasound2t64 libatomic1 114s libavahi-client3 libavahi-common-data libavahi-common3 114s libb-hooks-endofscope-perl libb-hooks-op-check-perl libberkeleydb-perl 114s libblas-dev libblas3 libboolean-perl libbtf2 libcairo2 libcamd3 114s libcapture-tiny-perl libcarp-assert-more-perl libcc1-0 libccolamd3 114s libcgi-pm-perl libcholmod5 libclass-c3-perl libclass-data-inheritable-perl 114s libclass-load-perl libclass-method-modifiers-perl libclass-xsaccessor-perl 114s libclone-choose-perl libclone-perl libcolamd3 libcombblas2.0.0t64 114s libconfig-model-backend-yaml-perl libconfig-model-dpkg-perl 114s libconfig-model-perl libconfig-tiny-perl libconst-fast-perl 114s libconvert-binhex-perl libcpanel-json-xs-perl libcups2t64 114s libcurl4-openssl-dev libcxsparse4 libdata-dpath-perl 114s libdata-messagepack-perl libdata-optlist-perl libdata-section-perl 114s libdata-validate-domain-perl libdata-validate-ip-perl 114s libdata-validate-uri-perl libdatrie1 libdebhelper-perl 114s libdevel-callchecker-perl libdevel-size-perl libdevel-stacktrace-perl 114s libdouble-conversion3 libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 114s libdrm-radeon1 libdynaloader-functions-perl libegl-mesa0 libegl1 114s libemail-address-xs-perl libencode-locale-perl liberror-perl 114s libevent-pthreads-2.1-7t64 libexception-class-perl libexporter-lite-perl 114s libexporter-tiny-perl libfabric1 libfftw3-bin libfftw3-dev libfftw3-double3 114s libfftw3-long3 libfftw3-mpi3 libfftw3-quad3 libfftw3-single3 114s libfile-basedir-perl libfile-find-rule-perl libfile-homedir-perl 114s libfile-listing-perl libfile-stripnondeterminism-perl libfile-which-perl 114s libflac12t64 libfltk-gl1.3t64 libfltk1.3t64 libfont-ttf-perl libfontenc1 114s libgbm1 libgcc-13-dev libgetopt-long-descriptive-perl libgfortran-13-dev 114s libgfortran5 libgif7 libgl-dev libgl1 libgl1-mesa-dri libgl2ps1.4 114s libglapi-mesa libglpk40 libglu1-mesa libglvnd0 libglx-dev libglx-mesa0 114s libglx0 libgomp1 libgraphicsmagick++-q16-12t64 libgraphicsmagick-q16-3t64 114s libgraphite2-3 libharfbuzz0b libhash-merge-perl libhdf5-103-1t64 114s libhdf5-cpp-103-1t64 libhdf5-dev libhdf5-fortran-102t64 libhdf5-hl-100t64 114s libhdf5-hl-cpp-100t64 libhdf5-hl-fortran-100t64 libhdf5-openmpi-103-1t64 114s libhsa-runtime64-1 libhsakmt1 libhtml-form-perl libhtml-html5-entities-perl 114s libhtml-parser-perl libhtml-tagset-perl libhtml-tokeparser-simple-perl 114s libhtml-tree-perl libhttp-cookies-perl libhttp-date-perl 114s libhttp-message-perl libhttp-negotiate-perl libhwasan0 libhwloc-plugins 114s libhwloc15 libhwy1t64 libhypre-2.28.0 libice6 libimath-3-1-29t64 114s libimport-into-perl libindirect-perl libinput-bin libinput10 libio-html-perl 114s libio-interactive-perl libio-socket-ssl-perl libio-string-perl 114s libio-stringy-perl libio-tiecombine-perl libipc-run3-perl 114s libipc-system-simple-perl libisl23 libiterator-perl libiterator-util-perl 114s libitm1 libjack-jackd2-0 libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev 114s libjson-maybexs-perl libjson-perl libjxl0.9 libklu2 liblapack-dev liblapack3 114s liblcms2-2 liblist-compare-perl liblist-moreutils-perl 114s liblist-moreutils-xs-perl liblist-someutils-perl liblist-utilsby-perl 114s libllvm17t64 liblog-any-adapter-screen-perl liblog-any-perl 114s liblog-log4perl-perl liblsan0 libltdl7 liblua5.4-0 liblwp-mediatypes-perl 114s liblwp-protocol-https-perl libmailtools-perl libmarkdown2 libmd4c0 libmetis5 114s libmime-tools-perl libmldbm-perl libmodule-implementation-perl 114s libmodule-pluggable-perl libmodule-runtime-perl libmoo-perl 114s libmoox-aliases-perl libmouse-perl libmousex-nativetraits-perl 114s libmousex-strictconstructor-perl libmp3lame0 libmpc3 libmpg123-0t64 114s libmro-compat-perl libmtdev1t64 libmumps-5.6t64 libmunge2 114s libnamespace-clean-perl libncurses-dev libnet-domain-tld-perl 114s libnet-http-perl libnet-ipv6addr-perl libnet-netmask-perl 114s libnet-smtp-ssl-perl libnet-ssleay-perl libnetaddr-ip-perl 114s libnumber-compare-perl libobject-pad-perl libogg0 libopenexr-3-1-30 114s libopengl0 libopenmpi3t64 libopus0 libpackage-stash-perl libpango-1.0-0 114s libpangocairo-1.0-0 libpangoft2-1.0-0 libparams-classify-perl 114s libparams-util-perl libparams-validate-perl libparse-debcontrol-perl 114s libparse-recdescent-perl libpath-iterator-rule-perl libpath-tiny-perl 114s libpciaccess0 libpcre2-16-0 libperlio-gzip-perl libperlio-utf8-strict-perl 114s libpetsc-real3.19t64 libpixman-1-0 libpmix2t64 libpod-constants-perl 114s libpod-parser-perl libpod-pom-perl libportaudio2 libproc-processtable-perl 114s libpsm-infinipath1 libpsm2-2 libptscotch-7.0 libqhull-r8.0 libqrupdate1 114s libqscintilla2-qt5-15 libqscintilla2-qt5-l10n libqt5core5t64 libqt5dbus5t64 114s libqt5gui5t64 libqt5help5 libqt5network5t64 libqt5printsupport5t64 114s libqt5sql5t64 libqt5widgets5t64 libqt5xml5t64 libquadmath0 librdmacm1t64 114s libreadline-dev libregexp-common-perl libregexp-pattern-license-perl 114s libregexp-pattern-perl libregexp-wildcards-perl librole-tiny-perl 114s libsamplerate0 libscalapack-openmpi2.2 libscotch-7.0 libsereal-decoder-perl 114s libsereal-encoder-perl libset-intspan-perl libsm6 libsndfile1 114s libsoftware-copyright-perl libsoftware-license-perl 114s libsoftware-licensemoreutils-perl libsort-versions-perl libspqr4 libssl-dev 114s libstdc++-13-dev libstrictures-perl libstring-copyright-perl 114s libstring-escape-perl libstring-license-perl libstring-rewriteprefix-perl 114s libsub-exporter-perl libsub-exporter-progressive-perl libsub-identify-perl 114s libsub-install-perl libsub-name-perl libsub-quote-perl libsub-uplevel-perl 114s libsuitesparseconfig7 libsundials-ida6 libsundials-nvecparallel-petsc6 114s libsundials-sunlinsol3 libsundials-sunmatrix4 libsuperlu-dist8 libsuperlu6 114s libsyntax-keyword-try-perl libsz2 libterm-readkey-perl 114s libtest-exception-perl libtext-autoformat-perl libtext-glob-perl 114s libtext-levenshtein-damerau-perl libtext-levenshteinxs-perl 114s libtext-markdown-discount-perl libtext-reform-perl libtext-template-perl 114s libtext-unidecode-perl libtext-xslate-perl libthai-data libthai0 114s libtime-duration-perl libtime-moment-perl libtimedate-perl libtoml-tiny-perl 114s libtool libtrilinos-amesos-13.2 libtrilinos-aztecoo-13.2 114s libtrilinos-epetra-13.2 libtrilinos-epetraext-13.2 libtrilinos-galeri-13.2 114s libtrilinos-ifpack-13.2 libtrilinos-kokkos-13.2 libtrilinos-ml-13.2 114s libtrilinos-teuchos-13.2 libtrilinos-trilinosss-13.2 114s libtrilinos-triutils-13.2 libtrilinos-zoltan-13.2 libtry-tiny-perl libtsan2 114s libubsan1 libucx0 libumfpack6 libunicode-utf8-perl liburi-perl 114s libvariable-magic-perl libvorbis0a libvorbisenc2 libvulkan1 libwacom-common 114s libwacom9 libwayland-client0 libwayland-server0 libwebpmux3 libwmflite-0.2-7 114s libwww-mechanize-perl libwww-perl libwww-robotrules-perl libx11-dev 114s libx11-xcb1 libxau-dev libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 114s libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-present0 libxcb-randr0 114s libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 114s libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xinput0 libxcb-xkb1 114s libxcb1-dev libxcursor1 libxdmcp-dev libxfixes3 libxfont2 libxft2 114s libxinerama1 libxkbcommon-x11-0 libxkbfile1 libxml-libxml-perl 114s libxml-namespacesupport-perl libxml-sax-base-perl libxml-sax-perl libxmu6 114s libxnvctrl0 libxrandr2 libxrender1 libxs-parse-keyword-perl 114s libxs-parse-sublike-perl libxshmfence1 libxt6t64 libxxf86vm1 114s libyaml-libyaml-perl libyaml-pp-perl libyaml-tiny-perl licensecheck lintian 114s lzip lzop m4 mpi-default-bin ocl-icd-libopencl1 octave octave-common 114s octave-dev octave-symbolic openmpi-bin openmpi-common patchutils 114s perl-openssl-defaults po-debconf python3-mpmath python3-sympy t1utils 114s tex-common texinfo texinfo-lib unzip x11-common x11-xkb-utils x11proto-dev 114s xorg-sgml-doctools xserver-common xtrans-dev xvfb zlib1g-dev 114s 0 upgraded, 477 newly installed, 0 to remove and 0 not upgraded. 114s Need to get 257 MB/257 MB of archives. 114s After this operation, 967 MB of additional disk space will be used. 114s Get:1 /tmp/autopkgtest.uN8AL6/1-autopkgtest-satdep.deb autopkgtest-satdep amd64 0 [772 B] 114s Get:2 http://ftpmaster.internal/ubuntu oracular/main amd64 m4 amd64 1.4.19-4build1 [244 kB] 114s Get:3 http://ftpmaster.internal/ubuntu oracular/main amd64 autoconf all 2.71-3 [339 kB] 114s Get:4 http://ftpmaster.internal/ubuntu oracular/main amd64 autotools-dev all 20220109.1 [44.9 kB] 114s Get:5 http://ftpmaster.internal/ubuntu oracular/main amd64 automake all 1:1.16.5-1.3ubuntu1 [558 kB] 114s Get:6 http://ftpmaster.internal/ubuntu oracular/main amd64 autopoint all 0.21-14ubuntu2 [422 kB] 114s Get:7 http://ftpmaster.internal/ubuntu oracular/main amd64 libcapture-tiny-perl all 0.48-2 [20.2 kB] 114s Get:8 http://ftpmaster.internal/ubuntu oracular/main amd64 libparams-util-perl amd64 1.102-3 [21.1 kB] 114s Get:9 http://ftpmaster.internal/ubuntu oracular/main amd64 libsub-install-perl all 0.929-1 [9764 B] 114s Get:10 http://ftpmaster.internal/ubuntu oracular/main amd64 libdata-optlist-perl all 0.114-1 [9708 B] 114s Get:11 http://ftpmaster.internal/ubuntu oracular/main amd64 libb-hooks-op-check-perl amd64 0.22-3build1 [9518 B] 114s Get:12 http://ftpmaster.internal/ubuntu oracular/main amd64 libdynaloader-functions-perl all 0.003-3 [12.1 kB] 114s Get:13 http://ftpmaster.internal/ubuntu oracular/main amd64 libdevel-callchecker-perl amd64 0.009-1 [14.4 kB] 114s Get:14 http://ftpmaster.internal/ubuntu oracular/main amd64 libparams-classify-perl amd64 0.015-2build5 [20.1 kB] 114s Get:15 http://ftpmaster.internal/ubuntu oracular/main amd64 libmodule-runtime-perl all 0.016-2 [16.4 kB] 114s Get:16 http://ftpmaster.internal/ubuntu oracular/main amd64 libtry-tiny-perl all 0.31-2 [20.8 kB] 114s Get:17 http://ftpmaster.internal/ubuntu oracular/main amd64 libmodule-implementation-perl all 0.09-2 [12.0 kB] 114s Get:18 http://ftpmaster.internal/ubuntu oracular/main amd64 libpackage-stash-perl all 0.40-1 [19.5 kB] 114s Get:19 http://ftpmaster.internal/ubuntu oracular/universe amd64 libclass-load-perl all 0.25-2 [12.7 kB] 114s Get:20 http://ftpmaster.internal/ubuntu oracular/main amd64 libio-stringy-perl all 2.111-3 [55.8 kB] 114s Get:21 http://ftpmaster.internal/ubuntu oracular/universe amd64 libparams-validate-perl amd64 1.31-2build3 [53.9 kB] 114s Get:22 http://ftpmaster.internal/ubuntu oracular/main amd64 libsub-exporter-perl all 0.990-1 [49.0 kB] 114s Get:23 http://ftpmaster.internal/ubuntu oracular/universe amd64 libgetopt-long-descriptive-perl all 0.111-1 [25.5 kB] 114s Get:24 http://ftpmaster.internal/ubuntu oracular/universe amd64 libio-tiecombine-perl all 1.005-3 [9464 B] 114s Get:25 http://ftpmaster.internal/ubuntu oracular/universe amd64 libmodule-pluggable-perl all 5.2-5 [19.5 kB] 114s Get:26 http://ftpmaster.internal/ubuntu oracular/universe amd64 libstring-rewriteprefix-perl all 0.009-1 [6310 B] 114s Get:27 http://ftpmaster.internal/ubuntu oracular/universe amd64 libapp-cmd-perl all 0.336-1 [62.1 kB] 114s Get:28 http://ftpmaster.internal/ubuntu oracular/universe amd64 libboolean-perl all 0.46-3 [8430 B] 114s Get:29 http://ftpmaster.internal/ubuntu oracular/universe amd64 libsub-uplevel-perl all 0.2800-3 [11.6 kB] 114s Get:30 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtest-exception-perl all 0.43-3 [13.4 kB] 114s Get:31 http://ftpmaster.internal/ubuntu oracular/universe amd64 libcarp-assert-more-perl all 2.4.0-1 [18.0 kB] 114s Get:32 http://ftpmaster.internal/ubuntu oracular/main amd64 libfile-which-perl all 1.27-2 [12.5 kB] 114s Get:33 http://ftpmaster.internal/ubuntu oracular/main amd64 libfile-homedir-perl all 1.006-2 [37.0 kB] 114s Get:34 http://ftpmaster.internal/ubuntu oracular/universe amd64 libclone-choose-perl all 0.010-2 [7738 B] 114s Get:35 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhash-merge-perl all 0.302-1 [13.0 kB] 114s Get:36 http://ftpmaster.internal/ubuntu oracular/main amd64 libjson-perl all 4.10000-1 [81.9 kB] 114s Get:37 http://ftpmaster.internal/ubuntu oracular/main amd64 libexporter-tiny-perl all 1.006002-1 [36.8 kB] 114s Get:38 http://ftpmaster.internal/ubuntu oracular/universe amd64 liblist-moreutils-xs-perl amd64 0.430-4 [43.8 kB] 114s Get:39 http://ftpmaster.internal/ubuntu oracular/universe amd64 liblist-moreutils-perl all 0.430-2 [38.2 kB] 114s Get:40 http://ftpmaster.internal/ubuntu oracular/universe amd64 liblog-log4perl-perl all 1.57-1 [345 kB] 114s Get:41 http://ftpmaster.internal/ubuntu oracular/main amd64 libmouse-perl amd64 2.5.10-1build8 [133 kB] 114s Get:42 http://ftpmaster.internal/ubuntu oracular/universe amd64 libmousex-nativetraits-perl all 1.09-3 [53.2 kB] 114s Get:43 http://ftpmaster.internal/ubuntu oracular/universe amd64 libmousex-strictconstructor-perl all 0.02-3 [4582 B] 114s Get:44 http://ftpmaster.internal/ubuntu oracular/universe amd64 libparse-recdescent-perl all 1.967015+dfsg-4 [139 kB] 114s Get:45 http://ftpmaster.internal/ubuntu oracular/main amd64 libpath-tiny-perl all 0.144-1 [47.7 kB] 114s Get:46 http://ftpmaster.internal/ubuntu oracular/universe amd64 libpod-pom-perl all 2.01-4 [61.3 kB] 114s Get:47 http://ftpmaster.internal/ubuntu oracular/main amd64 libregexp-common-perl all 2017060201-3 [171 kB] 114s Get:48 http://ftpmaster.internal/ubuntu oracular/main amd64 libyaml-tiny-perl all 1.74-1 [25.3 kB] 114s Get:49 http://ftpmaster.internal/ubuntu oracular/universe amd64 libconfig-model-perl all 2.153-3 [408 kB] 114s Get:50 http://ftpmaster.internal/ubuntu oracular/universe amd64 libyaml-pp-perl all 0.38.0-1 [105 kB] 114s Get:51 http://ftpmaster.internal/ubuntu oracular/universe amd64 cme all 1.040-1 [64.8 kB] 114s Get:52 http://ftpmaster.internal/ubuntu oracular/main amd64 gcc-13-base amd64 13.2.0-23ubuntu4 [49.0 kB] 114s Get:53 http://ftpmaster.internal/ubuntu oracular/main amd64 libisl23 amd64 0.26-3build1 [680 kB] 114s Get:54 http://ftpmaster.internal/ubuntu oracular/main amd64 libmpc3 amd64 1.3.1-1build1 [54.5 kB] 114s Get:55 http://ftpmaster.internal/ubuntu oracular/main amd64 cpp-13-x86-64-linux-gnu amd64 13.2.0-23ubuntu4 [11.2 MB] 114s Get:56 http://ftpmaster.internal/ubuntu oracular/main amd64 cpp-13 amd64 13.2.0-23ubuntu4 [1032 B] 114s Get:57 http://ftpmaster.internal/ubuntu oracular/main amd64 cpp-x86-64-linux-gnu amd64 4:13.2.0-7ubuntu1 [5326 B] 114s Get:58 http://ftpmaster.internal/ubuntu oracular/main amd64 cpp amd64 4:13.2.0-7ubuntu1 [22.4 kB] 114s Get:59 http://ftpmaster.internal/ubuntu oracular/main amd64 libdebhelper-perl all 13.15.3ubuntu2 [92.3 kB] 114s Get:60 http://ftpmaster.internal/ubuntu oracular/main amd64 libcc1-0 amd64 14.1.0-1ubuntu1 [48.0 kB] 114s Get:61 http://ftpmaster.internal/ubuntu oracular/main amd64 libgomp1 amd64 14.1.0-1ubuntu1 [148 kB] 114s Get:62 http://ftpmaster.internal/ubuntu oracular/main amd64 libitm1 amd64 14.1.0-1ubuntu1 [29.1 kB] 114s Get:63 http://ftpmaster.internal/ubuntu oracular/main amd64 libatomic1 amd64 14.1.0-1ubuntu1 [10.4 kB] 114s Get:64 http://ftpmaster.internal/ubuntu oracular/main amd64 libasan8 amd64 14.1.0-1ubuntu1 [3025 kB] 114s Get:65 http://ftpmaster.internal/ubuntu oracular/main amd64 liblsan0 amd64 14.1.0-1ubuntu1 [1313 kB] 114s Get:66 http://ftpmaster.internal/ubuntu oracular/main amd64 libtsan2 amd64 14.1.0-1ubuntu1 [2736 kB] 114s Get:67 http://ftpmaster.internal/ubuntu oracular/main amd64 libubsan1 amd64 14.1.0-1ubuntu1 [1174 kB] 114s Get:68 http://ftpmaster.internal/ubuntu oracular/main amd64 libhwasan0 amd64 14.1.0-1ubuntu1 [1632 kB] 114s Get:69 http://ftpmaster.internal/ubuntu oracular/main amd64 libquadmath0 amd64 14.1.0-1ubuntu1 [153 kB] 114s Get:70 http://ftpmaster.internal/ubuntu oracular/main amd64 libgcc-13-dev amd64 13.2.0-23ubuntu4 [2688 kB] 114s Get:71 http://ftpmaster.internal/ubuntu oracular/main amd64 gcc-13-x86-64-linux-gnu amd64 13.2.0-23ubuntu4 [21.9 MB] 114s Get:72 http://ftpmaster.internal/ubuntu oracular/main amd64 gcc-13 amd64 13.2.0-23ubuntu4 [482 kB] 114s Get:73 http://ftpmaster.internal/ubuntu oracular/main amd64 gcc-x86-64-linux-gnu amd64 4:13.2.0-7ubuntu1 [1212 B] 114s Get:74 http://ftpmaster.internal/ubuntu oracular/main amd64 gcc amd64 4:13.2.0-7ubuntu1 [5018 B] 114s Get:75 http://ftpmaster.internal/ubuntu oracular/main amd64 libtool all 2.4.7-7build1 [166 kB] 114s Get:76 http://ftpmaster.internal/ubuntu oracular/main amd64 dh-autoreconf all 20 [16.1 kB] 114s Get:77 http://ftpmaster.internal/ubuntu oracular/main amd64 libarchive-zip-perl all 1.68-1 [90.2 kB] 114s Get:78 http://ftpmaster.internal/ubuntu oracular/main amd64 libfile-stripnondeterminism-perl all 1.14.0-1 [20.1 kB] 114s Get:79 http://ftpmaster.internal/ubuntu oracular/main amd64 dh-strip-nondeterminism all 1.14.0-1 [5058 B] 114s Get:80 http://ftpmaster.internal/ubuntu oracular/main amd64 debugedit amd64 1:5.0-5build2 [46.1 kB] 114s Get:81 http://ftpmaster.internal/ubuntu oracular/main amd64 dwz amd64 0.15-1build6 [115 kB] 114s Get:82 http://ftpmaster.internal/ubuntu oracular/main amd64 gettext amd64 0.21-14ubuntu2 [864 kB] 114s Get:83 http://ftpmaster.internal/ubuntu oracular/main amd64 intltool-debian all 0.35.0+20060710.6 [23.2 kB] 114s Get:84 http://ftpmaster.internal/ubuntu oracular/main amd64 po-debconf all 1.0.21+nmu1 [233 kB] 114s Get:85 http://ftpmaster.internal/ubuntu oracular/main amd64 debhelper all 13.15.3ubuntu2 [878 kB] 114s Get:86 http://ftpmaster.internal/ubuntu oracular/universe amd64 aglfn all 1.7+git20191031.4036a9c-2 [30.6 kB] 114s Get:87 http://ftpmaster.internal/ubuntu oracular/universe amd64 gnuplot-data all 6.0.0+dfsg1-1ubuntu3 [75.3 kB] 114s Get:88 http://ftpmaster.internal/ubuntu oracular/main amd64 libpixman-1-0 amd64 0.42.2-1build1 [279 kB] 114s Get:89 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-render0 amd64 1.17.0-2 [16.2 kB] 114s Get:90 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-shm0 amd64 1.17.0-2 [5758 B] 114s Get:91 http://ftpmaster.internal/ubuntu oracular/main amd64 libxrender1 amd64 1:0.9.10-1.1build1 [19.0 kB] 114s Get:92 http://ftpmaster.internal/ubuntu oracular/main amd64 libcairo2 amd64 1.18.0-3build1 [566 kB] 114s Get:93 http://ftpmaster.internal/ubuntu oracular/main amd64 liblua5.4-0 amd64 5.4.6-3build2 [166 kB] 114s Get:94 http://ftpmaster.internal/ubuntu oracular/main amd64 fontconfig amd64 2.15.0-1.1ubuntu2 [180 kB] 114s Get:95 http://ftpmaster.internal/ubuntu oracular/main amd64 libgraphite2-3 amd64 1.3.14-2build1 [73.0 kB] 114s Get:96 http://ftpmaster.internal/ubuntu oracular/main amd64 libharfbuzz0b amd64 8.3.0-2build2 [469 kB] 114s Get:97 http://ftpmaster.internal/ubuntu oracular/main amd64 libthai-data all 0.1.29-2build1 [158 kB] 114s Get:98 http://ftpmaster.internal/ubuntu oracular/main amd64 libdatrie1 amd64 0.2.13-3build1 [19.0 kB] 114s Get:99 http://ftpmaster.internal/ubuntu oracular/main amd64 libthai0 amd64 0.1.29-2build1 [18.9 kB] 114s Get:100 http://ftpmaster.internal/ubuntu oracular/main amd64 libpango-1.0-0 amd64 1.54.0+ds-1 [233 kB] 114s Get:101 http://ftpmaster.internal/ubuntu oracular/main amd64 libpangoft2-1.0-0 amd64 1.54.0+ds-1 [42.3 kB] 114s Get:102 http://ftpmaster.internal/ubuntu oracular/main amd64 libpangocairo-1.0-0 amd64 1.54.0+ds-1 [28.7 kB] 114s Get:103 http://ftpmaster.internal/ubuntu oracular/main amd64 libwebpmux3 amd64 1.4.0-0.1 [25.8 kB] 114s Get:104 http://ftpmaster.internal/ubuntu oracular/universe amd64 gnuplot-nox amd64 6.0.0+dfsg1-1ubuntu3 [989 kB] 115s Get:105 http://ftpmaster.internal/ubuntu oracular/universe amd64 fonts-freefont-otf all 20211204+svn4273-2 [4596 kB] 115s Get:106 http://ftpmaster.internal/ubuntu oracular/universe amd64 dh-octave-autopkgtest all 1.8.0 [10.1 kB] 115s Get:107 http://ftpmaster.internal/ubuntu oracular/main amd64 libapt-pkg-perl amd64 0.1.40build7 [68.4 kB] 115s Get:108 http://ftpmaster.internal/ubuntu oracular/main amd64 libarray-intspan-perl all 2.004-2 [25.0 kB] 115s Get:109 http://ftpmaster.internal/ubuntu oracular/main amd64 libyaml-libyaml-perl amd64 0.89+ds-1build2 [30.5 kB] 115s Get:110 http://ftpmaster.internal/ubuntu oracular/universe amd64 libconfig-model-backend-yaml-perl all 2.134-2 [10.5 kB] 115s Get:111 http://ftpmaster.internal/ubuntu oracular/universe amd64 libexporter-lite-perl all 0.09-2 [9748 B] 115s Get:112 http://ftpmaster.internal/ubuntu oracular/main amd64 libencode-locale-perl all 1.05-3 [11.6 kB] 115s Get:113 http://ftpmaster.internal/ubuntu oracular/main amd64 libtimedate-perl all 2.3300-2 [34.0 kB] 115s Get:114 http://ftpmaster.internal/ubuntu oracular/main amd64 libhttp-date-perl all 6.06-1 [10.2 kB] 115s Get:115 http://ftpmaster.internal/ubuntu oracular/main amd64 libfile-listing-perl all 6.16-1 [11.3 kB] 115s Get:116 http://ftpmaster.internal/ubuntu oracular/main amd64 libhtml-tagset-perl all 3.24-1 [14.1 kB] 115s Get:117 http://ftpmaster.internal/ubuntu oracular/main amd64 liburi-perl all 5.28-1 [88.1 kB] 115s Get:118 http://ftpmaster.internal/ubuntu oracular/main amd64 libhtml-parser-perl amd64 3.82-1 [85.6 kB] 115s Get:119 http://ftpmaster.internal/ubuntu oracular/main amd64 libhtml-tree-perl all 5.07-3 [200 kB] 115s Get:120 http://ftpmaster.internal/ubuntu oracular/main amd64 libclone-perl amd64 0.46-1build3 [10.7 kB] 115s Get:121 http://ftpmaster.internal/ubuntu oracular/main amd64 libio-html-perl all 1.004-3 [15.9 kB] 115s Get:122 http://ftpmaster.internal/ubuntu oracular/main amd64 liblwp-mediatypes-perl all 6.04-2 [20.1 kB] 115s Get:123 http://ftpmaster.internal/ubuntu oracular/main amd64 libhttp-message-perl all 6.45-1ubuntu1 [78.2 kB] 115s Get:124 http://ftpmaster.internal/ubuntu oracular/main amd64 libhttp-cookies-perl all 6.11-1 [18.2 kB] 115s Get:125 http://ftpmaster.internal/ubuntu oracular/main amd64 libhttp-negotiate-perl all 6.01-2 [12.4 kB] 115s Get:126 http://ftpmaster.internal/ubuntu oracular/main amd64 perl-openssl-defaults amd64 7build3 [6626 B] 115s Get:127 http://ftpmaster.internal/ubuntu oracular/main amd64 libnet-ssleay-perl amd64 1.94-1build4 [316 kB] 115s Get:128 http://ftpmaster.internal/ubuntu oracular/main amd64 libio-socket-ssl-perl all 2.085-1 [195 kB] 115s Get:129 http://ftpmaster.internal/ubuntu oracular/main amd64 libnet-http-perl all 6.23-1 [22.3 kB] 115s Get:130 http://ftpmaster.internal/ubuntu oracular/main amd64 liblwp-protocol-https-perl all 6.14-1 [9040 B] 115s Get:131 http://ftpmaster.internal/ubuntu oracular/main amd64 libwww-robotrules-perl all 6.02-1 [12.6 kB] 115s Get:132 http://ftpmaster.internal/ubuntu oracular/main amd64 libwww-perl all 6.77-1 [138 kB] 115s Get:133 http://ftpmaster.internal/ubuntu oracular/main amd64 liberror-perl all 0.17029-2 [25.6 kB] 115s Get:134 http://ftpmaster.internal/ubuntu oracular/universe amd64 libparse-debcontrol-perl all 2.005-6 [20.4 kB] 115s Get:135 http://ftpmaster.internal/ubuntu oracular/universe amd64 libsoftware-copyright-perl all 0.012-2 [17.4 kB] 115s Get:136 http://ftpmaster.internal/ubuntu oracular/universe amd64 libalgorithm-c3-perl all 0.11-2 [10.2 kB] 115s Get:137 http://ftpmaster.internal/ubuntu oracular/universe amd64 libclass-c3-perl all 0.35-2 [18.4 kB] 115s Get:138 http://ftpmaster.internal/ubuntu oracular/universe amd64 libmro-compat-perl all 0.15-2 [10.1 kB] 115s Get:139 http://ftpmaster.internal/ubuntu oracular/universe amd64 libdata-section-perl all 0.200008-1 [11.6 kB] 115s Get:140 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtext-template-perl all 1.61-1 [48.5 kB] 115s Get:141 http://ftpmaster.internal/ubuntu oracular/universe amd64 libsoftware-license-perl all 0.104006-1 [117 kB] 115s Get:142 http://ftpmaster.internal/ubuntu oracular/universe amd64 libsoftware-licensemoreutils-perl all 1.009-1 [21.5 kB] 115s Get:143 http://ftpmaster.internal/ubuntu oracular/main amd64 libsort-versions-perl all 1.62-3 [7378 B] 115s Get:144 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtext-reform-perl all 1.20-5 [35.4 kB] 115s Get:145 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtext-autoformat-perl all 1.750000-2 [29.8 kB] 115s Get:146 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtext-levenshtein-damerau-perl all 0.41-3 [10.8 kB] 115s Get:147 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtoml-tiny-perl all 0.17-1 [21.5 kB] 115s Get:148 http://ftpmaster.internal/ubuntu oracular/main amd64 libindirect-perl amd64 0.39-2build4 [22.1 kB] 115s Get:149 http://ftpmaster.internal/ubuntu oracular/main amd64 libxs-parse-keyword-perl amd64 0.42-1 [56.8 kB] 115s Get:150 http://ftpmaster.internal/ubuntu oracular/main amd64 libxs-parse-sublike-perl amd64 0.21-2build3 [39.9 kB] 115s Get:151 http://ftpmaster.internal/ubuntu oracular/main amd64 libobject-pad-perl amd64 0.808-1build3 [108 kB] 115s Get:152 http://ftpmaster.internal/ubuntu oracular/main amd64 libsyntax-keyword-try-perl amd64 0.29-2 [24.2 kB] 115s Get:153 http://ftpmaster.internal/ubuntu oracular/main amd64 libio-interactive-perl all 1.025-1 [10.4 kB] 115s Get:154 http://ftpmaster.internal/ubuntu oracular/main amd64 liblog-any-perl all 1.717-1 [73.2 kB] 115s Get:155 http://ftpmaster.internal/ubuntu oracular/main amd64 liblog-any-adapter-screen-perl all 0.140-2 [12.4 kB] 115s Get:156 http://ftpmaster.internal/ubuntu oracular/main amd64 libsub-exporter-progressive-perl all 0.001013-3 [6718 B] 115s Get:157 http://ftpmaster.internal/ubuntu oracular/main amd64 libvariable-magic-perl amd64 0.64-1 [36.0 kB] 115s Get:158 http://ftpmaster.internal/ubuntu oracular/main amd64 libb-hooks-endofscope-perl all 0.28-1 [15.8 kB] 115s Get:159 http://ftpmaster.internal/ubuntu oracular/main amd64 libsub-identify-perl amd64 0.14-3build3 [9786 B] 115s Get:160 http://ftpmaster.internal/ubuntu oracular/main amd64 libsub-name-perl amd64 0.27-1build3 [10.8 kB] 115s Get:161 http://ftpmaster.internal/ubuntu oracular/main amd64 libnamespace-clean-perl all 0.27-2 [14.0 kB] 115s Get:162 http://ftpmaster.internal/ubuntu oracular/main amd64 libnumber-compare-perl all 0.03-3 [5974 B] 115s Get:163 http://ftpmaster.internal/ubuntu oracular/main amd64 libtext-glob-perl all 0.11-3 [6780 B] 115s Get:164 http://ftpmaster.internal/ubuntu oracular/main amd64 libpath-iterator-rule-perl all 1.015-2 [39.9 kB] 115s Get:165 http://ftpmaster.internal/ubuntu oracular/main amd64 libpod-parser-perl all 1.67-1 [80.6 kB] 115s Get:166 http://ftpmaster.internal/ubuntu oracular/main amd64 libpod-constants-perl all 0.19-2 [16.3 kB] 115s Get:167 http://ftpmaster.internal/ubuntu oracular/main amd64 libset-intspan-perl all 1.19-3 [24.8 kB] 115s Get:168 http://ftpmaster.internal/ubuntu oracular/main amd64 libstring-copyright-perl all 0.003014-1 [20.5 kB] 115s Get:169 http://ftpmaster.internal/ubuntu oracular/main amd64 libstring-escape-perl all 2010.002-3 [16.1 kB] 115s Get:170 http://ftpmaster.internal/ubuntu oracular/main amd64 libregexp-pattern-license-perl all 3.11.0-1 [85.8 kB] 115s Get:171 http://ftpmaster.internal/ubuntu oracular/main amd64 libregexp-pattern-perl all 0.2.14-2 [17.6 kB] 115s Get:172 http://ftpmaster.internal/ubuntu oracular/main amd64 libstring-license-perl all 0.0.9-2ubuntu1 [35.0 kB] 115s Get:173 http://ftpmaster.internal/ubuntu oracular/main amd64 licensecheck all 3.3.9-1ubuntu1 [37.7 kB] 115s Get:174 http://ftpmaster.internal/ubuntu oracular/main amd64 diffstat amd64 1.66-1build1 [29.7 kB] 115s Get:175 http://ftpmaster.internal/ubuntu oracular/main amd64 libberkeleydb-perl amd64 0.64-2build4 [120 kB] 115s Get:176 http://ftpmaster.internal/ubuntu oracular/main amd64 libclass-xsaccessor-perl amd64 1.19-4build4 [33.1 kB] 115s Get:177 http://ftpmaster.internal/ubuntu oracular/main amd64 libconfig-tiny-perl all 2.30-1 [14.7 kB] 115s Get:178 http://ftpmaster.internal/ubuntu oracular/main amd64 libconst-fast-perl all 0.014-2 [8034 B] 115s Get:179 http://ftpmaster.internal/ubuntu oracular/main amd64 libcpanel-json-xs-perl amd64 4.38-1 [114 kB] 115s Get:180 http://ftpmaster.internal/ubuntu oracular/main amd64 libaliased-perl all 0.34-3 [12.8 kB] 115s Get:181 http://ftpmaster.internal/ubuntu oracular/main amd64 libclass-data-inheritable-perl all 0.08-3 [8084 B] 115s Get:182 http://ftpmaster.internal/ubuntu oracular/main amd64 libdevel-stacktrace-perl all 2.0500-1 [22.1 kB] 115s Get:183 http://ftpmaster.internal/ubuntu oracular/main amd64 libexception-class-perl all 1.45-1 [28.6 kB] 115s Get:184 http://ftpmaster.internal/ubuntu oracular/main amd64 libiterator-perl all 0.03+ds1-2 [18.8 kB] 115s Get:185 http://ftpmaster.internal/ubuntu oracular/main amd64 libiterator-util-perl all 0.02+ds1-2 [14.1 kB] 115s Get:186 http://ftpmaster.internal/ubuntu oracular/main amd64 libdata-dpath-perl all 0.59-1 [39.2 kB] 115s Get:187 http://ftpmaster.internal/ubuntu oracular/main amd64 libnet-domain-tld-perl all 1.75-3 [29.4 kB] 115s Get:188 http://ftpmaster.internal/ubuntu oracular/main amd64 libdata-validate-domain-perl all 0.10-1.1 [9992 B] 115s Get:189 http://ftpmaster.internal/ubuntu oracular/main amd64 libnet-ipv6addr-perl all 1.02-1 [21.0 kB] 115s Get:190 http://ftpmaster.internal/ubuntu oracular/main amd64 libnet-netmask-perl all 2.0002-2 [24.8 kB] 115s Get:191 http://ftpmaster.internal/ubuntu oracular/main amd64 libnetaddr-ip-perl amd64 4.079+dfsg-2build4 [79.9 kB] 115s Get:192 http://ftpmaster.internal/ubuntu oracular/main amd64 libdata-validate-ip-perl all 0.31-1 [17.2 kB] 115s Get:193 http://ftpmaster.internal/ubuntu oracular/main amd64 libdata-validate-uri-perl all 0.07-3 [10.8 kB] 115s Get:194 http://ftpmaster.internal/ubuntu oracular/main amd64 libdevel-size-perl amd64 0.84-1 [19.5 kB] 115s Get:195 http://ftpmaster.internal/ubuntu oracular/main amd64 libemail-address-xs-perl amd64 1.05-1build4 [29.1 kB] 115s Get:196 http://ftpmaster.internal/ubuntu oracular/main amd64 libipc-system-simple-perl all 1.30-2 [22.3 kB] 115s Get:197 http://ftpmaster.internal/ubuntu oracular/main amd64 libfile-basedir-perl all 0.09-2 [14.4 kB] 115s Get:198 http://ftpmaster.internal/ubuntu oracular/main amd64 libfile-find-rule-perl all 0.34-3 [24.4 kB] 115s Get:199 http://ftpmaster.internal/ubuntu oracular/main amd64 libio-string-perl all 1.08-4 [11.1 kB] 115s Get:200 http://ftpmaster.internal/ubuntu oracular/main amd64 libfont-ttf-perl all 1.06-2 [323 kB] 115s Get:201 http://ftpmaster.internal/ubuntu oracular/main amd64 libhtml-html5-entities-perl all 0.004-3 [21.6 kB] 115s Get:202 http://ftpmaster.internal/ubuntu oracular/main amd64 libhtml-tokeparser-simple-perl all 3.16-4 [38.0 kB] 115s Get:203 http://ftpmaster.internal/ubuntu oracular/main amd64 libipc-run3-perl all 0.049-1 [28.8 kB] 115s Get:204 http://ftpmaster.internal/ubuntu oracular/main amd64 libjson-maybexs-perl all 1.004005-1 [11.3 kB] 115s Get:205 http://ftpmaster.internal/ubuntu oracular/main amd64 liblist-compare-perl all 0.55-2 [62.9 kB] 115s Get:206 http://ftpmaster.internal/ubuntu oracular/main amd64 liblist-someutils-perl all 0.59-1 [30.4 kB] 115s Get:207 http://ftpmaster.internal/ubuntu oracular/main amd64 liblist-utilsby-perl all 0.12-2 [14.9 kB] 115s Get:208 http://ftpmaster.internal/ubuntu oracular/main amd64 libmldbm-perl all 2.05-4 [16.0 kB] 115s Get:209 http://ftpmaster.internal/ubuntu oracular/main amd64 libclass-method-modifiers-perl all 2.15-1 [16.1 kB] 115s Get:210 http://ftpmaster.internal/ubuntu oracular/main amd64 libimport-into-perl all 1.002005-2 [10.7 kB] 115s Get:211 http://ftpmaster.internal/ubuntu oracular/main amd64 librole-tiny-perl all 2.002004-1 [16.3 kB] 115s Get:212 http://ftpmaster.internal/ubuntu oracular/main amd64 libsub-quote-perl all 2.006008-1ubuntu1 [20.7 kB] 115s Get:213 http://ftpmaster.internal/ubuntu oracular/main amd64 libmoo-perl all 2.005005-1 [47.4 kB] 115s Get:214 http://ftpmaster.internal/ubuntu oracular/main amd64 libstrictures-perl all 2.000006-1 [16.3 kB] 115s Get:215 http://ftpmaster.internal/ubuntu oracular/main amd64 libmoox-aliases-perl all 0.001006-2 [6796 B] 115s Get:216 http://ftpmaster.internal/ubuntu oracular/main amd64 libperlio-gzip-perl amd64 0.20-1build4 [14.6 kB] 115s Get:217 http://ftpmaster.internal/ubuntu oracular/main amd64 libperlio-utf8-strict-perl amd64 0.010-1build3 [11.1 kB] 115s Get:218 http://ftpmaster.internal/ubuntu oracular/main amd64 libproc-processtable-perl amd64 0.636-1build3 [35.7 kB] 115s Get:219 http://ftpmaster.internal/ubuntu oracular/main amd64 libregexp-wildcards-perl all 1.05-3 [12.9 kB] 115s Get:220 http://ftpmaster.internal/ubuntu oracular/main amd64 libsereal-decoder-perl amd64 5.004+ds-1build3 [99.5 kB] 115s Get:221 http://ftpmaster.internal/ubuntu oracular/main amd64 libsereal-encoder-perl amd64 5.004+ds-1build3 [103 kB] 115s Get:222 http://ftpmaster.internal/ubuntu oracular/main amd64 libterm-readkey-perl amd64 2.38-2build4 [23.1 kB] 115s Get:223 http://ftpmaster.internal/ubuntu oracular/main amd64 libtext-levenshteinxs-perl amd64 0.03-5build4 [7966 B] 115s Get:224 http://ftpmaster.internal/ubuntu oracular/main amd64 libmarkdown2 amd64 2.2.7-2build1 [37.5 kB] 115s Get:225 http://ftpmaster.internal/ubuntu oracular/main amd64 libtext-markdown-discount-perl amd64 0.16-1build3 [12.1 kB] 115s Get:226 http://ftpmaster.internal/ubuntu oracular/main amd64 libdata-messagepack-perl amd64 1.02-1build4 [31.1 kB] 115s Get:227 http://ftpmaster.internal/ubuntu oracular/main amd64 libtext-xslate-perl amd64 3.5.9-2 [161 kB] 115s Get:228 http://ftpmaster.internal/ubuntu oracular/main amd64 libtime-duration-perl all 1.21-2 [12.3 kB] 115s Get:229 http://ftpmaster.internal/ubuntu oracular/main amd64 libtime-moment-perl amd64 0.44-2build4 [70.9 kB] 115s Get:230 http://ftpmaster.internal/ubuntu oracular/main amd64 libunicode-utf8-perl amd64 0.62-2build3 [18.1 kB] 115s Get:231 http://ftpmaster.internal/ubuntu oracular/main amd64 libcgi-pm-perl all 4.65-1 [185 kB] 115s Get:232 http://ftpmaster.internal/ubuntu oracular/main amd64 libhtml-form-perl all 6.11-1 [32.1 kB] 115s Get:233 http://ftpmaster.internal/ubuntu oracular/main amd64 libwww-mechanize-perl all 2.18-1ubuntu1 [93.1 kB] 115s Get:234 http://ftpmaster.internal/ubuntu oracular/main amd64 libxml-namespacesupport-perl all 1.12-2 [13.5 kB] 115s Get:235 http://ftpmaster.internal/ubuntu oracular/main amd64 libxml-sax-base-perl all 1.09-3 [18.9 kB] 115s Get:236 http://ftpmaster.internal/ubuntu oracular/main amd64 libxml-sax-perl all 1.02+dfsg-3 [57.0 kB] 115s Get:237 http://ftpmaster.internal/ubuntu oracular/main amd64 libxml-libxml-perl amd64 2.0207+dfsg+really+2.0134-2 [304 kB] 115s Get:238 http://ftpmaster.internal/ubuntu oracular/main amd64 lzip amd64 1.24.1-1build1 [83.1 kB] 115s Get:239 http://ftpmaster.internal/ubuntu oracular/main amd64 lzop amd64 1.04-2build3 [82.2 kB] 115s Get:240 http://ftpmaster.internal/ubuntu oracular/main amd64 patchutils amd64 0.4.2-1build3 [77.0 kB] 115s Get:241 http://ftpmaster.internal/ubuntu oracular/main amd64 t1utils amd64 1.41-4build3 [61.3 kB] 115s Get:242 http://ftpmaster.internal/ubuntu oracular/main amd64 unzip amd64 6.0-28ubuntu5 [180 kB] 115s Get:243 http://ftpmaster.internal/ubuntu oracular/main amd64 lintian all 2.117.0ubuntu2 [1065 kB] 115s Get:244 http://ftpmaster.internal/ubuntu oracular/universe amd64 libconfig-model-dpkg-perl all 3.005 [175 kB] 115s Get:245 http://ftpmaster.internal/ubuntu oracular/main amd64 libconvert-binhex-perl all 1.125-3 [27.1 kB] 115s Get:246 http://ftpmaster.internal/ubuntu oracular/main amd64 libnet-smtp-ssl-perl all 1.04-2 [6218 B] 115s Get:247 http://ftpmaster.internal/ubuntu oracular/main amd64 libmailtools-perl all 2.21-3 [77.0 kB] 115s Get:248 http://ftpmaster.internal/ubuntu oracular/main amd64 libmime-tools-perl all 5.515-1 [187 kB] 115s Get:249 http://ftpmaster.internal/ubuntu oracular/main amd64 libsuitesparseconfig7 amd64 1:7.7.0+dfsg-2 [12.8 kB] 115s Get:250 http://ftpmaster.internal/ubuntu oracular/universe amd64 libamd3 amd64 1:7.7.0+dfsg-2 [27.1 kB] 115s Get:251 http://ftpmaster.internal/ubuntu oracular/main amd64 libblas3 amd64 3.12.0-3build1 [238 kB] 115s Get:252 http://ftpmaster.internal/ubuntu oracular/main amd64 libgfortran5 amd64 14.1.0-1ubuntu1 [928 kB] 115s Get:253 http://ftpmaster.internal/ubuntu oracular/main amd64 liblapack3 amd64 3.12.0-3build1 [2650 kB] 115s Get:254 http://ftpmaster.internal/ubuntu oracular/universe amd64 libarpack2t64 amd64 3.9.1-1.1build2 [106 kB] 115s Get:255 http://ftpmaster.internal/ubuntu oracular/universe amd64 libccolamd3 amd64 1:7.7.0+dfsg-2 [25.8 kB] 115s Get:256 http://ftpmaster.internal/ubuntu oracular/universe amd64 libcamd3 amd64 1:7.7.0+dfsg-2 [23.7 kB] 115s Get:257 http://ftpmaster.internal/ubuntu oracular/main amd64 libcolamd3 amd64 1:7.7.0+dfsg-2 [19.3 kB] 115s Get:258 http://ftpmaster.internal/ubuntu oracular/universe amd64 libcholmod5 amd64 1:7.7.0+dfsg-2 [666 kB] 115s Get:259 http://ftpmaster.internal/ubuntu oracular/universe amd64 libcxsparse4 amd64 1:7.7.0+dfsg-2 [72.0 kB] 115s Get:260 http://ftpmaster.internal/ubuntu oracular/main amd64 libfftw3-double3 amd64 3.3.10-1ubuntu3 [838 kB] 115s Get:261 http://ftpmaster.internal/ubuntu oracular/main amd64 libfftw3-single3 amd64 3.3.10-1ubuntu3 [868 kB] 115s Get:262 http://ftpmaster.internal/ubuntu oracular/main amd64 libxfixes3 amd64 1:6.0.0-2build1 [10.8 kB] 115s Get:263 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcursor1 amd64 1:1.2.2-1 [20.9 kB] 115s Get:264 http://ftpmaster.internal/ubuntu oracular/main amd64 libxft2 amd64 2.3.6-1build1 [45.3 kB] 115s Get:265 http://ftpmaster.internal/ubuntu oracular/main amd64 libxinerama1 amd64 2:1.1.4-3build1 [6396 B] 115s Get:266 http://ftpmaster.internal/ubuntu oracular/universe amd64 libfltk1.3t64 amd64 1.3.8-6.1build2 [606 kB] 115s Get:267 http://ftpmaster.internal/ubuntu oracular/main amd64 libglvnd0 amd64 1.7.0-1build1 [69.6 kB] 115s Get:268 http://ftpmaster.internal/ubuntu oracular/main amd64 libglapi-mesa amd64 24.0.9-0ubuntu1 [41.1 kB] 115s Get:269 http://ftpmaster.internal/ubuntu oracular/main amd64 libx11-xcb1 amd64 2:1.8.7-1build1 [7800 B] 115s Get:270 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-dri2-0 amd64 1.17.0-2 [7222 B] 115s Get:271 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-dri3-0 amd64 1.17.0-2 [7508 B] 115s Get:272 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-glx0 amd64 1.17.0-2 [24.8 kB] 115s Get:273 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-present0 amd64 1.17.0-2 [6064 B] 115s Get:274 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-randr0 amd64 1.17.0-2 [17.9 kB] 115s Get:275 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-sync1 amd64 1.17.0-2 [9312 B] 115s Get:276 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-xfixes0 amd64 1.17.0-2 [10.2 kB] 115s Get:277 http://ftpmaster.internal/ubuntu oracular/main amd64 libxshmfence1 amd64 1.3-1build5 [4764 B] 115s Get:278 http://ftpmaster.internal/ubuntu oracular/main amd64 libxxf86vm1 amd64 1:1.1.4-1build4 [9282 B] 115s Get:279 http://ftpmaster.internal/ubuntu oracular/main amd64 libvulkan1 amd64 1.3.283.0-1 [143 kB] 115s Get:280 http://ftpmaster.internal/ubuntu oracular/main amd64 libdrm-amdgpu1 amd64 2.4.121-2 [20.7 kB] 115s Get:281 http://ftpmaster.internal/ubuntu oracular/main amd64 libpciaccess0 amd64 0.17-3build1 [18.6 kB] 115s Get:282 http://ftpmaster.internal/ubuntu oracular/main amd64 libdrm-intel1 amd64 2.4.121-2 [63.8 kB] 115s Get:283 http://ftpmaster.internal/ubuntu oracular/main amd64 libdrm-nouveau2 amd64 2.4.121-2 [17.6 kB] 115s Get:284 http://ftpmaster.internal/ubuntu oracular/main amd64 libdrm-radeon1 amd64 2.4.121-2 [20.7 kB] 115s Get:285 http://ftpmaster.internal/ubuntu oracular/main amd64 libllvm17t64 amd64 1:17.0.6-12 [26.2 MB] 115s Get:286 http://ftpmaster.internal/ubuntu oracular/main amd64 libgl1-mesa-dri amd64 24.0.9-0ubuntu1 [8950 kB] 115s Get:287 http://ftpmaster.internal/ubuntu oracular/main amd64 libglx-mesa0 amd64 24.0.9-0ubuntu1 [154 kB] 115s Get:288 http://ftpmaster.internal/ubuntu oracular/main amd64 libglx0 amd64 1.7.0-1build1 [38.6 kB] 115s Get:289 http://ftpmaster.internal/ubuntu oracular/main amd64 libgl1 amd64 1.7.0-1build1 [102 kB] 115s Get:290 http://ftpmaster.internal/ubuntu oracular/universe amd64 libfltk-gl1.3t64 amd64 1.3.8-6.1build2 [43.0 kB] 115s Get:291 http://ftpmaster.internal/ubuntu oracular/universe amd64 libgl2ps1.4 amd64 1.4.2+dfsg1-2build1 [41.9 kB] 115s Get:292 http://ftpmaster.internal/ubuntu oracular/main amd64 libltdl7 amd64 2.4.7-7build1 [40.3 kB] 115s Get:293 http://ftpmaster.internal/ubuntu oracular/universe amd64 libglpk40 amd64 5.0-1build2 [369 kB] 115s Get:294 http://ftpmaster.internal/ubuntu oracular/main amd64 libopengl0 amd64 1.7.0-1build1 [32.8 kB] 115s Get:295 http://ftpmaster.internal/ubuntu oracular/main amd64 libglu1-mesa amd64 9.0.2-1.1build1 [152 kB] 115s Get:296 http://ftpmaster.internal/ubuntu oracular/main amd64 libgif7 amd64 5.2.2-1ubuntu1 [35.2 kB] 115s Get:297 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhwy1t64 amd64 1.2.0-2 [736 kB] 115s Get:298 http://ftpmaster.internal/ubuntu oracular/main amd64 liblcms2-2 amd64 2.14-2build1 [161 kB] 115s Get:299 http://ftpmaster.internal/ubuntu oracular/universe amd64 libimath-3-1-29t64 amd64 3.1.9-3.1ubuntu2 [72.2 kB] 115s Get:300 http://ftpmaster.internal/ubuntu oracular/universe amd64 libopenexr-3-1-30 amd64 3.1.5-5.1build3 [1004 kB] 115s Get:301 http://ftpmaster.internal/ubuntu oracular/universe amd64 libjxl0.9 amd64 0.9.2-8 [1073 kB] 115s Get:302 http://ftpmaster.internal/ubuntu oracular/main amd64 libwmflite-0.2-7 amd64 0.2.13-1.1build3 [68.6 kB] 115s Get:303 http://ftpmaster.internal/ubuntu oracular/universe amd64 libgraphicsmagick-q16-3t64 amd64 1.4+really1.3.43-1build2 [1264 kB] 115s Get:304 http://ftpmaster.internal/ubuntu oracular/universe amd64 libgraphicsmagick++-q16-12t64 amd64 1.4+really1.3.43-1build2 [117 kB] 115s Get:305 http://ftpmaster.internal/ubuntu oracular/universe amd64 libaec0 amd64 1.1.3-1 [22.7 kB] 115s Get:306 http://ftpmaster.internal/ubuntu oracular/universe amd64 libsz2 amd64 1.1.3-1 [5456 B] 115s Get:307 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhdf5-103-1t64 amd64 1.10.10+repack-3.1ubuntu4 [1270 kB] 115s Get:308 http://ftpmaster.internal/ubuntu oracular/main amd64 libasound2-data all 1.2.11-1build2 [21.0 kB] 115s Get:309 http://ftpmaster.internal/ubuntu oracular/main amd64 libasound2t64 amd64 1.2.11-1build2 [399 kB] 115s Get:310 http://ftpmaster.internal/ubuntu oracular/main amd64 libopus0 amd64 1.4-1build1 [208 kB] 115s Get:311 http://ftpmaster.internal/ubuntu oracular/main amd64 libsamplerate0 amd64 0.2.2-4build1 [1344 kB] 115s Get:312 http://ftpmaster.internal/ubuntu oracular/main amd64 libjack-jackd2-0 amd64 1.9.21~dfsg-3ubuntu3 [289 kB] 115s Get:313 http://ftpmaster.internal/ubuntu oracular/universe amd64 libportaudio2 amd64 19.6.0-1.2build3 [67.9 kB] 115s Get:314 http://ftpmaster.internal/ubuntu oracular/universe amd64 libqhull-r8.0 amd64 2020.2-6build1 [193 kB] 115s Get:315 http://ftpmaster.internal/ubuntu oracular/universe amd64 libqrupdate1 amd64 1.1.2-4build1 [44.0 kB] 115s Get:316 http://ftpmaster.internal/ubuntu oracular/universe amd64 libqscintilla2-qt5-l10n all 2.14.1+dfsg-1build4 [56.5 kB] 115s Get:317 http://ftpmaster.internal/ubuntu oracular/universe amd64 libdouble-conversion3 amd64 3.3.0-1build1 [40.3 kB] 115s Get:318 http://ftpmaster.internal/ubuntu oracular/main amd64 libpcre2-16-0 amd64 10.42-4ubuntu2 [210 kB] 115s Get:319 http://ftpmaster.internal/ubuntu oracular/universe amd64 libqt5core5t64 amd64 5.15.13+dfsg-1ubuntu1 [2011 kB] 115s Get:320 http://ftpmaster.internal/ubuntu oracular/main amd64 libwayland-server0 amd64 1.22.0-2.1build1 [33.9 kB] 115s Get:321 http://ftpmaster.internal/ubuntu oracular/main amd64 libgbm1 amd64 24.0.9-0ubuntu1 [42.7 kB] 115s Get:322 http://ftpmaster.internal/ubuntu oracular/main amd64 libwayland-client0 amd64 1.22.0-2.1build1 [26.4 kB] 115s Get:323 http://ftpmaster.internal/ubuntu oracular/main amd64 libegl-mesa0 amd64 24.0.9-0ubuntu1 [115 kB] 115s Get:324 http://ftpmaster.internal/ubuntu oracular/main amd64 libegl1 amd64 1.7.0-1build1 [28.7 kB] 115s Get:325 http://ftpmaster.internal/ubuntu oracular/main amd64 x11-common all 1:7.7+23ubuntu3 [21.7 kB] 115s Get:326 http://ftpmaster.internal/ubuntu oracular/main amd64 libice6 amd64 2:1.0.10-1build3 [41.4 kB] 115s Get:327 http://ftpmaster.internal/ubuntu oracular/main amd64 libmtdev1t64 amd64 1.1.6-1.2 [14.4 kB] 115s Get:328 http://ftpmaster.internal/ubuntu oracular/main amd64 libwacom-common all 2.10.0-2 [63.4 kB] 115s Get:329 http://ftpmaster.internal/ubuntu oracular/main amd64 libwacom9 amd64 2.10.0-2 [23.9 kB] 115s Get:330 http://ftpmaster.internal/ubuntu oracular/main amd64 libinput-bin amd64 1.26.0-1 [22.5 kB] 115s Get:331 http://ftpmaster.internal/ubuntu oracular/main amd64 libinput10 amd64 1.26.0-1 [136 kB] 115s Get:332 http://ftpmaster.internal/ubuntu oracular/universe amd64 libmd4c0 amd64 0.4.8-1build1 [42.3 kB] 115s Get:333 http://ftpmaster.internal/ubuntu oracular/universe amd64 libqt5dbus5t64 amd64 5.15.13+dfsg-1ubuntu1 [220 kB] 115s Get:334 http://ftpmaster.internal/ubuntu oracular/universe amd64 libqt5network5t64 amd64 5.15.13+dfsg-1ubuntu1 [723 kB] 115s Get:335 http://ftpmaster.internal/ubuntu oracular/main amd64 libsm6 amd64 2:1.2.3-1build3 [15.7 kB] 115s Get:336 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-icccm4 amd64 0.4.1-1.1build3 [10.8 kB] 115s Get:337 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-util1 amd64 0.4.0-1build3 [10.7 kB] 115s Get:338 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-image0 amd64 0.4.0-2build1 [10.8 kB] 115s Get:339 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-keysyms1 amd64 0.4.0-1build4 [7956 B] 115s Get:340 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-render-util0 amd64 0.3.9-1build4 [9608 B] 115s Get:341 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-shape0 amd64 1.17.0-2 [6092 B] 115s Get:342 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-xinerama0 amd64 1.17.0-2 [5412 B] 115s Get:343 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-xinput0 amd64 1.17.0-2 [33.2 kB] 115s Get:344 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb-xkb1 amd64 1.17.0-2 [32.3 kB] 115s Get:345 http://ftpmaster.internal/ubuntu oracular/main amd64 libxkbcommon-x11-0 amd64 1.6.0-1build1 [14.5 kB] 115s Get:346 http://ftpmaster.internal/ubuntu oracular/universe amd64 libqt5gui5t64 amd64 5.15.13+dfsg-1ubuntu1 [3748 kB] 115s Get:347 http://ftpmaster.internal/ubuntu oracular/main amd64 libavahi-common-data amd64 0.8-13ubuntu6 [29.7 kB] 115s Get:348 http://ftpmaster.internal/ubuntu oracular/main amd64 libavahi-common3 amd64 0.8-13ubuntu6 [23.3 kB] 115s Get:349 http://ftpmaster.internal/ubuntu oracular/main amd64 libavahi-client3 amd64 0.8-13ubuntu6 [26.8 kB] 115s Get:350 http://ftpmaster.internal/ubuntu oracular/main amd64 libcups2t64 amd64 2.4.7-1.2ubuntu7 [270 kB] 115s Get:351 http://ftpmaster.internal/ubuntu oracular/universe amd64 libqt5widgets5t64 amd64 5.15.13+dfsg-1ubuntu1 [2561 kB] 115s Get:352 http://ftpmaster.internal/ubuntu oracular/universe amd64 libqt5printsupport5t64 amd64 5.15.13+dfsg-1ubuntu1 [208 kB] 115s Get:353 http://ftpmaster.internal/ubuntu oracular/universe amd64 libqscintilla2-qt5-15 amd64 2.14.1+dfsg-1build4 [1154 kB] 115s Get:354 http://ftpmaster.internal/ubuntu oracular/universe amd64 libqt5sql5t64 amd64 5.15.13+dfsg-1ubuntu1 [122 kB] 115s Get:355 http://ftpmaster.internal/ubuntu oracular/universe amd64 libqt5help5 amd64 5.15.13-3 [161 kB] 115s Get:356 http://ftpmaster.internal/ubuntu oracular/universe amd64 libqt5xml5t64 amd64 5.15.13+dfsg-1ubuntu1 [124 kB] 115s Get:357 http://ftpmaster.internal/ubuntu oracular/main amd64 libogg0 amd64 1.3.5-3build1 [22.7 kB] 115s Get:358 http://ftpmaster.internal/ubuntu oracular/main amd64 libflac12t64 amd64 1.4.3+ds-2.1ubuntu2 [197 kB] 115s Get:359 http://ftpmaster.internal/ubuntu oracular/main amd64 libmp3lame0 amd64 3.100-6build1 [142 kB] 115s Get:360 http://ftpmaster.internal/ubuntu oracular/main amd64 libmpg123-0t64 amd64 1.32.6-3 [169 kB] 115s Get:361 http://ftpmaster.internal/ubuntu oracular/main amd64 libvorbis0a amd64 1.3.7-2 [98.4 kB] 115s Get:362 http://ftpmaster.internal/ubuntu oracular/main amd64 libvorbisenc2 amd64 1.3.7-2 [80.8 kB] 115s Get:363 http://ftpmaster.internal/ubuntu oracular/main amd64 libsndfile1 amd64 1.2.2-1ubuntu5 [208 kB] 115s Get:364 http://ftpmaster.internal/ubuntu oracular/universe amd64 libspqr4 amd64 1:7.7.0+dfsg-2 [135 kB] 115s Get:365 http://ftpmaster.internal/ubuntu oracular/universe amd64 libsundials-ida6 amd64 6.4.1+dfsg1-3build5 [129 kB] 115s Get:366 http://ftpmaster.internal/ubuntu oracular/universe amd64 libbtf2 amd64 1:7.7.0+dfsg-2 [13.5 kB] 115s Get:367 http://ftpmaster.internal/ubuntu oracular/universe amd64 libklu2 amd64 1:7.7.0+dfsg-2 [78.9 kB] 115s Get:368 http://ftpmaster.internal/ubuntu oracular/main amd64 libfftw3-long3 amd64 3.3.10-1ubuntu3 [374 kB] 115s Get:369 http://ftpmaster.internal/ubuntu oracular/main amd64 libevent-pthreads-2.1-7t64 amd64 2.1.12-stable-10 [7966 B] 115s Get:370 http://ftpmaster.internal/ubuntu oracular/universe amd64 libpsm-infinipath1 amd64 3.3+20.604758e7-6.3build1 [178 kB] 115s Get:371 http://ftpmaster.internal/ubuntu oracular/universe amd64 libpsm2-2 amd64 11.2.185-2.1 [193 kB] 115s Get:372 http://ftpmaster.internal/ubuntu oracular/main amd64 librdmacm1t64 amd64 50.0-2build2 [70.7 kB] 115s Get:373 http://ftpmaster.internal/ubuntu oracular/universe amd64 libfabric1 amd64 1.17.0-3build2 [657 kB] 115s Get:374 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhwloc15 amd64 2.10.0-1build1 [172 kB] 115s Get:375 http://ftpmaster.internal/ubuntu oracular/universe amd64 libmunge2 amd64 0.5.15-4build1 [14.7 kB] 115s Get:376 http://ftpmaster.internal/ubuntu oracular/main amd64 libxnvctrl0 amd64 510.47.03-0ubuntu4 [12.6 kB] 115s Get:377 http://ftpmaster.internal/ubuntu oracular/universe amd64 ocl-icd-libopencl1 amd64 2.3.2-1build1 [38.5 kB] 115s Get:378 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhwloc-plugins amd64 2.10.0-1build1 [15.7 kB] 115s Get:379 http://ftpmaster.internal/ubuntu oracular/universe amd64 libpmix2t64 amd64 5.0.1-4.1build1 [697 kB] 116s Get:380 http://ftpmaster.internal/ubuntu oracular/universe amd64 libamd-comgr2 amd64 6.0+git20231212.4510c28+dfsg-3build2 [14.4 MB] 116s Get:381 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhsakmt1 amd64 5.7.0-1build1 [62.9 kB] 116s Get:382 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhsa-runtime64-1 amd64 5.7.1-2build1 [491 kB] 116s Get:383 http://ftpmaster.internal/ubuntu oracular/universe amd64 libamdhip64-5 amd64 5.7.1-3 [9621 kB] 116s Get:384 http://ftpmaster.internal/ubuntu oracular/universe amd64 libucx0 amd64 1.16.0+ds-5ubuntu1 [1140 kB] 116s Get:385 http://ftpmaster.internal/ubuntu oracular/universe amd64 libopenmpi3t64 amd64 4.1.6-7ubuntu2 [2563 kB] 116s Get:386 http://ftpmaster.internal/ubuntu oracular/universe amd64 libfftw3-mpi3 amd64 3.3.10-1ubuntu3 [52.6 kB] 116s Get:387 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhdf5-openmpi-103-1t64 amd64 1.10.10+repack-3.1ubuntu4 [1325 kB] 116s Get:388 http://ftpmaster.internal/ubuntu oracular/universe amd64 libcombblas2.0.0t64 amd64 2.0.0-3.1build2 [267 kB] 116s Get:389 http://ftpmaster.internal/ubuntu oracular/universe amd64 libmetis5 amd64 5.1.0.dfsg-7build3 [181 kB] 116s Get:390 http://ftpmaster.internal/ubuntu oracular/universe amd64 libptscotch-7.0 amd64 7.0.4-1ubuntu2 [729 kB] 116s Get:391 http://ftpmaster.internal/ubuntu oracular/universe amd64 libsuperlu-dist8 amd64 8.2.1+dfsg1-1build2 [632 kB] 116s Get:392 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhypre-2.28.0 amd64 2.28.0-8build2 [1701 kB] 116s Get:393 http://ftpmaster.internal/ubuntu oracular/universe amd64 openmpi-common all 4.1.6-7ubuntu2 [170 kB] 116s Get:394 http://ftpmaster.internal/ubuntu oracular/universe amd64 openmpi-bin amd64 4.1.6-7ubuntu2 [114 kB] 116s Get:395 http://ftpmaster.internal/ubuntu oracular/universe amd64 mpi-default-bin amd64 1.15build1 [2376 B] 116s Get:396 http://ftpmaster.internal/ubuntu oracular/universe amd64 libscalapack-openmpi2.2 amd64 2.2.1-3.1ubuntu1 [1740 kB] 116s Get:397 http://ftpmaster.internal/ubuntu oracular/universe amd64 libmumps-5.6t64 amd64 5.6.2-2.1build2 [1951 kB] 116s Get:398 http://ftpmaster.internal/ubuntu oracular/universe amd64 libsuperlu6 amd64 6.0.1+dfsg1-1build1 [180 kB] 116s Get:399 http://ftpmaster.internal/ubuntu oracular/universe amd64 libscotch-7.0 amd64 7.0.4-1ubuntu2 [449 kB] 116s Get:400 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtrilinos-kokkos-13.2 amd64 13.2.0-6 [109 kB] 116s Get:401 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtrilinos-teuchos-13.2 amd64 13.2.0-6 [1205 kB] 116s Get:402 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtrilinos-epetra-13.2 amd64 13.2.0-6 [452 kB] 116s Get:403 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtrilinos-triutils-13.2 amd64 13.2.0-6 [126 kB] 116s Get:404 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtrilinos-epetraext-13.2 amd64 13.2.0-6 [448 kB] 116s Get:405 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtrilinos-trilinosss-13.2 amd64 13.2.0-6 [91.9 kB] 116s Get:406 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtrilinos-amesos-13.2 amd64 13.2.0-6 [108 kB] 116s Get:407 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtrilinos-aztecoo-13.2 amd64 13.2.0-6 [214 kB] 116s Get:408 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtrilinos-galeri-13.2 amd64 13.2.0-6 [91.2 kB] 116s Get:409 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtrilinos-ifpack-13.2 amd64 13.2.0-6 [436 kB] 116s Get:410 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtrilinos-zoltan-13.2 amd64 13.2.0-6 [400 kB] 116s Get:411 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtrilinos-ml-13.2 amd64 13.2.0-6 [1000 kB] 116s Get:412 http://ftpmaster.internal/ubuntu oracular/universe amd64 libumfpack6 amd64 1:7.7.0+dfsg-2 [267 kB] 116s Get:413 http://ftpmaster.internal/ubuntu oracular/universe amd64 libpetsc-real3.19t64 amd64 3.19.6+dfsg1-2.2ubuntu2 [6926 kB] 117s Get:414 http://ftpmaster.internal/ubuntu oracular/universe amd64 libsundials-nvecparallel-petsc6 amd64 6.4.1+dfsg1-3build5 [36.5 kB] 117s Get:415 http://ftpmaster.internal/ubuntu oracular/universe amd64 libsundials-sunmatrix4 amd64 6.4.1+dfsg1-3build5 [84.1 kB] 117s Get:416 http://ftpmaster.internal/ubuntu oracular/universe amd64 libsundials-sunlinsol3 amd64 6.4.1+dfsg1-3build5 [172 kB] 117s Get:417 http://ftpmaster.internal/ubuntu oracular/universe amd64 libtext-unidecode-perl all 1.30-3 [105 kB] 117s Get:418 http://ftpmaster.internal/ubuntu oracular/universe amd64 texinfo-lib amd64 7.1-3build2 [133 kB] 117s Get:419 http://ftpmaster.internal/ubuntu oracular/universe amd64 tex-common all 6.18 [32.8 kB] 117s Get:420 http://ftpmaster.internal/ubuntu oracular/universe amd64 texinfo all 7.1-3build2 [1273 kB] 117s Get:421 http://ftpmaster.internal/ubuntu oracular/universe amd64 octave-common all 8.4.0-1build5 [5925 kB] 117s Get:422 http://ftpmaster.internal/ubuntu oracular/universe amd64 octave amd64 8.4.0-1build5 [9967 kB] 117s Get:423 http://ftpmaster.internal/ubuntu oracular/main amd64 libncurses-dev amd64 6.5-2 [384 kB] 117s Get:424 http://ftpmaster.internal/ubuntu oracular/main amd64 libreadline-dev amd64 8.2-4build1 [167 kB] 117s Get:425 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhdf5-fortran-102t64 amd64 1.10.10+repack-3.1ubuntu4 [85.2 kB] 117s Get:426 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhdf5-hl-100t64 amd64 1.10.10+repack-3.1ubuntu4 [56.0 kB] 117s Get:427 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhdf5-hl-fortran-100t64 amd64 1.10.10+repack-3.1ubuntu4 [31.5 kB] 117s Get:428 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhdf5-cpp-103-1t64 amd64 1.10.10+repack-3.1ubuntu4 [128 kB] 117s Get:429 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhdf5-hl-cpp-100t64 amd64 1.10.10+repack-3.1ubuntu4 [11.2 kB] 117s Get:430 http://ftpmaster.internal/ubuntu oracular/main amd64 zlib1g-dev amd64 1:1.3.dfsg-3.1ubuntu2 [894 kB] 117s Get:431 http://ftpmaster.internal/ubuntu oracular/main amd64 libjpeg-turbo8-dev amd64 2.1.5-2ubuntu2 [295 kB] 117s Get:432 http://ftpmaster.internal/ubuntu oracular/main amd64 libjpeg8-dev amd64 8c-2ubuntu11 [1484 B] 117s Get:433 http://ftpmaster.internal/ubuntu oracular/main amd64 libjpeg-dev amd64 8c-2ubuntu11 [1482 B] 117s Get:434 http://ftpmaster.internal/ubuntu oracular/universe amd64 libaec-dev amd64 1.1.3-1 [19.8 kB] 117s Get:435 http://ftpmaster.internal/ubuntu oracular/main amd64 libcurl4-openssl-dev amd64 8.8.0-1ubuntu1 [463 kB] 117s Get:436 http://ftpmaster.internal/ubuntu oracular/main amd64 libssl-dev amd64 3.0.13-0ubuntu4 [2408 kB] 117s Get:437 http://ftpmaster.internal/ubuntu oracular/universe amd64 hdf5-helpers amd64 1.10.10+repack-3.1ubuntu4 [15.8 kB] 117s Get:438 http://ftpmaster.internal/ubuntu oracular/universe amd64 libhdf5-dev amd64 1.10.10+repack-3.1ubuntu4 [2777 kB] 117s Get:439 http://ftpmaster.internal/ubuntu oracular/main amd64 xorg-sgml-doctools all 1:1.11-1.1 [10.9 kB] 117s Get:440 http://ftpmaster.internal/ubuntu oracular/main amd64 x11proto-dev all 2024.1-1 [606 kB] 117s Get:441 http://ftpmaster.internal/ubuntu oracular/main amd64 libxau-dev amd64 1:1.0.9-1build6 [9570 B] 117s Get:442 http://ftpmaster.internal/ubuntu oracular/main amd64 libxdmcp-dev amd64 1:1.1.3-0ubuntu6 [26.5 kB] 117s Get:443 http://ftpmaster.internal/ubuntu oracular/main amd64 xtrans-dev all 1.4.0-1 [68.9 kB] 117s Get:444 http://ftpmaster.internal/ubuntu oracular/main amd64 libxcb1-dev amd64 1.17.0-2 [86.4 kB] 117s Get:445 http://ftpmaster.internal/ubuntu oracular/main amd64 libx11-dev amd64 2:1.8.7-1build1 [732 kB] 117s Get:446 http://ftpmaster.internal/ubuntu oracular/main amd64 libglx-dev amd64 1.7.0-1build1 [14.2 kB] 117s Get:447 http://ftpmaster.internal/ubuntu oracular/main amd64 libgl-dev amd64 1.7.0-1build1 [102 kB] 117s Get:448 http://ftpmaster.internal/ubuntu oracular/main amd64 libblas-dev amd64 3.12.0-3build1 [170 kB] 117s Get:449 http://ftpmaster.internal/ubuntu oracular/main amd64 liblapack-dev amd64 3.12.0-3build1 [5196 kB] 117s Get:450 http://ftpmaster.internal/ubuntu oracular/main amd64 libfftw3-quad3 amd64 3.3.10-1ubuntu3 [658 kB] 117s Get:451 http://ftpmaster.internal/ubuntu oracular/main amd64 libfftw3-bin amd64 3.3.10-1ubuntu3 [39.2 kB] 117s Get:452 http://ftpmaster.internal/ubuntu oracular/main amd64 libfftw3-dev amd64 3.3.10-1ubuntu3 [2372 kB] 117s Get:453 http://ftpmaster.internal/ubuntu oracular/main amd64 libgfortran-13-dev amd64 13.2.0-23ubuntu4 [942 kB] 117s Get:454 http://ftpmaster.internal/ubuntu oracular/main amd64 gfortran-13-x86-64-linux-gnu amd64 13.2.0-23ubuntu4 [11.6 MB] 117s Get:455 http://ftpmaster.internal/ubuntu oracular/main amd64 gfortran-13 amd64 13.2.0-23ubuntu4 [11.7 kB] 117s Get:456 http://ftpmaster.internal/ubuntu oracular/main amd64 gfortran-x86-64-linux-gnu amd64 4:13.2.0-7ubuntu1 [1024 B] 117s Get:457 http://ftpmaster.internal/ubuntu oracular/main amd64 gfortran amd64 4:13.2.0-7ubuntu1 [1176 B] 117s Get:458 http://ftpmaster.internal/ubuntu oracular/main amd64 libstdc++-13-dev amd64 13.2.0-23ubuntu4 [2399 kB] 117s Get:459 http://ftpmaster.internal/ubuntu oracular/main amd64 g++-13-x86-64-linux-gnu amd64 13.2.0-23ubuntu4 [12.5 MB] 117s Get:460 http://ftpmaster.internal/ubuntu oracular/main amd64 g++-13 amd64 13.2.0-23ubuntu4 [14.5 kB] 117s Get:461 http://ftpmaster.internal/ubuntu oracular/main amd64 g++-x86-64-linux-gnu amd64 4:13.2.0-7ubuntu1 [964 B] 117s Get:462 http://ftpmaster.internal/ubuntu oracular/main amd64 g++ amd64 4:13.2.0-7ubuntu1 [1100 B] 117s Get:463 http://ftpmaster.internal/ubuntu oracular/universe amd64 octave-dev amd64 8.4.0-1build5 [473 kB] 117s Get:464 http://ftpmaster.internal/ubuntu oracular/universe amd64 dh-octave all 1.8.0 [19.7 kB] 117s Get:465 http://ftpmaster.internal/ubuntu oracular/main amd64 libfontenc1 amd64 1:1.1.8-1build1 [14.0 kB] 117s Get:466 http://ftpmaster.internal/ubuntu oracular/main amd64 libxt6t64 amd64 1:1.2.1-1.2build1 [171 kB] 117s Get:467 http://ftpmaster.internal/ubuntu oracular/main amd64 libxmu6 amd64 2:1.1.3-3build2 [47.6 kB] 117s Get:468 http://ftpmaster.internal/ubuntu oracular/main amd64 libxaw7 amd64 2:1.0.14-1build2 [187 kB] 117s Get:469 http://ftpmaster.internal/ubuntu oracular/main amd64 libxfont2 amd64 1:2.0.6-1build1 [93.0 kB] 117s Get:470 http://ftpmaster.internal/ubuntu oracular/main amd64 libxkbfile1 amd64 1:1.1.0-1build4 [70.0 kB] 117s Get:471 http://ftpmaster.internal/ubuntu oracular/main amd64 libxrandr2 amd64 2:1.5.4-1 [19.6 kB] 117s Get:472 http://ftpmaster.internal/ubuntu oracular/universe amd64 python3-mpmath all 1.3.0-1 [425 kB] 117s Get:473 http://ftpmaster.internal/ubuntu oracular-proposed/universe amd64 python3-sympy all 1.12.1-1 [3967 kB] 118s Get:474 http://ftpmaster.internal/ubuntu oracular/universe amd64 octave-symbolic all 3.1.1-2 [207 kB] 118s Get:475 http://ftpmaster.internal/ubuntu oracular/main amd64 x11-xkb-utils amd64 7.7+8build2 [170 kB] 118s Get:476 http://ftpmaster.internal/ubuntu oracular/main amd64 xserver-common all 2:21.1.12-1ubuntu1 [33.3 kB] 118s Get:477 http://ftpmaster.internal/ubuntu oracular/universe amd64 xvfb amd64 2:21.1.12-1ubuntu1 [873 kB] 118s Fetched 257 MB in 4s (68.5 MB/s) 118s Selecting previously unselected package m4. 119s (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 ... 74430 files and directories currently installed.) 119s Preparing to unpack .../000-m4_1.4.19-4build1_amd64.deb ... 119s Unpacking m4 (1.4.19-4build1) ... 119s Selecting previously unselected package autoconf. 119s Preparing to unpack .../001-autoconf_2.71-3_all.deb ... 119s Unpacking autoconf (2.71-3) ... 119s Selecting previously unselected package autotools-dev. 119s Preparing to unpack .../002-autotools-dev_20220109.1_all.deb ... 119s Unpacking autotools-dev (20220109.1) ... 119s Selecting previously unselected package automake. 119s Preparing to unpack .../003-automake_1%3a1.16.5-1.3ubuntu1_all.deb ... 119s Unpacking automake (1:1.16.5-1.3ubuntu1) ... 119s Selecting previously unselected package autopoint. 119s Preparing to unpack .../004-autopoint_0.21-14ubuntu2_all.deb ... 119s Unpacking autopoint (0.21-14ubuntu2) ... 119s Selecting previously unselected package libcapture-tiny-perl. 119s Preparing to unpack .../005-libcapture-tiny-perl_0.48-2_all.deb ... 119s Unpacking libcapture-tiny-perl (0.48-2) ... 119s Selecting previously unselected package libparams-util-perl. 119s Preparing to unpack .../006-libparams-util-perl_1.102-3_amd64.deb ... 119s Unpacking libparams-util-perl (1.102-3) ... 119s Selecting previously unselected package libsub-install-perl. 119s Preparing to unpack .../007-libsub-install-perl_0.929-1_all.deb ... 119s Unpacking libsub-install-perl (0.929-1) ... 119s Selecting previously unselected package libdata-optlist-perl. 119s Preparing to unpack .../008-libdata-optlist-perl_0.114-1_all.deb ... 119s Unpacking libdata-optlist-perl (0.114-1) ... 119s Selecting previously unselected package libb-hooks-op-check-perl:amd64. 119s Preparing to unpack .../009-libb-hooks-op-check-perl_0.22-3build1_amd64.deb ... 119s Unpacking libb-hooks-op-check-perl:amd64 (0.22-3build1) ... 119s Selecting previously unselected package libdynaloader-functions-perl. 119s Preparing to unpack .../010-libdynaloader-functions-perl_0.003-3_all.deb ... 119s Unpacking libdynaloader-functions-perl (0.003-3) ... 119s Selecting previously unselected package libdevel-callchecker-perl:amd64. 119s Preparing to unpack .../011-libdevel-callchecker-perl_0.009-1_amd64.deb ... 119s Unpacking libdevel-callchecker-perl:amd64 (0.009-1) ... 119s Selecting previously unselected package libparams-classify-perl:amd64. 119s Preparing to unpack .../012-libparams-classify-perl_0.015-2build5_amd64.deb ... 119s Unpacking libparams-classify-perl:amd64 (0.015-2build5) ... 119s Selecting previously unselected package libmodule-runtime-perl. 119s Preparing to unpack .../013-libmodule-runtime-perl_0.016-2_all.deb ... 119s Unpacking libmodule-runtime-perl (0.016-2) ... 119s Selecting previously unselected package libtry-tiny-perl. 119s Preparing to unpack .../014-libtry-tiny-perl_0.31-2_all.deb ... 119s Unpacking libtry-tiny-perl (0.31-2) ... 119s Selecting previously unselected package libmodule-implementation-perl. 119s Preparing to unpack .../015-libmodule-implementation-perl_0.09-2_all.deb ... 119s Unpacking libmodule-implementation-perl (0.09-2) ... 119s Selecting previously unselected package libpackage-stash-perl. 119s Preparing to unpack .../016-libpackage-stash-perl_0.40-1_all.deb ... 119s Unpacking libpackage-stash-perl (0.40-1) ... 119s Selecting previously unselected package libclass-load-perl. 119s Preparing to unpack .../017-libclass-load-perl_0.25-2_all.deb ... 119s Unpacking libclass-load-perl (0.25-2) ... 119s Selecting previously unselected package libio-stringy-perl. 119s Preparing to unpack .../018-libio-stringy-perl_2.111-3_all.deb ... 119s Unpacking libio-stringy-perl (2.111-3) ... 119s Selecting previously unselected package libparams-validate-perl:amd64. 119s Preparing to unpack .../019-libparams-validate-perl_1.31-2build3_amd64.deb ... 119s Unpacking libparams-validate-perl:amd64 (1.31-2build3) ... 119s Selecting previously unselected package libsub-exporter-perl. 119s Preparing to unpack .../020-libsub-exporter-perl_0.990-1_all.deb ... 119s Unpacking libsub-exporter-perl (0.990-1) ... 119s Selecting previously unselected package libgetopt-long-descriptive-perl. 119s Preparing to unpack .../021-libgetopt-long-descriptive-perl_0.111-1_all.deb ... 119s Unpacking libgetopt-long-descriptive-perl (0.111-1) ... 119s Selecting previously unselected package libio-tiecombine-perl. 119s Preparing to unpack .../022-libio-tiecombine-perl_1.005-3_all.deb ... 119s Unpacking libio-tiecombine-perl (1.005-3) ... 119s Selecting previously unselected package libmodule-pluggable-perl. 119s Preparing to unpack .../023-libmodule-pluggable-perl_5.2-5_all.deb ... 119s Unpacking libmodule-pluggable-perl (5.2-5) ... 119s Selecting previously unselected package libstring-rewriteprefix-perl. 119s Preparing to unpack .../024-libstring-rewriteprefix-perl_0.009-1_all.deb ... 119s Unpacking libstring-rewriteprefix-perl (0.009-1) ... 119s Selecting previously unselected package libapp-cmd-perl. 119s Preparing to unpack .../025-libapp-cmd-perl_0.336-1_all.deb ... 119s Unpacking libapp-cmd-perl (0.336-1) ... 119s Selecting previously unselected package libboolean-perl. 119s Preparing to unpack .../026-libboolean-perl_0.46-3_all.deb ... 119s Unpacking libboolean-perl (0.46-3) ... 119s Selecting previously unselected package libsub-uplevel-perl. 119s Preparing to unpack .../027-libsub-uplevel-perl_0.2800-3_all.deb ... 119s Unpacking libsub-uplevel-perl (0.2800-3) ... 120s Selecting previously unselected package libtest-exception-perl. 120s Preparing to unpack .../028-libtest-exception-perl_0.43-3_all.deb ... 120s Unpacking libtest-exception-perl (0.43-3) ... 120s Selecting previously unselected package libcarp-assert-more-perl. 120s Preparing to unpack .../029-libcarp-assert-more-perl_2.4.0-1_all.deb ... 120s Unpacking libcarp-assert-more-perl (2.4.0-1) ... 120s Selecting previously unselected package libfile-which-perl. 120s Preparing to unpack .../030-libfile-which-perl_1.27-2_all.deb ... 120s Unpacking libfile-which-perl (1.27-2) ... 120s Selecting previously unselected package libfile-homedir-perl. 120s Preparing to unpack .../031-libfile-homedir-perl_1.006-2_all.deb ... 120s Unpacking libfile-homedir-perl (1.006-2) ... 120s Selecting previously unselected package libclone-choose-perl. 120s Preparing to unpack .../032-libclone-choose-perl_0.010-2_all.deb ... 120s Unpacking libclone-choose-perl (0.010-2) ... 120s Selecting previously unselected package libhash-merge-perl. 120s Preparing to unpack .../033-libhash-merge-perl_0.302-1_all.deb ... 120s Unpacking libhash-merge-perl (0.302-1) ... 120s Selecting previously unselected package libjson-perl. 120s Preparing to unpack .../034-libjson-perl_4.10000-1_all.deb ... 120s Unpacking libjson-perl (4.10000-1) ... 120s Selecting previously unselected package libexporter-tiny-perl. 120s Preparing to unpack .../035-libexporter-tiny-perl_1.006002-1_all.deb ... 120s Unpacking libexporter-tiny-perl (1.006002-1) ... 120s Selecting previously unselected package liblist-moreutils-xs-perl. 120s Preparing to unpack .../036-liblist-moreutils-xs-perl_0.430-4_amd64.deb ... 120s Unpacking liblist-moreutils-xs-perl (0.430-4) ... 120s Selecting previously unselected package liblist-moreutils-perl. 120s Preparing to unpack .../037-liblist-moreutils-perl_0.430-2_all.deb ... 120s Unpacking liblist-moreutils-perl (0.430-2) ... 120s Selecting previously unselected package liblog-log4perl-perl. 120s Preparing to unpack .../038-liblog-log4perl-perl_1.57-1_all.deb ... 120s Unpacking liblog-log4perl-perl (1.57-1) ... 120s Selecting previously unselected package libmouse-perl. 120s Preparing to unpack .../039-libmouse-perl_2.5.10-1build8_amd64.deb ... 120s Unpacking libmouse-perl (2.5.10-1build8) ... 120s Selecting previously unselected package libmousex-nativetraits-perl. 120s Preparing to unpack .../040-libmousex-nativetraits-perl_1.09-3_all.deb ... 120s Unpacking libmousex-nativetraits-perl (1.09-3) ... 120s Selecting previously unselected package libmousex-strictconstructor-perl. 120s Preparing to unpack .../041-libmousex-strictconstructor-perl_0.02-3_all.deb ... 120s Unpacking libmousex-strictconstructor-perl (0.02-3) ... 120s Selecting previously unselected package libparse-recdescent-perl. 120s Preparing to unpack .../042-libparse-recdescent-perl_1.967015+dfsg-4_all.deb ... 120s Unpacking libparse-recdescent-perl (1.967015+dfsg-4) ... 120s Selecting previously unselected package libpath-tiny-perl. 120s Preparing to unpack .../043-libpath-tiny-perl_0.144-1_all.deb ... 120s Unpacking libpath-tiny-perl (0.144-1) ... 120s Selecting previously unselected package libpod-pom-perl. 120s Preparing to unpack .../044-libpod-pom-perl_2.01-4_all.deb ... 120s Unpacking libpod-pom-perl (2.01-4) ... 120s Selecting previously unselected package libregexp-common-perl. 120s Preparing to unpack .../045-libregexp-common-perl_2017060201-3_all.deb ... 120s Unpacking libregexp-common-perl (2017060201-3) ... 120s Selecting previously unselected package libyaml-tiny-perl. 120s Preparing to unpack .../046-libyaml-tiny-perl_1.74-1_all.deb ... 120s Unpacking libyaml-tiny-perl (1.74-1) ... 120s Selecting previously unselected package libconfig-model-perl. 120s Preparing to unpack .../047-libconfig-model-perl_2.153-3_all.deb ... 120s Unpacking libconfig-model-perl (2.153-3) ... 120s Selecting previously unselected package libyaml-pp-perl. 120s Preparing to unpack .../048-libyaml-pp-perl_0.38.0-1_all.deb ... 120s Unpacking libyaml-pp-perl (0.38.0-1) ... 120s Selecting previously unselected package cme. 120s Preparing to unpack .../049-cme_1.040-1_all.deb ... 120s Unpacking cme (1.040-1) ... 120s Selecting previously unselected package gcc-13-base:amd64. 120s Preparing to unpack .../050-gcc-13-base_13.2.0-23ubuntu4_amd64.deb ... 120s Unpacking gcc-13-base:amd64 (13.2.0-23ubuntu4) ... 120s Selecting previously unselected package libisl23:amd64. 120s Preparing to unpack .../051-libisl23_0.26-3build1_amd64.deb ... 120s Unpacking libisl23:amd64 (0.26-3build1) ... 120s Selecting previously unselected package libmpc3:amd64. 120s Preparing to unpack .../052-libmpc3_1.3.1-1build1_amd64.deb ... 120s Unpacking libmpc3:amd64 (1.3.1-1build1) ... 120s Selecting previously unselected package cpp-13-x86-64-linux-gnu. 120s Preparing to unpack .../053-cpp-13-x86-64-linux-gnu_13.2.0-23ubuntu4_amd64.deb ... 120s Unpacking cpp-13-x86-64-linux-gnu (13.2.0-23ubuntu4) ... 120s Selecting previously unselected package cpp-13. 120s Preparing to unpack .../054-cpp-13_13.2.0-23ubuntu4_amd64.deb ... 120s Unpacking cpp-13 (13.2.0-23ubuntu4) ... 121s Selecting previously unselected package cpp-x86-64-linux-gnu. 121s Preparing to unpack .../055-cpp-x86-64-linux-gnu_4%3a13.2.0-7ubuntu1_amd64.deb ... 121s Unpacking cpp-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 121s Selecting previously unselected package cpp. 121s Preparing to unpack .../056-cpp_4%3a13.2.0-7ubuntu1_amd64.deb ... 121s Unpacking cpp (4:13.2.0-7ubuntu1) ... 121s Selecting previously unselected package libdebhelper-perl. 121s Preparing to unpack .../057-libdebhelper-perl_13.15.3ubuntu2_all.deb ... 121s Unpacking libdebhelper-perl (13.15.3ubuntu2) ... 121s Selecting previously unselected package libcc1-0:amd64. 121s Preparing to unpack .../058-libcc1-0_14.1.0-1ubuntu1_amd64.deb ... 121s Unpacking libcc1-0:amd64 (14.1.0-1ubuntu1) ... 121s Selecting previously unselected package libgomp1:amd64. 121s Preparing to unpack .../059-libgomp1_14.1.0-1ubuntu1_amd64.deb ... 121s Unpacking libgomp1:amd64 (14.1.0-1ubuntu1) ... 121s Selecting previously unselected package libitm1:amd64. 121s Preparing to unpack .../060-libitm1_14.1.0-1ubuntu1_amd64.deb ... 121s Unpacking libitm1:amd64 (14.1.0-1ubuntu1) ... 121s Selecting previously unselected package libatomic1:amd64. 121s Preparing to unpack .../061-libatomic1_14.1.0-1ubuntu1_amd64.deb ... 121s Unpacking libatomic1:amd64 (14.1.0-1ubuntu1) ... 121s Selecting previously unselected package libasan8:amd64. 121s Preparing to unpack .../062-libasan8_14.1.0-1ubuntu1_amd64.deb ... 121s Unpacking libasan8:amd64 (14.1.0-1ubuntu1) ... 121s Selecting previously unselected package liblsan0:amd64. 121s Preparing to unpack .../063-liblsan0_14.1.0-1ubuntu1_amd64.deb ... 121s Unpacking liblsan0:amd64 (14.1.0-1ubuntu1) ... 121s Selecting previously unselected package libtsan2:amd64. 121s Preparing to unpack .../064-libtsan2_14.1.0-1ubuntu1_amd64.deb ... 121s Unpacking libtsan2:amd64 (14.1.0-1ubuntu1) ... 121s Selecting previously unselected package libubsan1:amd64. 121s Preparing to unpack .../065-libubsan1_14.1.0-1ubuntu1_amd64.deb ... 121s Unpacking libubsan1:amd64 (14.1.0-1ubuntu1) ... 121s Selecting previously unselected package libhwasan0:amd64. 121s Preparing to unpack .../066-libhwasan0_14.1.0-1ubuntu1_amd64.deb ... 121s Unpacking libhwasan0:amd64 (14.1.0-1ubuntu1) ... 121s Selecting previously unselected package libquadmath0:amd64. 121s Preparing to unpack .../067-libquadmath0_14.1.0-1ubuntu1_amd64.deb ... 121s Unpacking libquadmath0:amd64 (14.1.0-1ubuntu1) ... 121s Selecting previously unselected package libgcc-13-dev:amd64. 121s Preparing to unpack .../068-libgcc-13-dev_13.2.0-23ubuntu4_amd64.deb ... 121s Unpacking libgcc-13-dev:amd64 (13.2.0-23ubuntu4) ... 121s Selecting previously unselected package gcc-13-x86-64-linux-gnu. 121s Preparing to unpack .../069-gcc-13-x86-64-linux-gnu_13.2.0-23ubuntu4_amd64.deb ... 121s Unpacking gcc-13-x86-64-linux-gnu (13.2.0-23ubuntu4) ... 122s Selecting previously unselected package gcc-13. 122s Preparing to unpack .../070-gcc-13_13.2.0-23ubuntu4_amd64.deb ... 122s Unpacking gcc-13 (13.2.0-23ubuntu4) ... 122s Selecting previously unselected package gcc-x86-64-linux-gnu. 122s Preparing to unpack .../071-gcc-x86-64-linux-gnu_4%3a13.2.0-7ubuntu1_amd64.deb ... 122s Unpacking gcc-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 122s Selecting previously unselected package gcc. 122s Preparing to unpack .../072-gcc_4%3a13.2.0-7ubuntu1_amd64.deb ... 122s Unpacking gcc (4:13.2.0-7ubuntu1) ... 122s Selecting previously unselected package libtool. 122s Preparing to unpack .../073-libtool_2.4.7-7build1_all.deb ... 122s Unpacking libtool (2.4.7-7build1) ... 122s Selecting previously unselected package dh-autoreconf. 122s Preparing to unpack .../074-dh-autoreconf_20_all.deb ... 122s Unpacking dh-autoreconf (20) ... 122s Selecting previously unselected package libarchive-zip-perl. 122s Preparing to unpack .../075-libarchive-zip-perl_1.68-1_all.deb ... 122s Unpacking libarchive-zip-perl (1.68-1) ... 122s Selecting previously unselected package libfile-stripnondeterminism-perl. 122s Preparing to unpack .../076-libfile-stripnondeterminism-perl_1.14.0-1_all.deb ... 122s Unpacking libfile-stripnondeterminism-perl (1.14.0-1) ... 122s Selecting previously unselected package dh-strip-nondeterminism. 122s Preparing to unpack .../077-dh-strip-nondeterminism_1.14.0-1_all.deb ... 122s Unpacking dh-strip-nondeterminism (1.14.0-1) ... 122s Selecting previously unselected package debugedit. 122s Preparing to unpack .../078-debugedit_1%3a5.0-5build2_amd64.deb ... 122s Unpacking debugedit (1:5.0-5build2) ... 122s Selecting previously unselected package dwz. 122s Preparing to unpack .../079-dwz_0.15-1build6_amd64.deb ... 122s Unpacking dwz (0.15-1build6) ... 122s Selecting previously unselected package gettext. 122s Preparing to unpack .../080-gettext_0.21-14ubuntu2_amd64.deb ... 122s Unpacking gettext (0.21-14ubuntu2) ... 122s Selecting previously unselected package intltool-debian. 122s Preparing to unpack .../081-intltool-debian_0.35.0+20060710.6_all.deb ... 122s Unpacking intltool-debian (0.35.0+20060710.6) ... 122s Selecting previously unselected package po-debconf. 122s Preparing to unpack .../082-po-debconf_1.0.21+nmu1_all.deb ... 122s Unpacking po-debconf (1.0.21+nmu1) ... 122s Selecting previously unselected package debhelper. 122s Preparing to unpack .../083-debhelper_13.15.3ubuntu2_all.deb ... 122s Unpacking debhelper (13.15.3ubuntu2) ... 122s Selecting previously unselected package aglfn. 122s Preparing to unpack .../084-aglfn_1.7+git20191031.4036a9c-2_all.deb ... 122s Unpacking aglfn (1.7+git20191031.4036a9c-2) ... 122s Selecting previously unselected package gnuplot-data. 122s Preparing to unpack .../085-gnuplot-data_6.0.0+dfsg1-1ubuntu3_all.deb ... 122s Unpacking gnuplot-data (6.0.0+dfsg1-1ubuntu3) ... 122s Selecting previously unselected package libpixman-1-0:amd64. 122s Preparing to unpack .../086-libpixman-1-0_0.42.2-1build1_amd64.deb ... 122s Unpacking libpixman-1-0:amd64 (0.42.2-1build1) ... 122s Selecting previously unselected package libxcb-render0:amd64. 122s Preparing to unpack .../087-libxcb-render0_1.17.0-2_amd64.deb ... 122s Unpacking libxcb-render0:amd64 (1.17.0-2) ... 122s Selecting previously unselected package libxcb-shm0:amd64. 122s Preparing to unpack .../088-libxcb-shm0_1.17.0-2_amd64.deb ... 122s Unpacking libxcb-shm0:amd64 (1.17.0-2) ... 122s Selecting previously unselected package libxrender1:amd64. 122s Preparing to unpack .../089-libxrender1_1%3a0.9.10-1.1build1_amd64.deb ... 122s Unpacking libxrender1:amd64 (1:0.9.10-1.1build1) ... 122s Selecting previously unselected package libcairo2:amd64. 122s Preparing to unpack .../090-libcairo2_1.18.0-3build1_amd64.deb ... 122s Unpacking libcairo2:amd64 (1.18.0-3build1) ... 122s Selecting previously unselected package liblua5.4-0:amd64. 122s Preparing to unpack .../091-liblua5.4-0_5.4.6-3build2_amd64.deb ... 122s Unpacking liblua5.4-0:amd64 (5.4.6-3build2) ... 122s Selecting previously unselected package fontconfig. 122s Preparing to unpack .../092-fontconfig_2.15.0-1.1ubuntu2_amd64.deb ... 122s Unpacking fontconfig (2.15.0-1.1ubuntu2) ... 122s Selecting previously unselected package libgraphite2-3:amd64. 122s Preparing to unpack .../093-libgraphite2-3_1.3.14-2build1_amd64.deb ... 122s Unpacking libgraphite2-3:amd64 (1.3.14-2build1) ... 122s Selecting previously unselected package libharfbuzz0b:amd64. 122s Preparing to unpack .../094-libharfbuzz0b_8.3.0-2build2_amd64.deb ... 122s Unpacking libharfbuzz0b:amd64 (8.3.0-2build2) ... 122s Selecting previously unselected package libthai-data. 122s Preparing to unpack .../095-libthai-data_0.1.29-2build1_all.deb ... 122s Unpacking libthai-data (0.1.29-2build1) ... 122s Selecting previously unselected package libdatrie1:amd64. 122s Preparing to unpack .../096-libdatrie1_0.2.13-3build1_amd64.deb ... 122s Unpacking libdatrie1:amd64 (0.2.13-3build1) ... 122s Selecting previously unselected package libthai0:amd64. 122s Preparing to unpack .../097-libthai0_0.1.29-2build1_amd64.deb ... 122s Unpacking libthai0:amd64 (0.1.29-2build1) ... 122s Selecting previously unselected package libpango-1.0-0:amd64. 122s Preparing to unpack .../098-libpango-1.0-0_1.54.0+ds-1_amd64.deb ... 122s Unpacking libpango-1.0-0:amd64 (1.54.0+ds-1) ... 122s Selecting previously unselected package libpangoft2-1.0-0:amd64. 122s Preparing to unpack .../099-libpangoft2-1.0-0_1.54.0+ds-1_amd64.deb ... 122s Unpacking libpangoft2-1.0-0:amd64 (1.54.0+ds-1) ... 122s Selecting previously unselected package libpangocairo-1.0-0:amd64. 123s Preparing to unpack .../100-libpangocairo-1.0-0_1.54.0+ds-1_amd64.deb ... 123s Unpacking libpangocairo-1.0-0:amd64 (1.54.0+ds-1) ... 123s Selecting previously unselected package libwebpmux3:amd64. 123s Preparing to unpack .../101-libwebpmux3_1.4.0-0.1_amd64.deb ... 123s Unpacking libwebpmux3:amd64 (1.4.0-0.1) ... 123s Selecting previously unselected package gnuplot-nox. 123s Preparing to unpack .../102-gnuplot-nox_6.0.0+dfsg1-1ubuntu3_amd64.deb ... 123s Unpacking gnuplot-nox (6.0.0+dfsg1-1ubuntu3) ... 123s Selecting previously unselected package fonts-freefont-otf. 123s Preparing to unpack .../103-fonts-freefont-otf_20211204+svn4273-2_all.deb ... 123s Unpacking fonts-freefont-otf (20211204+svn4273-2) ... 123s Selecting previously unselected package dh-octave-autopkgtest. 123s Preparing to unpack .../104-dh-octave-autopkgtest_1.8.0_all.deb ... 123s Unpacking dh-octave-autopkgtest (1.8.0) ... 123s Selecting previously unselected package libapt-pkg-perl. 123s Preparing to unpack .../105-libapt-pkg-perl_0.1.40build7_amd64.deb ... 123s Unpacking libapt-pkg-perl (0.1.40build7) ... 123s Selecting previously unselected package libarray-intspan-perl. 123s Preparing to unpack .../106-libarray-intspan-perl_2.004-2_all.deb ... 123s Unpacking libarray-intspan-perl (2.004-2) ... 123s Selecting previously unselected package libyaml-libyaml-perl. 123s Preparing to unpack .../107-libyaml-libyaml-perl_0.89+ds-1build2_amd64.deb ... 123s Unpacking libyaml-libyaml-perl (0.89+ds-1build2) ... 123s Selecting previously unselected package libconfig-model-backend-yaml-perl. 123s Preparing to unpack .../108-libconfig-model-backend-yaml-perl_2.134-2_all.deb ... 123s Unpacking libconfig-model-backend-yaml-perl (2.134-2) ... 123s Selecting previously unselected package libexporter-lite-perl. 123s Preparing to unpack .../109-libexporter-lite-perl_0.09-2_all.deb ... 123s Unpacking libexporter-lite-perl (0.09-2) ... 123s Selecting previously unselected package libencode-locale-perl. 123s Preparing to unpack .../110-libencode-locale-perl_1.05-3_all.deb ... 123s Unpacking libencode-locale-perl (1.05-3) ... 123s Selecting previously unselected package libtimedate-perl. 123s Preparing to unpack .../111-libtimedate-perl_2.3300-2_all.deb ... 123s Unpacking libtimedate-perl (2.3300-2) ... 123s Selecting previously unselected package libhttp-date-perl. 123s Preparing to unpack .../112-libhttp-date-perl_6.06-1_all.deb ... 123s Unpacking libhttp-date-perl (6.06-1) ... 123s Selecting previously unselected package libfile-listing-perl. 123s Preparing to unpack .../113-libfile-listing-perl_6.16-1_all.deb ... 123s Unpacking libfile-listing-perl (6.16-1) ... 123s Selecting previously unselected package libhtml-tagset-perl. 123s Preparing to unpack .../114-libhtml-tagset-perl_3.24-1_all.deb ... 123s Unpacking libhtml-tagset-perl (3.24-1) ... 123s Selecting previously unselected package liburi-perl. 123s Preparing to unpack .../115-liburi-perl_5.28-1_all.deb ... 123s Unpacking liburi-perl (5.28-1) ... 123s Selecting previously unselected package libhtml-parser-perl:amd64. 123s Preparing to unpack .../116-libhtml-parser-perl_3.82-1_amd64.deb ... 123s Unpacking libhtml-parser-perl:amd64 (3.82-1) ... 123s Selecting previously unselected package libhtml-tree-perl. 123s Preparing to unpack .../117-libhtml-tree-perl_5.07-3_all.deb ... 123s Unpacking libhtml-tree-perl (5.07-3) ... 123s Selecting previously unselected package libclone-perl:amd64. 123s Preparing to unpack .../118-libclone-perl_0.46-1build3_amd64.deb ... 123s Unpacking libclone-perl:amd64 (0.46-1build3) ... 123s Selecting previously unselected package libio-html-perl. 123s Preparing to unpack .../119-libio-html-perl_1.004-3_all.deb ... 123s Unpacking libio-html-perl (1.004-3) ... 123s Selecting previously unselected package liblwp-mediatypes-perl. 123s Preparing to unpack .../120-liblwp-mediatypes-perl_6.04-2_all.deb ... 123s Unpacking liblwp-mediatypes-perl (6.04-2) ... 123s Selecting previously unselected package libhttp-message-perl. 123s Preparing to unpack .../121-libhttp-message-perl_6.45-1ubuntu1_all.deb ... 123s Unpacking libhttp-message-perl (6.45-1ubuntu1) ... 123s Selecting previously unselected package libhttp-cookies-perl. 123s Preparing to unpack .../122-libhttp-cookies-perl_6.11-1_all.deb ... 123s Unpacking libhttp-cookies-perl (6.11-1) ... 123s Selecting previously unselected package libhttp-negotiate-perl. 123s Preparing to unpack .../123-libhttp-negotiate-perl_6.01-2_all.deb ... 123s Unpacking libhttp-negotiate-perl (6.01-2) ... 123s Selecting previously unselected package perl-openssl-defaults:amd64. 123s Preparing to unpack .../124-perl-openssl-defaults_7build3_amd64.deb ... 123s Unpacking perl-openssl-defaults:amd64 (7build3) ... 123s Selecting previously unselected package libnet-ssleay-perl:amd64. 123s Preparing to unpack .../125-libnet-ssleay-perl_1.94-1build4_amd64.deb ... 123s Unpacking libnet-ssleay-perl:amd64 (1.94-1build4) ... 123s Selecting previously unselected package libio-socket-ssl-perl. 123s Preparing to unpack .../126-libio-socket-ssl-perl_2.085-1_all.deb ... 123s Unpacking libio-socket-ssl-perl (2.085-1) ... 123s Selecting previously unselected package libnet-http-perl. 123s Preparing to unpack .../127-libnet-http-perl_6.23-1_all.deb ... 123s Unpacking libnet-http-perl (6.23-1) ... 123s Selecting previously unselected package liblwp-protocol-https-perl. 123s Preparing to unpack .../128-liblwp-protocol-https-perl_6.14-1_all.deb ... 123s Unpacking liblwp-protocol-https-perl (6.14-1) ... 123s Selecting previously unselected package libwww-robotrules-perl. 123s Preparing to unpack .../129-libwww-robotrules-perl_6.02-1_all.deb ... 123s Unpacking libwww-robotrules-perl (6.02-1) ... 123s Selecting previously unselected package libwww-perl. 123s Preparing to unpack .../130-libwww-perl_6.77-1_all.deb ... 123s Unpacking libwww-perl (6.77-1) ... 123s Selecting previously unselected package liberror-perl. 123s Preparing to unpack .../131-liberror-perl_0.17029-2_all.deb ... 123s Unpacking liberror-perl (0.17029-2) ... 124s Selecting previously unselected package libparse-debcontrol-perl. 124s Preparing to unpack .../132-libparse-debcontrol-perl_2.005-6_all.deb ... 124s Unpacking libparse-debcontrol-perl (2.005-6) ... 124s Selecting previously unselected package libsoftware-copyright-perl. 124s Preparing to unpack .../133-libsoftware-copyright-perl_0.012-2_all.deb ... 124s Unpacking libsoftware-copyright-perl (0.012-2) ... 124s Selecting previously unselected package libalgorithm-c3-perl. 124s Preparing to unpack .../134-libalgorithm-c3-perl_0.11-2_all.deb ... 124s Unpacking libalgorithm-c3-perl (0.11-2) ... 124s Selecting previously unselected package libclass-c3-perl. 124s Preparing to unpack .../135-libclass-c3-perl_0.35-2_all.deb ... 124s Unpacking libclass-c3-perl (0.35-2) ... 124s Selecting previously unselected package libmro-compat-perl. 124s Preparing to unpack .../136-libmro-compat-perl_0.15-2_all.deb ... 124s Unpacking libmro-compat-perl (0.15-2) ... 124s Selecting previously unselected package libdata-section-perl. 124s Preparing to unpack .../137-libdata-section-perl_0.200008-1_all.deb ... 124s Unpacking libdata-section-perl (0.200008-1) ... 124s Selecting previously unselected package libtext-template-perl. 124s Preparing to unpack .../138-libtext-template-perl_1.61-1_all.deb ... 124s Unpacking libtext-template-perl (1.61-1) ... 124s Selecting previously unselected package libsoftware-license-perl. 124s Preparing to unpack .../139-libsoftware-license-perl_0.104006-1_all.deb ... 124s Unpacking libsoftware-license-perl (0.104006-1) ... 124s Selecting previously unselected package libsoftware-licensemoreutils-perl. 124s Preparing to unpack .../140-libsoftware-licensemoreutils-perl_1.009-1_all.deb ... 124s Unpacking libsoftware-licensemoreutils-perl (1.009-1) ... 124s Selecting previously unselected package libsort-versions-perl. 124s Preparing to unpack .../141-libsort-versions-perl_1.62-3_all.deb ... 124s Unpacking libsort-versions-perl (1.62-3) ... 124s Selecting previously unselected package libtext-reform-perl. 124s Preparing to unpack .../142-libtext-reform-perl_1.20-5_all.deb ... 124s Unpacking libtext-reform-perl (1.20-5) ... 124s Selecting previously unselected package libtext-autoformat-perl. 124s Preparing to unpack .../143-libtext-autoformat-perl_1.750000-2_all.deb ... 124s Unpacking libtext-autoformat-perl (1.750000-2) ... 124s Selecting previously unselected package libtext-levenshtein-damerau-perl. 124s Preparing to unpack .../144-libtext-levenshtein-damerau-perl_0.41-3_all.deb ... 124s Unpacking libtext-levenshtein-damerau-perl (0.41-3) ... 124s Selecting previously unselected package libtoml-tiny-perl. 124s Preparing to unpack .../145-libtoml-tiny-perl_0.17-1_all.deb ... 124s Unpacking libtoml-tiny-perl (0.17-1) ... 124s Selecting previously unselected package libindirect-perl. 124s Preparing to unpack .../146-libindirect-perl_0.39-2build4_amd64.deb ... 124s Unpacking libindirect-perl (0.39-2build4) ... 124s Selecting previously unselected package libxs-parse-keyword-perl. 124s Preparing to unpack .../147-libxs-parse-keyword-perl_0.42-1_amd64.deb ... 124s Unpacking libxs-parse-keyword-perl (0.42-1) ... 124s Selecting previously unselected package libxs-parse-sublike-perl:amd64. 124s Preparing to unpack .../148-libxs-parse-sublike-perl_0.21-2build3_amd64.deb ... 124s Unpacking libxs-parse-sublike-perl:amd64 (0.21-2build3) ... 124s Selecting previously unselected package libobject-pad-perl. 124s Preparing to unpack .../149-libobject-pad-perl_0.808-1build3_amd64.deb ... 124s Unpacking libobject-pad-perl (0.808-1build3) ... 124s Selecting previously unselected package libsyntax-keyword-try-perl. 124s Preparing to unpack .../150-libsyntax-keyword-try-perl_0.29-2_amd64.deb ... 124s Unpacking libsyntax-keyword-try-perl (0.29-2) ... 124s Selecting previously unselected package libio-interactive-perl. 124s Preparing to unpack .../151-libio-interactive-perl_1.025-1_all.deb ... 124s Unpacking libio-interactive-perl (1.025-1) ... 124s Selecting previously unselected package liblog-any-perl. 124s Preparing to unpack .../152-liblog-any-perl_1.717-1_all.deb ... 124s Unpacking liblog-any-perl (1.717-1) ... 124s Selecting previously unselected package liblog-any-adapter-screen-perl. 124s Preparing to unpack .../153-liblog-any-adapter-screen-perl_0.140-2_all.deb ... 124s Unpacking liblog-any-adapter-screen-perl (0.140-2) ... 124s Selecting previously unselected package libsub-exporter-progressive-perl. 124s Preparing to unpack .../154-libsub-exporter-progressive-perl_0.001013-3_all.deb ... 124s Unpacking libsub-exporter-progressive-perl (0.001013-3) ... 124s Selecting previously unselected package libvariable-magic-perl. 124s Preparing to unpack .../155-libvariable-magic-perl_0.64-1_amd64.deb ... 124s Unpacking libvariable-magic-perl (0.64-1) ... 124s Selecting previously unselected package libb-hooks-endofscope-perl. 124s Preparing to unpack .../156-libb-hooks-endofscope-perl_0.28-1_all.deb ... 124s Unpacking libb-hooks-endofscope-perl (0.28-1) ... 124s Selecting previously unselected package libsub-identify-perl. 124s Preparing to unpack .../157-libsub-identify-perl_0.14-3build3_amd64.deb ... 124s Unpacking libsub-identify-perl (0.14-3build3) ... 124s Selecting previously unselected package libsub-name-perl:amd64. 124s Preparing to unpack .../158-libsub-name-perl_0.27-1build3_amd64.deb ... 124s Unpacking libsub-name-perl:amd64 (0.27-1build3) ... 124s Selecting previously unselected package libnamespace-clean-perl. 124s Preparing to unpack .../159-libnamespace-clean-perl_0.27-2_all.deb ... 124s Unpacking libnamespace-clean-perl (0.27-2) ... 124s Selecting previously unselected package libnumber-compare-perl. 124s Preparing to unpack .../160-libnumber-compare-perl_0.03-3_all.deb ... 124s Unpacking libnumber-compare-perl (0.03-3) ... 124s Selecting previously unselected package libtext-glob-perl. 124s Preparing to unpack .../161-libtext-glob-perl_0.11-3_all.deb ... 124s Unpacking libtext-glob-perl (0.11-3) ... 124s Selecting previously unselected package libpath-iterator-rule-perl. 124s Preparing to unpack .../162-libpath-iterator-rule-perl_1.015-2_all.deb ... 124s Unpacking libpath-iterator-rule-perl (1.015-2) ... 125s Selecting previously unselected package libpod-parser-perl. 125s Preparing to unpack .../163-libpod-parser-perl_1.67-1_all.deb ... 125s Adding 'diversion of /usr/bin/podselect to /usr/bin/podselect.bundled by libpod-parser-perl' 125s Adding 'diversion of /usr/share/man/man1/podselect.1.gz to /usr/share/man/man1/podselect.bundled.1.gz by libpod-parser-perl' 125s Unpacking libpod-parser-perl (1.67-1) ... 125s Selecting previously unselected package libpod-constants-perl. 125s Preparing to unpack .../164-libpod-constants-perl_0.19-2_all.deb ... 125s Unpacking libpod-constants-perl (0.19-2) ... 125s Selecting previously unselected package libset-intspan-perl. 125s Preparing to unpack .../165-libset-intspan-perl_1.19-3_all.deb ... 125s Unpacking libset-intspan-perl (1.19-3) ... 125s Selecting previously unselected package libstring-copyright-perl. 125s Preparing to unpack .../166-libstring-copyright-perl_0.003014-1_all.deb ... 125s Unpacking libstring-copyright-perl (0.003014-1) ... 125s Selecting previously unselected package libstring-escape-perl. 125s Preparing to unpack .../167-libstring-escape-perl_2010.002-3_all.deb ... 125s Unpacking libstring-escape-perl (2010.002-3) ... 125s Selecting previously unselected package libregexp-pattern-license-perl. 125s Preparing to unpack .../168-libregexp-pattern-license-perl_3.11.0-1_all.deb ... 125s Unpacking libregexp-pattern-license-perl (3.11.0-1) ... 125s Selecting previously unselected package libregexp-pattern-perl. 125s Preparing to unpack .../169-libregexp-pattern-perl_0.2.14-2_all.deb ... 125s Unpacking libregexp-pattern-perl (0.2.14-2) ... 125s Selecting previously unselected package libstring-license-perl. 125s Preparing to unpack .../170-libstring-license-perl_0.0.9-2ubuntu1_all.deb ... 125s Unpacking libstring-license-perl (0.0.9-2ubuntu1) ... 125s Selecting previously unselected package licensecheck. 125s Preparing to unpack .../171-licensecheck_3.3.9-1ubuntu1_all.deb ... 125s Unpacking licensecheck (3.3.9-1ubuntu1) ... 125s Selecting previously unselected package diffstat. 125s Preparing to unpack .../172-diffstat_1.66-1build1_amd64.deb ... 125s Unpacking diffstat (1.66-1build1) ... 125s Selecting previously unselected package libberkeleydb-perl:amd64. 125s Preparing to unpack .../173-libberkeleydb-perl_0.64-2build4_amd64.deb ... 125s Unpacking libberkeleydb-perl:amd64 (0.64-2build4) ... 125s Selecting previously unselected package libclass-xsaccessor-perl. 125s Preparing to unpack .../174-libclass-xsaccessor-perl_1.19-4build4_amd64.deb ... 125s Unpacking libclass-xsaccessor-perl (1.19-4build4) ... 125s Selecting previously unselected package libconfig-tiny-perl. 125s Preparing to unpack .../175-libconfig-tiny-perl_2.30-1_all.deb ... 125s Unpacking libconfig-tiny-perl (2.30-1) ... 125s Selecting previously unselected package libconst-fast-perl. 125s Preparing to unpack .../176-libconst-fast-perl_0.014-2_all.deb ... 125s Unpacking libconst-fast-perl (0.014-2) ... 125s Selecting previously unselected package libcpanel-json-xs-perl:amd64. 125s Preparing to unpack .../177-libcpanel-json-xs-perl_4.38-1_amd64.deb ... 125s Unpacking libcpanel-json-xs-perl:amd64 (4.38-1) ... 125s Selecting previously unselected package libaliased-perl. 125s Preparing to unpack .../178-libaliased-perl_0.34-3_all.deb ... 125s Unpacking libaliased-perl (0.34-3) ... 125s Selecting previously unselected package libclass-data-inheritable-perl. 125s Preparing to unpack .../179-libclass-data-inheritable-perl_0.08-3_all.deb ... 125s Unpacking libclass-data-inheritable-perl (0.08-3) ... 125s Selecting previously unselected package libdevel-stacktrace-perl. 125s Preparing to unpack .../180-libdevel-stacktrace-perl_2.0500-1_all.deb ... 125s Unpacking libdevel-stacktrace-perl (2.0500-1) ... 125s Selecting previously unselected package libexception-class-perl. 125s Preparing to unpack .../181-libexception-class-perl_1.45-1_all.deb ... 125s Unpacking libexception-class-perl (1.45-1) ... 125s Selecting previously unselected package libiterator-perl. 125s Preparing to unpack .../182-libiterator-perl_0.03+ds1-2_all.deb ... 125s Unpacking libiterator-perl (0.03+ds1-2) ... 125s Selecting previously unselected package libiterator-util-perl. 125s Preparing to unpack .../183-libiterator-util-perl_0.02+ds1-2_all.deb ... 125s Unpacking libiterator-util-perl (0.02+ds1-2) ... 125s Selecting previously unselected package libdata-dpath-perl. 125s Preparing to unpack .../184-libdata-dpath-perl_0.59-1_all.deb ... 125s Unpacking libdata-dpath-perl (0.59-1) ... 125s Selecting previously unselected package libnet-domain-tld-perl. 125s Preparing to unpack .../185-libnet-domain-tld-perl_1.75-3_all.deb ... 125s Unpacking libnet-domain-tld-perl (1.75-3) ... 125s Selecting previously unselected package libdata-validate-domain-perl. 125s Preparing to unpack .../186-libdata-validate-domain-perl_0.10-1.1_all.deb ... 125s Unpacking libdata-validate-domain-perl (0.10-1.1) ... 125s Selecting previously unselected package libnet-ipv6addr-perl. 125s Preparing to unpack .../187-libnet-ipv6addr-perl_1.02-1_all.deb ... 125s Unpacking libnet-ipv6addr-perl (1.02-1) ... 125s Selecting previously unselected package libnet-netmask-perl. 125s Preparing to unpack .../188-libnet-netmask-perl_2.0002-2_all.deb ... 125s Unpacking libnet-netmask-perl (2.0002-2) ... 125s Selecting previously unselected package libnetaddr-ip-perl. 125s Preparing to unpack .../189-libnetaddr-ip-perl_4.079+dfsg-2build4_amd64.deb ... 125s Unpacking libnetaddr-ip-perl (4.079+dfsg-2build4) ... 125s Selecting previously unselected package libdata-validate-ip-perl. 125s Preparing to unpack .../190-libdata-validate-ip-perl_0.31-1_all.deb ... 125s Unpacking libdata-validate-ip-perl (0.31-1) ... 125s Selecting previously unselected package libdata-validate-uri-perl. 125s Preparing to unpack .../191-libdata-validate-uri-perl_0.07-3_all.deb ... 125s Unpacking libdata-validate-uri-perl (0.07-3) ... 125s Selecting previously unselected package libdevel-size-perl. 125s Preparing to unpack .../192-libdevel-size-perl_0.84-1_amd64.deb ... 125s Unpacking libdevel-size-perl (0.84-1) ... 126s Selecting previously unselected package libemail-address-xs-perl. 126s Preparing to unpack .../193-libemail-address-xs-perl_1.05-1build4_amd64.deb ... 126s Unpacking libemail-address-xs-perl (1.05-1build4) ... 126s Selecting previously unselected package libipc-system-simple-perl. 126s Preparing to unpack .../194-libipc-system-simple-perl_1.30-2_all.deb ... 126s Unpacking libipc-system-simple-perl (1.30-2) ... 126s Selecting previously unselected package libfile-basedir-perl. 126s Preparing to unpack .../195-libfile-basedir-perl_0.09-2_all.deb ... 126s Unpacking libfile-basedir-perl (0.09-2) ... 126s Selecting previously unselected package libfile-find-rule-perl. 126s Preparing to unpack .../196-libfile-find-rule-perl_0.34-3_all.deb ... 126s Unpacking libfile-find-rule-perl (0.34-3) ... 126s Selecting previously unselected package libio-string-perl. 126s Preparing to unpack .../197-libio-string-perl_1.08-4_all.deb ... 126s Unpacking libio-string-perl (1.08-4) ... 126s Selecting previously unselected package libfont-ttf-perl. 126s Preparing to unpack .../198-libfont-ttf-perl_1.06-2_all.deb ... 126s Unpacking libfont-ttf-perl (1.06-2) ... 126s Selecting previously unselected package libhtml-html5-entities-perl. 126s Preparing to unpack .../199-libhtml-html5-entities-perl_0.004-3_all.deb ... 126s Unpacking libhtml-html5-entities-perl (0.004-3) ... 126s Selecting previously unselected package libhtml-tokeparser-simple-perl. 126s Preparing to unpack .../200-libhtml-tokeparser-simple-perl_3.16-4_all.deb ... 126s Unpacking libhtml-tokeparser-simple-perl (3.16-4) ... 126s Selecting previously unselected package libipc-run3-perl. 126s Preparing to unpack .../201-libipc-run3-perl_0.049-1_all.deb ... 126s Unpacking libipc-run3-perl (0.049-1) ... 126s Selecting previously unselected package libjson-maybexs-perl. 126s Preparing to unpack .../202-libjson-maybexs-perl_1.004005-1_all.deb ... 126s Unpacking libjson-maybexs-perl (1.004005-1) ... 126s Selecting previously unselected package liblist-compare-perl. 126s Preparing to unpack .../203-liblist-compare-perl_0.55-2_all.deb ... 126s Unpacking liblist-compare-perl (0.55-2) ... 126s Selecting previously unselected package liblist-someutils-perl. 126s Preparing to unpack .../204-liblist-someutils-perl_0.59-1_all.deb ... 126s Unpacking liblist-someutils-perl (0.59-1) ... 126s Selecting previously unselected package liblist-utilsby-perl. 126s Preparing to unpack .../205-liblist-utilsby-perl_0.12-2_all.deb ... 126s Unpacking liblist-utilsby-perl (0.12-2) ... 126s Selecting previously unselected package libmldbm-perl. 126s Preparing to unpack .../206-libmldbm-perl_2.05-4_all.deb ... 126s Unpacking libmldbm-perl (2.05-4) ... 126s Selecting previously unselected package libclass-method-modifiers-perl. 126s Preparing to unpack .../207-libclass-method-modifiers-perl_2.15-1_all.deb ... 126s Unpacking libclass-method-modifiers-perl (2.15-1) ... 126s Selecting previously unselected package libimport-into-perl. 126s Preparing to unpack .../208-libimport-into-perl_1.002005-2_all.deb ... 126s Unpacking libimport-into-perl (1.002005-2) ... 126s Selecting previously unselected package librole-tiny-perl. 126s Preparing to unpack .../209-librole-tiny-perl_2.002004-1_all.deb ... 126s Unpacking librole-tiny-perl (2.002004-1) ... 126s Selecting previously unselected package libsub-quote-perl. 126s Preparing to unpack .../210-libsub-quote-perl_2.006008-1ubuntu1_all.deb ... 126s Unpacking libsub-quote-perl (2.006008-1ubuntu1) ... 126s Selecting previously unselected package libmoo-perl. 126s Preparing to unpack .../211-libmoo-perl_2.005005-1_all.deb ... 126s Unpacking libmoo-perl (2.005005-1) ... 126s Selecting previously unselected package libstrictures-perl. 126s Preparing to unpack .../212-libstrictures-perl_2.000006-1_all.deb ... 126s Unpacking libstrictures-perl (2.000006-1) ... 126s Selecting previously unselected package libmoox-aliases-perl. 126s Preparing to unpack .../213-libmoox-aliases-perl_0.001006-2_all.deb ... 126s Unpacking libmoox-aliases-perl (0.001006-2) ... 126s Selecting previously unselected package libperlio-gzip-perl. 126s Preparing to unpack .../214-libperlio-gzip-perl_0.20-1build4_amd64.deb ... 126s Unpacking libperlio-gzip-perl (0.20-1build4) ... 126s Selecting previously unselected package libperlio-utf8-strict-perl. 126s Preparing to unpack .../215-libperlio-utf8-strict-perl_0.010-1build3_amd64.deb ... 126s Unpacking libperlio-utf8-strict-perl (0.010-1build3) ... 126s Selecting previously unselected package libproc-processtable-perl:amd64. 126s Preparing to unpack .../216-libproc-processtable-perl_0.636-1build3_amd64.deb ... 126s Unpacking libproc-processtable-perl:amd64 (0.636-1build3) ... 126s Selecting previously unselected package libregexp-wildcards-perl. 126s Preparing to unpack .../217-libregexp-wildcards-perl_1.05-3_all.deb ... 126s Unpacking libregexp-wildcards-perl (1.05-3) ... 126s Selecting previously unselected package libsereal-decoder-perl. 126s Preparing to unpack .../218-libsereal-decoder-perl_5.004+ds-1build3_amd64.deb ... 126s Unpacking libsereal-decoder-perl (5.004+ds-1build3) ... 126s Selecting previously unselected package libsereal-encoder-perl. 126s Preparing to unpack .../219-libsereal-encoder-perl_5.004+ds-1build3_amd64.deb ... 126s Unpacking libsereal-encoder-perl (5.004+ds-1build3) ... 126s Selecting previously unselected package libterm-readkey-perl. 126s Preparing to unpack .../220-libterm-readkey-perl_2.38-2build4_amd64.deb ... 126s Unpacking libterm-readkey-perl (2.38-2build4) ... 126s Selecting previously unselected package libtext-levenshteinxs-perl. 126s Preparing to unpack .../221-libtext-levenshteinxs-perl_0.03-5build4_amd64.deb ... 126s Unpacking libtext-levenshteinxs-perl (0.03-5build4) ... 126s Selecting previously unselected package libmarkdown2:amd64. 126s Preparing to unpack .../222-libmarkdown2_2.2.7-2build1_amd64.deb ... 126s Unpacking libmarkdown2:amd64 (2.2.7-2build1) ... 126s Selecting previously unselected package libtext-markdown-discount-perl. 126s Preparing to unpack .../223-libtext-markdown-discount-perl_0.16-1build3_amd64.deb ... 126s Unpacking libtext-markdown-discount-perl (0.16-1build3) ... 126s Selecting previously unselected package libdata-messagepack-perl. 126s Preparing to unpack .../224-libdata-messagepack-perl_1.02-1build4_amd64.deb ... 126s Unpacking libdata-messagepack-perl (1.02-1build4) ... 126s Selecting previously unselected package libtext-xslate-perl:amd64. 126s Preparing to unpack .../225-libtext-xslate-perl_3.5.9-2_amd64.deb ... 126s Unpacking libtext-xslate-perl:amd64 (3.5.9-2) ... 126s Selecting previously unselected package libtime-duration-perl. 127s Preparing to unpack .../226-libtime-duration-perl_1.21-2_all.deb ... 127s Unpacking libtime-duration-perl (1.21-2) ... 127s Selecting previously unselected package libtime-moment-perl. 127s Preparing to unpack .../227-libtime-moment-perl_0.44-2build4_amd64.deb ... 127s Unpacking libtime-moment-perl (0.44-2build4) ... 127s Selecting previously unselected package libunicode-utf8-perl. 127s Preparing to unpack .../228-libunicode-utf8-perl_0.62-2build3_amd64.deb ... 127s Unpacking libunicode-utf8-perl (0.62-2build3) ... 127s Selecting previously unselected package libcgi-pm-perl. 127s Preparing to unpack .../229-libcgi-pm-perl_4.65-1_all.deb ... 127s Unpacking libcgi-pm-perl (4.65-1) ... 127s Selecting previously unselected package libhtml-form-perl. 127s Preparing to unpack .../230-libhtml-form-perl_6.11-1_all.deb ... 127s Unpacking libhtml-form-perl (6.11-1) ... 127s Selecting previously unselected package libwww-mechanize-perl. 127s Preparing to unpack .../231-libwww-mechanize-perl_2.18-1ubuntu1_all.deb ... 127s Unpacking libwww-mechanize-perl (2.18-1ubuntu1) ... 127s Selecting previously unselected package libxml-namespacesupport-perl. 127s Preparing to unpack .../232-libxml-namespacesupport-perl_1.12-2_all.deb ... 127s Unpacking libxml-namespacesupport-perl (1.12-2) ... 127s Selecting previously unselected package libxml-sax-base-perl. 127s Preparing to unpack .../233-libxml-sax-base-perl_1.09-3_all.deb ... 127s Unpacking libxml-sax-base-perl (1.09-3) ... 127s Selecting previously unselected package libxml-sax-perl. 127s Preparing to unpack .../234-libxml-sax-perl_1.02+dfsg-3_all.deb ... 127s Unpacking libxml-sax-perl (1.02+dfsg-3) ... 127s Selecting previously unselected package libxml-libxml-perl. 127s Preparing to unpack .../235-libxml-libxml-perl_2.0207+dfsg+really+2.0134-2_amd64.deb ... 127s Unpacking libxml-libxml-perl (2.0207+dfsg+really+2.0134-2) ... 127s Selecting previously unselected package lzip. 127s Preparing to unpack .../236-lzip_1.24.1-1build1_amd64.deb ... 127s Unpacking lzip (1.24.1-1build1) ... 127s Selecting previously unselected package lzop. 127s Preparing to unpack .../237-lzop_1.04-2build3_amd64.deb ... 127s Unpacking lzop (1.04-2build3) ... 127s Selecting previously unselected package patchutils. 127s Preparing to unpack .../238-patchutils_0.4.2-1build3_amd64.deb ... 127s Unpacking patchutils (0.4.2-1build3) ... 127s Selecting previously unselected package t1utils. 127s Preparing to unpack .../239-t1utils_1.41-4build3_amd64.deb ... 127s Unpacking t1utils (1.41-4build3) ... 127s Selecting previously unselected package unzip. 127s Preparing to unpack .../240-unzip_6.0-28ubuntu5_amd64.deb ... 127s Unpacking unzip (6.0-28ubuntu5) ... 127s Selecting previously unselected package lintian. 127s Preparing to unpack .../241-lintian_2.117.0ubuntu2_all.deb ... 127s Unpacking lintian (2.117.0ubuntu2) ... 127s Selecting previously unselected package libconfig-model-dpkg-perl. 127s Preparing to unpack .../242-libconfig-model-dpkg-perl_3.005_all.deb ... 127s Unpacking libconfig-model-dpkg-perl (3.005) ... 127s Selecting previously unselected package libconvert-binhex-perl. 127s Preparing to unpack .../243-libconvert-binhex-perl_1.125-3_all.deb ... 127s Unpacking libconvert-binhex-perl (1.125-3) ... 127s Selecting previously unselected package libnet-smtp-ssl-perl. 127s Preparing to unpack .../244-libnet-smtp-ssl-perl_1.04-2_all.deb ... 127s Unpacking libnet-smtp-ssl-perl (1.04-2) ... 127s Selecting previously unselected package libmailtools-perl. 127s Preparing to unpack .../245-libmailtools-perl_2.21-3_all.deb ... 127s Unpacking libmailtools-perl (2.21-3) ... 127s Selecting previously unselected package libmime-tools-perl. 127s Preparing to unpack .../246-libmime-tools-perl_5.515-1_all.deb ... 127s Unpacking libmime-tools-perl (5.515-1) ... 128s Selecting previously unselected package libsuitesparseconfig7:amd64. 128s Preparing to unpack .../247-libsuitesparseconfig7_1%3a7.7.0+dfsg-2_amd64.deb ... 128s Unpacking libsuitesparseconfig7:amd64 (1:7.7.0+dfsg-2) ... 128s Selecting previously unselected package libamd3:amd64. 128s Preparing to unpack .../248-libamd3_1%3a7.7.0+dfsg-2_amd64.deb ... 128s Unpacking libamd3:amd64 (1:7.7.0+dfsg-2) ... 128s Selecting previously unselected package libblas3:amd64. 128s Preparing to unpack .../249-libblas3_3.12.0-3build1_amd64.deb ... 128s Unpacking libblas3:amd64 (3.12.0-3build1) ... 128s Selecting previously unselected package libgfortran5:amd64. 128s Preparing to unpack .../250-libgfortran5_14.1.0-1ubuntu1_amd64.deb ... 128s Unpacking libgfortran5:amd64 (14.1.0-1ubuntu1) ... 128s Selecting previously unselected package liblapack3:amd64. 128s Preparing to unpack .../251-liblapack3_3.12.0-3build1_amd64.deb ... 128s Unpacking liblapack3:amd64 (3.12.0-3build1) ... 128s Selecting previously unselected package libarpack2t64:amd64. 128s Preparing to unpack .../252-libarpack2t64_3.9.1-1.1build2_amd64.deb ... 128s Unpacking libarpack2t64:amd64 (3.9.1-1.1build2) ... 128s Selecting previously unselected package libccolamd3:amd64. 128s Preparing to unpack .../253-libccolamd3_1%3a7.7.0+dfsg-2_amd64.deb ... 128s Unpacking libccolamd3:amd64 (1:7.7.0+dfsg-2) ... 128s Selecting previously unselected package libcamd3:amd64. 128s Preparing to unpack .../254-libcamd3_1%3a7.7.0+dfsg-2_amd64.deb ... 128s Unpacking libcamd3:amd64 (1:7.7.0+dfsg-2) ... 128s Selecting previously unselected package libcolamd3:amd64. 128s Preparing to unpack .../255-libcolamd3_1%3a7.7.0+dfsg-2_amd64.deb ... 128s Unpacking libcolamd3:amd64 (1:7.7.0+dfsg-2) ... 128s Selecting previously unselected package libcholmod5:amd64. 128s Preparing to unpack .../256-libcholmod5_1%3a7.7.0+dfsg-2_amd64.deb ... 128s Unpacking libcholmod5:amd64 (1:7.7.0+dfsg-2) ... 128s Selecting previously unselected package libcxsparse4:amd64. 128s Preparing to unpack .../257-libcxsparse4_1%3a7.7.0+dfsg-2_amd64.deb ... 128s Unpacking libcxsparse4:amd64 (1:7.7.0+dfsg-2) ... 128s Selecting previously unselected package libfftw3-double3:amd64. 128s Preparing to unpack .../258-libfftw3-double3_3.3.10-1ubuntu3_amd64.deb ... 128s Unpacking libfftw3-double3:amd64 (3.3.10-1ubuntu3) ... 128s Selecting previously unselected package libfftw3-single3:amd64. 128s Preparing to unpack .../259-libfftw3-single3_3.3.10-1ubuntu3_amd64.deb ... 128s Unpacking libfftw3-single3:amd64 (3.3.10-1ubuntu3) ... 128s Selecting previously unselected package libxfixes3:amd64. 128s Preparing to unpack .../260-libxfixes3_1%3a6.0.0-2build1_amd64.deb ... 128s Unpacking libxfixes3:amd64 (1:6.0.0-2build1) ... 128s Selecting previously unselected package libxcursor1:amd64. 128s Preparing to unpack .../261-libxcursor1_1%3a1.2.2-1_amd64.deb ... 128s Unpacking libxcursor1:amd64 (1:1.2.2-1) ... 128s Selecting previously unselected package libxft2:amd64. 128s Preparing to unpack .../262-libxft2_2.3.6-1build1_amd64.deb ... 128s Unpacking libxft2:amd64 (2.3.6-1build1) ... 128s Selecting previously unselected package libxinerama1:amd64. 128s Preparing to unpack .../263-libxinerama1_2%3a1.1.4-3build1_amd64.deb ... 128s Unpacking libxinerama1:amd64 (2:1.1.4-3build1) ... 128s Selecting previously unselected package libfltk1.3t64:amd64. 128s Preparing to unpack .../264-libfltk1.3t64_1.3.8-6.1build2_amd64.deb ... 128s Unpacking libfltk1.3t64:amd64 (1.3.8-6.1build2) ... 128s Selecting previously unselected package libglvnd0:amd64. 128s Preparing to unpack .../265-libglvnd0_1.7.0-1build1_amd64.deb ... 128s Unpacking libglvnd0:amd64 (1.7.0-1build1) ... 128s Selecting previously unselected package libglapi-mesa:amd64. 128s Preparing to unpack .../266-libglapi-mesa_24.0.9-0ubuntu1_amd64.deb ... 128s Unpacking libglapi-mesa:amd64 (24.0.9-0ubuntu1) ... 128s Selecting previously unselected package libx11-xcb1:amd64. 128s Preparing to unpack .../267-libx11-xcb1_2%3a1.8.7-1build1_amd64.deb ... 128s Unpacking libx11-xcb1:amd64 (2:1.8.7-1build1) ... 128s Selecting previously unselected package libxcb-dri2-0:amd64. 128s Preparing to unpack .../268-libxcb-dri2-0_1.17.0-2_amd64.deb ... 128s Unpacking libxcb-dri2-0:amd64 (1.17.0-2) ... 128s Selecting previously unselected package libxcb-dri3-0:amd64. 128s Preparing to unpack .../269-libxcb-dri3-0_1.17.0-2_amd64.deb ... 128s Unpacking libxcb-dri3-0:amd64 (1.17.0-2) ... 128s Selecting previously unselected package libxcb-glx0:amd64. 128s Preparing to unpack .../270-libxcb-glx0_1.17.0-2_amd64.deb ... 128s Unpacking libxcb-glx0:amd64 (1.17.0-2) ... 128s Selecting previously unselected package libxcb-present0:amd64. 128s Preparing to unpack .../271-libxcb-present0_1.17.0-2_amd64.deb ... 128s Unpacking libxcb-present0:amd64 (1.17.0-2) ... 128s Selecting previously unselected package libxcb-randr0:amd64. 128s Preparing to unpack .../272-libxcb-randr0_1.17.0-2_amd64.deb ... 128s Unpacking libxcb-randr0:amd64 (1.17.0-2) ... 128s Selecting previously unselected package libxcb-sync1:amd64. 128s Preparing to unpack .../273-libxcb-sync1_1.17.0-2_amd64.deb ... 128s Unpacking libxcb-sync1:amd64 (1.17.0-2) ... 128s Selecting previously unselected package libxcb-xfixes0:amd64. 128s Preparing to unpack .../274-libxcb-xfixes0_1.17.0-2_amd64.deb ... 128s Unpacking libxcb-xfixes0:amd64 (1.17.0-2) ... 128s Selecting previously unselected package libxshmfence1:amd64. 128s Preparing to unpack .../275-libxshmfence1_1.3-1build5_amd64.deb ... 128s Unpacking libxshmfence1:amd64 (1.3-1build5) ... 128s Selecting previously unselected package libxxf86vm1:amd64. 128s Preparing to unpack .../276-libxxf86vm1_1%3a1.1.4-1build4_amd64.deb ... 128s Unpacking libxxf86vm1:amd64 (1:1.1.4-1build4) ... 129s Selecting previously unselected package libvulkan1:amd64. 129s Preparing to unpack .../277-libvulkan1_1.3.283.0-1_amd64.deb ... 129s Unpacking libvulkan1:amd64 (1.3.283.0-1) ... 129s Selecting previously unselected package libdrm-amdgpu1:amd64. 129s Preparing to unpack .../278-libdrm-amdgpu1_2.4.121-2_amd64.deb ... 129s Unpacking libdrm-amdgpu1:amd64 (2.4.121-2) ... 129s Selecting previously unselected package libpciaccess0:amd64. 129s Preparing to unpack .../279-libpciaccess0_0.17-3build1_amd64.deb ... 129s Unpacking libpciaccess0:amd64 (0.17-3build1) ... 129s Selecting previously unselected package libdrm-intel1:amd64. 129s Preparing to unpack .../280-libdrm-intel1_2.4.121-2_amd64.deb ... 129s Unpacking libdrm-intel1:amd64 (2.4.121-2) ... 129s Selecting previously unselected package libdrm-nouveau2:amd64. 129s Preparing to unpack .../281-libdrm-nouveau2_2.4.121-2_amd64.deb ... 129s Unpacking libdrm-nouveau2:amd64 (2.4.121-2) ... 129s Selecting previously unselected package libdrm-radeon1:amd64. 129s Preparing to unpack .../282-libdrm-radeon1_2.4.121-2_amd64.deb ... 129s Unpacking libdrm-radeon1:amd64 (2.4.121-2) ... 129s Selecting previously unselected package libllvm17t64:amd64. 129s Preparing to unpack .../283-libllvm17t64_1%3a17.0.6-12_amd64.deb ... 129s Unpacking libllvm17t64:amd64 (1:17.0.6-12) ... 129s Selecting previously unselected package libgl1-mesa-dri:amd64. 129s Preparing to unpack .../284-libgl1-mesa-dri_24.0.9-0ubuntu1_amd64.deb ... 129s Unpacking libgl1-mesa-dri:amd64 (24.0.9-0ubuntu1) ... 129s Selecting previously unselected package libglx-mesa0:amd64. 130s Preparing to unpack .../285-libglx-mesa0_24.0.9-0ubuntu1_amd64.deb ... 130s Unpacking libglx-mesa0:amd64 (24.0.9-0ubuntu1) ... 130s Selecting previously unselected package libglx0:amd64. 130s Preparing to unpack .../286-libglx0_1.7.0-1build1_amd64.deb ... 130s Unpacking libglx0:amd64 (1.7.0-1build1) ... 130s Selecting previously unselected package libgl1:amd64. 130s Preparing to unpack .../287-libgl1_1.7.0-1build1_amd64.deb ... 130s Unpacking libgl1:amd64 (1.7.0-1build1) ... 130s Selecting previously unselected package libfltk-gl1.3t64:amd64. 130s Preparing to unpack .../288-libfltk-gl1.3t64_1.3.8-6.1build2_amd64.deb ... 130s Unpacking libfltk-gl1.3t64:amd64 (1.3.8-6.1build2) ... 130s Selecting previously unselected package libgl2ps1.4. 130s Preparing to unpack .../289-libgl2ps1.4_1.4.2+dfsg1-2build1_amd64.deb ... 130s Unpacking libgl2ps1.4 (1.4.2+dfsg1-2build1) ... 130s Selecting previously unselected package libltdl7:amd64. 130s Preparing to unpack .../290-libltdl7_2.4.7-7build1_amd64.deb ... 130s Unpacking libltdl7:amd64 (2.4.7-7build1) ... 130s Selecting previously unselected package libglpk40:amd64. 130s Preparing to unpack .../291-libglpk40_5.0-1build2_amd64.deb ... 130s Unpacking libglpk40:amd64 (5.0-1build2) ... 130s Selecting previously unselected package libopengl0:amd64. 130s Preparing to unpack .../292-libopengl0_1.7.0-1build1_amd64.deb ... 130s Unpacking libopengl0:amd64 (1.7.0-1build1) ... 130s Selecting previously unselected package libglu1-mesa:amd64. 130s Preparing to unpack .../293-libglu1-mesa_9.0.2-1.1build1_amd64.deb ... 130s Unpacking libglu1-mesa:amd64 (9.0.2-1.1build1) ... 130s Selecting previously unselected package libgif7:amd64. 130s Preparing to unpack .../294-libgif7_5.2.2-1ubuntu1_amd64.deb ... 130s Unpacking libgif7:amd64 (5.2.2-1ubuntu1) ... 130s Selecting previously unselected package libhwy1t64:amd64. 130s Preparing to unpack .../295-libhwy1t64_1.2.0-2_amd64.deb ... 130s Unpacking libhwy1t64:amd64 (1.2.0-2) ... 130s Selecting previously unselected package liblcms2-2:amd64. 130s Preparing to unpack .../296-liblcms2-2_2.14-2build1_amd64.deb ... 130s Unpacking liblcms2-2:amd64 (2.14-2build1) ... 130s Selecting previously unselected package libimath-3-1-29t64:amd64. 130s Preparing to unpack .../297-libimath-3-1-29t64_3.1.9-3.1ubuntu2_amd64.deb ... 130s Unpacking libimath-3-1-29t64:amd64 (3.1.9-3.1ubuntu2) ... 130s Selecting previously unselected package libopenexr-3-1-30:amd64. 130s Preparing to unpack .../298-libopenexr-3-1-30_3.1.5-5.1build3_amd64.deb ... 130s Unpacking libopenexr-3-1-30:amd64 (3.1.5-5.1build3) ... 130s Selecting previously unselected package libjxl0.9:amd64. 130s Preparing to unpack .../299-libjxl0.9_0.9.2-8_amd64.deb ... 130s Unpacking libjxl0.9:amd64 (0.9.2-8) ... 130s Selecting previously unselected package libwmflite-0.2-7:amd64. 130s Preparing to unpack .../300-libwmflite-0.2-7_0.2.13-1.1build3_amd64.deb ... 130s Unpacking libwmflite-0.2-7:amd64 (0.2.13-1.1build3) ... 130s Selecting previously unselected package libgraphicsmagick-q16-3t64. 130s Preparing to unpack .../301-libgraphicsmagick-q16-3t64_1.4+really1.3.43-1build2_amd64.deb ... 130s Unpacking libgraphicsmagick-q16-3t64 (1.4+really1.3.43-1build2) ... 130s Selecting previously unselected package libgraphicsmagick++-q16-12t64. 130s Preparing to unpack .../302-libgraphicsmagick++-q16-12t64_1.4+really1.3.43-1build2_amd64.deb ... 130s Unpacking libgraphicsmagick++-q16-12t64 (1.4+really1.3.43-1build2) ... 130s Selecting previously unselected package libaec0:amd64. 130s Preparing to unpack .../303-libaec0_1.1.3-1_amd64.deb ... 130s Unpacking libaec0:amd64 (1.1.3-1) ... 130s Selecting previously unselected package libsz2:amd64. 130s Preparing to unpack .../304-libsz2_1.1.3-1_amd64.deb ... 130s Unpacking libsz2:amd64 (1.1.3-1) ... 130s Selecting previously unselected package libhdf5-103-1t64:amd64. 130s Preparing to unpack .../305-libhdf5-103-1t64_1.10.10+repack-3.1ubuntu4_amd64.deb ... 130s Unpacking libhdf5-103-1t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 130s Selecting previously unselected package libasound2-data. 130s Preparing to unpack .../306-libasound2-data_1.2.11-1build2_all.deb ... 130s Unpacking libasound2-data (1.2.11-1build2) ... 130s Selecting previously unselected package libasound2t64:amd64. 130s Preparing to unpack .../307-libasound2t64_1.2.11-1build2_amd64.deb ... 130s Unpacking libasound2t64:amd64 (1.2.11-1build2) ... 130s Selecting previously unselected package libopus0:amd64. 130s Preparing to unpack .../308-libopus0_1.4-1build1_amd64.deb ... 130s Unpacking libopus0:amd64 (1.4-1build1) ... 130s Selecting previously unselected package libsamplerate0:amd64. 130s Preparing to unpack .../309-libsamplerate0_0.2.2-4build1_amd64.deb ... 130s Unpacking libsamplerate0:amd64 (0.2.2-4build1) ... 130s Selecting previously unselected package libjack-jackd2-0:amd64. 130s Preparing to unpack .../310-libjack-jackd2-0_1.9.21~dfsg-3ubuntu3_amd64.deb ... 130s Unpacking libjack-jackd2-0:amd64 (1.9.21~dfsg-3ubuntu3) ... 130s Selecting previously unselected package libportaudio2:amd64. 130s Preparing to unpack .../311-libportaudio2_19.6.0-1.2build3_amd64.deb ... 130s Unpacking libportaudio2:amd64 (19.6.0-1.2build3) ... 130s Selecting previously unselected package libqhull-r8.0:amd64. 130s Preparing to unpack .../312-libqhull-r8.0_2020.2-6build1_amd64.deb ... 130s Unpacking libqhull-r8.0:amd64 (2020.2-6build1) ... 130s Selecting previously unselected package libqrupdate1:amd64. 130s Preparing to unpack .../313-libqrupdate1_1.1.2-4build1_amd64.deb ... 130s Unpacking libqrupdate1:amd64 (1.1.2-4build1) ... 130s Selecting previously unselected package libqscintilla2-qt5-l10n. 130s Preparing to unpack .../314-libqscintilla2-qt5-l10n_2.14.1+dfsg-1build4_all.deb ... 130s Unpacking libqscintilla2-qt5-l10n (2.14.1+dfsg-1build4) ... 131s Selecting previously unselected package libdouble-conversion3:amd64. 131s Preparing to unpack .../315-libdouble-conversion3_3.3.0-1build1_amd64.deb ... 131s Unpacking libdouble-conversion3:amd64 (3.3.0-1build1) ... 131s Selecting previously unselected package libpcre2-16-0:amd64. 131s Preparing to unpack .../316-libpcre2-16-0_10.42-4ubuntu2_amd64.deb ... 131s Unpacking libpcre2-16-0:amd64 (10.42-4ubuntu2) ... 131s Selecting previously unselected package libqt5core5t64:amd64. 131s Preparing to unpack .../317-libqt5core5t64_5.15.13+dfsg-1ubuntu1_amd64.deb ... 131s Unpacking libqt5core5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 131s Selecting previously unselected package libwayland-server0:amd64. 131s Preparing to unpack .../318-libwayland-server0_1.22.0-2.1build1_amd64.deb ... 131s Unpacking libwayland-server0:amd64 (1.22.0-2.1build1) ... 131s Selecting previously unselected package libgbm1:amd64. 131s Preparing to unpack .../319-libgbm1_24.0.9-0ubuntu1_amd64.deb ... 131s Unpacking libgbm1:amd64 (24.0.9-0ubuntu1) ... 131s Selecting previously unselected package libwayland-client0:amd64. 131s Preparing to unpack .../320-libwayland-client0_1.22.0-2.1build1_amd64.deb ... 131s Unpacking libwayland-client0:amd64 (1.22.0-2.1build1) ... 131s Selecting previously unselected package libegl-mesa0:amd64. 131s Preparing to unpack .../321-libegl-mesa0_24.0.9-0ubuntu1_amd64.deb ... 131s Unpacking libegl-mesa0:amd64 (24.0.9-0ubuntu1) ... 131s Selecting previously unselected package libegl1:amd64. 131s Preparing to unpack .../322-libegl1_1.7.0-1build1_amd64.deb ... 131s Unpacking libegl1:amd64 (1.7.0-1build1) ... 131s Selecting previously unselected package x11-common. 131s Preparing to unpack .../323-x11-common_1%3a7.7+23ubuntu3_all.deb ... 131s Unpacking x11-common (1:7.7+23ubuntu3) ... 131s Selecting previously unselected package libice6:amd64. 131s Preparing to unpack .../324-libice6_2%3a1.0.10-1build3_amd64.deb ... 131s Unpacking libice6:amd64 (2:1.0.10-1build3) ... 131s Selecting previously unselected package libmtdev1t64:amd64. 131s Preparing to unpack .../325-libmtdev1t64_1.1.6-1.2_amd64.deb ... 131s Unpacking libmtdev1t64:amd64 (1.1.6-1.2) ... 131s Selecting previously unselected package libwacom-common. 131s Preparing to unpack .../326-libwacom-common_2.10.0-2_all.deb ... 131s Unpacking libwacom-common (2.10.0-2) ... 131s Selecting previously unselected package libwacom9:amd64. 131s Preparing to unpack .../327-libwacom9_2.10.0-2_amd64.deb ... 131s Unpacking libwacom9:amd64 (2.10.0-2) ... 131s Selecting previously unselected package libinput-bin. 131s Preparing to unpack .../328-libinput-bin_1.26.0-1_amd64.deb ... 131s Unpacking libinput-bin (1.26.0-1) ... 131s Selecting previously unselected package libinput10:amd64. 131s Preparing to unpack .../329-libinput10_1.26.0-1_amd64.deb ... 131s Unpacking libinput10:amd64 (1.26.0-1) ... 131s Selecting previously unselected package libmd4c0:amd64. 131s Preparing to unpack .../330-libmd4c0_0.4.8-1build1_amd64.deb ... 131s Unpacking libmd4c0:amd64 (0.4.8-1build1) ... 131s Selecting previously unselected package libqt5dbus5t64:amd64. 131s Preparing to unpack .../331-libqt5dbus5t64_5.15.13+dfsg-1ubuntu1_amd64.deb ... 131s Unpacking libqt5dbus5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 131s Selecting previously unselected package libqt5network5t64:amd64. 131s Preparing to unpack .../332-libqt5network5t64_5.15.13+dfsg-1ubuntu1_amd64.deb ... 131s Unpacking libqt5network5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 131s Selecting previously unselected package libsm6:amd64. 131s Preparing to unpack .../333-libsm6_2%3a1.2.3-1build3_amd64.deb ... 131s Unpacking libsm6:amd64 (2:1.2.3-1build3) ... 131s Selecting previously unselected package libxcb-icccm4:amd64. 131s Preparing to unpack .../334-libxcb-icccm4_0.4.1-1.1build3_amd64.deb ... 131s Unpacking libxcb-icccm4:amd64 (0.4.1-1.1build3) ... 131s Selecting previously unselected package libxcb-util1:amd64. 131s Preparing to unpack .../335-libxcb-util1_0.4.0-1build3_amd64.deb ... 131s Unpacking libxcb-util1:amd64 (0.4.0-1build3) ... 131s Selecting previously unselected package libxcb-image0:amd64. 131s Preparing to unpack .../336-libxcb-image0_0.4.0-2build1_amd64.deb ... 131s Unpacking libxcb-image0:amd64 (0.4.0-2build1) ... 131s Selecting previously unselected package libxcb-keysyms1:amd64. 131s Preparing to unpack .../337-libxcb-keysyms1_0.4.0-1build4_amd64.deb ... 131s Unpacking libxcb-keysyms1:amd64 (0.4.0-1build4) ... 131s Selecting previously unselected package libxcb-render-util0:amd64. 131s Preparing to unpack .../338-libxcb-render-util0_0.3.9-1build4_amd64.deb ... 131s Unpacking libxcb-render-util0:amd64 (0.3.9-1build4) ... 131s Selecting previously unselected package libxcb-shape0:amd64. 131s Preparing to unpack .../339-libxcb-shape0_1.17.0-2_amd64.deb ... 131s Unpacking libxcb-shape0:amd64 (1.17.0-2) ... 131s Selecting previously unselected package libxcb-xinerama0:amd64. 131s Preparing to unpack .../340-libxcb-xinerama0_1.17.0-2_amd64.deb ... 131s Unpacking libxcb-xinerama0:amd64 (1.17.0-2) ... 131s Selecting previously unselected package libxcb-xinput0:amd64. 131s Preparing to unpack .../341-libxcb-xinput0_1.17.0-2_amd64.deb ... 131s Unpacking libxcb-xinput0:amd64 (1.17.0-2) ... 132s Selecting previously unselected package libxcb-xkb1:amd64. 132s Preparing to unpack .../342-libxcb-xkb1_1.17.0-2_amd64.deb ... 132s Unpacking libxcb-xkb1:amd64 (1.17.0-2) ... 132s Selecting previously unselected package libxkbcommon-x11-0:amd64. 132s Preparing to unpack .../343-libxkbcommon-x11-0_1.6.0-1build1_amd64.deb ... 132s Unpacking libxkbcommon-x11-0:amd64 (1.6.0-1build1) ... 132s Selecting previously unselected package libqt5gui5t64:amd64. 132s Preparing to unpack .../344-libqt5gui5t64_5.15.13+dfsg-1ubuntu1_amd64.deb ... 132s Unpacking libqt5gui5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 132s Selecting previously unselected package libavahi-common-data:amd64. 132s Preparing to unpack .../345-libavahi-common-data_0.8-13ubuntu6_amd64.deb ... 132s Unpacking libavahi-common-data:amd64 (0.8-13ubuntu6) ... 132s Selecting previously unselected package libavahi-common3:amd64. 132s Preparing to unpack .../346-libavahi-common3_0.8-13ubuntu6_amd64.deb ... 132s Unpacking libavahi-common3:amd64 (0.8-13ubuntu6) ... 132s Selecting previously unselected package libavahi-client3:amd64. 132s Preparing to unpack .../347-libavahi-client3_0.8-13ubuntu6_amd64.deb ... 132s Unpacking libavahi-client3:amd64 (0.8-13ubuntu6) ... 132s Selecting previously unselected package libcups2t64:amd64. 132s Preparing to unpack .../348-libcups2t64_2.4.7-1.2ubuntu7_amd64.deb ... 132s Unpacking libcups2t64:amd64 (2.4.7-1.2ubuntu7) ... 132s Selecting previously unselected package libqt5widgets5t64:amd64. 132s Preparing to unpack .../349-libqt5widgets5t64_5.15.13+dfsg-1ubuntu1_amd64.deb ... 132s Unpacking libqt5widgets5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 132s Selecting previously unselected package libqt5printsupport5t64:amd64. 132s Preparing to unpack .../350-libqt5printsupport5t64_5.15.13+dfsg-1ubuntu1_amd64.deb ... 132s Unpacking libqt5printsupport5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 132s Selecting previously unselected package libqscintilla2-qt5-15:amd64. 132s Preparing to unpack .../351-libqscintilla2-qt5-15_2.14.1+dfsg-1build4_amd64.deb ... 132s Unpacking libqscintilla2-qt5-15:amd64 (2.14.1+dfsg-1build4) ... 132s Selecting previously unselected package libqt5sql5t64:amd64. 132s Preparing to unpack .../352-libqt5sql5t64_5.15.13+dfsg-1ubuntu1_amd64.deb ... 132s Unpacking libqt5sql5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 132s Selecting previously unselected package libqt5help5:amd64. 132s Preparing to unpack .../353-libqt5help5_5.15.13-3_amd64.deb ... 132s Unpacking libqt5help5:amd64 (5.15.13-3) ... 132s Selecting previously unselected package libqt5xml5t64:amd64. 132s Preparing to unpack .../354-libqt5xml5t64_5.15.13+dfsg-1ubuntu1_amd64.deb ... 132s Unpacking libqt5xml5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 132s Selecting previously unselected package libogg0:amd64. 132s Preparing to unpack .../355-libogg0_1.3.5-3build1_amd64.deb ... 132s Unpacking libogg0:amd64 (1.3.5-3build1) ... 132s Selecting previously unselected package libflac12t64:amd64. 132s Preparing to unpack .../356-libflac12t64_1.4.3+ds-2.1ubuntu2_amd64.deb ... 132s Unpacking libflac12t64:amd64 (1.4.3+ds-2.1ubuntu2) ... 132s Selecting previously unselected package libmp3lame0:amd64. 132s Preparing to unpack .../357-libmp3lame0_3.100-6build1_amd64.deb ... 132s Unpacking libmp3lame0:amd64 (3.100-6build1) ... 132s Selecting previously unselected package libmpg123-0t64:amd64. 132s Preparing to unpack .../358-libmpg123-0t64_1.32.6-3_amd64.deb ... 132s Unpacking libmpg123-0t64:amd64 (1.32.6-3) ... 132s Selecting previously unselected package libvorbis0a:amd64. 132s Preparing to unpack .../359-libvorbis0a_1.3.7-2_amd64.deb ... 132s Unpacking libvorbis0a:amd64 (1.3.7-2) ... 132s Selecting previously unselected package libvorbisenc2:amd64. 132s Preparing to unpack .../360-libvorbisenc2_1.3.7-2_amd64.deb ... 132s Unpacking libvorbisenc2:amd64 (1.3.7-2) ... 132s Selecting previously unselected package libsndfile1:amd64. 132s Preparing to unpack .../361-libsndfile1_1.2.2-1ubuntu5_amd64.deb ... 132s Unpacking libsndfile1:amd64 (1.2.2-1ubuntu5) ... 132s Selecting previously unselected package libspqr4:amd64. 132s Preparing to unpack .../362-libspqr4_1%3a7.7.0+dfsg-2_amd64.deb ... 132s Unpacking libspqr4:amd64 (1:7.7.0+dfsg-2) ... 132s Selecting previously unselected package libsundials-ida6:amd64. 132s Preparing to unpack .../363-libsundials-ida6_6.4.1+dfsg1-3build5_amd64.deb ... 132s Unpacking libsundials-ida6:amd64 (6.4.1+dfsg1-3build5) ... 132s Selecting previously unselected package libbtf2:amd64. 132s Preparing to unpack .../364-libbtf2_1%3a7.7.0+dfsg-2_amd64.deb ... 132s Unpacking libbtf2:amd64 (1:7.7.0+dfsg-2) ... 132s Selecting previously unselected package libklu2:amd64. 132s Preparing to unpack .../365-libklu2_1%3a7.7.0+dfsg-2_amd64.deb ... 132s Unpacking libklu2:amd64 (1:7.7.0+dfsg-2) ... 132s Selecting previously unselected package libfftw3-long3:amd64. 132s Preparing to unpack .../366-libfftw3-long3_3.3.10-1ubuntu3_amd64.deb ... 132s Unpacking libfftw3-long3:amd64 (3.3.10-1ubuntu3) ... 132s Selecting previously unselected package libevent-pthreads-2.1-7t64:amd64. 133s Preparing to unpack .../367-libevent-pthreads-2.1-7t64_2.1.12-stable-10_amd64.deb ... 133s Unpacking libevent-pthreads-2.1-7t64:amd64 (2.1.12-stable-10) ... 133s Selecting previously unselected package libpsm-infinipath1. 133s Preparing to unpack .../368-libpsm-infinipath1_3.3+20.604758e7-6.3build1_amd64.deb ... 133s Unpacking libpsm-infinipath1 (3.3+20.604758e7-6.3build1) ... 133s Selecting previously unselected package libpsm2-2. 133s Preparing to unpack .../369-libpsm2-2_11.2.185-2.1_amd64.deb ... 133s Unpacking libpsm2-2 (11.2.185-2.1) ... 133s Selecting previously unselected package librdmacm1t64:amd64. 133s Preparing to unpack .../370-librdmacm1t64_50.0-2build2_amd64.deb ... 133s Unpacking librdmacm1t64:amd64 (50.0-2build2) ... 133s Selecting previously unselected package libfabric1:amd64. 133s Preparing to unpack .../371-libfabric1_1.17.0-3build2_amd64.deb ... 133s Unpacking libfabric1:amd64 (1.17.0-3build2) ... 133s Selecting previously unselected package libhwloc15:amd64. 133s Preparing to unpack .../372-libhwloc15_2.10.0-1build1_amd64.deb ... 133s Unpacking libhwloc15:amd64 (2.10.0-1build1) ... 133s Selecting previously unselected package libmunge2:amd64. 133s Preparing to unpack .../373-libmunge2_0.5.15-4build1_amd64.deb ... 133s Unpacking libmunge2:amd64 (0.5.15-4build1) ... 133s Selecting previously unselected package libxnvctrl0:amd64. 133s Preparing to unpack .../374-libxnvctrl0_510.47.03-0ubuntu4_amd64.deb ... 133s Unpacking libxnvctrl0:amd64 (510.47.03-0ubuntu4) ... 133s Selecting previously unselected package ocl-icd-libopencl1:amd64. 133s Preparing to unpack .../375-ocl-icd-libopencl1_2.3.2-1build1_amd64.deb ... 133s Unpacking ocl-icd-libopencl1:amd64 (2.3.2-1build1) ... 133s Selecting previously unselected package libhwloc-plugins:amd64. 133s Preparing to unpack .../376-libhwloc-plugins_2.10.0-1build1_amd64.deb ... 133s Unpacking libhwloc-plugins:amd64 (2.10.0-1build1) ... 133s Selecting previously unselected package libpmix2t64:amd64. 133s Preparing to unpack .../377-libpmix2t64_5.0.1-4.1build1_amd64.deb ... 133s Unpacking libpmix2t64:amd64 (5.0.1-4.1build1) ... 133s Selecting previously unselected package libamd-comgr2:amd64. 133s Preparing to unpack .../378-libamd-comgr2_6.0+git20231212.4510c28+dfsg-3build2_amd64.deb ... 133s Unpacking libamd-comgr2:amd64 (6.0+git20231212.4510c28+dfsg-3build2) ... 133s Selecting previously unselected package libhsakmt1:amd64. 133s Preparing to unpack .../379-libhsakmt1_5.7.0-1build1_amd64.deb ... 133s Unpacking libhsakmt1:amd64 (5.7.0-1build1) ... 133s Selecting previously unselected package libhsa-runtime64-1. 133s Preparing to unpack .../380-libhsa-runtime64-1_5.7.1-2build1_amd64.deb ... 133s Unpacking libhsa-runtime64-1 (5.7.1-2build1) ... 133s Selecting previously unselected package libamdhip64-5. 133s Preparing to unpack .../381-libamdhip64-5_5.7.1-3_amd64.deb ... 133s Unpacking libamdhip64-5 (5.7.1-3) ... 133s Selecting previously unselected package libucx0:amd64. 134s Preparing to unpack .../382-libucx0_1.16.0+ds-5ubuntu1_amd64.deb ... 134s Unpacking libucx0:amd64 (1.16.0+ds-5ubuntu1) ... 134s Selecting previously unselected package libopenmpi3t64:amd64. 134s Preparing to unpack .../383-libopenmpi3t64_4.1.6-7ubuntu2_amd64.deb ... 134s Unpacking libopenmpi3t64:amd64 (4.1.6-7ubuntu2) ... 134s Selecting previously unselected package libfftw3-mpi3:amd64. 134s Preparing to unpack .../384-libfftw3-mpi3_3.3.10-1ubuntu3_amd64.deb ... 134s Unpacking libfftw3-mpi3:amd64 (3.3.10-1ubuntu3) ... 134s Selecting previously unselected package libhdf5-openmpi-103-1t64:amd64. 134s Preparing to unpack .../385-libhdf5-openmpi-103-1t64_1.10.10+repack-3.1ubuntu4_amd64.deb ... 134s Unpacking libhdf5-openmpi-103-1t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 134s Selecting previously unselected package libcombblas2.0.0t64:amd64. 134s Preparing to unpack .../386-libcombblas2.0.0t64_2.0.0-3.1build2_amd64.deb ... 134s Unpacking libcombblas2.0.0t64:amd64 (2.0.0-3.1build2) ... 134s Selecting previously unselected package libmetis5:amd64. 134s Preparing to unpack .../387-libmetis5_5.1.0.dfsg-7build3_amd64.deb ... 134s Unpacking libmetis5:amd64 (5.1.0.dfsg-7build3) ... 134s Selecting previously unselected package libptscotch-7.0:amd64. 134s Preparing to unpack .../388-libptscotch-7.0_7.0.4-1ubuntu2_amd64.deb ... 134s Unpacking libptscotch-7.0:amd64 (7.0.4-1ubuntu2) ... 134s Selecting previously unselected package libsuperlu-dist8:amd64. 134s Preparing to unpack .../389-libsuperlu-dist8_8.2.1+dfsg1-1build2_amd64.deb ... 134s Unpacking libsuperlu-dist8:amd64 (8.2.1+dfsg1-1build2) ... 134s Selecting previously unselected package libhypre-2.28.0:amd64. 134s Preparing to unpack .../390-libhypre-2.28.0_2.28.0-8build2_amd64.deb ... 134s Unpacking libhypre-2.28.0:amd64 (2.28.0-8build2) ... 134s Selecting previously unselected package openmpi-common. 134s Preparing to unpack .../391-openmpi-common_4.1.6-7ubuntu2_all.deb ... 134s Unpacking openmpi-common (4.1.6-7ubuntu2) ... 134s Selecting previously unselected package openmpi-bin. 134s Preparing to unpack .../392-openmpi-bin_4.1.6-7ubuntu2_amd64.deb ... 134s Unpacking openmpi-bin (4.1.6-7ubuntu2) ... 134s Selecting previously unselected package mpi-default-bin. 134s Preparing to unpack .../393-mpi-default-bin_1.15build1_amd64.deb ... 134s Unpacking mpi-default-bin (1.15build1) ... 134s Selecting previously unselected package libscalapack-openmpi2.2:amd64. 134s Preparing to unpack .../394-libscalapack-openmpi2.2_2.2.1-3.1ubuntu1_amd64.deb ... 134s Unpacking libscalapack-openmpi2.2:amd64 (2.2.1-3.1ubuntu1) ... 134s Selecting previously unselected package libmumps-5.6t64:amd64. 134s Preparing to unpack .../395-libmumps-5.6t64_5.6.2-2.1build2_amd64.deb ... 134s Unpacking libmumps-5.6t64:amd64 (5.6.2-2.1build2) ... 134s Selecting previously unselected package libsuperlu6:amd64. 134s Preparing to unpack .../396-libsuperlu6_6.0.1+dfsg1-1build1_amd64.deb ... 134s Unpacking libsuperlu6:amd64 (6.0.1+dfsg1-1build1) ... 134s Selecting previously unselected package libscotch-7.0:amd64. 134s Preparing to unpack .../397-libscotch-7.0_7.0.4-1ubuntu2_amd64.deb ... 134s Unpacking libscotch-7.0:amd64 (7.0.4-1ubuntu2) ... 134s Selecting previously unselected package libtrilinos-kokkos-13.2:amd64. 134s Preparing to unpack .../398-libtrilinos-kokkos-13.2_13.2.0-6_amd64.deb ... 134s Unpacking libtrilinos-kokkos-13.2:amd64 (13.2.0-6) ... 134s Selecting previously unselected package libtrilinos-teuchos-13.2:amd64. 134s Preparing to unpack .../399-libtrilinos-teuchos-13.2_13.2.0-6_amd64.deb ... 134s Unpacking libtrilinos-teuchos-13.2:amd64 (13.2.0-6) ... 134s Selecting previously unselected package libtrilinos-epetra-13.2:amd64. 134s Preparing to unpack .../400-libtrilinos-epetra-13.2_13.2.0-6_amd64.deb ... 134s Unpacking libtrilinos-epetra-13.2:amd64 (13.2.0-6) ... 134s Selecting previously unselected package libtrilinos-triutils-13.2:amd64. 134s Preparing to unpack .../401-libtrilinos-triutils-13.2_13.2.0-6_amd64.deb ... 134s Unpacking libtrilinos-triutils-13.2:amd64 (13.2.0-6) ... 134s Selecting previously unselected package libtrilinos-epetraext-13.2:amd64. 134s Preparing to unpack .../402-libtrilinos-epetraext-13.2_13.2.0-6_amd64.deb ... 134s Unpacking libtrilinos-epetraext-13.2:amd64 (13.2.0-6) ... 134s Selecting previously unselected package libtrilinos-trilinosss-13.2:amd64. 134s Preparing to unpack .../403-libtrilinos-trilinosss-13.2_13.2.0-6_amd64.deb ... 134s Unpacking libtrilinos-trilinosss-13.2:amd64 (13.2.0-6) ... 135s Selecting previously unselected package libtrilinos-amesos-13.2:amd64. 135s Preparing to unpack .../404-libtrilinos-amesos-13.2_13.2.0-6_amd64.deb ... 135s Unpacking libtrilinos-amesos-13.2:amd64 (13.2.0-6) ... 135s Selecting previously unselected package libtrilinos-aztecoo-13.2:amd64. 135s Preparing to unpack .../405-libtrilinos-aztecoo-13.2_13.2.0-6_amd64.deb ... 135s Unpacking libtrilinos-aztecoo-13.2:amd64 (13.2.0-6) ... 135s Selecting previously unselected package libtrilinos-galeri-13.2:amd64. 135s Preparing to unpack .../406-libtrilinos-galeri-13.2_13.2.0-6_amd64.deb ... 135s Unpacking libtrilinos-galeri-13.2:amd64 (13.2.0-6) ... 135s Selecting previously unselected package libtrilinos-ifpack-13.2:amd64. 135s Preparing to unpack .../407-libtrilinos-ifpack-13.2_13.2.0-6_amd64.deb ... 135s Unpacking libtrilinos-ifpack-13.2:amd64 (13.2.0-6) ... 135s Selecting previously unselected package libtrilinos-zoltan-13.2:amd64. 135s Preparing to unpack .../408-libtrilinos-zoltan-13.2_13.2.0-6_amd64.deb ... 135s Unpacking libtrilinos-zoltan-13.2:amd64 (13.2.0-6) ... 135s Selecting previously unselected package libtrilinos-ml-13.2:amd64. 135s Preparing to unpack .../409-libtrilinos-ml-13.2_13.2.0-6_amd64.deb ... 135s Unpacking libtrilinos-ml-13.2:amd64 (13.2.0-6) ... 135s Selecting previously unselected package libumfpack6:amd64. 135s Preparing to unpack .../410-libumfpack6_1%3a7.7.0+dfsg-2_amd64.deb ... 135s Unpacking libumfpack6:amd64 (1:7.7.0+dfsg-2) ... 135s Selecting previously unselected package libpetsc-real3.19t64:amd64. 135s Preparing to unpack .../411-libpetsc-real3.19t64_3.19.6+dfsg1-2.2ubuntu2_amd64.deb ... 135s Unpacking libpetsc-real3.19t64:amd64 (3.19.6+dfsg1-2.2ubuntu2) ... 135s Selecting previously unselected package libsundials-nvecparallel-petsc6:amd64. 135s Preparing to unpack .../412-libsundials-nvecparallel-petsc6_6.4.1+dfsg1-3build5_amd64.deb ... 135s Unpacking libsundials-nvecparallel-petsc6:amd64 (6.4.1+dfsg1-3build5) ... 135s Selecting previously unselected package libsundials-sunmatrix4:amd64. 135s Preparing to unpack .../413-libsundials-sunmatrix4_6.4.1+dfsg1-3build5_amd64.deb ... 135s Unpacking libsundials-sunmatrix4:amd64 (6.4.1+dfsg1-3build5) ... 135s Selecting previously unselected package libsundials-sunlinsol3:amd64. 135s Preparing to unpack .../414-libsundials-sunlinsol3_6.4.1+dfsg1-3build5_amd64.deb ... 135s Unpacking libsundials-sunlinsol3:amd64 (6.4.1+dfsg1-3build5) ... 135s Selecting previously unselected package libtext-unidecode-perl. 135s Preparing to unpack .../415-libtext-unidecode-perl_1.30-3_all.deb ... 135s Unpacking libtext-unidecode-perl (1.30-3) ... 135s Selecting previously unselected package texinfo-lib. 135s Preparing to unpack .../416-texinfo-lib_7.1-3build2_amd64.deb ... 135s Unpacking texinfo-lib (7.1-3build2) ... 135s Selecting previously unselected package tex-common. 135s Preparing to unpack .../417-tex-common_6.18_all.deb ... 135s Unpacking tex-common (6.18) ... 135s Selecting previously unselected package texinfo. 135s Preparing to unpack .../418-texinfo_7.1-3build2_all.deb ... 135s Unpacking texinfo (7.1-3build2) ... 135s Selecting previously unselected package octave-common. 135s Preparing to unpack .../419-octave-common_8.4.0-1build5_all.deb ... 135s Unpacking octave-common (8.4.0-1build5) ... 136s Selecting previously unselected package octave. 136s Preparing to unpack .../420-octave_8.4.0-1build5_amd64.deb ... 136s Unpacking octave (8.4.0-1build5) ... 136s Selecting previously unselected package libncurses-dev:amd64. 136s Preparing to unpack .../421-libncurses-dev_6.5-2_amd64.deb ... 136s Unpacking libncurses-dev:amd64 (6.5-2) ... 136s Selecting previously unselected package libreadline-dev:amd64. 136s Preparing to unpack .../422-libreadline-dev_8.2-4build1_amd64.deb ... 136s Unpacking libreadline-dev:amd64 (8.2-4build1) ... 136s Selecting previously unselected package libhdf5-fortran-102t64:amd64. 136s Preparing to unpack .../423-libhdf5-fortran-102t64_1.10.10+repack-3.1ubuntu4_amd64.deb ... 136s Unpacking libhdf5-fortran-102t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 136s Selecting previously unselected package libhdf5-hl-100t64:amd64. 136s Preparing to unpack .../424-libhdf5-hl-100t64_1.10.10+repack-3.1ubuntu4_amd64.deb ... 136s Unpacking libhdf5-hl-100t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 136s Selecting previously unselected package libhdf5-hl-fortran-100t64:amd64. 136s Preparing to unpack .../425-libhdf5-hl-fortran-100t64_1.10.10+repack-3.1ubuntu4_amd64.deb ... 136s Unpacking libhdf5-hl-fortran-100t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 136s Selecting previously unselected package libhdf5-cpp-103-1t64:amd64. 136s Preparing to unpack .../426-libhdf5-cpp-103-1t64_1.10.10+repack-3.1ubuntu4_amd64.deb ... 136s Unpacking libhdf5-cpp-103-1t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 136s Selecting previously unselected package libhdf5-hl-cpp-100t64:amd64. 136s Preparing to unpack .../427-libhdf5-hl-cpp-100t64_1.10.10+repack-3.1ubuntu4_amd64.deb ... 136s Unpacking libhdf5-hl-cpp-100t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 136s Selecting previously unselected package zlib1g-dev:amd64. 136s Preparing to unpack .../428-zlib1g-dev_1%3a1.3.dfsg-3.1ubuntu2_amd64.deb ... 136s Unpacking zlib1g-dev:amd64 (1:1.3.dfsg-3.1ubuntu2) ... 136s Selecting previously unselected package libjpeg-turbo8-dev:amd64. 136s Preparing to unpack .../429-libjpeg-turbo8-dev_2.1.5-2ubuntu2_amd64.deb ... 136s Unpacking libjpeg-turbo8-dev:amd64 (2.1.5-2ubuntu2) ... 136s Selecting previously unselected package libjpeg8-dev:amd64. 136s Preparing to unpack .../430-libjpeg8-dev_8c-2ubuntu11_amd64.deb ... 136s Unpacking libjpeg8-dev:amd64 (8c-2ubuntu11) ... 136s Selecting previously unselected package libjpeg-dev:amd64. 136s Preparing to unpack .../431-libjpeg-dev_8c-2ubuntu11_amd64.deb ... 136s Unpacking libjpeg-dev:amd64 (8c-2ubuntu11) ... 136s Selecting previously unselected package libaec-dev:amd64. 136s Preparing to unpack .../432-libaec-dev_1.1.3-1_amd64.deb ... 136s Unpacking libaec-dev:amd64 (1.1.3-1) ... 136s Selecting previously unselected package libcurl4-openssl-dev:amd64. 136s Preparing to unpack .../433-libcurl4-openssl-dev_8.8.0-1ubuntu1_amd64.deb ... 136s Unpacking libcurl4-openssl-dev:amd64 (8.8.0-1ubuntu1) ... 136s Selecting previously unselected package libssl-dev:amd64. 136s Preparing to unpack .../434-libssl-dev_3.0.13-0ubuntu4_amd64.deb ... 136s Unpacking libssl-dev:amd64 (3.0.13-0ubuntu4) ... 137s Selecting previously unselected package hdf5-helpers. 137s Preparing to unpack .../435-hdf5-helpers_1.10.10+repack-3.1ubuntu4_amd64.deb ... 137s Unpacking hdf5-helpers (1.10.10+repack-3.1ubuntu4) ... 137s Selecting previously unselected package libhdf5-dev. 137s Preparing to unpack .../436-libhdf5-dev_1.10.10+repack-3.1ubuntu4_amd64.deb ... 137s Unpacking libhdf5-dev (1.10.10+repack-3.1ubuntu4) ... 137s Selecting previously unselected package xorg-sgml-doctools. 137s Preparing to unpack .../437-xorg-sgml-doctools_1%3a1.11-1.1_all.deb ... 137s Unpacking xorg-sgml-doctools (1:1.11-1.1) ... 137s Selecting previously unselected package x11proto-dev. 137s Preparing to unpack .../438-x11proto-dev_2024.1-1_all.deb ... 137s Unpacking x11proto-dev (2024.1-1) ... 137s Selecting previously unselected package libxau-dev:amd64. 137s Preparing to unpack .../439-libxau-dev_1%3a1.0.9-1build6_amd64.deb ... 137s Unpacking libxau-dev:amd64 (1:1.0.9-1build6) ... 137s Selecting previously unselected package libxdmcp-dev:amd64. 137s Preparing to unpack .../440-libxdmcp-dev_1%3a1.1.3-0ubuntu6_amd64.deb ... 137s Unpacking libxdmcp-dev:amd64 (1:1.1.3-0ubuntu6) ... 137s Selecting previously unselected package xtrans-dev. 137s Preparing to unpack .../441-xtrans-dev_1.4.0-1_all.deb ... 137s Unpacking xtrans-dev (1.4.0-1) ... 137s Selecting previously unselected package libxcb1-dev:amd64. 137s Preparing to unpack .../442-libxcb1-dev_1.17.0-2_amd64.deb ... 137s Unpacking libxcb1-dev:amd64 (1.17.0-2) ... 137s Selecting previously unselected package libx11-dev:amd64. 137s Preparing to unpack .../443-libx11-dev_2%3a1.8.7-1build1_amd64.deb ... 137s Unpacking libx11-dev:amd64 (2:1.8.7-1build1) ... 137s Selecting previously unselected package libglx-dev:amd64. 137s Preparing to unpack .../444-libglx-dev_1.7.0-1build1_amd64.deb ... 137s Unpacking libglx-dev:amd64 (1.7.0-1build1) ... 137s Selecting previously unselected package libgl-dev:amd64. 137s Preparing to unpack .../445-libgl-dev_1.7.0-1build1_amd64.deb ... 137s Unpacking libgl-dev:amd64 (1.7.0-1build1) ... 137s Selecting previously unselected package libblas-dev:amd64. 137s Preparing to unpack .../446-libblas-dev_3.12.0-3build1_amd64.deb ... 137s Unpacking libblas-dev:amd64 (3.12.0-3build1) ... 137s Selecting previously unselected package liblapack-dev:amd64. 137s Preparing to unpack .../447-liblapack-dev_3.12.0-3build1_amd64.deb ... 137s Unpacking liblapack-dev:amd64 (3.12.0-3build1) ... 137s Selecting previously unselected package libfftw3-quad3:amd64. 137s Preparing to unpack .../448-libfftw3-quad3_3.3.10-1ubuntu3_amd64.deb ... 137s Unpacking libfftw3-quad3:amd64 (3.3.10-1ubuntu3) ... 137s Selecting previously unselected package libfftw3-bin. 137s Preparing to unpack .../449-libfftw3-bin_3.3.10-1ubuntu3_amd64.deb ... 137s Unpacking libfftw3-bin (3.3.10-1ubuntu3) ... 137s Selecting previously unselected package libfftw3-dev:amd64. 137s Preparing to unpack .../450-libfftw3-dev_3.3.10-1ubuntu3_amd64.deb ... 137s Unpacking libfftw3-dev:amd64 (3.3.10-1ubuntu3) ... 138s Selecting previously unselected package libgfortran-13-dev:amd64. 138s Preparing to unpack .../451-libgfortran-13-dev_13.2.0-23ubuntu4_amd64.deb ... 138s Unpacking libgfortran-13-dev:amd64 (13.2.0-23ubuntu4) ... 138s Selecting previously unselected package gfortran-13-x86-64-linux-gnu. 138s Preparing to unpack .../452-gfortran-13-x86-64-linux-gnu_13.2.0-23ubuntu4_amd64.deb ... 138s Unpacking gfortran-13-x86-64-linux-gnu (13.2.0-23ubuntu4) ... 138s Selecting previously unselected package gfortran-13. 138s Preparing to unpack .../453-gfortran-13_13.2.0-23ubuntu4_amd64.deb ... 138s Unpacking gfortran-13 (13.2.0-23ubuntu4) ... 138s Selecting previously unselected package gfortran-x86-64-linux-gnu. 138s Preparing to unpack .../454-gfortran-x86-64-linux-gnu_4%3a13.2.0-7ubuntu1_amd64.deb ... 138s Unpacking gfortran-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 138s Selecting previously unselected package gfortran. 138s Preparing to unpack .../455-gfortran_4%3a13.2.0-7ubuntu1_amd64.deb ... 138s Unpacking gfortran (4:13.2.0-7ubuntu1) ... 138s Selecting previously unselected package libstdc++-13-dev:amd64. 138s Preparing to unpack .../456-libstdc++-13-dev_13.2.0-23ubuntu4_amd64.deb ... 138s Unpacking libstdc++-13-dev:amd64 (13.2.0-23ubuntu4) ... 138s Selecting previously unselected package g++-13-x86-64-linux-gnu. 138s Preparing to unpack .../457-g++-13-x86-64-linux-gnu_13.2.0-23ubuntu4_amd64.deb ... 138s Unpacking g++-13-x86-64-linux-gnu (13.2.0-23ubuntu4) ... 138s Selecting previously unselected package g++-13. 138s Preparing to unpack .../458-g++-13_13.2.0-23ubuntu4_amd64.deb ... 138s Unpacking g++-13 (13.2.0-23ubuntu4) ... 138s Selecting previously unselected package g++-x86-64-linux-gnu. 138s Preparing to unpack .../459-g++-x86-64-linux-gnu_4%3a13.2.0-7ubuntu1_amd64.deb ... 138s Unpacking g++-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 138s Selecting previously unselected package g++. 138s Preparing to unpack .../460-g++_4%3a13.2.0-7ubuntu1_amd64.deb ... 138s Unpacking g++ (4:13.2.0-7ubuntu1) ... 138s Selecting previously unselected package octave-dev. 138s Preparing to unpack .../461-octave-dev_8.4.0-1build5_amd64.deb ... 138s Unpacking octave-dev (8.4.0-1build5) ... 139s Selecting previously unselected package dh-octave. 139s Preparing to unpack .../462-dh-octave_1.8.0_all.deb ... 139s Unpacking dh-octave (1.8.0) ... 139s Selecting previously unselected package libfontenc1:amd64. 139s Preparing to unpack .../463-libfontenc1_1%3a1.1.8-1build1_amd64.deb ... 139s Unpacking libfontenc1:amd64 (1:1.1.8-1build1) ... 139s Selecting previously unselected package libxt6t64:amd64. 139s Preparing to unpack .../464-libxt6t64_1%3a1.2.1-1.2build1_amd64.deb ... 139s Unpacking libxt6t64:amd64 (1:1.2.1-1.2build1) ... 139s Selecting previously unselected package libxmu6:amd64. 139s Preparing to unpack .../465-libxmu6_2%3a1.1.3-3build2_amd64.deb ... 139s Unpacking libxmu6:amd64 (2:1.1.3-3build2) ... 139s Selecting previously unselected package libxaw7:amd64. 139s Preparing to unpack .../466-libxaw7_2%3a1.0.14-1build2_amd64.deb ... 139s Unpacking libxaw7:amd64 (2:1.0.14-1build2) ... 139s Selecting previously unselected package libxfont2:amd64. 139s Preparing to unpack .../467-libxfont2_1%3a2.0.6-1build1_amd64.deb ... 139s Unpacking libxfont2:amd64 (1:2.0.6-1build1) ... 139s Selecting previously unselected package libxkbfile1:amd64. 139s Preparing to unpack .../468-libxkbfile1_1%3a1.1.0-1build4_amd64.deb ... 139s Unpacking libxkbfile1:amd64 (1:1.1.0-1build4) ... 139s Selecting previously unselected package libxrandr2:amd64. 139s Preparing to unpack .../469-libxrandr2_2%3a1.5.4-1_amd64.deb ... 139s Unpacking libxrandr2:amd64 (2:1.5.4-1) ... 139s Selecting previously unselected package python3-mpmath. 139s Preparing to unpack .../470-python3-mpmath_1.3.0-1_all.deb ... 139s Unpacking python3-mpmath (1.3.0-1) ... 139s Selecting previously unselected package python3-sympy. 139s Preparing to unpack .../471-python3-sympy_1.12.1-1_all.deb ... 139s Unpacking python3-sympy (1.12.1-1) ... 139s Selecting previously unselected package octave-symbolic. 139s Preparing to unpack .../472-octave-symbolic_3.1.1-2_all.deb ... 139s Unpacking octave-symbolic (3.1.1-2) ... 139s Selecting previously unselected package x11-xkb-utils. 139s Preparing to unpack .../473-x11-xkb-utils_7.7+8build2_amd64.deb ... 139s Unpacking x11-xkb-utils (7.7+8build2) ... 139s Selecting previously unselected package xserver-common. 139s Preparing to unpack .../474-xserver-common_2%3a21.1.12-1ubuntu1_all.deb ... 139s Unpacking xserver-common (2:21.1.12-1ubuntu1) ... 139s Selecting previously unselected package xvfb. 139s Preparing to unpack .../475-xvfb_2%3a21.1.12-1ubuntu1_amd64.deb ... 139s Unpacking xvfb (2:21.1.12-1ubuntu1) ... 139s Selecting previously unselected package autopkgtest-satdep. 139s Preparing to unpack .../476-1-autopkgtest-satdep.deb ... 139s Unpacking autopkgtest-satdep (0) ... 139s Setting up libapt-pkg-perl (0.1.40build7) ... 139s Setting up libhwy1t64:amd64 (1.2.0-2) ... 139s Setting up libmodule-pluggable-perl (5.2-5) ... 139s Setting up libgraphite2-3:amd64 (1.3.14-2build1) ... 139s Setting up libstring-escape-perl (2010.002-3) ... 139s Setting up libxcb-dri3-0:amd64 (1.17.0-2) ... 139s Setting up liblcms2-2:amd64 (2.14-2build1) ... 139s Setting up libberkeleydb-perl:amd64 (0.64-2build4) ... 139s Setting up libpixman-1-0:amd64 (0.42.2-1build1) ... 139s Setting up libwayland-server0:amd64 (1.22.0-2.1build1) ... 139s Setting up libx11-xcb1:amd64 (2:1.8.7-1build1) ... 139s Setting up libpciaccess0:amd64 (0.17-3build1) ... 139s Setting up libfile-which-perl (1.27-2) ... 139s Setting up fontconfig (2.15.0-1.1ubuntu2) ... 142s Regenerating fonts cache... done. 142s Setting up libjpeg-turbo8-dev:amd64 (2.1.5-2ubuntu2) ... 142s Setting up libdouble-conversion3:amd64 (3.3.0-1build1) ... 142s Setting up libncurses-dev:amd64 (6.5-2) ... 142s Setting up libdrm-nouveau2:amd64 (2.4.121-2) ... 142s Setting up libunicode-utf8-perl (0.62-2build3) ... 142s Setting up libset-intspan-perl (1.19-3) ... 142s Setting up libxcb-xfixes0:amd64 (1.17.0-2) ... 142s Setting up libogg0:amd64 (1.3.5-3build1) ... 142s Setting up libmouse-perl (2.5.10-1build8) ... 142s Setting up libpod-pom-perl (2.01-4) ... 142s Setting up hdf5-helpers (1.10.10+repack-3.1ubuntu4) ... 142s Setting up libwmflite-0.2-7:amd64 (0.2.13-1.1build3) ... 142s Setting up libregexp-pattern-perl (0.2.14-2) ... 142s Setting up libdata-messagepack-perl (1.02-1build4) ... 142s Setting up libxcb-xinput0:amd64 (1.17.0-2) ... 142s Setting up libxrender1:amd64 (1:0.9.10-1.1build1) ... 142s Setting up libdynaloader-functions-perl (0.003-3) ... 142s Setting up libdatrie1:amd64 (0.2.13-3build1) ... 142s Setting up libtext-glob-perl (0.11-3) ... 142s Setting up libclass-method-modifiers-perl (2.15-1) ... 142s Setting up liblist-compare-perl (0.55-2) ... 142s Setting up libxcb-render0:amd64 (1.17.0-2) ... 142s Setting up libclone-perl:amd64 (0.46-1build3) ... 142s Setting up libarchive-zip-perl (1.68-1) ... 142s Setting up libsub-identify-perl (0.14-3build3) ... 142s Setting up libevent-pthreads-2.1-7t64:amd64 (2.1.12-stable-10) ... 142s Setting up libdrm-radeon1:amd64 (2.4.121-2) ... 142s Setting up libcpanel-json-xs-perl:amd64 (4.38-1) ... 142s Setting up libglvnd0:amd64 (1.7.0-1build1) ... 142s Setting up libio-stringy-perl (2.111-3) ... 142s Setting up libscotch-7.0:amd64 (7.0.4-1ubuntu2) ... 142s Setting up libhtml-tagset-perl (3.24-1) ... 142s Setting up liblog-any-perl (1.717-1) ... 142s Setting up libqscintilla2-qt5-l10n (2.14.1+dfsg-1build4) ... 142s Setting up libyaml-pp-perl (0.38.0-1) ... 142s Setting up libxcb-glx0:amd64 (1.17.0-2) ... 142s Setting up libdevel-size-perl (0.84-1) ... 142s Setting up unzip (6.0-28ubuntu5) ... 142s Setting up libdebhelper-perl (13.15.3ubuntu2) ... 142s Setting up libregexp-pattern-license-perl (3.11.0-1) ... 142s Setting up libconvert-binhex-perl (1.125-3) ... 142s Setting up libdrm-intel1:amd64 (2.4.121-2) ... 142s Setting up liblwp-mediatypes-perl (6.04-2) ... 142s Setting up libyaml-libyaml-perl (0.89+ds-1build2) ... 142s Setting up fonts-freefont-otf (20211204+svn4273-2) ... 142s Setting up libio-interactive-perl (1.025-1) ... 142s Setting up libxcb-keysyms1:amd64 (0.4.0-1build4) ... 142s Setting up libxcb-shape0:amd64 (1.17.0-2) ... 142s Setting up x11-common (1:7.7+23ubuntu3) ... 142s Setting up libtry-tiny-perl (0.31-2) ... 142s Setting up perl-openssl-defaults:amd64 (7build3) ... 142s Setting up libmldbm-perl (2.05-4) ... 142s Setting up libxml-namespacesupport-perl (1.12-2) ... 142s Setting up m4 (1.4.19-4build1) ... 142s Setting up libclone-choose-perl (0.010-2) ... 142s Setting up libqhull-r8.0:amd64 (2020.2-6build1) ... 142s Setting up libxcb-render-util0:amd64 (0.3.9-1build4) ... 142s Setting up libtime-moment-perl (0.44-2build4) ... 142s Setting up libencode-locale-perl (1.05-3) ... 142s Setting up libtrilinos-kokkos-13.2:amd64 (13.2.0-6) ... 142s Setting up libmetis5:amd64 (5.1.0.dfsg-7build3) ... 142s Setting up libxcb-shm0:amd64 (1.17.0-2) ... 142s Setting up libxcb-icccm4:amd64 (0.4.1-1.1build3) ... 142s Setting up texinfo-lib (7.1-3build2) ... 142s Setting up libreadline-dev:amd64 (8.2-4build1) ... 142s Setting up libmpg123-0t64:amd64 (1.32.6-3) ... 142s Setting up libgomp1:amd64 (14.1.0-1ubuntu1) ... 142s Setting up libconfig-tiny-perl (2.30-1) ... 142s Setting up libsereal-encoder-perl (5.004+ds-1build3) ... 142s Setting up liblist-utilsby-perl (0.12-2) ... 142s Setting up libyaml-tiny-perl (1.74-1) ... 142s Setting up octave-common (8.4.0-1build5) ... 142s Setting up libcairo2:amd64 (1.18.0-3build1) ... 142s Setting up libregexp-common-perl (2017060201-3) ... 142s Setting up libpcre2-16-0:amd64 (10.42-4ubuntu2) ... 142s Setting up libaec0:amd64 (1.1.3-1) ... 142s Setting up libnet-netmask-perl (2.0002-2) ... 142s Setting up libopengl0:amd64 (1.7.0-1build1) ... 142s Setting up libsub-install-perl (0.929-1) ... 142s Setting up libxcb-util1:amd64 (0.4.0-1build3) ... 142s Setting up libxxf86vm1:amd64 (1:1.1.4-1build4) ... 142s Setting up libindirect-perl (0.39-2build4) ... 142s Setting up libxcb-xkb1:amd64 (1.17.0-2) ... 142s Setting up libxcb-image0:amd64 (0.4.0-2build1) ... 142s Setting up libxs-parse-sublike-perl:amd64 (0.21-2build3) ... 142s Setting up libnumber-compare-perl (0.03-3) ... 142s Setting up libxnvctrl0:amd64 (510.47.03-0ubuntu4) ... 142s Setting up libxcb-present0:amd64 (1.17.0-2) ... 142s Setting up liberror-perl (0.17029-2) ... 142s Setting up libtrilinos-trilinosss-13.2:amd64 (13.2.0-6) ... 142s Setting up libasound2-data (1.2.11-1build2) ... 142s Setting up patchutils (0.4.2-1build3) ... 142s Setting up tex-common (6.18) ... 142s update-language: texlive-base not installed and configured, doing nothing! 142s Setting up libbtf2:amd64 (1:7.7.0+dfsg-2) ... 142s Setting up libjson-maybexs-perl (1.004005-1) ... 142s Setting up libxml-sax-base-perl (1.09-3) ... 142s Setting up libio-string-perl (1.08-4) ... 142s Setting up libboolean-perl (0.46-3) ... 142s Setting up libnetaddr-ip-perl (4.079+dfsg-2build4) ... 142s Setting up xtrans-dev (1.4.0-1) ... 142s Setting up libqt5core5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 142s Setting up libfontenc1:amd64 (1:1.1.8-1build1) ... 142s Setting up autotools-dev (20220109.1) ... 142s Setting up libblas3:amd64 (3.12.0-3build1) ... 142s 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 142s Setting up libclass-data-inheritable-perl (0.08-3) ... 142s Setting up libxs-parse-keyword-perl (0.42-1) ... 142s Setting up libxcb-xinerama0:amd64 (1.17.0-2) ... 142s Setting up libalgorithm-c3-perl (0.11-2) ... 142s Setting up libasound2t64:amd64 (1.2.11-1build2) ... 142s Setting up gcc-13-base:amd64 (13.2.0-23ubuntu4) ... 142s Setting up libmunge2:amd64 (0.5.15-4build1) ... 142s Setting up liblog-log4perl-perl (1.57-1) ... 142s Setting up libllvm17t64:amd64 (1:17.0.6-12) ... 142s Setting up libtext-reform-perl (1.20-5) ... 142s Setting up libfile-find-rule-perl (0.34-3) ... 142s Setting up libxfixes3:amd64 (1:6.0.0-2build1) ... 142s Setting up libcurl4-openssl-dev:amd64 (8.8.0-1ubuntu1) ... 142s Setting up libxcb-sync1:amd64 (1.17.0-2) ... 142s Setting up libipc-system-simple-perl (1.30-2) ... 142s Setting up libio-tiecombine-perl (1.005-3) ... 142s Setting up libnet-domain-tld-perl (1.75-3) ... 142s Setting up libperlio-utf8-strict-perl (0.010-1build3) ... 142s Setting up aglfn (1.7+git20191031.4036a9c-2) ... 142s Setting up lzip (1.24.1-1build1) ... 142s update-alternatives: using /usr/bin/lzip.lzip to provide /usr/bin/lzip (lzip) in auto mode 142s update-alternatives: using /usr/bin/lzip.lzip to provide /usr/bin/lzip-compressor (lzip-compressor) in auto mode 142s update-alternatives: using /usr/bin/lzip.lzip to provide /usr/bin/lzip-decompressor (lzip-decompressor) in auto mode 142s Setting up libavahi-common-data:amd64 (0.8-13ubuntu6) ... 142s Setting up libopus0:amd64 (1.4-1build1) ... 142s Setting up t1utils (1.41-4build3) ... 142s Setting up libquadmath0:amd64 (14.1.0-1ubuntu1) ... 142s Setting up libxinerama1:amd64 (2:1.1.4-3build1) ... 142s Setting up diffstat (1.66-1build1) ... 142s Setting up libxkbcommon-x11-0:amd64 (1.6.0-1build1) ... 142s Setting up libssl-dev:amd64 (3.0.13-0ubuntu4) ... 142s Setting up libhwloc15:amd64 (2.10.0-1build1) ... 142s Setting up libimath-3-1-29t64:amd64 (3.1.9-3.1ubuntu2) ... 142s Setting up libmpc3:amd64 (1.3.1-1build1) ... 142s Setting up libatomic1:amd64 (14.1.0-1ubuntu1) ... 142s Setting up libvorbis0a:amd64 (1.3.7-2) ... 142s Setting up libvariable-magic-perl (0.64-1) ... 142s Setting up libio-html-perl (1.004-3) ... 142s Setting up libxrandr2:amd64 (2:1.5.4-1) ... 142s Setting up libtext-template-perl (1.61-1) ... 142s Setting up libpod-parser-perl (1.67-1) ... 142s Setting up autopoint (0.21-14ubuntu2) ... 142s Setting up libb-hooks-op-check-perl:amd64 (0.22-3build1) ... 142s Setting up liblist-moreutils-xs-perl (0.430-4) ... 142s Setting up libltdl7:amd64 (2.4.7-7build1) ... 142s Setting up libfftw3-double3:amd64 (3.3.10-1ubuntu3) ... 142s Setting up libglapi-mesa:amd64 (24.0.9-0ubuntu1) ... 142s Setting up libparams-util-perl (1.102-3) ... 142s Setting up libgfortran5:amd64 (14.1.0-1ubuntu1) ... 142s Setting up libvulkan1:amd64 (1.3.283.0-1) ... 142s Setting up libtime-duration-perl (1.21-2) ... 142s Setting up autoconf (2.71-3) ... 142s Setting up libtext-xslate-perl:amd64 (3.5.9-2) ... 142s Setting up libsub-exporter-progressive-perl (0.001013-3) ... 142s Setting up libarray-intspan-perl (2.004-2) ... 142s Setting up libcapture-tiny-perl (0.48-2) ... 142s Setting up libtimedate-perl (2.3300-2) ... 142s Setting up libexporter-lite-perl (0.09-2) ... 142s Setting up libubsan1:amd64 (14.1.0-1ubuntu1) ... 142s Setting up libxcb-dri2-0:amd64 (1.17.0-2) ... 142s Setting up libsub-name-perl:amd64 (0.27-1build3) ... 142s Setting up libgif7:amd64 (5.2.2-1ubuntu1) ... 142s Setting up zlib1g-dev:amd64 (1:1.3.dfsg-3.1ubuntu2) ... 142s Setting up libsyntax-keyword-try-perl (0.29-2) ... 142s Setting up dwz (0.15-1build6) ... 142s Setting up libdata-validate-domain-perl (0.10-1.1) ... 142s Setting up libproc-processtable-perl:amd64 (0.636-1build3) ... 142s Setting up libparse-recdescent-perl (1.967015+dfsg-4) ... 142s Setting up libmtdev1t64:amd64 (1.1.6-1.2) ... 142s Setting up ocl-icd-libopencl1:amd64 (2.3.2-1build1) ... 142s Setting up libxshmfence1:amd64 (1.3-1build5) ... 142s Setting up libhwasan0:amd64 (14.1.0-1ubuntu1) ... 142s Setting up libxcb-randr0:amd64 (1.17.0-2) ... 142s Setting up libpath-tiny-perl (0.144-1) ... 142s Setting up libasan8:amd64 (14.1.0-1ubuntu1) ... 142s Setting up lzop (1.04-2build3) ... 142s Setting up libjson-perl (4.10000-1) ... 142s Setting up liblog-any-adapter-screen-perl (0.140-2) ... 142s Setting up librole-tiny-perl (2.002004-1) ... 142s Setting up libpsm2-2 (11.2.185-2.1) ... 142s Setting up openmpi-common (4.1.6-7ubuntu2) ... 142s Setting up libqt5sql5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 142s Setting up debugedit (1:5.0-5build2) ... 142s Setting up libipc-run3-perl (0.049-1) ... 142s Setting up libmd4c0:amd64 (0.4.8-1build1) ... 142s Setting up libregexp-wildcards-perl (1.05-3) ... 142s Setting up libmousex-strictconstructor-perl (0.02-3) ... 142s Setting up libsub-uplevel-perl (0.2800-3) ... 142s Setting up libsuitesparseconfig7:amd64 (1:7.7.0+dfsg-2) ... 142s Setting up librdmacm1t64:amd64 (50.0-2build2) ... 142s Setting up liblua5.4-0:amd64 (5.4.6-3build2) ... 142s Setting up libaliased-perl (0.34-3) ... 142s Setting up libharfbuzz0b:amd64 (8.3.0-2build2) ... 142s Setting up libthai-data (0.1.29-2build1) ... 142s Setting up xorg-sgml-doctools (1:1.11-1.1) ... 142s Setting up libstrictures-perl (2.000006-1) ... 142s Setting up libsub-quote-perl (2.006008-1ubuntu1) ... 142s Setting up libdevel-stacktrace-perl (2.0500-1) ... 142s Setting up libclass-xsaccessor-perl (1.19-4build4) ... 142s Setting up libtext-autoformat-perl (1.750000-2) ... 142s Setting up libglu1-mesa:amd64 (9.0.2-1.1build1) ... 142s Setting up libamd-comgr2:amd64 (6.0+git20231212.4510c28+dfsg-3build2) ... 142s Setting up libflac12t64:amd64 (1.4.3+ds-2.1ubuntu2) ... 142s Setting up libtoml-tiny-perl (0.17-1) ... 142s Setting up libxkbfile1:amd64 (1:1.1.0-1build4) ... 142s Setting up libpsm-infinipath1 (3.3+20.604758e7-6.3build1) ... 142s 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 142s Setting up libsort-versions-perl (1.62-3) ... 142s Setting up libtsan2:amd64 (14.1.0-1ubuntu1) ... 142s Setting up libexporter-tiny-perl (1.006002-1) ... 142s Setting up libterm-readkey-perl (2.38-2build4) ... 142s Setting up libjpeg8-dev:amd64 (8c-2ubuntu11) ... 142s Setting up python3-mpmath (1.3.0-1) ... 143s Setting up libisl23:amd64 (0.26-3build1) ... 143s Setting up libtext-unidecode-perl (1.30-3) ... 143s Setting up libfont-ttf-perl (1.06-2) ... 143s Setting up libfile-homedir-perl (1.006-2) ... 143s Setting up libsamplerate0:amd64 (0.2.2-4build1) ... 143s Setting up libwebpmux3:amd64 (1.4.0-0.1) ... 143s Setting up libtext-levenshteinxs-perl (0.03-5build4) ... 143s Setting up libperlio-gzip-perl (0.20-1build4) ... 143s Setting up libxfont2:amd64 (1:2.0.6-1build1) ... 143s Setting up libhtml-html5-entities-perl (0.004-3) ... 143s Setting up libtext-levenshtein-damerau-perl (0.41-3) ... 143s Setting up libsereal-decoder-perl (5.004+ds-1build3) ... 143s Setting up libmarkdown2:amd64 (2.2.7-2build1) ... 143s Setting up libcc1-0:amd64 (14.1.0-1ubuntu1) ... 143s Setting up liburi-perl (5.28-1) ... 143s Setting up libnet-ipv6addr-perl (1.02-1) ... 143s Setting up liblsan0:amd64 (14.1.0-1ubuntu1) ... 143s Setting up libmp3lame0:amd64 (3.100-6build1) ... 143s Setting up libblas-dev:amd64 (3.12.0-3build1) ... 143s 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 143s Setting up libsz2:amd64 (1.1.3-1) ... 143s Setting up libitm1:amd64 (14.1.0-1ubuntu1) ... 143s Setting up libvorbisenc2:amd64 (1.3.7-2) ... 143s Setting up libdata-validate-ip-perl (0.31-1) ... 143s Setting up libdrm-amdgpu1:amd64 (2.4.121-2) ... 143s Setting up libwacom-common (2.10.0-2) ... 143s Setting up libmousex-nativetraits-perl (1.09-3) ... 143s Setting up libemail-address-xs-perl (1.05-1build4) ... 143s Setting up libwayland-client0:amd64 (1.22.0-2.1build1) ... 143s Setting up libnet-ssleay-perl:amd64 (1.94-1build4) ... 143s Setting up automake (1:1.16.5-1.3ubuntu1) ... 143s update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode 143s Setting up x11proto-dev (2024.1-1) ... 143s Setting up libfile-stripnondeterminism-perl (1.14.0-1) ... 143s Setting up libfabric1:amd64 (1.17.0-3build2) ... 143s Setting up python3-sympy (1.12.1-1) ... 149s Setting up gnuplot-data (6.0.0+dfsg1-1ubuntu3) ... 149s Setting up libice6:amd64 (2:1.0.10-1build3) ... 149s Setting up libhttp-date-perl (6.06-1) ... 149s Setting up liblapack3:amd64 (3.12.0-3build1) ... 149s 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 149s Setting up libxft2:amd64 (2.3.6-1build1) ... 149s Setting up libqt5dbus5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 149s Setting up libfile-basedir-perl (0.09-2) ... 149s Setting up gettext (0.21-14ubuntu2) ... 149s Setting up libarpack2t64:amd64 (3.9.1-1.1build2) ... 149s Setting up libfftw3-single3:amd64 (3.3.10-1ubuntu3) ... 149s Setting up libamd3:amd64 (1:7.7.0+dfsg-2) ... 149s Setting up libfile-listing-perl (6.16-1) ... 149s Setting up libxau-dev:amd64 (1:1.0.9-1build6) ... 149s Setting up libgbm1:amd64 (24.0.9-0ubuntu1) ... 149s Setting up libcolamd3:amd64 (1:7.7.0+dfsg-2) ... 149s Setting up libwacom9:amd64 (2.10.0-2) ... 149s Setting up cpp-13-x86-64-linux-gnu (13.2.0-23ubuntu4) ... 149s Setting up liblist-moreutils-perl (0.430-2) ... 149s Setting up libxcursor1:amd64 (1:1.2.2-1) ... 149s Setting up libpod-constants-perl (0.19-2) ... 149s Setting up libgl1-mesa-dri:amd64 (24.0.9-0ubuntu1) ... 149s Setting up libqt5network5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 149s Setting up libhash-merge-perl (0.302-1) ... 149s Setting up libsoftware-copyright-perl (0.012-2) ... 149s Setting up libaec-dev:amd64 (1.1.3-1) ... 149s Setting up libavahi-common3:amd64 (0.8-13ubuntu6) ... 149s Setting up libcxsparse4:amd64 (1:7.7.0+dfsg-2) ... 149s Setting up libjpeg-dev:amd64 (8c-2ubuntu11) ... 149s Setting up libfftw3-long3:amd64 (3.3.10-1ubuntu3) ... 149s Setting up libnet-http-perl (6.23-1) ... 149s Setting up libpath-iterator-rule-perl (1.015-2) ... 149s Setting up libtext-markdown-discount-perl (0.16-1build3) ... 149s Setting up libqt5xml5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 149s Setting up libexception-class-perl (1.45-1) ... 149s Setting up libsundials-sunmatrix4:amd64 (6.4.1+dfsg1-3build5) ... 149s Setting up libclass-c3-perl (0.35-2) ... 149s Setting up libsuperlu6:amd64 (6.0.1+dfsg1-1build1) ... 149s Setting up libhwloc-plugins:amd64 (2.10.0-1build1) ... 149s Setting up libqrupdate1:amd64 (1.1.2-4build1) ... 149s Setting up libdevel-callchecker-perl:amd64 (0.009-1) ... 149s Setting up libxml-sax-perl (1.02+dfsg-3) ... 149s update-perl-sax-parsers: Registering Perl SAX parser XML::SAX::PurePerl with priority 10... 149s update-perl-sax-parsers: Updating overall Perl SAX parser modules info file... 150s 150s Creating config file /etc/perl/XML/SAX/ParserDetails.ini with new version 150s Setting up libsundials-ida6:amd64 (6.4.1+dfsg1-3build5) ... 150s Setting up libcamd3:amd64 (1:7.7.0+dfsg-2) ... 150s Setting up libinput-bin (1.26.0-1) ... 150s Setting up intltool-debian (0.35.0+20060710.6) ... 150s Setting up libobject-pad-perl (0.808-1build3) ... 150s Setting up libthai0:amd64 (0.1.29-2build1) ... 150s Setting up libxdmcp-dev:amd64 (1:1.1.3-0ubuntu6) ... 150s Setting up libegl-mesa0:amd64 (24.0.9-0ubuntu1) ... 150s Setting up libdata-validate-uri-perl (0.07-3) ... 150s Setting up libtest-exception-perl (0.43-3) ... 150s Setting up libglpk40:amd64 (5.0-1build2) ... 150s Setting up libstring-copyright-perl (0.003014-1) ... 150s Setting up libopenexr-3-1-30:amd64 (3.1.5-5.1build3) ... 150s Setting up libfftw3-quad3:amd64 (3.3.10-1ubuntu3) ... 150s Setting up liblapack-dev:amd64 (3.12.0-3build1) ... 150s 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 150s Setting up libdata-optlist-perl (0.114-1) ... 150s Setting up libpmix2t64:amd64 (5.0.1-4.1build1) ... 150s Setting up libccolamd3:amd64 (1:7.7.0+dfsg-2) ... 150s Setting up libxml-libxml-perl (2.0207+dfsg+really+2.0134-2) ... 150s update-perl-sax-parsers: Registering Perl SAX parser XML::LibXML::SAX::Parser with priority 50... 150s update-perl-sax-parsers: Registering Perl SAX parser XML::LibXML::SAX with priority 50... 150s update-perl-sax-parsers: Updating overall Perl SAX parser modules info file... 150s Replacing config file /etc/perl/XML/SAX/ParserDetails.ini with new version 150s Setting up dh-strip-nondeterminism (1.14.0-1) ... 150s Setting up libwww-robotrules-perl (6.02-1) ... 150s Setting up libjack-jackd2-0:amd64 (1.9.21~dfsg-3ubuntu3) ... 150s Setting up libgcc-13-dev:amd64 (13.2.0-23ubuntu4) ... 150s Setting up libhtml-parser-perl:amd64 (3.82-1) ... 150s Setting up libegl1:amd64 (1.7.0-1build1) ... 150s Setting up libsndfile1:amd64 (1.2.2-1ubuntu5) ... 150s Setting up libmro-compat-perl (0.15-2) ... 150s Setting up libhdf5-103-1t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 150s Setting up libgfortran-13-dev:amd64 (13.2.0-23ubuntu4) ... 150s Setting up libsm6:amd64 (2:1.2.3-1build3) ... 150s Setting up libfltk1.3t64:amd64 (1.3.8-6.1build2) ... 150s Setting up libavahi-client3:amd64 (0.8-13ubuntu6) ... 150s Setting up libio-socket-ssl-perl (2.085-1) ... 150s Setting up libhsakmt1:amd64 (5.7.0-1build1) ... 150s Setting up libstdc++-13-dev:amd64 (13.2.0-23ubuntu4) ... 150s Setting up libsub-exporter-perl (0.990-1) ... 150s Setting up libhttp-message-perl (6.45-1ubuntu1) ... 150s Setting up libhtml-form-perl (6.11-1) ... 150s Setting up cpp-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 150s Setting up libiterator-perl (0.03+ds1-2) ... 150s Setting up libinput10:amd64 (1.26.0-1) ... 150s Setting up libhdf5-hl-100t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 150s Setting up libportaudio2:amd64 (19.6.0-1.2build3) ... 150s Setting up libhttp-negotiate-perl (6.01-2) ... 150s Setting up libcarp-assert-more-perl (2.4.0-1) ... 150s Setting up libcholmod5:amd64 (1:7.7.0+dfsg-2) ... 150s Setting up libglx-mesa0:amd64 (24.0.9-0ubuntu1) ... 150s Setting up libxcb1-dev:amd64 (1.17.0-2) ... 150s Setting up libiterator-util-perl (0.02+ds1-2) ... 150s Setting up libglx0:amd64 (1.7.0-1build1) ... 150s Setting up cpp-13 (13.2.0-23ubuntu4) ... 150s Setting up libhttp-cookies-perl (6.11-1) ... 150s Setting up libspqr4:amd64 (1:7.7.0+dfsg-2) ... 150s Setting up libfftw3-bin (3.3.10-1ubuntu3) ... 150s Setting up gcc-13-x86-64-linux-gnu (13.2.0-23ubuntu4) ... 150s Setting up po-debconf (1.0.21+nmu1) ... 150s Setting up libhtml-tree-perl (5.07-3) ... 150s Setting up libparams-classify-perl:amd64 (0.015-2build5) ... 150s Setting up libpango-1.0-0:amd64 (1.54.0+ds-1) ... 150s Setting up libhdf5-cpp-103-1t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 150s Setting up libcgi-pm-perl (4.65-1) ... 150s Setting up libx11-dev:amd64 (2:1.8.7-1build1) ... 150s Setting up libhdf5-fortran-102t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 150s Setting up libjxl0.9:amd64 (0.9.2-8) ... 150s Setting up gfortran-13-x86-64-linux-gnu (13.2.0-23ubuntu4) ... 150s Setting up libgl1:amd64 (1.7.0-1build1) ... 150s Setting up libnet-smtp-ssl-perl (1.04-2) ... 150s Setting up libmodule-runtime-perl (0.016-2) ... 150s Setting up libmailtools-perl (2.21-3) ... 150s Setting up libklu2:amd64 (1:7.7.0+dfsg-2) ... 150s Setting up libconfig-model-perl (2.153-3) ... 150s Setting up libxt6t64:amd64 (1:1.2.1-1.2build1) ... 150s Setting up gcc-13 (13.2.0-23ubuntu4) ... 150s Setting up texinfo (7.1-3build2) ... 150s Setting up libumfpack6:amd64 (1:7.7.0+dfsg-2) ... 150s Setting up libconst-fast-perl (0.014-2) ... 150s Setting up libhsa-runtime64-1 (5.7.1-2build1) ... 150s Setting up cpp (4:13.2.0-7ubuntu1) ... 150s Setting up libdata-section-perl (0.200008-1) ... 150s Setting up libglx-dev:amd64 (1.7.0-1build1) ... 150s Setting up libpangoft2-1.0-0:amd64 (1.54.0+ds-1) ... 150s Setting up libdata-dpath-perl (0.59-1) ... 150s Setting up libhdf5-hl-cpp-100t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 150s Setting up libfftw3-dev:amd64 (3.3.10-1ubuntu3) ... 150s Setting up libcups2t64:amd64 (2.4.7-1.2ubuntu7) ... 150s Setting up libgl-dev:amd64 (1.7.0-1build1) ... 150s Setting up libstring-rewriteprefix-perl (0.009-1) ... 150s Setting up libpangocairo-1.0-0:amd64 (1.54.0+ds-1) ... 150s Setting up libconfig-model-backend-yaml-perl (2.134-2) ... 150s Setting up libxmu6:amd64 (2:1.1.3-3build2) ... 150s Setting up g++-13-x86-64-linux-gnu (13.2.0-23ubuntu4) ... 150s Setting up gcc-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 150s Setting up libgraphicsmagick-q16-3t64 (1.4+really1.3.43-1build2) ... 150s Setting up libtool (2.4.7-7build1) ... 150s Setting up libmodule-implementation-perl (0.09-2) ... 150s Setting up libpackage-stash-perl (0.40-1) ... 150s Setting up libimport-into-perl (1.002005-2) ... 150s Setting up libmoo-perl (2.005005-1) ... 150s Setting up libhdf5-hl-fortran-100t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 150s Setting up liblist-someutils-perl (0.59-1) ... 150s Setting up libxaw7:amd64 (2:1.0.14-1build2) ... 150s Setting up libmime-tools-perl (5.515-1) ... 150s Setting up gfortran-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 150s Setting up libgraphicsmagick++-q16-12t64 (1.4+really1.3.43-1build2) ... 150s Setting up libsoftware-license-perl (0.104006-1) ... 150s Setting up libclass-load-perl (0.25-2) ... 150s Setting up gcc (4:13.2.0-7ubuntu1) ... 150s Setting up libgl2ps1.4 (1.4.2+dfsg1-2build1) ... 150s Setting up dh-autoreconf (20) ... 150s Setting up libfltk-gl1.3t64:amd64 (1.3.8-6.1build2) ... 150s Setting up libqt5gui5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 150s Setting up libamdhip64-5 (5.7.1-3) ... 150s Setting up gfortran-13 (13.2.0-23ubuntu4) ... 150s Setting up libhdf5-dev (1.10.10+repack-3.1ubuntu4) ... 150s 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 150s Setting up g++-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 150s Setting up gnuplot-nox (6.0.0+dfsg1-1ubuntu3) ... 150s update-alternatives: using /usr/bin/gnuplot-nox to provide /usr/bin/gnuplot (gnuplot) in auto mode 150s Setting up libmoox-aliases-perl (0.001006-2) ... 150s Setting up libparams-validate-perl:amd64 (1.31-2build3) ... 150s Setting up libb-hooks-endofscope-perl (0.28-1) ... 150s Setting up g++-13 (13.2.0-23ubuntu4) ... 150s Setting up libucx0:amd64 (1.16.0+ds-5ubuntu1) ... 150s Setting up libqt5widgets5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 150s Setting up libsoftware-licensemoreutils-perl (1.009-1) ... 150s Setting up x11-xkb-utils (7.7+8build2) ... 150s Setting up debhelper (13.15.3ubuntu2) ... 150s Setting up libqt5help5:amd64 (5.15.13-3) ... 150s Setting up gfortran (4:13.2.0-7ubuntu1) ... 150s update-alternatives: using /usr/bin/gfortran to provide /usr/bin/f95 (f95) in auto mode 150s 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 150s update-alternatives: using /usr/bin/gfortran to provide /usr/bin/f77 (f77) in auto mode 150s 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 150s Setting up dh-octave-autopkgtest (1.8.0) ... 150s Setting up libnamespace-clean-perl (0.27-2) ... 150s Setting up libstring-license-perl (0.0.9-2ubuntu1) ... 150s Setting up libopenmpi3t64:amd64 (4.1.6-7ubuntu2) ... 150s Setting up libgetopt-long-descriptive-perl (0.111-1) ... 150s Setting up g++ (4:13.2.0-7ubuntu1) ... 150s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 150s Setting up xserver-common (2:21.1.12-1ubuntu1) ... 150s Setting up openmpi-bin (4.1.6-7ubuntu2) ... 150s update-alternatives: using /usr/bin/mpirun.openmpi to provide /usr/bin/mpirun (mpirun) in auto mode 150s update-alternatives: using /usr/bin/mpicc.openmpi to provide /usr/bin/mpicc (mpi) in auto mode 150s Setting up licensecheck (3.3.9-1ubuntu1) ... 150s Setting up libqt5printsupport5t64:amd64 (5.15.13+dfsg-1ubuntu1) ... 150s Setting up libptscotch-7.0:amd64 (7.0.4-1ubuntu2) ... 150s Setting up libapp-cmd-perl (0.336-1) ... 150s Setting up xvfb (2:21.1.12-1ubuntu1) ... 150s Setting up mpi-default-bin (1.15build1) ... 150s Setting up libcombblas2.0.0t64:amd64 (2.0.0-3.1build2) ... 150s Setting up libfftw3-mpi3:amd64 (3.3.10-1ubuntu3) ... 150s Setting up libqscintilla2-qt5-15:amd64 (2.14.1+dfsg-1build4) ... 150s Setting up libtrilinos-zoltan-13.2:amd64 (13.2.0-6) ... 150s Setting up libhdf5-openmpi-103-1t64:amd64 (1.10.10+repack-3.1ubuntu4) ... 150s Setting up libtrilinos-teuchos-13.2:amd64 (13.2.0-6) ... 150s Setting up libtrilinos-epetra-13.2:amd64 (13.2.0-6) ... 150s Setting up cme (1.040-1) ... 150s Setting up libtrilinos-aztecoo-13.2:amd64 (13.2.0-6) ... 150s Setting up libtrilinos-triutils-13.2:amd64 (13.2.0-6) ... 150s Setting up libscalapack-openmpi2.2:amd64 (2.2.1-3.1ubuntu1) ... 150s Setting up libsuperlu-dist8:amd64 (8.2.1+dfsg1-1build2) ... 150s Setting up libmumps-5.6t64:amd64 (5.6.2-2.1build2) ... 150s Setting up libhypre-2.28.0:amd64 (2.28.0-8build2) ... 150s Setting up libtrilinos-epetraext-13.2:amd64 (13.2.0-6) ... 150s Setting up libtrilinos-galeri-13.2:amd64 (13.2.0-6) ... 150s Setting up libtrilinos-amesos-13.2:amd64 (13.2.0-6) ... 150s Setting up libtrilinos-ifpack-13.2:amd64 (13.2.0-6) ... 150s Setting up libtrilinos-ml-13.2:amd64 (13.2.0-6) ... 150s Setting up libpetsc-real3.19t64:amd64 (3.19.6+dfsg1-2.2ubuntu2) ... 150s 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 150s Setting up libsundials-nvecparallel-petsc6:amd64 (6.4.1+dfsg1-3build5) ... 150s Setting up libsundials-sunlinsol3:amd64 (6.4.1+dfsg1-3build5) ... 150s Setting up octave (8.4.0-1build5) ... 150s Setting up octave-dev (8.4.0-1build5) ... 150s Setting up octave-symbolic (3.1.1-2) ... 150s Setting up liblwp-protocol-https-perl (6.14-1) ... 150s Setting up libwww-perl (6.77-1) ... 150s Setting up libparse-debcontrol-perl (2.005-6) ... 150s Setting up libhtml-tokeparser-simple-perl (3.16-4) ... 150s Setting up libwww-mechanize-perl (2.18-1ubuntu1) ... 150s Setting up lintian (2.117.0ubuntu2) ... 150s Setting up libconfig-model-dpkg-perl (3.005) ... 150s Setting up dh-octave (1.8.0) ... 150s Setting up autopkgtest-satdep (0) ... 150s Processing triggers for libc-bin (2.39-0ubuntu9) ... 150s Processing triggers for man-db (2.12.1-2) ... 153s Processing triggers for udev (255.4-1ubuntu8) ... 153s Processing triggers for install-info (7.1-3build2) ... 165s (Reading database ... 92426 files and directories currently installed.) 165s Removing autopkgtest-satdep (0) ... 166s autopkgtest [10:24:25]: test command1: DH_OCTAVE_TEST_ENV="xvfb-run -a" /usr/bin/dh_octave_check --use-installed-package 166s autopkgtest [10:24:25]: test command1: [----------------------- 166s Checking package... 167s Run the unit tests... 167s Checking m files ... 167s [inst/cell2sym.m] 167s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/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.uN8AL6/build.Ssc/src/inst/cell2sym.m leaked file descriptors 168s 2 tests, 2 passed, 0 known failure, 0 skipped 168s [inst/syms.m] 168s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/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'))) 169s ***** test 169s % Issue #885 169s syms S(x) I(x) O(x) 169s ***** test 169s % Issue #290 169s syms FF(x) 169s syms ff(x) 169s syms Eq(x) 169s ***** test 169s % Issue #290 169s syms beta(x) 169s ***** test 169s syms x real 169s syms f(x) 169s 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.uN8AL6/build.Ssc/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.uN8AL6/build.Ssc/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.uN8AL6/build.Ssc/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.uN8AL6/build.Ssc/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) 171s ***** test 171s % multiple assumptions 171s n = sym('n', 'negative', 'even'); 171s assert (logical (n < 0)) 171s assert (~(logical (n > 0))) 171s assert (~(logical (n == -1))) 171s ***** test 171s % multiple assumptions: eqn neither true nor false 171s n = sym('n', 'negative', 'even'); 171s assert (~isequal (n, sym(true)) && ~isequal (n, sym(false))) 171s ***** test 171s %% TODO: rewrite later with https://github.com/cbm755/octsympy/issues/622 171s a = pycall_sympy__ ('return Symbol("a", real=False)'); 171s assert (strcmp (assumptions (a), {'a: ~real'})) 171s 13 tests, 13 passed, 0 known failure, 0 skipped 171s [inst/digits.m] 171s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/digits.m 171s ***** test 171s orig = digits(32); % to reset later 171s m = digits(64); 171s p = vpa(sym(pi)); 171s assert (abs (double (sin(p))) < 1e-64) 171s n = digits(m); 171s assert (n == 64) 171s p = vpa(sym(pi)); 171s assert (abs (double (sin(p))) < 1e-32) 171s assert (abs (double (sin(p))) > 1e-40) 171s digits(orig) 171s 1 test, 1 passed, 0 known failure, 0 skipped 171s [inst/heaviside.m] 171s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/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.uN8AL6/build.Ssc/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.uN8AL6/build.Ssc/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) 172s ***** test 172s % integer type 172s a = vpa(int32(6), 64); 172s b = vpa(6, 64); 172s assert (isequal (a, b)) 172s ***** test 172s % matrix of int 172s b = int32([pi 0; 6.25 1]); 172s c = vpa(b, 6); 172s assert (isequal (double(c), [3 0; 6 1])) 172s ***** test 172s % can pass pi directly to vpa 172s a = vpa(sym(pi), 128); 172s b = vpa(pi, 128); 172s 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 173s ***** test 173s a = vpa('2.3', 20); 173s s = strtrim(disp(a, 'flat')); 173s assert (strcmp (s, '2.3000000000000000000')) 173s ***** test 173s % these should *not* be the same 173s a = vpa(2.3, 40); 173s b = vpa('2.3', 40); 173s sa = sympy (a); 173s sb = sympy (b); 173s assert (~isequal (a, b)) 173s assert (abs(double(a - b)) > 1e-20) 173s assert (abs(double(a - b)) < 1e-15) 173s assert (~strcmp(sa, sb)) 173s ***** test 173s % these should *not* be the same 173s x = vpa('1/3', 32); 173s y = vpa(sym(1)/3, 32); 173s z = vpa(1/3, 32); 173s assert (isequal (x, y)) 173s assert (~isequal (x, z)) 173s ***** test 173s % big integers 173s a = int64(12345678); 173s a = a*a; 173s b = vpa(a); 173s c = vpa('152415765279684'); 173s assert (isequal (b, c)) 173s ***** test 173s % big integers (workaround poor num2str, works in 4.0?) 173s a = int64(1234567891); a = a*a; 173s b = vpa(a); 173s c = vpa('1524157877488187881'); 173s assert (isequal (b, c)) 173s ***** warning vpa ('sqrt(2.0)'); 173s ***** warning 173s if (pycall_sympy__ ('return Version(spver) > Version("1.4")')) 173s a = vpa('2**0.5'); 173s b = vpa(sqrt(sym(2))); 173s assert (isequal (a, b)) 173s else 173s warning('dangerous') % fake it until we drop 1.4 173s end 173s ***** test 173s a = vpa('2.3e1'); 173s b = vpa(' 2.3e+1 '); 173s assert (isequal (a, b)) 173s a = vpa('21e-1'); 173s b = vpa('2.1'); 173s assert (isequal (a, b)) 173s ***** test 173s % Issue #859, operations on immutable matrices 173s x = vpa (sym ([1 2])); 173s % If vpa no longer makes an ImmutableDenseMatrix, 173s % may need to adjust or remove this test. 173s assert (~ isempty (strfind (sympy (x), 'Immutable'))) 173s y = sin(x); 173s y2 = [sin(vpa(sym(1))) sin(vpa(sym(2)))]; 173s assert (isequal (y, y2)) 173s 30 tests, 30 passed, 0 known failure, 0 skipped 173s [inst/vpasolve.m] 173s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/vpasolve.m 173s ***** test 173s syms x 173s vpi = vpa(sym(pi), 64); 173s e = tan(x/4) == 1; 173s q = vpasolve(e, x, 3.0); 173s w = q - vpi ; 173s 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); 174s ***** test 174s % very accurate sqrt 2 174s syms x 174s e = x*x == 2; 174s m = digits(256); 174s q = vpasolve(e, x, 1.5); 174s assert (double(abs(q*q - 2)) < 1e-256) 174s digits(m); 174s ***** test 174s % very accurate sqrt pi 174s % (used to fail https://github.com/sympy/sympy/issues/8564) 174s syms x 174s e = x*x == sym(pi); 174s m = digits(256); 174s q = vpasolve(e, x, 3); 174s assert (double(abs(sin(q*q))) < 1e-256) 174s digits(m); 174s ***** test 174s syms x 174s r = vpasolve(x^2 + 2 == 0, x, 1i); 174s assert (double (imag(r)^2 - 2), 0, 1e-32) 174s assert (double (real(r)^2), 0, 1e-32) 174s r = vpasolve(x^2 + 2 == 0, x, -3i + 5); 174s assert (double (imag(r)^2 - 2), 0, 1e-32) 174s assert (double (real(r)^2), 0, 1e-32) 174s ***** test 174s % system 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], sym([-1; 1])); 174s assert (isa (r, 'sym')) 174s 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]); 175s ***** test 175s % system, double guess 175s syms x y 175s f = 3*x^2 - 2*y^2 - 1; 175s g = x^2 - 2*x + y^2 + 2*y - 8; 175s r1 = vpasolve([f; g], [x; y], [-1.1]); 175s r2 = vpasolve([f; g], [x; y], [-1.1 -1.1]); 175s assert (isequal (r1, r2)) 175s ***** test 175s % system, more eqns than unknowns 175s syms x y 175s eqns = [x^3 - x - y == 0; y*exp(x) == 16; log(y) + x == 4*log(sym(2))]; 175s r = vpasolve (eqns, [x; y], [1; 1]); 175s A = subs (lhs (eqns), [x; y], r); 175s err = A - [0; 16; 4*log(sym(2))]; 175s assert (double (err), zeros (size (err)), 1e-31) 175s :7: SymPyDeprecationWarning: 175s 175s non-Expr objects in a Matrix is deprecated. Matrix represents 175s a mathematical matrix. To represent a container of non-numeric 175s entities, Use a list of lists, TableForm, NumPy array, or some 175s other data structure instead. 175s 175s See https://docs.sympy.org/latest/explanation/active-deprecations.html#deprecated-non-expr-in-matrix 175s for details. 175s 175s This has been deprecated since SymPy version 1.9. It 175s will be removed in a future version of SymPy. 175s 175s 10 tests, 10 passed, 0 known failure, 0 skipped 175s [inst/@double/dilog.m] 175s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/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); 176s ***** test 176s % maple: 176s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 176s % > for a in A do evalf(dilog(a)) end do; 176s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 176s A = [ -0.59248494924959145800 - 1.5760154034463234224*1i 176s -1.0549087538833908441 - 3.8759788000863368495*1i 176s -12.192421669033171348 176s -2.9195729380904939394 - 3.9540920181102973073*1i 176s 1.6459519160623984119 - 0.00032335296277550987686*1i 176s -1.5445800511775466879 + 9.4256034277816069684*1i ]; 176s B = dilog (x); 176s assert (A, B, -eps) 176s ***** xtest 176s % https://github.com/fredrik-johansson/mpmath/issues/473 176s assert (isinf (dilog (inf))) 176s !!!!! known failure 176s assert (isinf (dilog (inf))) failed 176s ***** assert (isnan (dilog (-inf))) 176s 5 tests, 4 passed, 1 known failure, 0 skipped 176s [inst/@double/chebyshevU.m] 176s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@double/chebyshevU.m 176s ***** error chebyshevU (1) 176s ***** error chebyshevU (1, 2, 3) 176s ***** error chebyshevU ([1 2], [1 2 3]) 176s ***** error chebyshevU ([1 2], [1; 2]) 176s ***** test 176s y = sym(11)/10; 176s t = sym(2); 176s x = 1.1; 176s s = 2; 176s A = chebyshevU (s, x); 176s B = double (chebyshevU (t, y)); 176s assert (A, B, -2*eps); 176s ***** test 176s % maple 176s A = 1.661891066691338157; 176s B = chebyshevU (18.1, 0.9); 176s assert (A, B, -3*eps) 176s ***** test 176s % maple, complex inputs> 176s % ChebyshevU(12.1+3.1*I, 0.5+0.2*I); 176s A = 1.046959313670290818 - 0.03386773634958834846*1i; 176s B = chebyshevU (12.1+3.1*i, 0.5+0.2i); 176s assert (A, B, -3*eps); 176s ***** test 176s % maple, matrix inputs 176s A = [2.2543638828875776000 -1.3872651600553574400]; 176s B = chebyshevU ([16 17], [0.9 0.8]); 176s assert (A, B, -10*eps); 176s ***** test 176s % x matrix, s scalar 176s y = [1 2 sym(pi); exp(sym(1)) 5 6]; 176s t = sym(2); 176s x = double (y); 176s s = 2; 176s A = chebyshevU (s, x); 176s B = double (chebyshevU (t, y)); 176s assert (A, B, -eps); 177s ***** test 177s % s matrix, x scalar 177s t = [1 2 sym(pi); exp(sym(1)) 5 6]; 177s y = sym(2); 177s s = double (t); 177s x = 2; 177s A = chebyshevU (s, x); 177s B = double (chebyshevU (t, y)); 177s assert (A, B, -2*eps); 177s ***** xtest 177s % https://github.com/fredrik-johansson/mpmath/issues/469 177s assert (chebyshevU (4, inf), inf) 177s assert (chebyshevU (4, -inf), inf) 177s assert (chebyshevU (3, inf), inf) 177s assert (chebyshevU (3, -inf), -inf) 177s !!!!! known failure 177s ASSERT errors for: assert (chebyshevU (4, inf),inf) 177s 177s Location | Observed | Expected | Reason 177s () 5 Inf 'Inf' mismatch 177s 11 tests, 10 passed, 1 known failure, 0 skipped 177s [inst/@double/adjoint.m] 177s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@double/adjoint.m 177s ***** test 177s M = [1 2; 3 4]; 177s A = [4 -2; -3 1]; 177s assert (isequal (adjoint (M), A)); 177s ***** test 177s assert (isequal (adjoint (42), 1)); 177s 2 tests, 2 passed, 0 known failure, 0 skipped 177s [inst/@double/harmonic.m] 177s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@double/harmonic.m 177s ***** error harmonic (1, 2) 177s ***** test 177s x = 1.1; 177s y = sym(11)/10; 177s A = harmonic (x); 177s B = double (harmonic (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 = harmonic (x); 177s B = double (harmonic (y)); 177s assert (A, B, -4*eps); 178s 3 tests, 3 passed, 0 known failure, 0 skipped 178s [inst/@double/sinint.m] 178s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@double/sinint.m 178s ***** error sinint (1, 2) 178s ***** test 178s x = 1.1; 178s y = sym(11)/10; 178s A = sinint (x); 178s B = double (sinint (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 = sinint (x); 178s B = double (sinint (y)); 178s assert (A, B, -4*eps); 178s ***** assert (sinint (0), 0) 178s ***** assert (sinint (inf), pi/2) 178s ***** assert (sinint (-inf), -pi/2) 178s ***** assert (sinint (1), 0.9460830703671830149414, -2*eps) 178s ***** assert (sinint (-1), -0.9460830703671830149414, -2*eps) 178s ***** assert (sinint (pi), 1.851937051982466170361, -2*eps) 178s ***** assert (sinint (-pi), -1.851937051982466170361, -2*eps) 178s ***** assert (sinint (300), 1.5708810882137495193, -2*eps) 178s ***** assert (sinint (1e4), 1.5708915453859619157, -2*eps) 178s ***** assert (sinint (20i), 1.2807826332028294459e7*1i, -2*eps) 178s ***** test 178s % maple: 178s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 178s % > for a in A do evalf(Si(a)) end do; 178s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 178s A = [ 1.6782404878293681180 + 2.0396845546022061045*1i 178s -18.154174221650281533 + 1.6146414539230479060*1i 178s 1.5622254668890562934 178s 1246.1144901994233444*1i 178s -0.000099999999944461111128 + 0.99999999833338888972e-6*1i 178s -1.5386156269726011209 - 0.053969388020443786229*1i ]; 178s B = sinint (x); 178s assert (A, B, -eps) 178s 14 tests, 14 passed, 0 known failure, 0 skipped 178s [inst/@double/pochhammer.m] 178s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@double/pochhammer.m 178s ***** 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); 179s ***** test 179s % maple 179s A = 256.798558090310131720; 179s B = pochhammer (18.1, 1.9); 179s assert (A, B, -20*eps) 179s ***** test 179s % maple, complex inputs> 179s A = 2.67921619474318221972 + 1.96716724764630702653*1i; 179s B = pochhammer (12.1+3.1*i, 0.5+0.2i); 179s assert (A, B, -4*eps); 179s ***** test 179s % maple, matrix inputs 179s A = [5.61467232547723663908 20.6144884613920190965]; 179s B = pochhammer ([0.9 0.8], [3.1 4.2]); 179s assert (A, B, -3*eps); 179s ***** test 179s % x matrix, s scalar 179s y = [1 2 sym(pi); exp(sym(1)) 5 6]; 179s t = sym(2); 179s x = double (y); 179s s = 2; 179s A = pochhammer (s, x); 179s B = double (pochhammer (t, y)); 179s assert (A, B, -3*eps); 179s ***** test 179s % s matrix, x scalar 179s t = [1 2 sym(pi); exp(sym(1)) 5 6]; 179s y = sym(2); 179s s = double (t); 179s x = 2; 179s A = pochhammer (s, x); 179s B = double (pochhammer (t, y)); 179s assert (A, B, -5*eps); 179s 10 tests, 10 passed, 0 known failure, 0 skipped 179s [inst/@double/fresnelc.m] 179s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@double/fresnelc.m 179s ***** error fresnelc (1, 2) 179s ***** test 179s x = 1.1; 179s y = sym(11)/10; 179s A = fresnelc (x); 179s B = double (fresnelc (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 = fresnelc (x); 179s B = double (fresnelc (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(FresnelC(a)) end do; 180s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 180s A = [ 16.087871374125480424 - 36.225687992881650217*1i 180s 0.47688568479874574722e12 + 0.12213736710985573216e13*1i 180s 0.49999989867881789756 180s 0.49989869420551572361*1i 180s -0.000099999999999999997535 + 0.99999999999999987665e-6*1i 180s 0.15391592966931193100e26 - 0.75738824160998910388e24*1i ]; 180s B = fresnelc (x); 180s assert (A, B, -eps) 180s ***** assert (fresnelc (inf), 0.5) 180s ***** assert (fresnelc (-inf), -0.5) 180s 6 tests, 6 passed, 0 known failure, 0 skipped 180s [inst/@double/logint.m] 180s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@double/logint.m 180s ***** error logint (1, 2) 180s ***** test 180s x = 1.1; 180s y = sym(11)/10; 180s A = logint (x); 180s B = double (logint (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 = logint (x); 180s B = double (logint (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(Li(a)) end do; 180s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 180s A = [ 1.3876787420229375511 + 2.5087546988592328752*1i 180s 1.6987684473874802274 + 4.5936366057115204667*1i 180s 30.126141584079629926 180s 3.4936715673748995398 + 5.5260023797127391973*1i 180s 0.90264689772681592152e-5 + 3.1415953634267361942*1i 180s -2.3996350854560916779 - 7.6971739096353664559*1i ]; 180s B = logint (x); 180s assert (A, B, -eps) 180s ***** assert (logint (inf), inf) 180s ***** assert (isnan (logint (-inf))) 180s 6 tests, 6 passed, 0 known failure, 0 skipped 180s [inst/@double/fresnels.m] 180s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@double/fresnels.m 180s ***** error fresnels (1, 2) 180s ***** test 180s x = 1.1; 180s y = sym(11)/10; 180s A = fresnels (x); 180s B = double (fresnels (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 = fresnels (x); 180s B = double (fresnels (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(FresnelS(a)) end do; 181s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 181s A = [ 36.725464883991438430 + 15.587751104404587334*1i 181s 0.12213736710980573217e13 - 0.47688568479924574726e12*1i 181s 0.49681690114783755327 181s -0.46816997858488224040*1i 181s -0.52344169596561937423e-12 + 0.15707439669173367248e-13*1i 181s 0.75738824160998910399e24 + 0.15391592966931193100e26*1i ]; 181s B = fresnels (x); 181s assert (A, B, -eps) 181s ***** assert (fresnels (inf), 0.5) 181s ***** assert (fresnels (-inf), -0.5) 181s 6 tests, 6 passed, 0 known failure, 0 skipped 181s [inst/@double/coshint.m] 181s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@double/coshint.m 181s ***** error coshint (1, 2) 181s ***** test 181s x = 1.1; 181s y = sym(11)/10; 181s A = coshint (x); 181s B = double (coshint (y)); 181s assert (A, B, -4*eps); 181s ***** test 181s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 181s x = double (y); 181s A = coshint (x); 181s B = double (coshint (y)); 181s 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(Chi(a)) end do; 181s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 181s A = [ 0.58447599687824767874 + 1.8682915044330306402*1i 181s -0.63131069034703116988 + 1.8986171211850702957*1i 181s 0.13577763724269399110e42 181s -0.045456433004455372635 + 1.5707963267948966192*1i 181s -8.6330747070747332203 + 3.1315929868531280002*1i 181s 0.74701205140887966531e7 + 0.10381444259644068585e8*1i ]; 181s B = coshint (x); 181s assert (A, B, -eps) 181s ***** assert (coshint (inf), inf) 181s ***** assert (isinf (coshint (-inf))) 181s ***** assert (imag (coshint (-inf)), pi) 181s 7 tests, 7 passed, 0 known failure, 0 skipped 181s [inst/@double/cosint.m] 181s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@double/cosint.m 181s ***** error cosint (1, 2) 181s ***** test 181s x = 1.1; 181s y = sym(11)/10; 181s A = cosint (x); 181s B = double (cosint (y)); 181s assert (A, B, -4*eps); 181s ***** test 181s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 181s x = double (y); 181s A = cosint (x); 181s B = double (cosint (y)); 181s assert (A, B, -4*eps); 182s ***** test 182s % maple: 182s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 182s % > for a in A do evalf(Ci(a)) end do; 182s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 182s A = [ 2.0302963932917216378 - 0.15190715517585688438*1i 182s 1.6153896382910774851 + 19.725754055338264980*1i 182s -0.0051488251426104921444 182s 1246.1144860424544147 + 1.5707963267948966192*1i 182s -8.6330747120742332203 + 3.1315929869531280002*1i 182s 0.069822228467306149311 - 3.1184744625477294643*1i ]; 182s B = cosint (x); 182s assert (A, B, -eps) 182s ***** xtest 182s % is it nan or -inf? SymPy says zoo. 182s assert (isnan (cosint (0))) 182s !!!!! known failure 182s assert (isnan (cosint (0))) failed 182s ***** assert (cosint (inf), 0) 182s ***** assert (cosint (-inf), pi*1i, -eps) 182s ***** assert (cosint (1), 0.33740392290096813466, -eps) 182s ***** assert (cosint (-1), 0.33740392290096813466 + pi*1i, -eps) 182s ***** assert (cosint (pi), 0.073667912046425485978, -5*eps) 182s ***** assert (cosint (-pi), 0.07366791204642548597821 + pi*1i, -5*eps) 182s ***** assert (cosint (300), -3.3321999185921117800e-3, -2*eps) 182s ***** assert (cosint (1e4), -3.0551916724485212665e-5, -2*eps) 182s ***** assert (cosint (1 + 1i), 0.8821721805559363250506+0.2872491335199559395273*1i, eps) 182s ***** assert (cosint (1i), 0.8378669409802082408947 + pi/2*1i, -2*eps) 182s ***** test 182s % compare both sinint and cosint to expint 182s x = pi; 182s C1 = cosint (x); 182s S1 = sinint (x); 182s R = expint (1i*x); 182s C2 = -real (R); 182s S2 = imag (R) + pi/2; 182s assert (C1, C2, -100*eps); 182s assert (S1, S2, -100*eps); 182s 16 tests, 15 passed, 1 known failure, 0 skipped 182s [inst/@double/chebyshevT.m] 182s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@double/chebyshevT.m 182s ***** error chebyshevT (1) 182s ***** error chebyshevT (1, 2, 3) 182s ***** error chebyshevT ([1 2], [1 2 3]) 182s ***** error chebyshevT ([1 2], [1; 2]) 182s ***** test 182s y = sym(11)/10; 182s t = sym(2); 182s x = 1.1; 182s s = 2; 182s A = chebyshevT (s, x); 182s B = double (chebyshevT (t, y)); 182s assert (A, B, -2*eps); 182s ***** test 182s % maple 182s A = -0.304681164165948269030369; 182s B = chebyshevT (18.1, 0.9); 182s assert (A, B, -10*eps) 182s ***** test 182s % maple, complex inputs 182s % ChebyshevT(12.1+3.1*I, 0.5+0.2*I); 182s A = 0.637229289490379273451 - 0.475324703778957991318*1i; 182s B = chebyshevT (12.1+3.1*i, 0.5+0.2i); 182s assert (A, B, -5*eps); 182s ***** test 182s % maple, matrix inputs 182s A = [0.59523064198266880000 0.57727442996887552000]; 182s B = chebyshevT ([16 17], [0.9 0.7]); 182s assert (A, B, -10*eps); 182s ***** test 182s % x matrix, s scalar 182s y = [1 2 sym(pi); exp(sym(1)) 5 6]; 182s t = sym(2); 182s x = double (y); 182s s = 2; 182s A = chebyshevT (s, x); 182s B = double (chebyshevT (t, y)); 182s assert (A, B, -eps); 183s ***** test 183s % s matrix, x scalar 183s t = [1 2 sym(pi); exp(sym(1)) 5 6]; 183s y = sym(2); 183s s = double (t); 183s x = 2; 183s A = chebyshevT (s, x); 183s B = double (chebyshevT (t, y)); 183s assert (A, B, -eps); 183s ***** xtest 183s % https://github.com/fredrik-johansson/mpmath/issues/469 183s assert (chebyshevT (4, inf), inf) 183s assert (chebyshevT (4, -inf), inf) 183s assert (chebyshevT (3, inf), inf) 183s assert (chebyshevT (3, -inf), -inf) 183s !!!!! known failure 183s ASSERT errors for: assert (chebyshevT (4, inf),inf) 183s 183s Location | Observed | Expected | Reason 183s () 1 Inf 'Inf' mismatch 183s 11 tests, 10 passed, 1 known failure, 0 skipped 183s [inst/@double/euler.m] 183s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@double/euler.m 183s ***** error euler (1, 2, 3) 183s ***** error euler ([1 2], [1 2 3]) 183s ***** error euler ([1 2], [1; 2]) 183s ***** assert (isequal (euler (0), 1)) 183s ***** assert (isequal (euler (1), 0)) 183s ***** assert (isequal (euler (10), -50521)) 183s ***** test 183s n = sym(88); 183s m = 88; 183s A = euler (m); 183s B = double (euler (n)); 183s assert (A, B, -eps); 183s ***** test 183s m = [0 1; 2 4]; 183s n = sym(m); 183s A = euler (m); 183s B = double (euler (n)); 183s assert (isequal (A, B)); 183s ***** test 183s y = sym(19)/10; 183s n = sym(2); 183s x = 1.9; 183s m = 2; 183s A = euler (m, x); 183s B = double (euler (n, y)); 183s assert (A, B, -eps); 184s ***** test 184s % correct behaviour at floating point infinity 184s assert (isequal (euler (4, inf), inf)) 184s assert (isequal (euler (4, -inf), inf)) 184s assert (isequal (euler (3, inf), inf)) 184s assert (isequal (euler (3, -inf), -inf)) 184s ***** test 184s assert (isnan (euler(3, nan))) 184s assert (isnumeric (euler(3, nan))) 184s ***** test 184s % maple, complex input 184s A = 113.33970046079423204 - 46.991080726974811540i; 184s B = euler(7, 2.12345 + 1.23i); 184s assert (A, B, -eps); 184s ***** test 184s % maple, complex input, large m, small x 184s A = 0.18034673393294025238e276 + 0.27756266681280689172e276*i; 184s B = euler (200, 0.123+0.234i); 184s assert (A, B, -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 = euler (m, x); 184s B = double (euler (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 = euler (m, x); 184s B = double (euler (n, y)); 184s assert (A, B, -3*eps); 184s 15 tests, 15 passed, 0 known failure, 0 skipped 184s [inst/@double/zeta.m] 184s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@double/zeta.m 184s ***** error zeta (1, 2, 3) 184s ***** assert (isnan (zeta (nan))) 184s ***** test 184s x = 1.1; 184s y = sym(11)/10; 184s A = zeta (x); 184s B = double (zeta (y)); 184s assert (A, B, -4*eps); 184s ***** test 184s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 184s x = double (y); 184s A = zeta (x); 184s B = double (zeta (y)); 184s assert (A, B, -4*eps); 185s ***** test 185s % maple: 185s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 185s % > for a in A do evalf(Zeta(a)) end do; 185s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 185s A = [ 0.59816556976238173670 - 0.35185474521784529050*1i 185s 0.21425967567391921717 + 0.52503846985036050707*1i 185s 1.0 185s 1.7564685929749629608 - 0.10151198543617116894*1i 185s -0.49990811617645824900 - 0.91873792757763831501e-6*1i 185s 175.09070083717643866 - 71.512541417467273425*1i ]; 185s B = zeta (x); 185s assert (A, B, -eps) 185s ***** assert (zeta (inf), 1.0) 185s 6 tests, 6 passed, 0 known failure, 0 skipped 185s [inst/@double/sinhint.m] 185s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@double/sinhint.m 185s ***** error sinhint (1, 2) 185s ***** test 185s x = 1.1; 185s y = sym(11)/10; 185s A = sinhint (x); 185s B = double (sinhint (y)); 185s assert (A, B, -4*eps); 185s ***** test 185s y = [2 3 sym(pi); exp(sym(1)) 5 6]; 185s x = double (y); 185s A = sinhint (x); 185s B = double (sinhint (y)); 185s assert (A, B, -4*eps); 185s ***** test 185s % maple: 185s % > A := [1+2*I, -2 + 5*I, 100, 10*I, -1e-4 + 1e-6*I, -20 + I]; 185s % > for a in A do evalf(Shi(a)) end do; 185s x = [1+2i; -2+5i; 100; 10i; -1e-4 + 1e-6*1i; -20-1i]; 185s A = [ 0.45769171128668800567 + 1.8332099215048436239*1i 185s 0.60888490416819746440 + 1.2482232175376056201*1i 185s 0.13577763724269399110e42 185s 1.6583475942188740493*1i 185s -0.00010000000005553888891 + 0.10000000016666111119e-5*1i 185s -0.74701205140887967022e7 - 0.10381447401236722090e8*1i ]; 185s B = sinhint (x); 185s assert (A, B, -eps) 185s ***** assert (sinhint (inf), inf) 185s ***** assert (sinhint (-inf), -inf) 185s 6 tests, 6 passed, 0 known failure, 0 skipped 185s [inst/@double/bernoulli.m] 185s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@double/bernoulli.m 185s ***** error bernoulli (1, 2, 3) 185s ***** error bernoulli ([1 2], [1 2 3]) 185s ***** error bernoulli ([1 2], [1; 2]) 185s ***** assert (bernoulli (0), 1) 185s ***** assert (bernoulli (3), 0) 185s ***** test 185s % two different definitions in literature 185s assert (abs (bernoulli (1)), 0.5, -eps) 185s ***** xtest 185s % we want to use B_1 = 1/2, possible with a version-specific filter 185s assert (bernoulli (1), 0.5, -eps) 185s !!!!! known failure 185s ASSERT errors for: assert (bernoulli (1),0.5,-eps) 185s 185s Location | Observed | Expected | Reason 185s () -0.5 0.5 Rel err 2 exceeds tol 2.2204e-16 by 2 185s ***** test 185s n = sym(88); 185s m = 88; 185s A = bernoulli (m); 185s B = double (bernoulli (n)); 185s assert (A, B, -eps); 185s ***** test 185s m = [0 2; 3 4]; 185s n = sym(m); 185s A = bernoulli (m); 185s B = double (bernoulli (n)); 185s assert (isequal (A, B)); 186s ***** test 186s y = sym(19)/10; 186s n = sym(2); 186s x = 1.9; 186s m = 2; 186s A = bernoulli (m, x); 186s B = double (bernoulli (n, y)); 186s assert (A, B, -eps); 186s ***** test 186s assert (isequal (bernoulli (4, inf), inf)) 186s assert (isequal (bernoulli (4, -inf), inf)) 186s ***** xtest 186s % still broken? 186s assert (isequal (bernoulli (3, inf), inf)) 186s assert (isequal (bernoulli (3, -inf), -inf)) 186s ***** test 186s assert (isnan (bernoulli(3, nan))) 186s assert (isnumeric (bernoulli(3, nan))) 186s ***** test 186s % maple, complex input 186s A = 34.21957245745810513 - 130.0046256649829101i; 186s B = bernoulli(7, 2.123 + 1.234i); 186s assert (A, B, -5*eps); 186s ***** test 186s % x matrix, m scalar 186s y = [1 2 sym(pi); exp(sym(1)) 5 6]; 186s n = sym(2); 186s x = double (y); 186s m = 2; 186s A = bernoulli (m, x); 186s B = double (bernoulli (n, y)); 186s assert (A, B, -eps); 186s ***** test 186s % m matrix, x scalar 186s m = [1 2 3; 4 5 6]; 186s n = sym(m); 186s y = sym(21)/10; 186s x = 2.1; 186s A = bernoulli (m, x); 186s B = double (bernoulli (n, y)); 186s assert (A, B, -3*eps); 186s 16 tests, 15 passed, 1 known failure, 0 skipped 186s [inst/@double/polylog.m] 186s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@double/polylog.m 186s ***** error polylog (1) 187s ***** error polylog (1, 2, 3) 187s ***** error polylog ([1 2], [1 2 3]) 187s ***** error polylog ([1 2], [1; 2]) 187s ***** test 187s y = sym(11)/10; 187s t = sym(2); 187s x = 1.1; 187s s = 2; 187s A = polylog (s, x); 187s B = double (polylog (t, y)); 187s assert (A, B, -eps); 187s ***** test 187s % maple 187s A = 2.3201804233130983964 - 3.4513922952232026614*1i; 187s B = polylog (2, 3); 187s assert (A, B, -eps) 187s ***** test 187s % maple, complex inputs 187s A = -11.381456201167411758 + 6.2696695219721651947*1i; 187s B = polylog (1+2i, 3+4i); 187s assert (A, B, -eps); 187s ***** test 187s % maple, matrix inputs 187s A1 = 0.47961557317612748431 - 0.52788287823025778869*1i; 187s A2 = -0.0049750526563452645369 - 0.024579343612396884851*1i; 187s B = polylog ([-1-2i -3], [30+40i 40i]); 187s assert ([A1 A2], B, -eps); 187s ***** test 187s % x matrix, s scalar 187s y = [1 2 sym(pi); exp(sym(1)) 5 6]; 187s t = sym(2); 187s x = double (y); 187s s = 2; 187s A = polylog (s, x); 187s B = double (polylog (t, y)); 187s assert (A, B, -eps); 187s ***** test 187s % s matrix, x scalar 187s t = [1 2 sym(pi); exp(sym(1)) 5 6]; 187s y = sym(2); 187s s = double (t); 187s x = 2; 187s A = polylog (s, x); 187s B = double (polylog (t, y)); 187s assert (A, B, -eps); 188s 10 tests, 10 passed, 0 known failure, 0 skipped 188s [inst/dirac.m] 188s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/dirac.m 188s ***** assert (isinf (dirac (0))) 188s ***** assert (dirac (1) == 0) 188s ***** assert (isnan (dirac (nan))) 188s ***** assert (isequaln (dirac ([-1 1 0 eps inf -inf nan]), [0 0 inf 0 0 0 nan])) 188s ***** error dirac (1i) 188s ***** assert (isa (dirac (single (0)), 'single')) 188s 6 tests, 6 passed, 0 known failure, 0 skipped 188s [inst/findsymbols.m] 188s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/findsymbols.m 188s ***** test 188s syms x b y n a arlo 188s z = a*x + b*pi*sin (n) + exp (y) + exp (sym (1)) + arlo; 188s s = findsymbols (z); 188s assert (isequal ([s{:}], [a,arlo,b,n,x,y])) 188s ***** test 188s syms x 188s s = findsymbols (x); 188s assert (isequal (s{1}, x)) 188s ***** test 188s syms z x y a 188s s = findsymbols ([x y; 1 a]); 188s assert (isequal ([s{:}], [a x y])) 188s ***** assert (isempty (findsymbols (sym (1)))) 188s ***** assert (isempty (findsymbols (sym ([1 2])))) 188s ***** assert (isempty (findsymbols (sym (nan)))) 188s ***** assert (isempty (findsymbols (sym (inf)))) 188s ***** assert (isempty (findsymbols (exp (sym (2))))) 188s ***** test 188s % empty sym for findsymbols, findsym, and symvar 188s assert (isempty (findsymbols (sym([])))) 188s assert (isempty (findsym (sym([])))) 188s assert (isempty (symvar (sym([])))) 188s ***** test 188s % diff. assumptions make diff. symbols 188s x1 = sym('x'); 188s x2 = sym('x', 'positive'); 188s f = x1*x2; 188s assert (length (findsymbols (f)) == 2) 188s ***** test 188s % symfun or sym 188s syms x f(y) 188s a = f*x; 188s b = f(y)*x; 188s assert (isequal (findsymbols(a), {x y})) 188s assert (isequal (findsymbols(b), {x y})) 188s ***** test 188s % findsymbols on symfun does not find the argnames (unless they 188s % are on the RHS of course, this matches SMT 2014a). 188s syms a x y 188s f(x, y) = a; % const symfun 188s assert (isequal (findsymbols(f), {a})) 188s syms a x y 188s f(x, y) = a*y; 188s assert (isequal (findsymbols(f), {a y})) 189s ***** test 189s % sorts lexigraphically, same as symvar *with single input* 189s % (note symvar does something different with 2 inputs). 189s syms A B a b x y X Y 189s f = A*a*B*b*y*X*Y*x; 189s assert (isequal (findsymbols(f), {A B X Y a b x y})) 189s assert (isequal (symvar(f), [A B X Y a b x y])) 189s ***** test 189s % symbols in matpow 189s syms x y 189s syms n 189s A = [sin(x) 2; y 1]; 189s B = A^n; 189s L = findsymbols(B); 189s assert (isequal (L, {n x y})) 190s ***** test 190s % array of eq 190s syms x y 190s assert (isequal (findsymbols (2 == [2 x y]), {x y})) 190s ***** test 190s % array of ineq 190s syms x y 190s A = [x < 1 2*x < y x >= 2 3 <= x x != y]; 190s assert (isequal (findsymbols (A), {x y})) 191s 16 tests, 16 passed, 0 known failure, 0 skipped 191s [inst/finiteset.m] 191s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/finiteset.m 191s ***** test 191s s1 = finiteset(sym(1), 2, 2); 191s s2 = finiteset(sym(1), 2, 2, 2); 191s assert (isequal (s1, s2)) 191s ***** test 191s s1 = finiteset(sym(0), 1); 191s s2 = finiteset(sym(0), 2, 3); 191s s = finiteset(sym(0), 1, 2, 3); 191s assert (isequal (s1 + s2, s)) 191s ***** test 191s e = finiteset(); 191s s = finiteset(sym(1)); 191s s2 = e + s; 191s assert (isequal (s, s2)) 191s 3 tests, 3 passed, 0 known failure, 0 skipped 191s [inst/@symfun/mtimes.m] 191s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@symfun/mtimes.m 191s ***** test 191s syms x 191s f(x) = x^2; 191s assert( isa(f * f, 'symfun')) 191s assert( isa(f * x, 'symfun')) 191s 1 test, 1 passed, 0 known failure, 0 skipped 191s [inst/@symfun/size.m] 191s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@symfun/size.m 191s ***** test 191s syms x 191s f(x) = x; 191s d = size(f); 191s assert (isequal (d, [1 1])) 191s [n, m] = size(f); 191s assert (isequal ([n m], [1 1])) 191s assert (size(f, 1) == 1) 191s assert (size(f, 2) == 1) 191s ***** test 191s syms x 191s f(x) = [1 x]; 191s d = size(f); 191s assert (isequal (d, [1 1])) 191s [n, m] = size(f); 191s assert (isequal ([n m], [1 1])) 191s assert (size(f, 1) == 1) 191s assert (size(f, 2) == 1) 191s 2 tests, 2 passed, 0 known failure, 0 skipped 191s [inst/@symfun/isequal.m] 191s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@symfun/isequal.m 191s ***** error isequal (symfun('x + 1', x)) 191s ***** test 191s syms x y 191s f(x) = 2*x; 191s g(x) = 2*x; 191s assert (isequal (f, g)) 191s ***** test 191s syms x 191s f(x) = 2*x + 1; 191s g(x) = 2*x + 1; 191s h(x) = 2*x + 1; 191s assert (isequal (f, g, h)) 191s ***** test 191s syms x 191s f(x) = 2*x + 1; 191s g(x) = 2*x + 1; 191s h(x) = 2*x; 191s assert (~ isequal (f, g, h)) 191s ***** test 191s syms x y 191s f(x) = 2*x; 191s g(x, y) = 2*x; 191s assert (~ isequal (f, g)) 191s ***** test 191s syms x y 191s f(x) = symfun(nan, x); 191s g(x) = symfun(nan, x); 191s assert (~ isequal (f, g)) 192s 6 tests, 6 passed, 0 known failure, 0 skipped 192s [inst/@symfun/symfun.m] 192s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@symfun/symfun.m 192s ***** error symfun (1, sym('x'), 3) 192s ***** error symfun ('f', sym('x')) 192s ***** test 192s syms x y 192s syms f(x) 192s assert(isa(f,'symfun')) 192s clear f 192s f(x,y) = sym('f(x,y)'); 192s assert(isa(f,'symfun')) 192s :18: SyntaxWarning: invalid escape sequence '\(' 192s ***** test 192s % symfuns are syms as well 192s syms x 192s f(x) = 2*x; 192s assert (isa (f, 'symfun')) 192s assert (isa (f, 'sym')) 192s assert (isequal (f(3), 6)) 192s assert (isequal (f(sin(x)), 2*sin(x))) 192s ***** test 192s syms x y 192s f = symfun(sym('f(x)'), {x}); 192s assert(isa(f, 'symfun')) 192s f = symfun(sym('f(x,y)'), [x y]); 192s assert(isa(f, 'symfun')) 192s f = symfun(sym('f(x,y)'), {x y}); 192s assert(isa(f, 'symfun')) 192s :18: SyntaxWarning: invalid escape sequence '\(' 192s :18: SyntaxWarning: invalid escape sequence '\(' 192s :18: SyntaxWarning: invalid escape sequence '\(' 192s ***** test 192s % rhs is not sym 192s syms x 192s f = symfun(8, x); 192s assert (isa (f,'symfun')) 192s assert (isequal (f(10), sym(8))) 192s ***** test 192s % vector symfun 192s syms x y 192s F(x,y) = [1; 2*x; y; y*sin(x)]; 192s assert (isa (F, 'symfun')) 192s assert (isa (F, 'sym')) 192s assert (isequal (F(sym(pi)/2,4) , [sym(1); sym(pi); 4; 4] )) 192s ***** test 192s x = sym('x'); 192s y = sym('y'); 192s f(x) = sym('f(x)'); 192s g(x,y) = sym('g(x,y)'); 192s % make sure these don't fail 192s f(1); 192s g(1,2); 192s g(x,y); 192s diff(g, x); 192s diff(g, y); 192s :18: SyntaxWarning: invalid escape sequence '\(' 192s :18: SyntaxWarning: invalid escape sequence '\(' 192s ***** test 192s % defining 1D symfun in terms of a 2D symfun 192s syms x y t 192s syms 'g(x,y)' 192s f(t) = g(t,t); 192s f(5); 192s assert (length (argnames (f)) == 1) 192s assert (isequal (argnames (f), t)) 192s assert (isequal( formula(diff(f,x)), sym(0))) 192s ***** test 192s % replace g with shorter and specific fcn 192s syms x g(x) 192s g; 192s g(x) = 2*x; 192s assert( isequal (g(5), 10)) 193s ***** test 193s % octave <= 3.8 needs quotes on 2D symfuns, so make sure it works 193s syms x y 193s syms 'f(x)' 193s syms 'g(x,y)' 193s assert (isa (f, 'symfun')) 193s assert (isa (g, 'symfun')) 193s ***** test 193s % Bug #41: Octave <= 3.8 parser fails without quotes around 2D fcn 193s syms x y 193s eval('syms g(x,y)') 193s assert (isa (g, 'symfun')) 193s ***** test 193s % and these days it works without eval trick 193s syms g(x,y) 193s assert (isa (g, 'symfun')) 193s ***** test 193s % syms f(x) without defining x 193s clear x 193s syms f(x) 193s assert(isa(f, 'symfun')) 193s assert(isa(x, 'sym')) 193s ***** test 193s % SMT compat: symfun indep var overwrites existing var 193s t = 6; 193s syms f(t) 193s assert (logical (t ~= 6)) 193s ***** test 193s % SMT compat: symfun indep var overwrites existing var, even if sym 193s syms x 193s t = x; 193s syms f(t) 193s assert (~ logical (t == x)) 193s ***** test 193s syms x y 193s f(x) = x^2; 193s g(x,y) = sym('g(x,y)'); 193s f2 = 2*f; 193s assert( isequal (f2(4), 32)) 193s assert( isa(f2, 'symfun')) 193s assert( isa(2*g, 'symfun')) 193s assert( isa(0*g, 'symfun')) % in SMT, this is the zero symfun 193s :18: SyntaxWarning: invalid escape sequence '\(' 193s ***** test 193s % syms has its own parsing code, check it works 193s syms f(x,y) 193s g = f; 193s syms f(x, y) 193s assert (isequal (f, g)) 193s syms 'f( x, y )' 193s assert (isequal (f, g)) 193s ***** test 193s % syms own parsing code should not reorder the vars 193s syms f(y, x) 193s v = argnames (f); 193s assert (isequal (v(1), y) && isequal (v(2), x)) 193s ***** test 193s % assignment of symfun to symfun, issue #189 193s syms t 193s x(t) = 2*t; 193s y(t) = x; 193s assert (isa (y, 'symfun')) 193s y = symfun(x, t); 193s assert (isa (y, 'symfun')) 193s % others 193s y = x; 193s assert (isa (y, 'symfun')) 193s y(t) = x(t); 193s assert (isa (y, 'symfun')) 193s ***** test 193s % assignment of generic symfun to symfun 193s syms t x(t) 193s y(t) = x; 193s assert (isa (y, 'symfun')) 193s y = symfun(x, t); 193s assert (isa (y, 'symfun')) 193s ***** error 193s % Issue #444: invalid args 193s syms x 193s f(x, x) = 2*x; 193s ***** error 193s % Issue #444: invalid args 193s syms x y 193s f(x, y, x) = x + y; 193s ***** error 193s % Issue #444: invalid args 193s syms x y 193s f(x, y, x) = x + y; 194s ***** error 194s % Issue #444: expression as arg 194s syms x 194s f(2*x) = 4*x; 194s 25 tests, 25 passed, 0 known failure, 0 skipped 194s [inst/@symfun/int.m] 194s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@symfun/int.m 194s ***** test 194s % indefinite integral of symfun gives symfun 194s syms x 194s f(x) = x^2; 194s g = int(f); 194s assert (isa(g, 'symfun')) 194s g = int(f, x); 194s assert (isa(g, 'symfun')) 194s ***** test 194s % indefinite integral of abstract symfun gives symfun 194s syms f(x) 194s g = int(f); 194s assert (isa(g, 'symfun')) 194s g = int(f, x); 194s assert (isa(g, 'symfun')) 194s ***** test 194s % definite integral does not give symfun 194s syms x 194s f(x) = x^2; 194s g = int(f, x, 0, 2); 194s assert (isa(g, 'sym')) 194s assert (~isa(g, 'symfun')) 194s ***** test 194s % ... even if it has a variable in it 194s syms x t 194s f(x) = x; 194s g = int(f, x, 0, t); 194s assert (isa(g, 'sym')) 194s assert (~isa(g, 'symfun')) 194s ***** test 194s % ... even if the input is abstract funcion 194s syms f(x) 194s g = int(f, x, 0, 2); 194s assert (isa(g, 'sym')) 194s assert (~isa(g, 'symfun')) 194s ***** test 194s % symfun in x, integrated in y gives symfun still in x 194s % (SMT does this too). 194s syms f(x) y 194s g = int(f, y); 194s assert (isa (g, 'symfun')) 194s assert (isequal (argnames (g), x)) 194s ***** test 194s % same as above, but concrete symfun 194s syms x y 194s f(x) = x^2; 194s g = int(f, y); 194s assert (isa (g, 'symfun')) 194s assert (isequal (argnames (g), x)) 194s assert (isequal (formula(g), x^2*y)) 194s 7 tests, 7 passed, 0 known failure, 0 skipped 194s [inst/@symfun/mrdivide.m] 194s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@symfun/mrdivide.m 194s ***** test 194s syms x 194s f(x) = x^2; 194s assert( isa(f/f, 'symfun')) 194s assert( isa(f/x, 'symfun')) 195s 1 test, 1 passed, 0 known failure, 0 skipped 195s [inst/@symfun/ldivide.m] 195s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@symfun/ldivide.m 195s ***** test 195s syms x 195s f(x) = x^2; 195s assert( isa(f .\ f, 'symfun')) 195s assert( isa(f .\ x, 'symfun')) 195s 1 test, 1 passed, 0 known failure, 0 skipped 195s [inst/@symfun/rdivide.m] 195s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@symfun/rdivide.m 195s ***** test 195s syms x 195s f(x) = x^2; 195s assert( isa(f./f, 'symfun')) 195s assert( isa(f./[x x^2], 'symfun')) 195s ***** test 195s syms x 195s f(x) = [x 2*x]; 195s h = f./[x 2]; 195s assert( isa(h, 'symfun')) 195s assert (isequal (formula (h), [1 x])) 195s 2 tests, 2 passed, 0 known failure, 0 skipped 195s [inst/@symfun/private_disp_name.m] 195s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@symfun/private_disp_name.m 195s ***** test 195s syms f(x) 195s s = private_disp_name(f, 'f'); 195s assert (strcmp (s, 'f(x)')) 195s ***** test 195s syms x y 195s g(y, x) = x + y; 195s s = private_disp_name(g, 'g'); 195s assert (strcmp (s, 'g(y, x)')) 195s ***** test 195s syms f(x) 195s assert (isempty (private_disp_name(f, ''))) 195s 3 tests, 3 passed, 0 known failure, 0 skipped 195s [inst/@symfun/times.m] 195s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@symfun/times.m 195s ***** test 195s syms x 195s f(x) = x^2; 195s assert( isa(f .* f, 'symfun')) 195s assert( isa(f .* x, 'symfun')) 195s ***** test 195s syms x 195s f(x) = [x 2*x]; 195s h = f.*[x 3]; 195s assert( isa(h, 'symfun')) 195s assert (isequal (formula (h), [x^2 6*x])) 195s 2 tests, 2 passed, 0 known failure, 0 skipped 195s [inst/@symfun/plus.m] 195s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@symfun/plus.m 195s ***** test 195s syms x 195s f(x) = x^2; 195s assert( isa(f + f, 'symfun')) 195s assert( isa(f + x, 'symfun')) 195s 1 test, 1 passed, 0 known failure, 0 skipped 195s [inst/@symfun/mldivide.m] 195s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@symfun/mldivide.m 195s ***** test 195s syms x 195s f(x) = x^2; 195s assert( isa(f\f, 'symfun')) 195s assert( isa(f\x, 'symfun')) 195s 1 test, 1 passed, 0 known failure, 0 skipped 195s [inst/@symfun/power.m] 195s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@symfun/power.m 195s ***** test 195s syms x 195s f(x) = 2*x; 195s h = f.^f; 195s assert( isa(h, 'symfun')) 195s assert (isequal (formula (h), (2*x)^(2*x))) 196s ***** test 196s syms x 196s f(x) = [x 2*x]; 196s h = f.^[x 3]; 196s assert( isa(h, 'symfun')) 196s assert (isequal (formula (h), [x^x 8*x^3])) 196s 2 tests, 2 passed, 0 known failure, 0 skipped 196s [inst/@symfun/isequaln.m] 196s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@symfun/isequaln.m 196s ***** error isequaln (symfun('x + 1', x)) 196s ***** test 196s syms x y 196s f(x) = 2*x; 196s g(x) = 2*x; 196s assert (isequaln (f, g)) 196s ***** test 196s syms x 196s f(x) = 2*x + 1; 196s g(x) = 2*x + 1; 196s h(x) = 2*x + 1; 196s assert (isequaln (f, g, h)) 196s ***** test 196s syms x 196s f(x) = 2*x + 1; 196s g(x) = 2*x + 1; 196s h(x) = 2*x; 196s assert (~ isequaln (f, g, h)) 196s ***** test 196s syms x y 196s f(x) = 2*x; 196s g(x, y) = 2*x; 196s assert (~ isequaln (f, g)) 196s ***** test 196s syms x y 196s f(x) = symfun(nan, x); 196s g(x) = symfun(nan, x); 196s assert (isequaln (f, g)) 196s ***** test 196s syms x y 196s f(x) = symfun(nan, x); 196s g(x, y) = symfun(nan, x); 196s assert (~ isequaln (f, g)) 196s 7 tests, 7 passed, 0 known failure, 0 skipped 196s [inst/@symfun/mpower.m] 196s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@symfun/mpower.m 196s ***** test 196s syms x 196s f(x) = 2*x; 196s h = f^f; 196s assert( isa(h, 'symfun')) 196s assert (isequal (formula (h), (2*x)^(2*x))) 196s h = f^sym(2); 196s assert( isa(h, 'symfun')) 196s assert (isequal (formula (h), 4*x^2)) 197s 1 test, 1 passed, 0 known failure, 0 skipped 197s [inst/@symfun/uminus.m] 197s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@symfun/uminus.m 197s ***** test 197s % Issue #447 197s syms x 197s f(x) = x^2; 197s assert (isa (-f, 'symfun')) 197s ***** test 197s syms f(x) 197s h = -f; 197s assert (isa (h, 'symfun')) 197s 2 tests, 2 passed, 0 known failure, 0 skipped 197s [inst/@symfun/symvar.m] 197s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@symfun/symvar.m 197s ***** test 197s % basic 197s syms f(t, s) 197s assert (isempty (symvar (f, 0))) 197s assert (isequal (symvar (f, 1), t)) 197s assert (isequal (symvar (f, 2), [t s])) 197s assert (isequal (symvar (f, 3), [t s])) 197s ***** test 197s % note preference for vars of symfun, if n requested 197s syms x f(y) 197s assert (isequal (symvar(f*x, 1), y)) 197s assert (isequal (symvar(f(y)*x, 1), x)) 197s ***** test 197s % symfun, checked smt 197s syms x f(y) 197s a = f*x; 197s b = f(y)*x; 197s assert (isequal (symvar(a), [x y])) 197s assert (isequal (symvar(b), [x y])) 197s ***** test 197s % preference for the explicit variables 197s syms a x f(t, s) 197s h = f*a + x; 197s assert (isequal (symvar (h, 1), t)) 197s assert (isequal (symvar (h, 2), [t s])) 197s assert (isequal (symvar (h, 3), [t s x])) 197s assert (isequal (symvar (h, 4), [t s x a])) 197s assert (isequal (symvar (h, 5), [t s x a])) 197s assert (isequal (symvar (h), [a s t x])) 199s ***** test 199s % symfun dep on some vars only, matches smt w/ n 199s syms x s t 199s f(s) = x; 199s g(s, t) = x*s; 199s assert (isequal (symvar(f, 1), s)) 199s assert (isequal (symvar(f, 2), [s x])) 199s assert (isequal (symvar(g, 1), s)) 199s assert (isequal (symvar(g, 2), [s t])) 199s assert (isequal (symvar(g, 3), [s t x])) 199s ***** test 199s % A documented difference from SMT on symvar(symfun) w/o n 199s syms x s t 199s f(s) = x; 199s g(s, t) = x*s; 199s % SMT would have 199s %assert (isequal (symvar(f), x)) % no s 199s %assert (isequal (symvar(g), [s x])) % no t 199s assert (isequal (symvar(f), [s x])) 199s assert (isequal (symvar(g), [s t x])) 200s 6 tests, 6 passed, 0 known failure, 0 skipped 200s [inst/@symfun/formula.m] 200s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@symfun/formula.m 200s ***** test 200s % simple 200s syms x 200s f(x) = sin(x); 200s g = formula(f); 200s assert (isequal (g, sin(x))); 200s ***** test 200s % concrete: return is a sym, not a symfun 200s syms x 200s f(x) = sin(x); 200s g = formula(f); 200s assert (~isa(g, 'symfun')); 200s ***** test 200s % abstract: return is a sym, not a symfun 200s syms f(x) 200s g = formula(f); 200s assert (~isa(g, 'symfun')); 200s 3 tests, 3 passed, 0 known failure, 0 skipped 200s [inst/@symfun/subsref.m] 200s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@symfun/subsref.m 200s ***** test 200s syms x 200s f(x) = x^2; 200s v = f.vars; 200s assert(iscell(v)) 200s assert(length(v)==1) 200s assert(isequal(v{1},x)) 200s ***** test 200s %% pass through to sym properties 200s syms x 200s f(x) = x^2; 200s y = x^2; % not a symfun 200s assert(strcmp(f.flat, y.flat)) 200s 2 tests, 2 passed, 0 known failure, 0 skipped 200s [inst/@symfun/argnames.m] 200s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@symfun/argnames.m 200s ***** test 200s % basic test 200s syms f(x) 200s assert (isequal (argnames (f), x)) 200s ***** test 200s % Multiple variables, abstract symfun 200s syms f(t, x, y) 200s assert (isequal (argnames (f), [t x y])) 200s ***** test 200s % Concrete symfun 200s syms x y z t 200s f(t, x, y) = x + y + z; 200s assert (isequal (argnames (f), [t x y])) 200s 3 tests, 3 passed, 0 known failure, 0 skipped 200s [inst/@symfun/minus.m] 200s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@symfun/minus.m 200s ***** test 200s syms x 200s f(x) = x^2; 200s assert( isa(f - f, 'symfun')) 200s assert( isa(f - x, 'symfun')) 200s ***** test 200s % Octave bug #42735 fixed in 4.4.2 200s syms x 200s f(x) = x^2; 200s g = x^2; 200s h = x - f; assert (isa (h, 'symfun') && isequal (formula (h), x - g)) 200s h = x + f; assert (isa (h, 'symfun') && isequal (formula (h), x + g)) 200s h = x * f; assert (isa (h, 'symfun') && isequal (formula (h), x * g)) 200s h = x / f; assert (isa (h, 'symfun') && isequal (formula (h), x / g)) 200s h = x ^ f; assert (isa (h, 'symfun') && isequal (formula (h), x ^ g)) 200s h = x .* f; assert (isa (h, 'symfun') && isequal (formula (h), x .* g)) 200s h = x ./ f; assert (isa (h, 'symfun') && isequal (formula (h), x ./ g)) 200s h = x .^ f; assert (isa (h, 'symfun') && isequal (formula (h), x .^ g)) 200s ***** test 200s % different variables 200s syms x y 200s f(x) = 2*x; 200s g(y) = sin(y); 200s h = f - g(x); 200s assert( isa(h, 'symfun')) 200s assert( isequal (argnames (h), argnames (f))) 200s assert (isequal (formula (h), 2*x - sin(x))) 200s % and even if rh-sym has a dummy variable: 200s h = f - g(y); 200s assert( isa(h, 'symfun')) 200s assert( isequal (argnames (h), argnames(f))) 200s assert (isequal (formula (h), 2*x - sin(y))) 201s ***** test 201s % different variables, f has more 201s syms x y 201s f(x,y) = 2*x*y; 201s g(y) = sin(y); 201s h = f - g(y) + g(x); 201s assert( isa(h, 'symfun')) 201s assert( isequal (argnames (h), argnames (f))) 201s assert (isequal (formula (h), 2*x*y - sin(y) + sin(x))) 201s 4 tests, 4 passed, 0 known failure, 0 skipped 201s [inst/@symfun/diff.m] 201s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@symfun/diff.m 201s ***** test 201s % concrete fcn 201s syms x 201s f(x) = x*x; 201s g(x) = 2*x; 201s assert (logical (diff(f) == g)) 201s assert (isa (diff(f), 'symfun')) 201s ***** test 201s % abstract fcn 201s syms y(x) 201s assert (logical (diff(y) == diff(y(x)))) 201s assert (isa (diff(y), 'symfun')) 201s 2 tests, 2 passed, 0 known failure, 0 skipped 201s [inst/@symfun/numel.m] 201s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@symfun/numel.m 201s ***** test 201s syms x 201s f(x) = x^2; 201s assert(numel(f)==1) 201s ***** test 201s syms x 201s f(x) = [1 x]; 201s assert(numel(f)==1) 201s 2 tests, 2 passed, 0 known failure, 0 skipped 201s [inst/catalan.m] 201s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/catalan.m 201s ***** error catalan (sym(1)) 201s ***** assert (double (catalan ()) > 0.915965594177) 201s ***** assert (double (catalan ()) < 0.915965594178) 201s 3 tests, 3 passed, 0 known failure, 0 skipped 201s [inst/laguerreL.m] 201s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/laguerreL.m 201s ***** error laguerreL (1) 202s ***** error laguerreL (1, 2, 3) 202s ***** assert (isequal (laguerreL (0, rand), 1)) 202s ***** test 202s x = rand; 202s assert (isequal (laguerreL (1, x), 1 - x)) 202s ***** test 202s x=rand; 202s y1=laguerreL(2, x); 202s p2=[.5 -2 1]; 202s y2=polyval(p2,x); 202s assert(y1 - y2, 0, 10*eps); 202s ***** test 202s x=rand; 202s y1=laguerreL(3, x); 202s p3=[-1/6 9/6 -18/6 1]; 202s y2=polyval(p3,x); 202s assert(y1 - y2, 0, 20*eps); 202s ***** test 202s x=rand; 202s y1=laguerreL(4, x); 202s p4=[1/24 -16/24 72/24 -96/24 1]; 202s y2=polyval(p4,x); 202s assert(y1 - y2, 0, 30*eps) 202s ***** error laguerreL(1.5, 10) 202s ***** error laguerreL([0 1], [1 2 3]) 202s ***** error laguerreL([0 1], [1; 2]) 202s ***** test 202s % numerically stable implementation (in n) 202s L = laguerreL (10, 10); 202s Lex = 1763/63; 202s assert (L, Lex, -eps) 202s L = laguerreL (20, 10); 202s Lex = -177616901779/14849255421; % e.g., laguerreL(sym(20),10) 202s assert (L, Lex, -eps) 202s ***** test 202s % vectorized x 202s L = laguerreL (2, [5 6 7]); 202s Lex = [3.5 7 11.5]; 202s assert (L, Lex, eps) 202s ***** test 202s L = laguerreL (0, [4 5]); 202s assert (L, [1 1], eps) 202s ***** test 202s % vector n 202s L = laguerreL ([0 1 2 3], [4 5 6 9]); 202s assert (L, [1 -4 7 -26], eps) 202s ***** test 202s % vector n, scalar x 202s L = laguerreL ([0 1 2 3], 6); 202s assert (L, [1 -5 7 1], eps) 202s ***** assert (isa (laguerreL (0, single (1)), 'single')) 202s ***** assert (isa (laguerreL (1, single ([1 2])), 'single')) 202s ***** assert (isa (laguerreL ([1 2], single ([1 2])), 'single')) 202s 18 tests, 18 passed, 0 known failure, 0 skipped 202s [inst/assume.m] 202s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/assume.m 202s ***** error 202s a = assume('a', 'real') 202s ***** error 202s assume positive integer 202s ***** error 202s assume x y 202s ***** error 202s assume x clear real 202s ***** error 202s assume a>0 202s ***** error 202s assume 'x/pi' integer 202s ***** test 202s syms x 202s assume x positive 202s a = assumptions(x); 202s assert(strcmp(a, 'x: positive')) 202s assume x even 202s a = assumptions(x); 202s assert(strcmp(a, 'x: even')) 202s ***** test 202s % multiple assumptions 202s syms x 202s assume x positive integer 202s [tilde, a] = assumptions(x, 'dict'); 202s assert(a{1}.integer) 202s assert(a{1}.positive) 202s ***** test 202s % does workspace 202s syms x positive 202s x2 = x; 202s f = sin(x); 202s assume x negative 202s a = assumptions(x); 202s assert(strcmp(a, 'x: negative')) 202s a = assumptions(x2); 202s assert(strcmp(a, 'x: negative')) 202s a = assumptions(f); 202s assert(strcmp(a, 'x: negative')) 202s ***** error 202s % does not create new variable x 202s clear x 202s assume x real 202s ***** error 202s % no explicit variable named x 202s clear x 202s f = 2*sym('x'); 202s assume x real 202s ***** test 202s % clear does workspace 202s syms x positive 202s f = 2*x; 202s assume x clear 202s assert (isempty (assumptions (f))); 202s assert (isempty (assumptions ())); 202s ***** test 202s syms x y 202s f = sin (2*x); 202s assume x y real 202s assert (strcmp (assumptions (x), 'x: real')) 202s assert (strcmp (assumptions (y), 'y: real')) 202s assert (strcmp (assumptions (f), 'x: real')) 202s ***** test 202s syms x y 202s f = sin (2*x); 202s assume x y positive even 202s assert (strcmp (assumptions (x), 'x: positive, even') || strcmp (assumptions (x), 'x: even, positive')) 202s assert (strcmp (assumptions (y), 'y: positive, even') || strcmp (assumptions (y), 'y: even, positive')) 202s assert (strcmp (assumptions (f), 'x: positive, even') || strcmp (assumptions (f), 'x: even, positive')) 203s ***** test 203s % works from variable names not symbols 203s syms x y 203s a = [x y]; 203s assume a real 203s assert (strcmp (assumptions (x), 'x: real')) 203s assert (strcmp (assumptions (y), 'y: real')) 203s ***** test 203s % works from variable names not symbols 203s y = sym('x'); 203s f = 2*y; 203s assume y real 203s assert (strcmp (assumptions (f), 'x: real')) 203s ***** test 203s % matrix of symbols 203s syms a b c d 203s A = [a b; c d]; 203s assume A real 203s assert (strcmp (assumptions (a), 'a: real')) 203s assert (strcmp (assumptions (b), 'b: real')) 203s assert (strcmp (assumptions (c), 'c: real')) 203s assert (strcmp (assumptions (d), 'd: real')) 204s ***** test 204s % assume after symfun 204s clear x 204s syms f(x) 204s assume x real 204s assert (~ isempty (assumptions (formula (f)))) 204s assert (~ isempty (assumptions (argnames (f)))) 204s 18 tests, 18 passed, 0 known failure, 0 skipped 204s [inst/@logical/isAlways.m] 204s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@logical/isAlways.m 204s ***** error isAlways (true, false) 204s ***** assert(isAlways(true)) 204s ***** assert(~isAlways(false)) 204s 3 tests, 3 passed, 0 known failure, 0 skipped 204s [inst/poly2sym.m] 204s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/poly2sym.m 204s ***** shared x,y,a,b,c,p 204s syms x y a b c 204s p = x^3 + 2*x^2 + 3*x + 4; 204s ***** assert(isAlways( poly2sym([1 2 3 4]) == p )) 204s ***** assert(isAlways( poly2sym([1 2 3 4],x) == p )) 204s ***** assert(isAlways( poly2sym([1 2 3 4],y) == subs(p,x,y) )) 204s ***** assert(isAlways( poly2sym([1 2 3 4],5) == subs(p,x,5) )) 205s ***** assert(isequal( poly2sym ([1]), 1 )) 205s ***** assert(isequal( poly2sym ([]), 0 )) 205s ***** assert(isAlways( poly2sym(sym([1 2 3 4]),x) == p )) 205s ***** assert(isAlways( poly2sym([a b c],x) == a*x^2 + b*x + c )) 205s ***** assert(isAlways( poly2sym([a b c]) == a*x^2 + b*x + c )) 206s ***** assert(isequal( poly2sym(sym([])), 0 )) 206s ***** assert(isAlways( poly2sym({sym(1) sym(2)}, x) == x + 2 )) 206s ***** assert(isequal( poly2sym ({1}), 1 )) 206s ***** assert(isequal( poly2sym ({}), 0 )) 206s ***** assert(isequal( poly2sym ({1}, x), 1 )) 206s ***** assert(isequal( poly2sym ({}, x), 0 )) 206s ***** assert(isAlways( poly2sym([x x], x) == x^2 + x )) 206s ***** test 206s % mixed cell array with doubles and syms 206s assert (isequal (poly2sym ({2.0 sym(3) int64(4)}), 2*x^2 + 3*x + 4)) 206s ***** test 206s % string for x 206s p = poly2sym ([1 2], 's'); 206s syms s 206s assert (isequal (p, s + 2)) 206s 18 tests, 18 passed, 0 known failure, 0 skipped 206s [inst/lambertw.m] 206s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/lambertw.m 206s ***** assert (isequal (lambertw (0), 0)) 206s ***** assert (isequal (lambertw (0, 0), 0)) 206s ***** assert (lambertw (-1/exp(1)), -1, 2*eps) 206s ***** assert (lambertw (0, -1/exp(1)), -1, 2*eps) 206s ***** assert (lambertw (-1, -1/exp(1)), -1, 2*eps) 206s ***** test 206s x = [1 2 3 pi 10 100 1000 12345]; 206s W = lambertw (x); 206s assert (W.*exp (W), x, -3*eps) 206s ***** test 206s x = [1 2 3 pi 10 100 1000 12345]; 206s k = [-3 -2 -1 0 1 2 3 4]; 206s W = lambertw (k, x); 206s assert (W.*exp (W), x, -10*eps) 206s ***** test 206s % input shape preserved 206s x = [0 1; 2 3]; 206s b = x; 206s W = lambertw (b, x); 206s assert (W.*exp (W), x, -10*eps) 206s ***** test 206s % input shape preserved 206s x = [0 1; 2 3]; 206s b = 0; 206s W = lambertw (b, x); 206s assert (W.*exp (W), x, -10*eps) 206s ***** test 206s % input shape preserved 206s x = 10; 206s b = [0 1; 2 3]; 206s W = lambertw (b, x); 206s assert (W.*exp (W), x*ones (size (b)), -10*eps) 206s ***** assert (isnan (lambertw (nan))) 206s ***** test 206s % limiting behaviour as z large 206s k = 3; 206s A = lambertw (k, 1e100); 206s assert (abs (imag (A) - 2*pi*k) < 0.1) 206s ***** test 206s % limiting behaviour as z large, up imag axis 206s k = 1; 206s A = lambertw (k, 1e100*1i); 206s assert (abs (imag (A) - (2*k+0.5)*pi) < 0.1) 206s ***** test 206s % limiting behaviour as z large, down imag axis 206s k = -2; 206s A = lambertw (k, -1e100*1i); 206s assert (abs (imag (A) - (2*k-0.5)*pi) < 0.1) 206s ***** test 206s % limiting behaviour as z large, near branch 206s k = 3; 206s A = lambertw (k, -1e100); 206s B = lambertw (k, -1e100 + 1i); 206s C = lambertw (k, -1e100 - 1i); 206s assert (abs (imag (A) - (2*k+1)*pi) < 0.1) 206s assert (abs (imag (B) - (2*k+1)*pi) < 0.1) 206s assert (abs (imag (C) - (2*k-1)*pi) < 0.1) 206s ***** test 206s % infinities and nan 206s A = lambertw ([inf exp(1) -inf nan]); 206s B = [inf 1 inf + pi*1i nan]; 206s assert (isequaln (A, B)) 206s ***** test 206s % infinities and nan 206s A = lambertw (3, [inf 1 -inf nan]); 206s B = [inf + 2*3*pi*1i lambertw(3,1) inf + (2*3+1)*pi*1i nan]; 206s assert (isequaln (A, B)) 206s ***** test 206s % infinities and nan 206s A = lambertw ([0 1 2 0], [inf -inf nan exp(1)]); 206s B = [inf inf+3*pi*1i nan 1]; 206s assert (isequaln (A, B)) 206s ***** test 206s % scalar infinity z, vector b 206s A = lambertw ([1 2 -3], inf); 206s B = [lambertw(1, inf) lambertw(2, inf) lambertw(-3, inf)]; 206s assert (isequal (A, B)) 206s ***** test 206s % scalar -infinity z, vector b 206s A = lambertw ([1 2 -3], -inf); 206s B = [lambertw(1, -inf) lambertw(2, -inf) lambertw(-3, -inf)]; 206s assert (isequal (A, B)) 206s ***** test 206s % scalar z nan, vector b 206s A = lambertw ([1 2 -3], nan); 206s B = [nan nan nan]; 206s assert (isequaln (A, B)) 206s 21 tests, 21 passed, 0 known failure, 0 skipped 206s [inst/@sym/expand.m] 206s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/expand.m 206s ***** test 206s syms x 206s assert (logical (x^2 + 6*x + 5 == expand ((x+5)*(x+1)))) 206s assert (isequal (x^2 + 6*x + 5, expand ((x+5)*(x+1)))) 207s ***** test 207s % array 207s syms x 207s assert (isequal (expand ([x (x+1)*x]), [x x^2+x])) 207s 2 tests, 2 passed, 0 known failure, 0 skipped 207s [inst/@sym/isscalar.m] 207s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/isscalar.m 207s ***** assert(isscalar(sym('x'))) 207s ***** test 207s a = sym([1 2 3]); 207s assert(~isscalar(a)) 207s ***** assert(~isscalar(sym([]))) 207s 3 tests, 3 passed, 0 known failure, 0 skipped 207s [inst/@sym/sum.m] 207s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/sum.m 207s ***** error sum (sym(1), 2, 3) 207s ***** error sum (sym(1), 42) 207s ***** shared x,y,z 207s syms x y z 207s ***** assert (isequal (sum (x), x)) 207s ***** assert (isequal (sum ([x y z]), x+y+z)) 207s ***** assert (isequal (sum ([x; y; z]), x+y+z)) 207s ***** assert (isequal (sum ([x y z], 1), [x y z])) 207s ***** assert (isequal (sum ([x y z], 2), x+y+z)) 207s ***** shared a,b 207s b = [1 2; 3 4]; a = sym(b); 207s ***** assert (isequal (sum(a), sum(b))) 207s ***** assert (isequal (sum(a,1), sum(b,1))) 207s ***** assert (isequal (sum(a,2), sum(b,2))) 207s ***** test 207s % weird inputs 207s a = sum('xx', sym(1)); 207s assert (isequal (a, sym('xx'))) 208s 11 tests, 11 passed, 0 known failure, 0 skipped 208s [inst/@sym/sind.m] 208s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/sind.m 208s ***** error sind (sym(1), 2) 208s ***** assert (isequaln (sind (sym(nan)), sym(nan))) 208s ***** test 208s f1 = sind (sym(1)); 208s f2 = sind (1); 208s assert (double (f1), f2, -eps) 208s ***** test 208s D = [10 30; 110 -45]; 208s A = sym(D); 208s f1 = sind (A); 208s f2 = sind (D); 208s assert (double (f1), f2, -eps) 208s 4 tests, 4 passed, 0 known failure, 0 skipped 208s [inst/@sym/qr.m] 208s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/qr.m 208s ***** error qr (sym(1), 2, 3) 208s ***** error [Q, R, P] = qr (sym(1)) 208s ***** error qr (sym(1), 1) 208s ***** test 208s % scalar 208s [q, r] = qr(sym(6)); 208s assert (isequal (q, sym(1))) 208s assert (isequal (r, sym(6))) 208s ***** test 208s syms x positive 208s [q, r] = qr(x); 208s assert (isequal (q*r, x)) 208s assert (isequal (q, sym(1))) 208s assert (isequal (r, x)) 208s ***** test 208s % trickier if x could be zero, fails on 1.8 <= SymPy <= 1.10.1 208s syms x 208s [q, r] = qr(x); 208s if (pycall_sympy__ ('return Version(spver) > Version("1.10.1")')) 208s assert (isequal (q*r, x)) 208s end 208s ***** test 208s A = [1 2; 3 4]; 208s B = sym(A); 208s [Q, R] = qr(B); 208s assert (isequal (Q*R, B)) 208s assert (isequal (R(2,1), sym(0))) 208s assert (isequal (Q(:,1)'*Q(:,2), sym(0))) 208s %[QA, RA] = qr(A) 208s %assert ( max(max(double(Q)-QA)) <= 10*eps) 208s %assert ( max(max(double(Q)-QA)) <= 10*eps) 208s ***** test 208s % non square: tall skinny 208s A = sym([1 2; 3 4; 5 6]); 208s [Q, R] = qr (A, 0); 208s assert (size (Q), [3 2]) 208s assert (size (R), [2 2]) 208s assert (isequal (Q*R, A)) 208s ***** test 208s % non square: short fat 208s A = sym([1 2 3; 4 5 6]); 208s [Q, R] = qr (A); 208s assert (isequal (Q*R, A)) 208s ***** test 208s % non square: short fat, rank deficient 208s A = sym([1 2 3; 2 4 6]); 208s [Q, R] = qr (A); 208s assert (isequal (Q*R, A)) 208s A = sym([1 2 3; 2 4 6; 0 0 0]); 208s [Q, R] = qr (A); 208s assert (isequal (Q*R, A)) 209s ***** test 209s % rank deficient 209s A = sym([1 2 3; 2 4 6; 0 0 0]); 209s [Q, R] = qr (A); 209s assert (isequal (Q*R, A)) 209s A = sym([1 2 3; 2 5 6; 0 0 0]); 209s [Q, R] = qr (A); 209s assert (isequal (Q*R, A)) 209s ***** test 209s % single return value R not Q 209s assert (isequal (qr (sym(4)), sym(4))) 209s 12 tests, 12 passed, 0 known failure, 0 skipped 209s [inst/@sym/expint.m] 209s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/expint.m 209s ***** error expint (sym(1), 2, 3) 209s ***** test 209s f1 = expint(sym(1)); 209s f2 = expint(1); 209s assert( abs(double(f1) - f2) < 1e-15 ) 209s ***** test 209s f1 = expint(sym(1i)); 209s f2 = expint(1i); 209s assert( abs(double(f1) - f2) < 1e-15 ) 209s ***** test 209s D = [1 2; 3 4]; 209s A = sym(D); 209s f1 = expint(A); 209s f2 = expint(D); 209s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 209s ***** test 209s syms x 209s A = expint(x); 209s B = expint(1, x); 209s assert (isequal (A, B)) 209s ***** test 209s syms x 209s A = exp(-x)/x; 209s B = expint(0, x); 209s assert (isequal (A, B)) 209s ***** test 209s % round trip 209s syms x 209s A = expint (3); 209s f = expint (x); 209s h = function_handle (f); 209s B = h (3); 209s assert (A, B, -eps) 209s ***** error 209s % round trip 209s syms n x 209s f = expint (n, x); 209s h = function_handle (f); 209s 8 tests, 8 passed, 0 known failure, 0 skipped 209s [inst/@sym/curl.m] 209s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/curl.m 209s ***** error curl([sym(1) 2 3], 42, 42) 209s ***** shared x,y,z 209s syms x y z 209s ***** test 209s % double const 209s f = [1 2 3]; 209s g = [sym(0); 0; 0]; 209s assert (isequal (curl(f, [x y z]), g)) 209s % should fail, calls @double: curl(f, {x y z}), g)) 209s ***** test 209s % div curl always 0 209s v = [exp(x); x*y; sin(z)]; 209s g = curl(v); 209s a = divergence(g, [x y z]); 209s assert (isAlways (a == sym(0))) 209s assert (isa (a, 'sym')) 209s g = curl(v, [x y z]); 209s a = divergence(g, [x y z]); 209s assert (isAlways (a == sym(0))) 209s assert (isa (a, 'sym')) 210s ***** test 210s % div curl always 0 210s v = [exp(x); erfc(x*y); sin(exp(x)*y+sinh(z))]; 210s g = curl(v, [x y z]); 210s a = divergence(g, [x y z]); 210s assert (isAlways (a == sym(0))) 210s assert (isa (a, 'sym')) 211s ***** test 211s % curl grad is vec zero 211s f = sin(exp(x)*y+sinh(z)); 211s g = curl(gradient(f, [x,y,z])); 211s assert (isequal (g, sym([0;0;0]))) 213s ***** test 213s % 2d fcn in 2d/3d 213s u = sin(exp(x)*y); 213s v = x^2*y^3; 213s vorticity2d = diff(v,x) - diff(u,y); 213s omega = curl([u; v; 0], [x y z]); 213s assert (isequal (omega, [0; 0; vorticity2d])) 213s ***** error <3D vector> curl([sym(1) 2 3 4]) 213s ***** error curl([sym(1) 2 3], {sym('x') sym('y') sym('z') sym('t')}) 213s 8 tests, 8 passed, 0 known failure, 0 skipped 213s [inst/@sym/dilog.m] 213s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/dilog.m 213s ***** assert (isequal (dilog (sym(1)), sym(0))) 213s ***** assert (isequal (dilog (sym(0)), sym(pi)^2/6)) 213s ***** assert (isequal (dilog (sym(2)), -sym(pi)^2/12)) 213s ***** assert (double(dilog(sym(-1))), pi^2/4 - pi*1i*log(2), eps) 213s ***** test 213s % round-trip 213s syms x 213s f = dilog (x); 213s h = function_handle (f); 213s A = h (1.1); 213s B = dilog (1.1); 213s assert (A, B, -eps) 213s 5 tests, 5 passed, 0 known failure, 0 skipped 213s [inst/@sym/jacobian.m] 213s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/jacobian.m 213s ***** error jacobian (sym(1), 2, 3) 213s ***** error jacobian ([sym(1) 2; sym(3) 4]) 213s ***** shared x,y,z 213s syms x y z 213s ***** test 213s % 1D 213s f = x^2; 213s assert (isequal (jacobian(f), diff(f,x))) 213s assert (isequal (jacobian(f,{x}), diff(f,x))) 213s assert (isequal (jacobian(f,x), diff(f,x))) 214s ***** test 214s % const 214s f = sym(1); 214s g = sym(0); 214s assert (isequal (jacobian(f), g)) 214s assert (isequal (jacobian(f,x), g)) 214s ***** test 214s % double const 214s f = 1; 214s g = sym(0); 214s assert (isequal (jacobian(f,x), g)) 214s ***** test 214s % diag 214s f = [x y^2]; 214s g = [sym(1) 0; 0 2*y]; 214s assert (isequal (jacobian(f), g)) 214s assert (isequal (jacobian(f, [x y]), g)) 214s assert (isequal (jacobian(f, {x y}), g)) 214s ***** test 214s % anti-diag 214s f = [y^2 x]; 214s g = [0 2*y; sym(1) 0]; 214s assert (isequal (jacobian(f), g)) 214s assert (isequal (jacobian(f, {x y}), g)) 214s ***** test 214s % shape 214s f = [x y^2]; 214s assert (isequal (size(jacobian(f, {x y z})), [2 3])) 214s assert (isequal (size(jacobian(f, [x y z])), [2 3])) 214s assert (isequal (size(jacobian(f, [x; y; z])), [2 3])) 214s assert (isequal (size(jacobian(f.', {x y z})), [2 3])) 214s ***** test 214s % scalar f 214s f = x*y; 214s assert (isequal (size(jacobian(f, {x y})), [1 2])) 214s g = gradient(f, {x y}); 214s assert (isequal (jacobian(f, {x y}), g.')) 214s ***** test 214s % vect f wrt 1 var 214s f = [x x^2]; 214s assert (isequal (size(jacobian(f, x)), [2 1])) 214s f = f.'; % same shape output 214s assert (isequal (size(jacobian(f, x)), [2 1])) 214s 10 tests, 10 passed, 0 known failure, 0 skipped 214s [inst/@sym/symreplace.m] 214s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/symreplace.m 214s ***** test 214s % start with assumptions on x then remove them 214s syms x positive 214s f = x*10; 214s symreplace(x, sym('x')) 214s assert(isempty(assumptions(x))) 214s ***** test 214s % replace x with y 214s syms x 214s f = x*10; 214s symreplace(x, sym('y')) 214s assert( isequal (f, 10*sym('y'))) 214s ***** test 214s % gets inside cells 214s syms x 214s f = {x 1 2 {3 4*x}}; 214s symreplace(x, sym('y')) 214s syms y 214s assert( isequal (f{1}, y)) 214s assert( isequal (f{4}{2}, 4*y)) 215s ***** test 215s % gets inside structs/cells 215s syms x 215s my.foo = {x 1 2 {3 4*x}}; 215s my.bar = x; 215s g = {'ride' my 'motor' 'sicle'}; 215s symreplace(x, sym('y')) 215s syms y 215s f = g{2}; 215s assert( isequal (f.foo{1}, y)) 215s assert( isequal (f.foo{4}{2}, 4*y)) 215s assert( isequal (f.bar, y)) 215s 4 tests, 4 passed, 0 known failure, 0 skipped 215s [inst/@sym/isfinite.m] 215s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/isfinite.m 215s ***** assert (isfinite(sym(1))) 215s ***** assert (isfinite(sym(-10))) 215s ***** assert (~isfinite(sym('oo'))) 215s ***** assert (~isfinite(sym('-oo'))) 215s ***** assert (~isfinite(sym(1)/0)) 215s ***** assert (~isfinite(sym(nan))) 215s ***** assert (isequal (isfinite (sym ([1 inf])), [true false])) 215s ***** test 215s % finite-by-assumption 215s syms x finite 215s assert (isfinite (x)) 215s 8 tests, 8 passed, 0 known failure, 0 skipped 215s [inst/@sym/ones.m] 215s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/ones.m 215s ***** test 215s y = ones(sym(2)); 215s x = [1 1; 1 1]; 215s assert( isequal( y, sym(x))) 215s ***** test 215s y = ones(sym(2), 1); 215s x = [1; 1]; 215s assert( isequal( y, sym(x))) 215s ***** test 215s y = ones(sym(1), 2); 215s x = [1 1]; 215s assert( isequal( y, sym(x))) 215s ***** test 215s y = ones (sym([2 3])); 215s x = sym (ones ([2 3])); 215s assert (isequal (y, x)) 215s ***** assert( isa( ones(sym(2), 'double'), 'double')) 215s ***** assert( isa( ones(3, sym(3), 'single') , 'single')) 215s ***** assert( isa( ones(3, sym(3)), 'sym')) 215s ***** assert( isa( ones(3, sym(3), 'sym'), 'sym')) 215s ***** xtest 215s % Issue #13 215s assert( isa( ones(3, 3, 'sym'), 'sym')) 215s !!!!! known failure 215s invalid data type specified 215s 9 tests, 8 passed, 1 known failure, 0 skipped 215s [inst/@sym/iscolumn.m] 215s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/iscolumn.m 215s ***** assert (iscolumn (sym ([1]))) 215s ***** assert (iscolumn (sym ([1 2 3]'))) 215s ***** assert (~iscolumn (sym ([]))) 215s ***** assert (~iscolumn (sym ([1 2 3]))) 215s ***** assert (~iscolumn (sym ([1 2; 3 4]))) 215s 5 tests, 5 passed, 0 known failure, 0 skipped 215s [inst/@sym/char.m] 215s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/char.m 215s ***** test 215s % issue #91: expose as string 215s a = sym(pi); 215s assert (strcmp (char (a), 'pi')) 215s ***** shared x 215s x = sym('x'); 215s ***** assert (strcmp (char (x), 'x')) 215s ***** assert (strcmp (char (2*x), '2*x')) 215s ***** assert (strcmp (char ([2*x x]), 'Matrix([[2*x, x]])')) 216s ***** assert (strcmp (char ([2*x 2; 1 x]), 'Matrix([[2*x, 2], [1, x]])')) 216s 5 tests, 5 passed, 0 known failure, 0 skipped 216s [inst/@sym/floor.m] 216s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/floor.m 216s ***** error floor (sym(1), 2) 216s ***** assert (isequaln (floor (sym(nan)), sym(nan))) 216s ***** shared x, d 216s d = 1; 216s x = sym('1'); 216s ***** test 216s f1 = floor(x); 216s f2 = floor(d); 216s assert( abs(double(f1) - f2) < 1e-15 ) 216s ***** test 216s D = [d d; d d]; 216s A = [x x; x x]; 216s f1 = floor(A); 216s f2 = floor(D); 216s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 216s ***** test 216s % round trip 216s y = sym('y'); 216s A = floor (d); 216s f = floor (y); 216s h = function_handle (f); 216s B = h (d); 216s assert (A, B, -eps) 216s 5 tests, 5 passed, 0 known failure, 0 skipped 216s [inst/@sym/sym.m] 216s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/sym.m 216s ***** test 216s % integers 216s x = sym ('2'); 216s y = sym (2); 216s assert (isa (x, 'sym')) 216s assert (isa (y, 'sym')) 216s assert (isequal (x, y)) 216s ***** test 216s % infinity 216s for x = {'inf', '-inf', inf, -inf, 'Inf'} 216s y = sym (x{1}); 216s assert (isa (y, 'sym')) 216s assert (isinf (double (y))) 216s assert (isinf (y)) 216s end 216s ***** test 216s % pi 216s x = sym ('pi'); 216s assert (isa (x, 'sym')) 216s assert (isequal (sin (x), sym (0))) 216s assert (abs (double (x) - pi) < 2*eps ) 216s x = sym (pi); 216s assert (isa (x, 'sym')) 216s assert (isequal (sin (x), sym (0))) 216s assert (abs (double (x) - pi) < 2*eps ) 216s ***** test 216s % rationals 216s x = sym(1) / 3; 216s assert (isa (x, 'sym')) 216s assert (isequal (3*x - 1, sym (0))) 216s x = 1 / sym (3); 216s assert (isa (x, 'sym')) 216s assert (isequal (3*x - 1, sym (0))) 216s x = sym ('1/3'); 216s assert (isa (x, 'sym')) 216s assert (isequal (3*x - 1, sym (0))) 216s ***** test 216s % passing small rationals 216s x = sym ('1/2'); 216s assert (double (x) == 1/2 ) 216s assert (isequal (2*x, sym (1))) 216s ***** warning x = sym (1/2); 216s ***** test 216s % passing small rationals w/o quotes: despite the warning, 216s % it should work 216s s = warning ('off', 'OctSymPy:sym:rationalapprox'); 216s x = sym (1/2); 216s warning (s) 216s assert (double (x) == 1/2 ) 216s assert (isequal (2*x, sym (1))) 216s ***** test 216s assert (isa (sym (pi), 'sym')) 216s assert (isa (sym ('beta'), 'sym')) 216s ***** test 216s % sym from array 216s D = [0 1; 2 3]; 216s A = [sym(0) 1; sym(2) 3]; 216s assert (isa (sym (D), 'sym')) 216s assert (isequal (size (sym (D)), size (D))) 216s assert (isequal (sym (D), A)) 217s ***** test 217s % more sym from array 217s syms x 217s A = [x x]; 217s assert (isequal (sym (A), A)) 217s A = [1 x]; 217s assert (isequal (sym (A), A)) 217s ***** test 217s %% assumptions and clearing them 217s clear variables % for matlab test script 217s x = sym('x', 'real'); 217s f = {x {2*x}}; 217s asm = assumptions(); 217s assert ( ~isempty(asm)) 217s s = warning ('off', 'OctSymPy:deprecated'); 217s x = sym('x', 'clear'); 217s warning (s) 217s asm = assumptions(); 217s assert ( isempty(asm)) 217s ***** test 217s %% matlab compat, syms x clear should add x to workspace 217s x = sym('x', 'real'); 217s f = 2*x; 217s clear x 217s assert (~logical(exist('x', 'var'))) 217s s = warning ('off', 'OctSymPy:deprecated'); 217s x = sym('x', 'clear'); 217s warning (s) 217s assert (logical(exist('x', 'var'))) 217s ***** test 217s %% assumptions should work if x is already a sym 217s x = sym('x'); 217s x = sym(x, 'real'); 217s assert (~isempty(assumptions(x))) 217s ***** test 217s %% likewise for clear 217s x = sym('x', 'real'); 217s f = 2*x; 217s s = warning ('off', 'OctSymPy:deprecated'); 217s x = sym(x, 'clear'); 217s warning (s) 217s assert (isempty(assumptions(x))) 217s assert (isempty(assumptions(f))) 217s ***** test 217s % bool 217s t = sym (false); 217s t = sym (true); 217s assert (logical (t)) 217s ***** test 217s % bool vec/mat 217s a = sym (1); 217s t = sym ([true false]); 217s assert (isequal (t, [a == 1 a == 0])) 217s t = sym ([true false; false true]); 217s assert (isequal (t, [a == 1 a == 0; a == 0 a == 1])) 217s ***** test 217s % symbolic matrix 217s A = sym ('A', [2 3]); 217s assert (isa (A, 'sym')) 217s assert (isequal (size (A), [2 3])) 217s A(1, 1) = 7; 217s assert (isa (A, 'sym')) 217s A = A + 1; 217s assert (isa (A, 'sym')) 217s ***** test 217s % symbolic matrix, symbolic but Integer size 217s A = sym ('A', sym([2 3])); 217s assert (isa (A, 'sym')) 217s assert (isequal (size (A), [2 3])) 217s ***** test 217s % symbolic matrix, subs in for size 217s syms n m integer 217s A = sym ('A', [n m]); 217s B = subs (A, [n m], [5 6]); 217s assert (isa (B, 'sym')) 217s assert (isequal (size (B), [5 6])) 217s ***** error sym('2*a', [2 3]) 217s ***** error sym(2*sym('a'), [2 3]) 217s ***** error sym('1', [2 3]) 217s ***** error sym(1, [2 3]) 217s ***** error 217s % TODO: symbolic tensor, maybe supported someday 217s sym('a', [2 3 4]) 217s ***** test 217s % 50 shapes of empty 217s a = sym (ones (0, 3)); 217s assert (isa (a, 'sym')) 217s assert (isequal (size (a), [0 3])) 217s a = sym (ones (2, 0)); 217s assert (isequal (size (a), [2 0])) 217s a = sym ([]); 217s assert (isequal (size (a), [0 0])) 217s ***** test 217s % moar empty 217s a = sym ('a', [0 3]); 217s assert (isa (a, 'sym')) 217s assert (isequal (size (a), [0 3])) 217s a = sym ('a', [2 0]); 217s assert (isa (a, 'sym')) 217s assert (isequal (size (a), [2 0])) 217s ***** test 217s % embedded sympy commands, various quotes, issue #143 217s a = sym ('a'); 217s a1 = sym ('Symbol("a")'); 217s a2 = sym ('Symbol(''a'')'); 217s assert (isequal (a, a1)) 217s assert (isequal (a, a2)) 217s % Octave only, and eval to hide from Matlab parser 217s if exist ('OCTAVE_VERSION', 'builtin') 217s eval( 'a3 = sym("Symbol(''a'')");' ); 217s eval( 'a4 = sym("Symbol(\"a\")");' ); 217s assert (isequal (a, a3)) 217s assert (isequal (a, a4)) 217s end 217s :18: SyntaxWarning: invalid escape sequence '\(' 217s :18: SyntaxWarning: invalid escape sequence '\(' 217s :18: SyntaxWarning: invalid escape sequence '\(' 217s :18: SyntaxWarning: invalid escape sequence '\(' 217s ***** test 217s % complex 217s x = sym(1 + 2i); 217s assert (isequal (x, sym(1)+sym(2)*1i)) 218s ***** test 218s % doubles bigger than int32 INTMAX should not fail 218s d = 4294967295; 218s a = sym (d); 218s assert (isequal (double (a), d)) 218s d = d + 123456; 218s a = sym (d); 218s assert (isequal (double (a), d)) 218s ***** test 218s % int32 integer types 218s a = sym (100); 218s b = sym (int32 (100)); 218s assert (isequal (a, b)) 218s ***** test 218s % int32 MAXINT integers 218s a = sym ('2147483647'); 218s b = sym (int32 (2147483647)); 218s assert (isequal (a, b)) 218s a = sym ('-2147483647'); 218s b = sym (int32 (-2147483647)); 218s assert (isequal (a, b)) 218s a = sym ('4294967295'); 218s b = sym (uint32 (4294967295)); 218s assert (isequal (a, b)) 218s ***** test 218s % int64 integer types 218s a = sym ('123456789012345'); 218s b = sym (int64(123456789012345)); 218s c = sym (uint64(123456789012345)); 218s assert (isequal (a, b)) 218s assert (isequal (a, c)) 218s ***** test 218s % integer arrays 218s a = int64 ([1 2 100]); 218s s = sym (a); 218s assert (isequal (double (a), [1 2 100])) 218s ***** test 218s % bigger int64 integer types 218s q = int64 (123456789012345); 218s w = 10000*q + 123; 218s a = sym ('1234567890123450123'); 218s b = sym (w); 218s assert (isequal (a, b)) 218s ***** test 218s % sym(double) heuristic 218s s = warning ('off', 'OctSymPy:sym:rationalapprox'); 218s x = sym(2*pi/3); 218s assert (isequal (x/sym(pi), sym(2)/3)) 218s x = sym(22*pi); 218s assert (isequal (x/sym(pi), sym(22))) 218s x = sym(pi/123); 218s assert (isequal (x/sym(pi), sym(1)/123)) 218s warning (s) 218s ***** test 218s % sym(double) with 'r': no warning 218s a = 0.1; 218s x = sym(a, 'r'); 218s assert (isequal (x, sym(1)/10)) 218s ***** test 218s % sym(double, 'f') 218s a = 0.1; 218s x = sym(a, 'f'); 218s assert (~isequal (x, sym(1)/10)) 218s assert (isequal (x, sym('3602879701896397')/sym('36028797018963968'))) 218s ***** test 218s x = sym(pi, 'f'); 218s assert (~isequal (x, sym('pi'))) 218s assert (isequal (x, sym('884279719003555')/sym('281474976710656'))) 218s ***** test 218s q = sym('3602879701896397')/sym('36028797018963968'); 218s x = sym(1 + 0.1i, 'f'); 218s assert (isequal (x, 1 + 1i*q)) 218s x = sym(0.1 + 0.1i, 'f'); 218s assert (isequal (x, q + 1i*q)) 219s ***** test 219s assert (isequal (sym(inf, 'f'), sym(inf))) 219s assert (isequal (sym(-inf, 'f'), sym(-inf))) 219s assert (isequaln (sym(nan, 'f'), sym(nan))) 219s assert (isequal (sym(complex(inf, -inf), 'f'), sym(complex(inf, -inf)))) 219s assert (isequaln (sym(complex(nan, inf), 'f'), sym(complex(nan, inf)))) 219s assert (isequaln (sym(complex(-inf, nan), 'f'), sym(complex(-inf, nan)))) 219s ***** test 219s assert (isequal (sym (sqrt(2), 'r'), sqrt (sym (2)))) 219s assert (isequal (sym (sqrt(12345), 'r'), sqrt (sym (12345)))) 219s ***** test 219s % symbols with special sympy names 219s syms Ei Eq 219s assert (~isempty (regexp (sympy (Eq), '^Symbol'))) 219s assert (~isempty (regexp (sympy (Ei), '^Symbol'))) 219s ***** test 219s % more symbols with special sympy names 219s x = sym('FF'); 219s assert (~isempty (regexp (x.pickle, '^Symbol'))) 219s x = sym('ff'); 219s assert (~isempty (regexp (x.pickle, '^Symbol'))) 219s ***** test 219s % E can be a sym not just exp(sym(1)) 219s syms E 219s assert (~logical (E == exp(sym(1)))) 219s ***** test 219s % e can be a symbol, not exp(sym(1)) 219s syms e 219s assert (~ logical (e == exp(sym(1)))) 219s ***** test 219s % double e 219s x = sym (exp (1)); 219s y = exp (sym (1)); 219s assert (isequal (x, y)) 219s if (exist ('OCTAVE_VERSION', 'builtin')) 219s x = sym (e); 219s assert (isequal (x, y)) 219s end 219s ***** test 219s x = sym (-exp (1)); 219s y = -exp (sym (1)); 219s assert (isequal (x, y)) 219s ***** assert (~ isequal (sym (exp(1)), sym (exp(1), 'f'))) 219s ***** warning sym (1e16); 219s ***** warning sym (-1e16); 219s ***** warning sym (10.33); 219s ***** warning sym (-5.23); 219s ***** warning sym (sqrt (1.4142135623731)); 219s ***** error 219s x = sym ('x', 'positive2'); 219s ***** error 219s x = sym ('x', 'integer', 'positive2'); 219s ***** error 219s x = sym ('x', 'integer2', 'positive'); 219s ***** error 219s x = sym ('-pi', 'positive') 219s ***** error 219s x = sym ('pi', 'integer') 219s ***** test 219s % multiple assumptions 219s n = sym ('n', 'negative', 'even'); 219s a = assumptions (n); 219s assert (strcmp (a, 'n: negative, even') || strcmp (a, 'n: even, negative')) 219s ***** error 219s % multiple assumptions as a list 219s % TODO: should this be allowed? 219s n = sym ('n', {'negative', 'even'}); 219s a = assumptions (n); 219s assert (strcmp (a, 'n: negative, even') || strcmp (a, 'n: even, negative')) 219s ***** error 219s n = sym ('n', {{'negative', 'even'}}); 219s ***** test 219s % save/load sym objects 219s syms x 219s y = 2*x; 219s a = 42; 219s myfile = tempname (); 219s save (myfile, 'x', 'y', 'a') 219s clear x y a 219s load (myfile) 219s assert (isequal (y, 2*x)) 219s assert (a == 42) 219s if (exist ('OCTAVE_VERSION', 'builtin')) 219s assert (unlink (myfile) == 0) 219s else 219s delete ([myfile '.mat']) 219s end 219s ***** test 219s a = sym ('2.1'); 219s b = sym (21) / 10; 219s %% https://github.com/sympy/sympy/issues/11703 219s assert (pycall_sympy__ ('return _ins[0] == _ins[1] and hash(_ins[0]) == hash(_ins[1])', a, b)) 219s ***** test 219s % issue #706 219s a = sym('Float("1.23")'); 219s assert (~ isempty (strfind (char (a), '.'))) 219s :18: SyntaxWarning: invalid escape sequence '\(' 219s ***** assert (isequal (sym({1 2 'a'}), [sym(1) sym(2) sym('a')])); 220s ***** error sym({1 2 'a'}, 'positive'); 220s ***** error sym({'a' 'b'}, 'positive'); 220s ***** test 220s a = sym ('--1'); 220s b = sym ('---1'); 220s assert (isequal (a, sym (1))) 220s assert (isequal (b, sym (-1))) 220s ***** test 220s % num2cell works on sym arrays 220s syms x 220s C1 = num2cell ([x 2 3; 4 5 6*x]); 220s assert (iscell (C1)) 220s assert (isequal (size (C1), [2 3])) 220s assert (isequal (C1{1,1}, x)) 220s assert (isequal (C1{2,3}, 6*x)) 220s assert (isequal (C1{1,3}, sym(3))) 220s assert (isa (C1{1,3}, 'sym')) 220s ***** test 220s % function_handle 220s f = @(x, y) y*sin(x); 220s syms x y 220s assert (isequal (sym (f), y*sin(x))); 220s f = @(x) 42; 220s assert (isequal (sym (f), sym (42))); 220s f = @() 42; 220s assert (isequal (sym (f), sym (42))); 220s :18: SyntaxWarning: invalid escape sequence '\(' 220s :18: SyntaxWarning: invalid escape sequence '\(' 220s :18: SyntaxWarning: invalid escape sequence '\(' 220s ***** error 220s % function_handle 220s f = @(x) A*sin(x); 220s sym (f) 220s :18: SyntaxWarning: invalid escape sequence '\(' 220s ***** test 220s % Issue #885 220s clear f x % if test not isolated (e.g., on matlab) 220s syms x 220s f(x) = sym('S(x)'); 220s f(x) = sym('I(x)'); 220s f(x) = sym('O(x)'); 220s :18: SyntaxWarning: invalid escape sequence '\(' 220s :18: SyntaxWarning: invalid escape sequence '\(' 220s :18: SyntaxWarning: invalid escape sequence '\(' 220s ***** test 220s % sym(sympy(x) == x identity, Issue #890 220s syms x 220s f = exp (1i*x); 220s s = sympy (f); 220s g = sym (s); 220s assert (isequal (f, g)) 220s :18: SyntaxWarning: invalid escape sequence '\(' 220s ***** test 220s % sym(sympy(x) == x identity 220s % Don't mistake "pi" (which is "srepr(S.Pi)") for a symfun variable 220s f = sym ('ff(pi, pi)'); 220s s1 = sympy (f); 220s s2 = 'FallingFactorial(pi, pi)'; 220s assert (strcmp (s1, s2)) 220s :18: SyntaxWarning: invalid escape sequence '\(' 220s ***** test 220s % sym(sympy(x) == x identity 220s % Don't mistake "I" (which is "srepr(S.ImaginaryUnit)") for a symfun variable 220s f = sym ('sin(I)'); 220s g = 1i*sinh (sym (1)); 220s assert (isequal (f, g)) 220s s = sympy (f); 220s assert (isempty (strfind (s, 'Function'))) 220s :18: SyntaxWarning: invalid escape sequence '\(' 220s ***** error 220s % sym(sympy(x) == x identity 220s % Don't mistake "true/false" (which is "srepr(S.true)") for a symfun variable 220s % (Used to print as `S.true` but just `true` in sympy 1.2) 220s sym ('E(true,false)') 220s :18: SyntaxWarning: invalid escape sequence '\(' 220s ***** test 220s % some variable names that are special to sympy but should not be for us 220s f = sym ('f(S, Q, C, O, N)'); 220s s1 = sympy (f); 220s s2 = 'Function(''f'')(Symbol(''S''), Symbol(''Q''), Symbol(''C''), Symbol(''O''), Symbol(''N''))'; 220s assert (strcmp (s1, s2)) 220s :18: SyntaxWarning: invalid escape sequence '\(' 220s ***** test 220s % For SMT 2014 compatibilty, I and E would become ImaginaryUnit and Exp(1) 220s % but I'm not sure this is by design. This test would need to change if 220s % we want stricter SMT compatibilty. 220s f = sym ('f(x, I, E)'); 220s s1 = sympy (f); 220s s2 = 'Function(''f'')(Symbol(''x''), Symbol(''I''), Symbol(''E''))'; 220s assert (strcmp (s1, s2)) 220s :18: SyntaxWarning: invalid escape sequence '\(' 220s ***** test 220s % not the identity, force symfun 220s f = sym ('FF(w)'); 220s s1 = sympy (f); 220s s2 = 'Function(''FF'')(Symbol(''w''))'; 220s assert (strcmp (s1, s2)) 220s :18: SyntaxWarning: invalid escape sequence '\(' 220s ***** test 220s % not the identity, force symfun 220s f = sym ('FF(w, pi)'); 220s s1 = sympy (f); 220s s2 = 'Function(''FF'')(Symbol(''w''), pi)'; 220s assert (strcmp (s1, s2)) 220s :18: SyntaxWarning: invalid escape sequence '\(' 220s ***** test 220s % not the identity, force symfun 220s f = sym ('ff(x, y)'); 220s s1 = sympy (f); 220s s2 = 'Function(''ff'')(Symbol(''x''), Symbol(''y''))'; 220s assert (strcmp (s1, s2)) 220s :18: SyntaxWarning: invalid escape sequence '\(' 220s ***** test 220s % But this one should satisfy "sym(sympy(x) == x" identity 220s % (OOTB, SymPy has ff -> FallingFactorial) 220s f = sym ('FallingFactorial(x, y)'); 220s s1 = sympy (f); 220s s2 = 'FallingFactorial(Symbol(''x''), Symbol(''y''))'; 220s assert (strcmp (s1, s2)) 220s :18: SyntaxWarning: invalid escape sequence '\(' 220s 82 tests, 82 passed, 0 known failure, 0 skipped 220s [inst/@sym/xor.m] 220s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/xor.m 220s ***** shared t, f 220s t = sym(true); 220s f = sym(false); 220s ***** test 220s % simple 220s assert (isequal (xor(t, f), t)) 220s assert (isequal (xor(t, t), f)) 220s ***** test 220s % array 220s w = [t t f f]; 220s z = [t f t f]; 220s assert (isequal (xor(w, z), [f t t f])) 220s ***** xtest 220s % output is sym even for scalar t/f 220s % ₣IXME: should match other bool fcns 220s assert (isa (xor(t, f), 'sym')) 220s ***** test 220s % eqns 220s syms x 220s e = xor(x == 4, x == 5); 220s assert (isequal (subs(e, x, [3 4 5 6]), [f t t f])) 220s ***** test 220s % eqns, exclusive 220s syms x 220s e = xor(x == 3, x^2 == 9); 220s assert (isequal (subs(e, x, [-3 0 3]), [t f f])) 221s ***** error xor (sym('x'), 1, 2) 221s 6 tests, 6 passed, 0 known failure, 0 skipped 221s [inst/@sym/eig.m] 221s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/eig.m 221s ***** test 221s % basic 221s A = [1 2; 3 4]; 221s B = sym(A); 221s sd = eig(A); 221s s = eig(B); 221s s2 = double(s); 221s assert (norm(sort(s2) - sort(sd)) <= 10*eps) 221s ***** test 221s % scalars 221s syms x 221s a = sym(-10); 221s assert (isequal (eig(a), a)) 221s assert (isequal (eig(x), x)) 221s ***** test 221s % diag, multiplicity 221s A = diag([6 6 7]); 221s B = sym(A); 221s e = eig(B); 221s assert (isequal (size (e), [3 1])) 221s assert (sum(logical(e == 6)) == 2) 221s assert (sum(logical(e == 7)) == 1) 221s ***** test 221s % matrix with symbols 221s syms x y positive 221s A = [x+9 y; sym(0) 6]; 221s s = eig(A); 221s s = simplify(s); 221s assert (isequal (s, [x+9; 6]) || isequal (s, [6; x+9])) 221s ***** test 221s % eigenvects 221s e = sym([5 5 5 6 7]); 221s A = diag(e); 221s [V, D] = eig(A); 221s assert (isequal (diag(D), e.')) 221s assert (isequal (V, diag(sym([1 1 1 1 1])))) 221s ***** test 221s % alg/geom mult, eigenvects 221s e = sym([5 5 5 6]); 221s A = diag(e); 221s A(1,2) = 1; 221s [V, D] = eig(A); 221s assert (isequal (diag(D), e.')) 221s assert (sum(logical(V(1,:) ~= 0)) == 2) 221s assert (sum(logical(V(2,:) ~= 0)) == 0) 221s assert (sum(logical(V(3,:) ~= 0)) == 1) 221s assert (sum(logical(V(4,:) ~= 0)) == 1) 222s 6 tests, 6 passed, 0 known failure, 0 skipped 222s [inst/@sym/ismatrix.m] 222s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/ismatrix.m 222s ***** assert(ismatrix(sym('x'))) 222s ***** assert(ismatrix(sym([1 2 3]))) 222s ***** assert(ismatrix(sym([1; 2]))) 222s ***** assert(ismatrix(sym([1 2; 3 4]))) 222s ***** assert(ismatrix(sym([]))) 222s ***** assert(ismatrix(sym(ones(1,0)))) 222s ***** assert(ismatrix(sym(ones(0,3)))) 222s 7 tests, 7 passed, 0 known failure, 0 skipped 222s [inst/@sym/mtimes.m] 222s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/mtimes.m 222s ***** test 222s % scalar 222s syms x 222s assert (isa (x*2, 'sym')) 222s assert (isequal (2*sym(3), sym(6))) 222s assert (isequal (sym(2)*3, sym(6))) 222s ***** test 222s % matrix-scalar 222s D = [0 1; 2 3]; 222s A = sym(D); 222s assert (isa (2*A, 'sym')) 222s assert (isequal ( 2*A , 2*D )) 222s assert (isequal ( A*2 , 2*D )) 222s ***** test 222s % matrix-matrix 222s D = [0 1; 2 3]; 222s A = sym(D); 222s assert (isa (A*A, 'sym')) 222s assert (isequal ( A*A , D*D )) 222s 3 tests, 3 passed, 0 known failure, 0 skipped 222s [inst/@sym/double.m] 222s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/double.m 222s ***** test 222s % numeric scalar 222s a = double(sym(10)); 222s assert (a == 10) 222s assert (isa (a, 'double')) 222s ***** test 222s % numeric vectors 222s a = double(sym([10 12])); 222s assert (isequal (a, [10 12])) 222s assert (isa (a, 'double')) 222s ***** test 222s % complex 222s a = 3 + 4i; 222s b = sym(a); 222s assert (isequal (double (b), a)) 222s ***** xtest 222s % unexpected, precisely same floating point 222s a = 3 + 4i; 222s b = sym(a); 222s assert (isequal (double (b/pi), a/pi)) 222s ***** test 222s % floating point 222s x = sqrt(sym(2)); 222s assert( abs(double(x) - sqrt(2)) < 2*eps) 222s x = sym(pi); 222s assert( abs(double(x) - pi) < 2*eps) 222s ***** test 222s oo = sym(inf); 222s assert( double(oo) == inf ) 222s assert( double(-oo) == -inf ) 222s assert( isnan(double(0*oo)) ) 222s ***** test 222s zoo = sym('zoo'); 222s assert (double(zoo) == complex(inf, inf)) 222s ***** test 222s zoo = sym('zoo'); 222s assert (double(-zoo) == double(zoo) ) 222s assert( isnan(double(0*zoo)) ) 222s ***** test 222s % nan 222s snan = sym(nan); 222s assert( isnan(double(snan))) 222s ***** test 222s % don't want NaN+NaNi 222s snan = sym(nan); 222s assert (isreal (double (snan))) 222s ***** test 222s % arrays 222s a = [1 2; 3 4]; 222s assert( isequal( double(sym(a)), a )) 222s assert( isequal( double(sym(a)), a )) 222s % should fail with error for non-double 223s ***** error syms x; double(x) 223s ***** error syms x; double([1 2 x]) 223s 13 tests, 13 passed, 0 known failure, 0 skipped 223s [inst/@sym/lgamma.m] 223s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/lgamma.m 223s ***** test 223s % tested by gammaln 223s assert (isequal (lgamma (sym ('x')), gammaln (sym ('x')))) 223s 1 test, 1 passed, 0 known failure, 0 skipped 223s [inst/@sym/invhilb.m] 223s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/invhilb.m 223s ***** test 223s A = invhilb(sym(3)); 223s B = sym([9 -36 30;-36 192 -180;30 -180 180]); 223s assert( isequal( A, B)) 223s 1 test, 1 passed, 0 known failure, 0 skipped 223s [inst/@sym/ctranspose.m] 223s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/ctranspose.m 223s ***** test 223s x = sym(1); 223s assert (isequal (x', x)) 223s ***** assert (isempty (sym([])')) 223s ***** test 223s % conjugate does nothing to real x 223s syms x real 223s assert (isequal (x', x)) 223s ***** test 223s % complex 223s syms x 223s assert (isequal (x', conj(x))) 223s ***** test 223s % complex array 223s syms x 223s A = [x 2*x]; 223s B = [conj(x); 2*conj(x)]; 223s assert(isequal(A', B)) 223s ***** test 223s A = [1 2; 3 4]; 223s assert(isequal( sym(A)' , sym(A') )) 223s ***** test 223s A = [1 2] + 1i; 223s assert(isequal( sym(A)' , sym(A') )) 224s ***** test 224s % true/false 224s t = sym(true); 224s f = sym(false); 224s assert (isequal ( t', t)) 224s assert (isequal ( f', f)) 224s ***** test 224s % more true/false 224s syms x 224s A = [x true 1i]; 224s B = [conj(x); true; -sym(1i)]; 224s assert (isequal ( A', B)) 224s /usr/lib/python3/dist-packages/sympy/matrices/common.py:1989: SymPyDeprecationWarning: 224s 224s non-Expr objects in a Matrix is deprecated. Matrix represents 224s a mathematical matrix. To represent a container of non-numeric 224s entities, Use a list of lists, TableForm, NumPy array, or some 224s other data structure instead. 224s 224s See https://docs.sympy.org/latest/explanation/active-deprecations.html#deprecated-non-expr-in-matrix 224s for details. 224s 224s This has been deprecated since SymPy version 1.9. It 224s will be removed in a future version of SymPy. 224s 224s return self._eval_applyfunc(f) 224s 9 tests, 9 passed, 0 known failure, 0 skipped 224s [inst/@sym/log10.m] 224s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/log10.m 224s ***** assert (isequal (log10 (sym (1000)), sym (3))) 224s ***** assert (isequal (log10 (sym ([10 100])), sym ([1 2]))) 224s ***** test 224s % round-trip 224s syms x 224s f = log10 (x); 224s h = function_handle (f); 224s A = h (1.1); 224s B = log10 (1.1); 224s assert (A, B, -eps) 224s 3 tests, 3 passed, 0 known failure, 0 skipped 224s [inst/@sym/ezmesh.m] 224s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/ezmesh.m 224s ***** error 224s syms u v t 224s ezmesh(u*v, 2*u*v, 3*v*t) 224s ***** error 224s syms u v t 224s ezmesh(u*v, 2*u*v, u*v*t) 224s 2 tests, 2 passed, 0 known failure, 0 skipped 224s [inst/@sym/kroneckerDelta.m] 224s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/kroneckerDelta.m 224s ***** error kroneckerDelta (sym(1), 2, 3) 224s ***** test 224s syms x 224s assert (isequal (kroneckerDelta (x, x), sym(1))) 224s ***** assert (isequal (kroneckerDelta ([sym(1) 2 3], [1 2 0]), sym([1 1 0]))) 224s ***** test 224s % round trip 224s syms x y 224s f = kroneckerDelta (x, y); 224s h = function_handle (f); 224s assert (h (1, 2), 0) 224s assert (h (2, 2), 1) 225s 4 tests, 4 passed, 0 known failure, 0 skipped 225s [inst/@sym/log.m] 225s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/log.m 225s ***** error log (sym(1), 2) 225s ***** assert (isequaln (log (sym(nan)), sym(nan))) 225s ***** shared x, d 225s d = 1; 225s x = sym('1'); 225s ***** test 225s f1 = log(x); 225s f2 = log(d); 225s assert( abs(double(f1) - f2) < 1e-15 ) 225s ***** test 225s D = [d d; d d]; 225s A = [x x; x x]; 225s f1 = log(A); 225s f2 = log(D); 225s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 225s ***** test 225s % round trip 225s y = sym('y'); 225s A = log (d); 225s f = log (y); 225s h = function_handle (f); 225s B = h (d); 225s assert (A, B, -eps) 225s 5 tests, 5 passed, 0 known failure, 0 skipped 225s [inst/@sym/ge.m] 225s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/ge.m 225s ***** test 225s % simple 225s x = sym(1); y = sym(1); e = x >= y; 225s assert (logical (e)) 225s x = sym(1); y = sym(2); e = x >= y; 225s assert (~logical(e)) 225s ***** test 225s % array -- array 225s syms x 225s a = sym([1 3 3 2*x]); 225s b = sym([2 x 3 10]); 225s e = a >= b; 225s assert (isa (e, 'sym')) 225s assert (~logical (e(1))) 225s assert (isa (e(2), 'sym')) 225s assert (isequal (e(2), 3 >= x)) 225s assert (logical (e(3))) 225s assert (isa (e(4), 'sym')) 225s assert (isequal (e(4), 2*x >= 10)) 225s 2 tests, 2 passed, 0 known failure, 0 skipped 225s [inst/@sym/latex.m] 225s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/latex.m 225s ***** test 225s syms x 225s y = sin(x); 225s assert (strcmp (latex (y), '\sin{\left(x \right)}')) 225s ***** assert (strcmp (latex (exp (sym('x'))), 'e^{x}')) 225s 2 tests, 2 passed, 0 known failure, 0 skipped 225s [inst/@sym/setxor.m] 225s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/setxor.m 225s ***** test 225s A = sym([1 2 3]); 225s B = sym([1 2 4]); 225s C = setxor(A, B); 225s D1 = sym([3 4]); 225s D2 = sym([4 3]); 225s assert (isequal (C, D1) || isequal (C, D2)) 225s ***** test 225s % one nonsym 225s A = sym([1 2 3]); 225s B = [1 2 4]; 225s C = setxor(A, B); 225s D1 = sym([3 4]); 225s D2 = sym([4 3]); 225s assert (isequal (C, D1) || isequal (C, D2)) 226s ***** test 226s % empty 226s A = sym([1 2 3]); 226s C = setxor(A, A); 226s assert (isempty (C)) 226s ***** test 226s % empty input 226s A = sym([1 2]); 226s C = setxor(A, []); 226s assert (isequal (C, A) || isequal (C, sym([2 1]))) 226s ***** test 226s % scalar 226s syms x 226s assert (isequal (setxor([x 1], x), sym(1))) 226s assert (isempty (setxor(x, x))) 226s ***** test 226s A = interval(sym(1), 3); 226s B = interval(sym(2), 5); 226s C = setxor(A, B); 226s D = union (interval (sym(1), 2, false, true), interval (sym(3), 5, true, false)); 226s assert( isequal( C, D)) 226s 6 tests, 6 passed, 0 known failure, 0 skipped 226s [inst/@sym/size.m] 226s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/size.m 226s ***** test 226s a = sym([1 2 3]); 226s [n,m] = size(a); 226s assert (n == 1 && m == 3) 226s ***** test 226s a = sym([1 2 3]); 226s n = size(a); 226s assert (isequal (n, [1 3])) 226s ***** test 226s %% size, numel, length 226s a = sym([1 2 3; 4 5 6]); 226s assert (isa (size(a), 'double')) 226s assert (isa (numel(a), 'double')) 226s assert (isa (length(a), 'double')) 226s assert (isequal (size(a), [2 3])) 226s assert (length(a) == 3) 226s assert (numel(a) == 6) 226s a = sym([1; 2; 3]); 226s assert (isequal (size(a), [3 1])) 226s assert (length(a) == 3) 226s assert (numel(a) == 3) 226s ***** test 226s %% size by dim 226s a = sym([1 2 3; 4 5 6]); 226s n = size(a, 1); 226s assert (n == 2) 226s m = size(a, 2); 226s assert (m == 3) 226s a = sym([1 2 3]'); 226s n = size(a, 1); 226s assert (n == 3) 226s m = size(a, 2); 226s assert (m == 1) 226s ***** xtest 226s % symbolic-size matrices 226s syms n m integer 226s A = sym('A', [n m]); 226s d = size(A); 226s assert (~isa(d, 'sym')) 226s assert (isnumeric(d)) 226s assert (isequaln (d, [NaN NaN])) 226s !!!!! known failure 226s assert (isequaln (d, [NaN, NaN])) failed 226s ***** xtest 226s % half-symbolic-size matrices 226s % FIXME: will fail until size stop lying by saying 1x1 226s syms n integer 226s A = sym('A', [n 3]); 226s assert (isequaln (size(A), [NaN 3])) 226s A = sym('A', [4 n]); 226s assert (isequaln (size(A), [4 NaN])) 226s !!!!! known failure 226s assert (isequaln (size (A), [NaN, 3])) failed 226s ***** xtest 226s % half-symbolic-size empty matrices 226s % FIXME: will fail until size stop lying by saying 1x1 226s syms n integer 226s A = sym('A', [n 0]); 226s assert (isequaln (size(A), [NaN 0])) 226s !!!!! known failure 226s assert (isequaln (size (A), [NaN, 0])) failed 226s 7 tests, 4 passed, 3 known failures, 0 skipped 226s [inst/@sym/divisors.m] 226s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/divisors.m 226s ***** test 226s assert( isequal( divisors(sym(150)), divisors(sym(-150)) )) 227s 1 test, 1 passed, 0 known failure, 0 skipped 227s [inst/@sym/besselyn.m] 227s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/besselyn.m 227s ***** test 227s % roundtrip 227s syms x 227s A = double(besselyn(sym(2), sym(10))); 227s q = besselyn(sym(2), x); 227s h = function_handle(q); 227s B = h(10); 227s assert (abs (A - B) <= eps) 227s ***** error yn(sym('x')) 227s 2 tests, 2 passed, 0 known failure, 0 skipped 227s [inst/@sym/find.m] 227s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/find.m 227s ***** error find (sym (1), 2, 3, 4) 227s ***** error [x, y, z, w] = find (sym (1)) 227s ***** test 227s syms x y positive 227s assert (isequal (find ([0 x 0 y]), [2 4])) 227s assert (isequal (find ([0 x 0 y], 1), 2)) 227s assert (isequal (find ([0 x 0 y], 1, 'first'), 2)) 227s assert (isequal (find ([0 x 0 y], 1, 'last'), 4)) 227s assert (isequal (find ([0 x 0 y], 2, 'last'), [2 4])) 227s ***** test 227s % its enough that it could be non-zero, does not have to be 227s syms x y 227s assert (isequal (find ([0 x+y]), 2)) 227s ***** test 227s % false should not be found 227s syms x y 227s assert (isequal (find ([x==x x==y]), 1)) 227s assert (isequal (find ([x==y]), [])) 227s ***** test 227s % and/or should be treated as boolean 227s syms x y 227s assert (isequal (find ([or(x==y, x==2*y) x==y x==x]), 3)) 227s ***** test 227s % None 227s none = pycall_sympy__ ('return None'); 227s assert (isequal (find ([sym(0) none sym(1)]), 3)) 227s syms x y 227s assert (isequal (find ([x==y none x==x]), 3)) 227s ***** test 227s % two output 227s syms x y 227s A = [x 0 0; x+y 5 0]; 227s [i, j] = find (A); 227s assert (isequal (i, [1; 2; 2])) 227s assert (isequal (j, [1; 1; 2])) 227s ***** test 227s % three output 227s syms x y 227s A = [x 0 0; x+y 5 0]; 227s [i, j, v] = find (A); 227s assert (isequal (i, [1; 2; 2])) 227s assert (isequal (j, [1; 1; 2])) 227s assert (isequal (v, [x; x+y; sym(5)])) 228s 9 tests, 9 passed, 0 known failure, 0 skipped 228s [inst/@sym/unique.m] 228s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/unique.m 228s ***** test 228s A = sym([1 2 3 3 5 3 2 6 5]); 228s B = sym([1 2 3 5 6]); 228s assert (isequal (unique(A), B)) 228s ***** test 228s syms x y 228s A = [1 2 3 3 4 5 5 6 7 7 x x y y]; 228s B = [1 2 3 4 5 6 7 x y]; 228s assert (isequal (unique(A), B)) 228s ***** test 228s syms x 228s assert (isequal (unique(x), x)) 228s 3 tests, 3 passed, 0 known failure, 0 skipped 228s [inst/@sym/frac.m] 228s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/frac.m 228s ***** test 228s f1 = frac(sym(11)/10); 228s f2 = sym(1)/10; 228s assert (isequal (f1, f2)) 228s ***** test 228s d = sym(-11)/10; 228s c = sym(9)/10; 228s assert (isequal (frac (d), c)) 228s ***** test 228s d = sym(-19)/10; 228s c = sym(1)/10; 228s assert (isequal (frac (d), c)) 228s 3 tests, 3 passed, 0 known failure, 0 skipped 228s [inst/@sym/chebyshevU.m] 228s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/chebyshevU.m 228s ***** error chebyshevU (sym(1)) 228s ***** error chebyshevU (sym(1), 2, 3) 228s ***** assert (isequaln (chebyshevU (2, sym(nan)), sym(nan))) 228s ***** shared x 228s syms x 228s ***** assert(isequal(chebyshevU(0, x), sym(1))) 228s ***** assert(isequal(chebyshevU(1, x), 2*x)) 228s ***** assert(isequal(chebyshevU(2, x), 4*x*x - 1)) 229s ***** assert(isequal(chebyshevU([0 1 2], x), [sym(1) 2*x (4*x*x-1)])) 229s ***** test 229s % round trip 229s syms n z 229s f = chebyshevU (n, z); 229s h = function_handle (f, 'vars', [n z]); 229s A = h (1.1, 2.2); 229s B = chebyshevU (1.1, 2.2); 229s assert (A, B) 229s 8 tests, 8 passed, 0 known failure, 0 skipped 229s [inst/@sym/isrow.m] 229s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/isrow.m 229s ***** assert (isrow (sym ([1]))) 229s ***** assert (isrow (sym ([1 2 3]))) 229s ***** assert (~isrow (sym ([]))) 229s ***** assert (~isrow (sym ([1 2 3]'))) 229s ***** assert (~isrow (sym ([1 2; 3 4]))) 229s 5 tests, 5 passed, 0 known failure, 0 skipped 229s [inst/@sym/adjoint.m] 229s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/adjoint.m 229s ***** test 229s syms x 229s A = [x x^2; x^3 x^4]; 229s B = [x^4 -x^2; -x^3 x]; 229s assert( isequal( adjoint(A), B )) 229s ***** test syms x 229s assert( isequal( adjoint(x), 1)) 229s 2 tests, 2 passed, 0 known failure, 0 skipped 229s [inst/@sym/hypergeom.m] 229s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/hypergeom.m 229s ***** assert (isequal (double (hypergeom ([1, 2], [2, 3], sym(0))), 1)) 229s ***** test 229s % matrix input 229s syms z 229s a = sym([1 2]); 229s b = sym([3 4]); 229s A = hypergeom (a, b, [0 sym(1); 2 z]); 229s B = [hypergeom(a,b,0) hypergeom(a,b,1); hypergeom(a,b,2) hypergeom(a,b,z)]; 229s assert (isequal (A, B)) 229s ***** test 229s % scalars for a and/or b 229s syms z 229s assert (isequal (hypergeom(1, 2, z), hypergeom({sym(1)}, {sym(2)}, z))) 229s assert (isequal (hypergeom([1 2], 3, z), hypergeom([1 2], {sym(3)}, z))) 229s assert (isequal (hypergeom(1, [2 3], z), hypergeom({sym(1)}, [2 3], z))) 230s 3 tests, 3 passed, 0 known failure, 0 skipped 230s [inst/@sym/ipermute.m] 230s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/ipermute.m 230s ***** error permute (sym(1)) 230s ***** error permute (sym(1), 2, 3) 230s ***** test 230s syms x 230s A = [1 x]; 230s perm = [2 1]; 230s B = permute(A, perm); 230s C = ipermute(B, perm); 230s assert (isequal(C, A)) 230s 3 tests, 3 passed, 0 known failure, 0 skipped 230s [inst/@sym/colon.m] 230s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/colon.m 230s ***** test 230s a = sym(1):5; 230s b = sym(1:5); 230s assert(isequal(a,b)); 230s a = 1:sym(5); 230s b = sym(1:5); 230s assert(isequal(a,b)); 230s ***** test 230s a = 2:sym(2):8; 230s b = sym(2:2:8); 230s assert(isequal(a,b)); 230s ***** test 230s a = sym(10):-2:-4; 230s b = sym(10:-2:-4); 230s assert(isequal(a,b)); 230s ***** test 230s % symbolic intervals 230s p = sym(pi); 230s L = 0:p/4:p; 230s assert(isa(L,'sym')); 230s assert(isequal(L, [0 p/4 p/2 3*p/4 p])); 231s ***** test 231s % mixed symbolic and double intervals 231s p = sym(pi); 231s s = warning ('off', 'OctSymPy:sym:rationalapprox'); 231s L = 0.1:(sym(pi)/3):2.3; 231s warning(s) 231s assert(isa(L,'sym')); 231s t = sym(1)/10; 231s assert(isequal(L, [t p/3+t 2*p/3+t])); 231s ***** error syms x; a = 0:x; 231s ***** error syms x; a = 1:x; 231s 7 tests, 7 passed, 0 known failure, 0 skipped 231s [inst/@sym/isequal.m] 231s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/isequal.m 231s ***** test 231s a = sym([1 2]); 231s b = a; 231s assert (isequal (a, b)) 231s b(1) = 42; 231s assert (~isequal (a, b)) 231s ***** test 231s a = sym([1 2; 3 4]); 231s b = a; 231s assert (isequal (a, b)) 231s b(1) = 42; 231s assert (~isequal (a, b)) 231s ***** test 231s a = sym([nan; 2]); 231s b = a; 231s assert (~isequal (a, b)) 231s ***** test 231s % proper nan treatment 231s a = sym([nan 2; 3 4]); 231s b = a; 231s assert (~isequal (a, b)) 231s ***** test 231s % more than two arrays 231s a = sym([1 2 3]); 231s b = a; 231s c = a; 231s assert (isequal (a, b, c)) 231s c(1) = 42; 231s assert (~isequal (a, b, c)) 231s 5 tests, 5 passed, 0 known failure, 0 skipped 231s [inst/@sym/max.m] 231s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/max.m 231s ***** test 231s % simple 231s assert (isequal (max([sym(10) sym(11)]), sym(11))) 231s ***** test 231s syms x y 231s assert (isequal (children (max (x, y)), [x y])) 231s 2 tests, 2 passed, 0 known failure, 0 skipped 231s [inst/@sym/harmonic.m] 231s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/harmonic.m 231s ***** error harmonic (sym(1), 2) 231s ***** xtest 231s assert (isequaln (harmonic (sym(nan)), sym(nan))) 231s !!!!! known failure 231s assert (isequaln (harmonic (sym (nan)), sym (nan))) failed 231s ***** assert (isequal (harmonic (sym(0)), sym(0))) 231s ***** assert (isinf (harmonic (sym(inf)))) 231s ***** assert (isequal (harmonic (sym([9 10])), [sym(7129)/2520 sym(7381)/2520])) 231s ***** test 231s % round trip 231s y = sym('y'); 231s A = harmonic (7); 231s f = harmonic (y); 231s h = function_handle (f); 231s B = h (7); 231s assert (A, B, -eps) 231s 6 tests, 5 passed, 1 known failure, 0 skipped 231s [inst/@sym/ismember.m] 231s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/ismember.m 231s ***** assert (ismember (2, interval(sym(0),2))) 232s ***** assert (~ismember (3, interval(sym(0),2))) 232s ***** test 232s % something in a matrix 232s syms x 232s A = [1 x; sym(pi) 4]; 232s assert (ismember (sym(pi), A)) 232s assert (ismember (x, A)) 232s assert (~ismember (2, A)) 232s ***** test 232s % set 232s syms x 232s S = finiteset(2, sym(pi), x); 232s assert (ismember (x, S)) 232s ***** test 232s % set with positive symbol 232s syms p positive 232s S = finiteset(2, sym(pi), p); 232s assert (~ismember (-1, S)) 232s 5 tests, 5 passed, 0 known failure, 0 skipped 232s [inst/@sym/has.m] 232s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/has.m 232s ***** shared A, x, y 232s syms x y 232s A = [sym(pi) 2*sym(pi); x*y x+y]; 232s ***** assert (isequal (has(A, x), [false false; true true])); 232s ***** assert (isequal (has(A, x+y), [false false; false true])); 232s ***** assert (isequal (has(A, 2), [false true; false false])); 232s ***** assert (isequal (has(A, sym(pi)), [true true; false false])); 232s 4 tests, 4 passed, 0 known failure, 0 skipped 232s [inst/@sym/divergence.m] 232s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/divergence.m 232s ***** shared x,y,z 232s syms x y z 232s ***** test 232s % 1D 232s f = x^2; 232s assert (isequal (divergence(f), diff(f,x))) 232s assert (isequal (divergence(f,{x}), diff(f,x))) 232s assert (isequal (divergence(f,[x]), diff(f,x))) 232s assert (isequal (divergence(f,x), diff(f,x))) 232s ***** test 232s % const 232s f = [sym(1); 2; exp(sym(3))]; 232s assert (isequal (divergence(f,{x,y,z}), 0)) 232s f = [sym(1); 2; exp(sym('c'))]; 232s assert (isequal (divergence(f,{x,y,z}), 0)) 232s ***** test 232s % double const 232s f = [1 2]; 232s g = sym(0); 232s assert (isequal (divergence(f, [x y]), g)) 232s % should fail, calls @double: divergence(f, {x y}), g)) 233s ***** test 233s % 1D fcn in 2d/3d 233s f = [x y z]; 233s assert (isequal (divergence(f), 3)) 233s assert (isequal (divergence(f, {x,y,z}), 3)) 233s assert (isequal (divergence(f, [x,y,z]), 3)) 233s ***** test 233s % 2d fcn in 2d/3d 233s f = sin(exp(x)*y+sinh(z)); 233s g2 = [diff(f,x); diff(f,y)]; 233s l2 = diff(g2(1),x) + diff(g2(2),y); 233s g3 = [diff(f,x); diff(f,y); diff(f,z)]; 233s l3 = diff(g3(1),x) + diff(g3(2),y) + diff(g3(3),z); 233s assert (isequal (divergence(g2, {x,y}), l2)) 233s assert (isequal (divergence(g3, {x,y,z}), l3)) 234s ***** error divergence ([1 2], [sym('x')]) 234s ***** error divergence ([1 2], sym('x'), 42) 234s 7 tests, 7 passed, 0 known failure, 0 skipped 234s [inst/@sym/laplacian.m] 234s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/laplacian.m 234s ***** shared x,y,z 234s syms x y z 234s ***** test 234s % 1D 234s f = x^2; 234s g = diff(f,x,x); 234s assert (isequal (laplacian(f), g)) 234s assert (isequal (laplacian(f,{x}), g)) 234s assert (isequal (laplacian(f,[x]), g)) 234s assert (isequal (laplacian(f,x), g)) 234s ***** test 234s % const 234s f = sym(1); 234s g = sym(0); 234s assert (isequal (laplacian(f), g)) 234s assert (isequal (laplacian(f,x), g)) 234s f = sym('c'); 234s assert (isequal (laplacian(f,x), g)) 234s ***** test 234s % double const 234s f = 1; 234s g = sym(0); 234s assert (isequal (laplacian(f,x), g)) 234s ***** test 234s % 1D fcn in 2d/3d 234s f = sin(2*y); 234s g = -4*f; 234s assert (isequal (laplacian(f), g)) 234s assert (isequal (laplacian(f, {x,y}), g)) 234s assert (isequal (laplacian(f, {x,y,z}), g)) 234s ***** test 234s % 2d fcn in 2d/3d 234s f = sin(exp(x)*y); 234s g = diff(f,x,x) + diff(f,y,y); 234s assert (isequal (laplacian(f), g)) 234s assert (isequal (laplacian(f, {x,y}), g)) 234s ***** test 234s % 2d fcn in 2d/3d 234s f = sin(exp(x)*y+sinh(z)); 234s gr2 = gradient(f, {x,y}); 234s divgr2 = divergence(gr2, {x,y}); 234s l2 = laplacian(f,{x,y}); 234s gr3 = gradient(f, {x,y,z}); 234s divgr3 = divergence(gr3, {x,y,z}); 234s l3 = laplacian(f,{x,y,z}); 234s assert (isAlways (l2 == divgr2)) 234s assert (isAlways (l3 == divgr3)) 239s ***** error laplacian(sym('x'), sym('x'), 42) 239s ***** error laplacian([sym('x'), sym('x')]) 239s 8 tests, 8 passed, 0 known failure, 0 skipped 239s [inst/@sym/dsolve.m] 239s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/dsolve.m 239s ***** error dsolve (1, sym('x')) 239s ***** test 239s syms y(x) 239s de = diff(y, 2) - 4*y == 0; 239s f = dsolve(de); 239s syms C1 C2 239s g1 = C1*exp(-2*x) + C2*exp(2*x); 239s g2 = C2*exp(-2*x) + C1*exp(2*x); 239s assert (isequal (f, g1) || isequal (f, g2)) 240s ***** test 240s % Not enough initial conditions 240s syms y(x) C1 240s de = diff(y, 2) + 4*y == 0; 240s g = 3*cos(2*x) + C1*sin(2*x); 240s try 240s f = dsolve(de, y(0) == 3); 240s waserr = false; 240s catch 240s waserr = true; 240s expectederr = regexp (lasterr (), 'Perhaps.*under-specified'); 240s f = 42; 240s end 240s assert ((waserr && expectederr) || isequal (f, g)) 240s ***** test 240s % Solution in implicit form 240s syms y(x) C1 240s de = (2*x*y(x) - exp(-2*y(x)))*diff(y(x), x) + y(x) == 0; 240s sol = dsolve (de); 240s eqn = x*exp(2*y(x)) - log(y(x)) == C1; 240s % could differ by signs 240s sol = lhs (sol) - rhs (sol); 240s eqn = lhs (eqn) - rhs (eqn); 240s sol2 = subs (sol, C1, -C1); 240s assert (isequal (sol, eqn) || isequal (sol2, eqn)) 242s ***** test 242s % Compute solution and classification 242s syms y(x) C1 242s de = (2*x*y(x) - exp(-2*y(x)))*diff(y(x), x) + y(x) == 0; 242s [sol, classy] = dsolve (de); 242s assert (any (strcmp (classy, '1st_exact'))) 245s ***** test 245s % initial conditions (first order ode) 245s syms y(x) 245s de = diff(y, x) + 4*y == 0; 245s f = dsolve(de, y(0) == 3); 245s g = 3*exp(-4*x); 245s assert (isequal (f, g)) 246s ***** test 246s % initial conditions (second order ode) 246s syms y(x) 246s de = diff(y, 2) + 4*y == 0; 246s f = dsolve(de, y(0) == 3, subs(diff(y,x),x,0)==0); 246s g = 3*cos(2*x); 246s assert (isequal (f, g)) 246s ***** test 246s % Dirichlet boundary conditions (second order ode) 246s syms y(x) 246s de = diff(y, 2) + 4*y == 0; 246s f = dsolve(de, y(0) == 2, y(1) == 0); 246s g = -2*sin(2*x)/tan(sym('2'))+2*cos(2*x); 246s assert (isequal (simplify (f - g), 0)) 246s ***** test 246s % Neumann boundary conditions (second order ode) 246s syms y(x) 246s de = diff(y, 2) + 4*y == 0; 246s f = dsolve(de, subs(diff(y,x),x,0)==1, subs(diff(y,x),x,1)==0); 246s g = sin(2*x)/2+cos(2*x)/(2*tan(sym('2'))); 246s assert (isequal (simplify (f - g), 0)) 247s ***** test 247s % Dirichlet-Neumann boundary conditions (second order ode) 247s syms y(x) 247s de = diff(y, 2) + 4*y == 0; 247s f = dsolve(de, y(0) == 3, subs(diff(y,x),x,1)==0); 247s g = 3*sin(2*x)*tan(sym('2'))+3*cos(2*x); 247s assert (isequal (simplify (f - g), 0)) 247s ***** test 247s % System of ODEs gives struct, Issue #1003. 247s syms x(t) y(t) 247s ode1 = diff(x(t),t) == 2*y(t); 247s ode2 = diff(y(t),t) == 2*x(t); 247s soln = dsolve([ode1, ode2]); 247s assert (isstruct (soln)) 247s assert (numfields (soln) == 2) 247s assert (isequal (sort (fieldnames (soln)), {'x'; 'y'})) 248s ***** test 248s % System of ODEs 248s syms x(t) y(t) C1 C2 248s ode1 = diff(x(t),t) == 2*y(t); 248s ode2 = diff(y(t),t) == 2*x(t); 248s soln = dsolve([ode1, ode2]); 248s soln = [soln.x, soln.y]; 248s g1 = [C1*exp(-2*t) + C2*exp(2*t), -C1*exp(-2*t) + C2*exp(2*t)]; 248s g2 = [C1*exp(2*t) + C2*exp(-2*t), C1*exp(2*t) - C2*exp(-2*t)]; 248s g3 = [-C1*exp(-2*t) + C2*exp(2*t), C1*exp(-2*t) + C2*exp(2*t)]; 248s g4 = [C1*exp(2*t) - C2*exp(-2*t), C1*exp(2*t) + C2*exp(-2*t)]; 248s % old SymPy <= 1.5.1 had some extra twos 248s g5 = [2*C1*exp(-2*t) + 2*C2*exp(2*t), -2*C1*exp(-2*t) + 2*C2*exp(2*t)]; 248s g6 = [2*C1*exp(2*t) + 2*C2*exp(-2*t), 2*C1*exp(2*t) - 2*C2*exp(-2*t)]; 248s assert (isequal (soln, g1) || isequal (soln, g2) || ... 248s isequal (soln, g3) || isequal (soln, g4) || ... 248s isequal (soln, g5) || isequal (soln, g6)) 249s ***** test 249s % System of ODEs (initial-value problem) 249s syms x(t) y(t) 249s ode_1=diff(x(t),t) == 2*y(t); 249s ode_2=diff(y(t),t) == 2*x(t); 249s sol_ivp=dsolve([ode_1,ode_2],x(0)==1,y(0)==0); 249s g_ivp=[exp(-2*t)/2+exp(2*t)/2,-exp(-2*t)/2+exp(2*t)/2]; 249s assert (isequal ([sol_ivp.x, sol_ivp.y], g_ivp)) 250s ***** test 250s syms y(x) 250s de = diff(y, 2) + 4*y == 0; 250s f = dsolve(de, y(0) == 0, y(sym(pi)/4) == 1); 250s g = sin(2*x); 250s assert (isequal (f, g)) 250s ***** test 250s % Nonlinear example 250s syms y(x) C1 250s e = diff(y, x) == y^2; 250s g = -1 / (C1 + x); 250s soln = dsolve(e); 250s assert (isequal (soln, g)) 250s ***** test 250s % Nonlinear example with initial condition 250s syms y(x) 250s e = diff(y, x) == y^2; 250s g = -1 / (x - 1); 250s soln = dsolve(e, y(0) == 1); 250s assert (isequal (soln, g)) 250s ***** test 250s % forcing, Issue #183, broken in older sympy 250s if (pycall_sympy__ ('return Version(spver) >= Version("1.7.1")')) 250s syms x(t) y(t) 250s ode1 = diff(x) == x + sin(t) + 2; 250s ode2 = diff(y) == y - t - 3; 250s soln = dsolve([ode1 ode2], x(0) == 1, y(0) == 2); 250s X = soln.x; 250s Y = soln.y; 250s assert (isequal (diff(X) - (X + sin(t) + 2), 0)) 250s assert (isequal (diff(Y) - (Y - t - 3), 0)) 250s end 251s ***** test 251s syms f(x) a b 251s de = diff(f, x) == 4*f; 251s s = dsolve(de, f(a) == b); 251s assert (isequal (subs(s, x, a), b)) 252s ***** test 252s % array of ICs 252s syms x(t) y(t) 252s ode_1 = diff (x(t), t) == 2*y(t); 252s ode_2 = diff (y(t), t) == 2*x(t); 252s sol = dsolve([ode_1, ode_2], [x(0)==1 y(0)==0]); 252s g = [exp(-2*t)/2+exp(2*t)/2, -exp(-2*t)/2+exp(2*t)/2]; 252s assert (isequal ([sol.x, sol.y], g)) 252s ***** test 252s % cell-array of ICs or ODEs, but not both 252s % Note: to support both we'd need a wrapper outside of @sym 252s syms x(t) y(t) 252s ode_1 = diff (x(t), t) == 2*y(t); 252s ode_2 = diff (y(t), t) == 2*x(t); 252s sol = dsolve([ode_1, ode_2], {x(0)==1 y(0)==0}); 252s g = [exp(-2*t)/2+exp(2*t)/2, -exp(-2*t)/2+exp(2*t)/2]; 252s assert (isequal ([sol.x, sol.y], g)) 252s sol = dsolve({ode_1, ode_2}, [x(0)==1 y(0)==0]); 252s g = [exp(-2*t)/2+exp(2*t)/2, -exp(-2*t)/2+exp(2*t)/2]; 252s assert (isequal ([sol.x, sol.y], g)) 253s ***** test 253s % array of ICs, Issue #1040. 253s if (pycall_sympy__ ('return Version(spver) >= Version("1.7.1")')) 253s syms x(t) y(t) z(t) 253s syms x_0 y_0 z_0 253s diffEqns = [diff(x, t) == -x + 1, diff(y, t) == -y, diff(z, t) == -z]; 253s initCond = [x(0) == x_0, y(0) == y_0, z(0) == z_0]; 253s soln = dsolve (diffEqns, initCond); 253s soln = [soln.x, soln.y, soln.z]; 253s exact_soln = [(x_0 - 1)*exp(-t) + 1 y_0*exp(-t) z_0*exp(-t)]; 253s assert (isequal (soln, exact_soln)) 253s end 254s 21 tests, 21 passed, 0 known failure, 0 skipped 254s [inst/@sym/csch.m] 254s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/csch.m 254s ***** error csch (sym(1), 2) 254s ***** assert (isequaln (csch (sym(nan)), sym(nan))) 254s ***** shared x, d 254s d = 1; 254s x = sym('1'); 254s ***** test 254s f1 = csch(x); 254s f2 = csch(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 = csch(A); 254s f2 = csch(D); 254s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 254s ***** test 254s % round trip 254s y = sym('y'); 254s A = csch (d); 254s f = csch (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/heaviside.m] 254s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/heaviside.m 254s ***** error heaviside (sym(1), 2, 3) 254s ***** assert (isequal (heaviside (sym(1)), sym(1))) 254s ***** assert (isequal (heaviside (-sym(1)), sym(0))) 254s ***** assert (double (heaviside (1)), heaviside (1)) 254s ***** test 254s D = [1 -1; -10 20]; 254s A = sym(D); 254s assert (double (heaviside (A)), heaviside (D)) 254s ***** test 254s H0 = sym([1 -2 0; 3 0 pi]); 254s A = heaviside (sym(0), H0); 254s assert (isequal (A, H0)) 254s ***** test 254s A = heaviside ([-1 0 1], sym(1)/2); 254s assert (isequal (A, [0 sym(1)/2 1])) 255s ***** test 255s A = heaviside ([-1 0 1], sym(1)/2); 255s assert (isequal (A, [0 sym(1)/2 1])) 255s ***** assert (isequaln (heaviside (sym(nan)), sym(nan))) 255s ***** test 255s assert (isequaln (heaviside (sym(nan), sym(nan)), sym(nan))) 255s assert (isequaln (heaviside (0, sym(nan)), sym(nan))) 255s assert (isequaln (heaviside (2, sym(nan)), sym(1))) 255s assert (isequaln (heaviside (-2, sym(nan)), sym(0))) 255s ***** test 255s % round trip 255s syms x 255s A = heaviside (1); 255s f = heaviside (x); 255s h = function_handle (f); 255s B = h (1); 255s assert (A, B, -eps) 255s ***** test 255s % round trip 255s syms x h0 255s f = heaviside (x, h0); 255s h = function_handle (f, 'vars', {x h0}); 255s A = heaviside (1, 1/2); 255s B = h (1, 1/2); 255s assert (A, B, -eps) 255s A = heaviside (0, 1/2); 255s B = h (0, 1/2); 255s assert (A, B, -eps) 255s 12 tests, 12 passed, 0 known failure, 0 skipped 255s [inst/@sym/signIm.m] 255s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/signIm.m 255s ***** assert (isequal (signIm (sym(1)), sym(0))) 255s ***** assert (isequal (signIm (sym(1) + 2i), sym(1))) 255s ***** assert (isequal (signIm (sym(1) - 2i), sym(-1))) 255s ***** test 255s % intermediate A looks bit weird, but it works 255s syms z 255s A = signIm (z); 255s assert (isequal (subs(A, z, 3+sym(4i)), sym(1))) 255s assert (isequal (subs(A, z, 3-sym(4i)), sym(-1))) 255s ***** test 255s % really a @sym/sign test, but that one is autogen 255s z = 3 + sym(4i); 255s A = sign (z); 255s B = z / abs(z); 255s assert (double (A), double (B), eps) 256s 5 tests, 5 passed, 0 known failure, 0 skipped 256s [inst/@sym/symsum.m] 256s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/symsum.m 256s ***** error symsum (sym(1), 2, 3, 4, 5) 256s ***** test 256s % finite sums 256s syms n 256s assert (isequal (symsum(n,n,1,10), 55)) 256s assert(isa(symsum(n,n,1,10), 'sym')) 256s assert (isequal (symsum(n,n,sym(1),sym(10)), 55)) 256s assert (isequal (symsum(n,n,sym(1),sym(10)), 55)) 256s assert (isequal (symsum(1/n,n,1,10), sym(7381)/2520)) 256s ***** test 256s % negative limits 256s syms n 256s assert (isequal (symsum(n,n,-3,3), sym(0))) 256s assert (isequal (symsum(n,n,-3,0), sym(-6))) 256s assert (isequal (symsum(n,n,-3,-1), sym(-6))) 256s ***** test 256s % one input 256s syms n 256s f = symsum (n); 256s g = n^2/2 - n/2; 256s assert (isequal (f, g)) 256s f = symsum (2*n); 256s g = n^2 - n; 256s assert (isequal (f, g)) 256s ***** test 256s % constant input 256s f = symsum (sym(2)); 256s syms x 256s g = 2*x; 256s assert (isequal (f, g)) 256s ***** test 256s % two inputs 256s syms n 256s f = symsum (2*n, n); 256s g = n^2 - n; 256s assert (isequal (f, g)) 256s ***** test 256s % two inputs, second is range 256s syms n 256s f = symsum (n, [1 6]); 256s g = 21; 256s assert (isequal (f, g)) 256s f = symsum (n, [sym(1) 6]); 256s g = 21; 256s assert (isequal (f, g)) 256s f = symsum (2*n, [1 6]); 256s g = 2*21; 256s assert (isequal (f, g)) 257s ***** test 257s % three inputs, last is range 257s syms n 257s f = symsum (2*n, n, [1 4]); 257s g = sym(20); 257s assert (isequal (f, g)) 257s f = symsum (2*n, n, [sym(1) 4]); 257s g = sym(20); 257s assert (isequal (f, g)) 257s f = symsum (2, n, [sym(1) 4]); 257s g = sym(8); 257s assert (isequal (f, g)) 257s ***** test 257s % three inputs, no range 257s syms n 257s f = symsum (2*n, 1, 4); 257s g = sym(20); 257s assert (isequal (f, g)) 257s f = symsum (5, sym(1), 3); 257s g = sym(15); 257s assert (isequal (f, g)) 257s ***** test 257s % ok to use double's for arguments in infinite series 257s syms n oo 257s assert(isequal(symsum(1/n^2,n,1,oo), sym(pi)^2/6)) 257s assert(isequal(symsum(1/n^2,n,1,inf), sym(pi)^2/6)) 257s ***** test 257s % should be oo because 1 is real but seems to be 257s % zoo/oo depending on sympy version 257s syms n oo 257s zoo = sym('zoo'); 257s assert (isequal (symsum(1/n,n,1,oo), oo) || ... 257s isequal (symsum(1/n,n,1,oo), zoo)) 257s 11 tests, 11 passed, 0 known failure, 0 skipped 257s [inst/@sym/rref.m] 257s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/rref.m 257s ***** test 257s A = sym([1 2; 3 4]); 257s [r, k] = rref(A); 257s assert (isequal (r, eye(2))) 257s assert (isequal (k, [1 2])) 258s ***** assert (isequal (rref(sym([2 1])), [1 sym(1)/2])) 258s ***** assert (isequal (rref(sym([1 2; 2 4])), [1 2; 0 0])) 258s ***** assert (isequal (rref(sym([0 0; 2 4])), [1 2; 0 0])) 258s ***** test 258s A = sym([1 2 3; 2 3 4]); 258s [r, k] = rref(A); 258s assert (isequal (r, [1 0 -1; 0 1 2])) 258s assert (isequal (k, [1 2])); 258s 5 tests, 5 passed, 0 known failure, 0 skipped 258s [inst/@sym/cbrt.m] 258s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/cbrt.m 258s ***** error cbrt (sym(1), 2) 258s ***** assert (isequaln (cbrt (sym(nan)), sym(nan))) 258s ***** shared x, d 258s d = 2; 258s x = sym('2'); 258s ***** test 258s f1 = cbrt(x); 258s f2 = 1.2599210498948731647; 258s assert( abs(double(f1) - f2) < 1e-15 ) 258s ***** test 258s D = [d d; d d]; 258s A = [x x; x x]; 258s f1 = cbrt(A); 258s f2 = 1.2599210498948731647; 258s f2 = [f2 f2; f2 f2]; 258s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 258s ***** test 258s % round trip 258s y = sym('y'); 258s if (exist ('OCTAVE_VERSION', 'builtin')) 258s A = cbrt (d); 258s else 258s % Issue #742 258s A = d^(1/3); 258s end 258s f = cbrt (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/asin.m] 258s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/asin.m 258s ***** error asin (sym(1), 2) 258s ***** assert (isequaln (asin (sym(nan)), sym(nan))) 258s ***** shared x, d 258s d = 1; 258s x = sym('1'); 258s ***** test 258s f1 = asin(x); 258s f2 = asin(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 = asin(A); 258s f2 = asin(D); 258s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 258s ***** test 258s % round trip 258s y = sym('y'); 258s A = asin (d); 258s f = asin (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/ilaplace.m] 258s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/ilaplace.m 258s ***** error ilaplace (sym(1), 2, 3, 4) 259s ***** test 259s % basic SMT compact: no heaviside 259s syms s 259s syms t positive 259s assert (isequal (ilaplace(1/s^2), t)) 259s assert (isequal (ilaplace(s/(s^2+9)), cos(3*t))) 259s assert (isequal (ilaplace(6/s^4), t^3)) 259s ***** test 259s % more SMT compact 259s syms r 259s syms u positive 259s assert (isequal (ilaplace(1/r^2, u), u)) 259s assert (isequal (ilaplace(1/r^2, r, u), u)) 259s ***** test 259s % if t specified and not positive, we expect heaviside 259s clear s t 259s syms s t 259s assert (isequal (ilaplace(1/s^2, s, t), t*heaviside(t))) 259s assert (isequal (ilaplace(s/(s^2+9), t), cos(3*t)*heaviside(t))) 259s assert (isequal (ilaplace(6/s^4, t), t^3*heaviside(t))) 260s ***** test 260s % Heaviside test 260s syms s 260s t=sym('t', 'positive'); 260s assert(logical( ilaplace(exp(-5*s)/s^2,t) == (t-5)*heaviside(t-5) )) 260s ***** test 260s % Delta dirac test 260s syms s 260s t = sym('t'); 260s assert (isequal (ilaplace (sym('2'), t), 2*dirac(t))) 260s ***** test 260s % Delta dirac test 2 260s syms s t 260s calc = ilaplace (5*exp (-3*s) - 2*exp (-2*s)/s, s, t); 260s want = 5*dirac (t-3) - 2*heaviside (t-2); 260s assert (isequal (calc, want)) 260s ***** test 260s % Delta dirac test 3, coefficient 260s syms s t 260s syms c positive 260s calc = ilaplace (2*exp (-c*s), s, t); 260s want = 2*dirac (t - c); 260s assert (isAlways (calc == want)) 260s ***** error ilaplace (sym('s', 'positive')*sym('s')) 260s ***** test 260s % SMT compact, prefers s over symvar 260s syms s x 260s syms t positive 260s assert (isequal (ilaplace(x/s^4), x*t^3/6)) 260s t = sym('t'); 260s assert (isequal (ilaplace(x/s^4, t), x*t^3/6*heaviside(t))) 261s ***** test 261s % pick s even it has assumptions 261s syms s real 261s syms x t 261s assert (isequal (ilaplace (x/s^2, t), x*t*heaviside(t))) 261s 11 tests, 11 passed, 0 known failure, 0 skipped 261s [inst/@sym/cosd.m] 261s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/cosd.m 261s ***** error cosd (sym(1), 2) 261s ***** assert (isequaln (cosd (sym(nan)), sym(nan))) 261s ***** test 261s f1 = cosd (sym(1)); 261s f2 = cosd (1); 261s assert (double (f1), f2, -eps) 261s ***** test 261s D = [10 30; 110 -45]; 261s A = sym(D); 261s f1 = cosd (A); 261s f2 = cosd (D); 261s assert (double (f1), f2, -4*eps) 261s 4 tests, 4 passed, 0 known failure, 0 skipped 261s [inst/@sym/erfcinv.m] 261s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/erfcinv.m 261s ***** error erfcinv (sym(1), 2) 261s ***** assert (isequaln (erfcinv (sym(nan)), sym(nan))) 261s ***** shared x, d 261s d = 1; 261s x = sym('1'); 261s ***** test 261s f1 = erfcinv(x); 261s f2 = erfcinv(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 = erfcinv(A); 261s f2 = erfcinv(D); 261s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 261s ***** test 261s % round trip 261s y = sym('y'); 261s A = erfcinv (d); 261s f = erfcinv (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/factor.m] 261s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/factor.m 261s ***** test 261s % n = 152862; 261s % [p,m] = factor(n); % only works on Octave, no Matlab as of 2014a 261s n = 330; % so we use an output without repeated factors 261s p = factor(n); m = ones(size(p)); 261s [ps,ms] = factor(sym(n)); 261s assert (isequal (p, ps)) 261s assert (isequal (m, ms)) 261s ***** test 261s n = sym(2)^4*13; 261s [p,m] = factor(n); 261s assert (isequal (p, [2 13])) 261s assert (isequal (m, [4 1])) 261s ***** test syms x 261s assert( logical (factor(x^2 + 6*x + 5) == (x+5)*(x+1))) 262s ***** test 262s syms x 262s f = [ x^4/2 + 5*x^3/12 - x^2/3 x^2 - 1 10]; 262s g = [ x^2*(2*x - 1)*(3*x + 4)/12 (x+1)*(x-1) 10]; 262s assert (isequal (factor(f), g)) 262s ***** test 262s % "fragile form" works 262s A = factor(sym(124)); 262s B = strtrim(disp(A, 'flat')); 262s assert (strcmp (B, '2**2*31**1')) 262s ***** error [p, m] = factor(sym('x')); 262s ***** error [p, m] = factor(sym(42), sym('x')); 262s ***** test 262s % if polynomial happens to be a constant, don't attempt integer 262s % factorization if a variable is specified 262s f = sym(42); 262s q = factor(f, sym('x')); 262s assert (isequal (f, q)); 262s 8 tests, 8 passed, 0 known failure, 0 skipped 262s [inst/@sym/gamma.m] 262s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/gamma.m 262s ***** error gamma (sym(1), 2) 262s ***** assert (isequaln (gamma (sym(nan)), sym(nan))) 263s ***** shared x, d 263s d = 1; 263s x = sym('1'); 263s ***** test 263s f1 = gamma(x); 263s f2 = gamma(d); 263s assert( abs(double(f1) - f2) < 1e-15 ) 263s ***** test 263s D = [d d; d d]; 263s A = [x x; x x]; 263s f1 = gamma(A); 263s f2 = gamma(D); 263s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 263s ***** test 263s % round trip 263s y = sym('y'); 263s A = gamma (d); 263s f = gamma (y); 263s h = function_handle (f); 263s B = h (d); 263s assert (A, B, -eps) 263s 5 tests, 5 passed, 0 known failure, 0 skipped 263s [inst/@sym/abs.m] 263s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/abs.m 263s ***** error abs (sym(1), 2) 263s ***** assert (isequaln (abs (sym(nan)), sym(nan))) 263s ***** shared x, d 263s d = -1; 263s x = sym('-1'); 263s ***** test 263s f1 = abs(x); 263s f2 = abs(d); 263s assert( abs(double(f1) - f2) < 1e-15 ) 263s ***** test 263s D = [d d; d d]; 263s A = [x x; x x]; 263s f1 = abs(A); 263s f2 = abs(D); 263s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 263s ***** test 263s % round trip 263s y = sym('y'); 263s A = abs (d); 263s f = abs (y); 263s h = function_handle (f); 263s B = h (d); 263s assert (A, B, -eps) 263s 5 tests, 5 passed, 0 known failure, 0 skipped 263s [inst/@sym/norm.m] 263s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/norm.m 263s ***** assert (isequal (norm(sym(-6)), 6)) 263s ***** test 263s % 2-norm default 263s A = [1 2; 3 4]; 263s n1 = norm (sym (A)); 263s assert (isequal (n1, sqrt (sqrt (sym(221)) + 15))) 263s assert (norm (A), double (n1), -eps) 263s ***** test 263s syms x y real 263s assert (isequal (norm([x 1; 3 y], 'fro'), sqrt(x^2 + y^2 + 10))) 263s ***** test 263s syms x real 263s assert (isequal (norm([x 1], 2), sqrt(x^2 + 1))) 263s ***** test 263s % test sym vs double ord 263s syms x 263s assert (isequal (norm([x 2 1], 1), abs(x) + 3)) 263s assert (isequal (norm([x 2 1], sym(1)), abs(x) + 3)) 263s assert (isequal (norm([sym(-3) 2 1], inf), sym(3))) 263s assert (isequal (norm([sym(-3) 2 1], sym(inf)), sym(3))) 263s 5 tests, 5 passed, 0 known failure, 0 skipped 263s [inst/@sym/acos.m] 263s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/acos.m 263s ***** error acos (sym(1), 2) 264s ***** assert (isequaln (acos (sym(nan)), sym(nan))) 264s ***** shared x, d 264s d = 1; 264s x = sym('1'); 264s ***** test 264s f1 = acos(x); 264s f2 = acos(d); 264s assert( abs(double(f1) - f2) < 1e-15 ) 264s ***** test 264s D = [d d; d d]; 264s A = [x x; x x]; 264s f1 = acos(A); 264s f2 = acos(D); 264s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 264s ***** test 264s % round trip 264s y = sym('y'); 264s A = acos (d); 264s f = acos (y); 264s h = function_handle (f); 264s B = h (d); 264s assert (A, B, -eps) 264s 5 tests, 5 passed, 0 known failure, 0 skipped 264s [inst/@sym/angle.m] 264s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/angle.m 264s ***** test 264s Z = [sqrt(sym(3)) + 3*sym(i), 3 + sqrt(sym(3))*sym(i); 1 + sym(i), sym(i)]; 264s Q = [sym(pi)/3 sym(pi)/6; sym(pi)/4 sym(pi)/2]; 264s assert( isequal( angle(Z), Q)); 264s ***** test 264s % roundtrip 264s syms x 264s A = angle (2+2i); 264s f = angle (x); 264s h = function_handle (f); 264s B = h (2+2i); 264s assert (A, B, -eps) 264s 2 tests, 2 passed, 0 known failure, 0 skipped 264s [inst/@sym/not.m] 264s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/not.m 264s ***** shared t, f 264s t = sym(true); 264s f = sym(false); 264s ***** test 264s % simple 264s assert (isequal( ~t, f)) 264s assert (isequal( ~t, f)) 264s ***** test 264s % array 264s w = [t t f t]; 264s z = [f f t f]; 264s assert (isequal( ~w, z)) 264s ***** test 264s % number 264s assert (isequal( ~sym(5), f)) 264s assert (isequal( ~sym(0), t)) 264s ***** test 264s % output is sym 264s syms x 264s e = ~(x == 4); 264s assert (isa (e, 'sym')) 264s assert (strncmp (sympy(e), 'Unequality', 10)) 264s ***** test 264s % output is sym even for scalar t/f (should match other bool fcns) 264s assert (isa (~t, 'sym')) 264s ***** test 264s % symbol ineq 264s syms x 264s a = [t f x == 1 x ~= 2 x < 3 x <= 4 x > 5 x >= 6]; 264s b = [f t x ~= 1 x == 2 x >= 3 x > 4 x <= 5 x < 6]; 264s assert (isequal( ~a, b)) 264s ***** test 264s syms x 264s y = ~x; 264s s = disp(y, 'flat'); 264s assert (strcmp (strtrim (s), '~x') || strcmpi (strtrim (s), 'Not(x)')) 264s ***** error not (sym(1), 2) 264s 8 tests, 8 passed, 0 known failure, 0 skipped 264s [inst/@sym/cat.m] 264s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/cat.m 264s ***** test 264s % mostly tested in horzcat, vertcat: one for good measure 264s syms x 264s assert (isequal (cat(1, x, x), [x x])) 264s assert (isequal (cat(2, x, x), [x; x])) 265s ***** error cat(3, sym(2), sym(3)) 265s ***** error cat(0, sym(2), sym(3)) 265s 3 tests, 3 passed, 0 known failure, 0 skipped 265s [inst/@sym/matlabFunction.m] 265s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/matlabFunction.m 265s ***** test 265s % autodetect inputs 265s syms x y 265s s = warning('off', 'OctSymPy:function_handle:nocodegen'); 265s h = matlabFunction(2*x*y, x+y); 265s warning(s) 265s [t1, t2] = h(3,5); 265s assert(t1 == 30 && t2 == 8) 265s 1 test, 1 passed, 0 known failure, 0 skipped 265s [inst/@sym/exp.m] 265s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/exp.m 265s ***** error exp (sym(1), 2) 265s ***** assert (isequaln (exp (sym(nan)), sym(nan))) 265s ***** shared x, d 265s d = 1; 265s x = sym('1'); 265s ***** test 265s f1 = exp(x); 265s f2 = exp(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 = exp(A); 265s f2 = exp(D); 265s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 265s ***** test 265s % round trip 265s y = sym('y'); 265s A = exp (d); 265s f = exp (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/ssinint.m] 265s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/ssinint.m 265s ***** assert (isequal (ssinint(sym(0)), -sym(pi)/2)) 265s ***** test 265s A = ssinint (sym ([0 1])); 265s B = [-pi/2 -0.62471325642771360426]; 265s assert( all(all( abs(double(A)-B) < 1e-15 ))) 265s 2 tests, 2 passed, 0 known failure, 0 skipped 265s [inst/@sym/or.m] 265s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/or.m 265s ***** shared t, f 265s t = sym(true); 265s f = sym(false); 265s ***** test 265s % simple 265s assert (isequal (t | f, t)) 265s assert (isequal (t | t, t)) 265s assert (isequal (f | f, f)) 266s ***** test 266s % array 266s w = [t t f f]; 266s z = [t f t f]; 266s assert (isequal (w | z, [t t t f])) 266s ***** test 266s % output is sym even for scalar t/f 266s assert (isa (t | f, 'sym')) 266s ***** test 266s % eqns 266s syms x 266s e = or(x == 4, x == 5); 266s assert (isequal (subs(e, x, [3 4 5 6]), [f t t f])) 266s ***** error or (sym(1), 2, 3) 266s 5 tests, 5 passed, 0 known failure, 0 skipped 266s [inst/@sym/sinint.m] 266s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/sinint.m 266s ***** error sinint (sym(1), 2) 266s ***** xtest 266s assert (isequaln (sinint (sym(nan)), sym(nan))) 266s !!!!! known failure 266s assert (isequaln (sinint (sym (nan)), sym (nan))) failed 266s ***** shared x, d 266s d = 1; 266s x = sym('1'); 266s ***** test 266s f1 = sinint(x); 266s f2 = 0.9460830703671830149414; 266s assert( abs(double(f1) - f2) < 1e-15 ) 266s ***** test 266s D = [d d; d d]; 266s A = [x x; x x]; 266s f1 = sinint(A); 266s f2 = 0.9460830703671830149414; 266s f2 = [f2 f2; f2 f2]; 266s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 266s ***** test 266s % round trip 266s y = sym('y'); 266s A = sinint (d); 266s f = sinint (y); 266s h = function_handle (f); 266s B = h (d); 266s assert (A, B, -eps) 266s 5 tests, 4 passed, 1 known failure, 0 skipped 266s [inst/@sym/findsym.m] 266s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/findsym.m 266s ***** assert (strcmp (findsym (sym(2)), '')); 266s ***** shared x,y,f 266s x=sym('x'); y=sym('y'); f=x^2+3*x*y-y^2; 266s ***** assert (strcmp (findsym (f), 'x,y')); 266s ***** assert (strcmp (findsym (f,1), 'x')); 266s ***** test 266s % test order of returned vars 266s syms x y a b c xx 266s % https://www.mathworks.com/matlabcentral/newsreader/view_thread/237730 266s alpha = sym('alpha'); 266s assert (strcmp (findsym(b*xx*exp(alpha) + c*sin(a*y), 2), 'xx,y')) 266s 4 tests, 4 passed, 0 known failure, 0 skipped 266s [inst/@sym/potential.m] 266s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/potential.m 266s ***** error potential (sym(1), 2, 3, 4) 266s ***** shared x,y,z 266s syms x y z 266s ***** test 266s % 1D 266s f = 3*x^2; 266s F = x^3; 266s assert (isequal (potential(f), F)) 266s assert (isequal (potential(f, x), F)) 266s assert (isequal (potential(f, x, 0), F)) 266s assert (isequal (potential(f, x, 2), F - 8)) 267s ***** test 267s F = x*exp(y) + (z-1)^2; 267s f = gradient(F); 267s G = potential(f, [x;y;z], [0;1;1]); 267s assert (isAlways (G == F)) 267s ***** test 267s F = x*exp(y); 267s f = gradient(F); 267s G = potential(f); 267s assert (isAlways (G == F)) 267s ***** test 267s % no potential exists 267s syms x y 267s a = [x; x*y^2]; 267s assert (isnan (potential (a))) 267s ***** shared 267s ***** xtest 267s % fails b/c of sympy #8458 (piecewise expr that should simplify) 267s syms x 267s f = cos(x); 267s assert (isequal (potential(f, x), sin(x))) 268s !!!!! known failure 268s assert (isequal (potential (f, x), sin (x))) failed 268s 6 tests, 5 passed, 1 known failure, 0 skipped 268s [inst/@sym/eq.m] 268s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/eq.m 268s ***** test 268s % simple tests with scalar numbers 268s assert (logical (sym(1) == sym(1))) 268s assert (logical (sym(1) == 1)) 268s assert (~logical (sym(1) == 0)) 268s assert (isequal (sym(1) == sym(1), sym(true))) 268s assert (isequal (sym(1) == 1, sym(true))) 268s assert (isequal (sym(1) == 0, sym(false))) 268s ***** test 268s % Type of the output is sym or logical? 268s % FIXME: in current version, they are sym 268s e = sym(1) == sym(1); 268s %assert (islogical (e)) 268s assert (isa (e, 'sym')) 268s ***** test 268s % things involving a variable are usually not bool but sym. 268s % (SMT behaviour says always, FIXME: currently we differ.) 268s syms x 268s e = x == 0; 268s assert (~islogical (e)) 268s assert (isa (e, 'sym')) 268s ***** test 268s % ... except of course via cancelation 268s syms x 268s e = x - x == 0; 268s assert (logical (e)) 268s assert (isequal (e, sym(true))) 268s ***** test 268s % array == array 268s a = sym([1 2; 3 4]); 268s y = a == a; 268s assert (isequal( size(y), [2 2])) 268s assert (isequal (y, sym([true true; true true]))) 268s assert (all(all(y))) 268s y = a == 1; 268s assert (isequal( size(y), [2 2])) 268s assert (isequal (y, sym([true false; false false]))) 268s assert (any(any(y))) 268s y = a == 42; 268s assert (isequal( size(y), [2 2])) 268s assert (isequal (y, sym([false false; false false]))) 268s ***** test 268s % more array == array 268s D = [0 1; 2 3]; 268s A = [sym(0) 1; sym(2) 3]; 268s DZ = D - D; 268s assert (isequal (logical(A == A), [true true; true true])) 268s assert (isequal (logical(A == D), [true true; true true])) 268s assert (isequal (logical(A - D == DZ), [true true; true true])) 268s assert (all (all ( A == A ))) 268s assert (all (all ( A == D ))) 268s assert (all (all ( A - D == DZ ))) 269s ***** test 269s % logical output, right shape, etc 269s t = true; f = false; 269s a = sym([0 1 2; 3 4 5]); 269s b = sym([0 1 1; 3 5 5]); 269s e = a == b; 269s eexp = sym(logical([1 1 0; 1 0 1])); 269s assert (isequal (e, eexp)) 269s a = sym([0 1 2]); 269s b = sym([0 1 1]); 269s e = a == b; 269s eexp = sym(logical([1 1 0])); 269s assert (isequal (e, eexp)) 269s e = a' == b'; 269s eexp = eexp.'; % is/was bug here with ' 269s assert (isequal (e, eexp)) 269s ***** test 269s % empty matrices compare to correct empty size 269s a = zeros (sym(3), 0); 269s assert (size (a == a), [3, 0]) 269s a = zeros (sym(0), 2); 269s assert (size (a == a), [0, 2]) 269s 8 tests, 8 passed, 0 known failure, 0 skipped 269s [inst/@sym/svd.m] 269s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/svd.m 269s ***** test 269s % basic 269s A = [1 2; 3 4]; 269s B = sym(A); 269s sd = svd(A); 269s s = svd(B); 269s s2 = double(s); 269s assert (norm(s2 - sd) <= 10*eps) 269s ***** test 269s % scalars 269s syms x 269s syms y positive 269s a = sym(-10); 269s assert (isequal (svd(a), sym(10))) 269s assert (isequal (svd(x), sqrt(x*conj(x)))) 269s assert (isequal (svd(y), y)) 269s ***** test 269s % matrix with symbols 269s syms x positive 269s A = [x+1 0; sym(0) 2*x+1]; 269s s = svd(A); 269s s2 = subs(s, x, 2); 269s assert (isequal (s2, [sym(5); 3])) 269s ***** test 269s % matrix with symbols 269s syms x positive 269s A = [x+1 0; sym(0) 2*x+1]; 269s s = svd(A); 269s s2 = subs(s, x, 2); 269s assert (isequal (s2, [sym(5); 3])) 270s ***** test 270s % matrix with symbols, nonneg sing values 270s syms x real 270s A = [x 0; 0 sym(-5)]; 270s s = svd(A); 270s assert (isequal (s, [abs(x); 5])) 270s 5 tests, 5 passed, 0 known failure, 0 skipped 270s [inst/@sym/sin.m] 270s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/sin.m 270s ***** error sin (sym(1), 2) 270s ***** assert (isequaln (sin (sym(nan)), sym(nan))) 270s ***** shared x, d 270s d = 1; 270s x = sym('1'); 270s ***** test 270s f1 = sin(x); 270s f2 = sin(d); 270s assert( abs(double(f1) - f2) < 1e-15 ) 270s ***** test 270s D = [d d; d d]; 270s A = [x x; x x]; 270s f1 = sin(A); 270s f2 = sin(D); 270s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 270s ***** test 270s % round trip 270s y = sym('y'); 270s A = sin (d); 270s f = sin (y); 270s h = function_handle (f); 270s B = h (d); 270s assert (A, B, -eps) 270s 5 tests, 5 passed, 0 known failure, 0 skipped 270s [inst/@sym/ezcontour.m] 270s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/ezcontour.m 270s ***** error 270s syms x y z 270s ezcontour (x*y*z) 270s 1 test, 1 passed, 0 known failure, 0 skipped 270s [inst/@sym/union.m] 270s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/union.m 270s ***** test 270s A = sym([1 2 3]); 270s B = sym([1 2 4]); 270s C = union(A, B); 270s D = sym([1 2 3 4]); 270s assert (isequal (C, D)) 270s ***** test 270s % one nonsym 270s A = sym([1 2 3]); 270s B = [1 2 4]; 270s C = union(A, B); 270s D = sym([1 2 3 4]); 270s assert (isequal (C, D)) 270s ***** test 270s % empty 270s A = sym([1 2 3]); 270s C = union(A, A); 270s assert (isequal(C, A)) 270s ***** test 270s % empty input 270s A = sym([1 2]); 270s C = union(A, []); 270s assert (isequal (C, sym([1 2]))) 270s ***** test 270s % scalar 270s syms x 270s assert (isequal (union([x 1], x), [1 x])) 270s assert (isequal (union(x, x), x)) 271s ***** test 271s A = interval(sym(1), 3); 271s B = interval(sym(2), 5); 271s C = union(A, B); 271s assert( isequal( C, interval(sym(1), 5))) 271s 6 tests, 6 passed, 0 known failure, 0 skipped 271s [inst/@sym/erf.m] 271s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/erf.m 271s ***** error erf (sym(1), 2) 271s ***** assert (isequaln (erf (sym(nan)), sym(nan))) 271s ***** shared x, d 271s d = 1; 271s x = sym('1'); 271s ***** test 271s f1 = erf(x); 271s f2 = erf(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 = erf(A); 271s f2 = erf(D); 271s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 271s ***** test 271s % round trip 271s y = sym('y'); 271s A = erf (d); 271s f = erf (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/nchoosek.m] 271s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/nchoosek.m 271s ***** assert (isequal (nchoosek(sym(5), sym(2)), sym(10))) 271s ***** assert (isequal (nchoosek(sym(5), 2), sym(10))) 271s ***** assert (isequal (nchoosek(5, sym(2)), sym(10))) 271s ***** assert (isequal (nchoosek(sym(10), 0), 1)) 271s ***** assert (isequal (nchoosek(sym(10), -1), 0)) 271s ***** test 271s n = sym('n', 'nonnegative', 'integer'); 271s assert (isequal (nchoosek (n, n), sym(1))) 271s ***** test 271s n = sym('n', 'integer'); 271s q = nchoosek(n, 2); 271s w = subs(q, n, 5); 271s assert (isequal (w, 10)) 271s ***** test 271s n = sym('n', 'integer'); 271s k = sym('k', 'integer'); 271s q = nchoosek(n, k); 271s w = subs(q, {n k}, {5 2}); 271s assert (isequal (w, 10)) 271s ***** test 271s % negative input 271s assert (isequal (nchoosek (sym(-2), sym(5)), sym(-6))) 271s ***** test 271s % complex input 271s n = sym(1 + 3i); 271s k = sym(5); 271s A = nchoosek (n, k); 271s B = gamma (n + 1) / (gamma (k + 1) * gamma (n - k + 1)); 271s assert (double (A), double (B), -2*eps) 272s ***** test 272s % complex input 272s n = sym(-2 + 3i); 272s k = sym(1 + i); 272s A = nchoosek (n, k); 272s B = gamma (n + 1) / (gamma (k + 1) * gamma (n - k + 1)); 272s assert (double (A), double (B), -2*eps) 272s 11 tests, 11 passed, 0 known failure, 0 skipped 272s [inst/@sym/pochhammer.m] 272s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/pochhammer.m 272s ***** error pochhammer (sym(1)) 272s ***** error pochhammer (sym(1), 2, 3) 272s ***** assert (isequal (pochhammer (sym(3), 4), sym(360))) 272s ***** assert (isequal (pochhammer (sym([2 3]), 3), sym([24 60]))) 272s ***** test 272s % round trip 272s syms n z 272s f = pochhammer (z, n); 272s h = function_handle (f, 'vars', [z n]); 272s A = h (1.1, 2.2); 272s B = pochhammer (1.1, 2.2); 272s assert (A, B) 272s 5 tests, 5 passed, 0 known failure, 0 skipped 272s [inst/@sym/int.m] 272s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/int.m 272s ***** shared x,y,a 272s syms x y a 272s ***** assert(logical(int(cos(x)) - sin(x) == 0)) 272s ***** assert(logical(int(cos(x),x) - sin(x) == 0)) 272s ***** assert(logical(int(cos(x),x,0,1) - sin(sym(1)) == 0)) 272s ***** test 272s %% limits might be syms 272s assert( isequal (int(cos(x),x,sym(0),sym(1)), sin(sym(1)))) 272s assert( isequal (int(cos(x),x,0,a), sin(a))) 273s ***** test 273s %% other variables present 273s assert( isequal (int(y*cos(x),x), y*sin(x))) 273s ***** test 273s %% limits as array 273s assert( isequal (int(cos(x),x,[0 1]), sin(sym(1)))) 273s assert( isequal (int(cos(x),x,sym([0 1])), sin(sym(1)))) 273s assert( isequal (int(cos(x),x,[0 a]), sin(a))) 273s ***** test 273s %% no x given 273s assert( isequal (int(cos(x),[0 1]), sin(sym(1)))) 273s assert( isequal (int(cos(x),sym([0 1])), sin(sym(1)))) 273s assert( isequal (int(cos(x),[0 a]), sin(a))) 273s assert( isequal (int(cos(x),0,a), sin(a))) 273s ***** test 273s %% integration of const 273s assert( isequal (int(sym(2),y), 2*y)) 273s assert( isequal (int(sym(2)), 2*x)) 273s assert( isequal (int(sym(2),[0 a]), 2*a)) 273s assert( isequal (int(sym(2),0,a), 2*a)) 274s ***** test 274s % componentwise int of array 274s A = [x x*x]; 274s assert (isequal (int(A, x), [x^2/2 x^3/3])) 274s ***** test 274s % NonElementaryIntegral bug 274s % https://savannah.gnu.org/bugs/index.php?46831 274s f = int(exp(exp(x))); 274s f = f + 2; 274s g = diff(f); 274s assert (isequal (g, exp(exp(x)))) 274s 10 tests, 10 passed, 0 known failure, 0 skipped 274s [inst/@sym/sort.m] 274s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/sort.m 274s ***** error sort (sym(1), 2) 274s ***** test 274s f = [sym(1), sym(0)]; 274s expected = sym([0, 1]); 274s assert (isequal (sort(f), expected)) 274s ***** test 274s f = [sym(1)]; 274s expected = sym(1); 274s assert (isequal (sort(f), expected)) 274s ***** test 274s f = [sym(3), sym(2), sym(6)]; 274s s = sort(f); 274s expected_s = sym([2, 3, 6]); 274s assert (isequal (s, expected_s)) 274s ***** test 274s f = [sym(pi), sin(sym(2)), sqrt(sym(6))]; 274s s = sort(f); 274s expected_s = sym([sin(sym(2)), sqrt(sym(6)), sym(pi)]); 274s assert (isequal (s, expected_s)) 274s ***** test 274s f = [sym(1), sym(2); sym(2), sym(pi); sym(pi), sym(1)]; 274s s = sort(f); 274s expected_s = ([sym(1), sym(1); sym(2), sym(2); sym(pi), sym(pi)]); 274s assert (isequal (s, expected_s)) 274s ***** assert (isequal (sort(sym([])), sym([]))) 274s ***** error sort([sym('x') 1]) 274s ***** test 274s % but with assumptions, symbols can be sorted 274s p = sym('p', 'positive'); 274s n = sym('n', 'negative'); 274s expected_s = [n p]; 274s s = sort ([p n]); 274s assert (isequal (s, expected_s)) 274s 9 tests, 9 passed, 0 known failure, 0 skipped 274s [inst/@sym/le.m] 274s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/le.m 274s ***** test 274s % simple 274s x = sym(1); y = sym(1); e = x <= y; 274s assert (logical (e)) 274s x = sym(1); y = sym(2); e = x <= y; 274s assert (logical (e)) 275s ***** test 275s % array -- array 275s syms x 275s a = sym([1 3 3 2*x]); 275s b = sym([2 x 3 10]); 275s e = a <= b; 275s assert (isa (e, 'sym')) 275s assert (logical (e(1))) 275s assert (isa (e(2), 'sym')) 275s assert (isequal (e(2), 3 <= x)) 275s assert (logical (e(3))) 275s assert (isa (e(4), 'sym')) 275s assert (isequal (e(4), 2*x <= 10)) 275s 2 tests, 2 passed, 0 known failure, 0 skipped 275s [inst/@sym/any.m] 275s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/any.m 275s ***** test 275s % matrix 275s a = [0 0; 1 0]; 275s s = sym(a); 275s assert (isequal (any (s), any (a))) 275s assert (isequal (any (s,1), any (a,1))) 275s assert (isequal (any (s,2), any (a,2))) 275s ***** test 275s % vector 275s a = [0 1 0]; 275s s = sym(a); 275s assert (isequal (any (s), any (a))) 275s assert (isequal (any (s,1), any (a,1))) 275s assert (isequal (any (s,2), any (a,2))) 275s ***** test 275s % should fail on symbols 275s syms x 275s s = [0 1 x]; 275s try 275s any (s) 275s waserr = false; 275s catch 275s waserr = true; 275s end 275s assert (waserr) 275s 3 tests, 3 passed, 0 known failure, 0 skipped 275s [inst/@sym/cond.m] 275s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/cond.m 275s ***** test 275s A = [1 2; 3 4]; 275s B = sym(A); 275s k1 = cond(A); 275s k2 = cond(B); 275s k3 = double(k2); 275s assert (k1 - k3 <= 100*eps) 275s ***** test 275s % matrix with symbols 275s syms x positive 275s A = [x 0; sym(0) 2*x]; 275s k1 = cond(A); 275s assert (isequal (k1, sym(2))) 275s 2 tests, 2 passed, 0 known failure, 0 skipped 275s [inst/@sym/fresnelc.m] 275s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/fresnelc.m 275s ***** error fresnelc (sym(1), 2) 275s ***** test 275s a = fresnelc(sym(0)); 275s assert (isequal (a, sym(0))) 275s ***** test 275s b = fresnelc(sym('oo')); 275s assert (isequal (b, sym(1)/2)) 275s ***** test 275s % values in a matrix 275s syms x 275s a = fresnelc([sym(0) sym('oo') x 1]); 275s b = [sym(0) sym(1)/2 fresnelc(x) fresnelc(sym(1))]; 275s assert (isequal (a, b)) 275s ***** test 275s % round trip 275s syms x 275s f = fresnelc (x); 275s h = function_handle (f); 275s A = h (1.1); 275s B = fresnelc (1.1); 275s assert (A, B) 275s 5 tests, 5 passed, 0 known failure, 0 skipped 275s [inst/@sym/flipud.m] 275s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/flipud.m 275s ***** test 275s % simple 275s syms x 275s A = [x 2; sym(pi) x]; 275s B = [sym(pi) x; x 2]; 275s assert (isequal (flipud(A), B)) 276s ***** test 276s % simple, odd # rows 276s syms x 276s A = [x 2; sym(pi) x; [1 2]]; 276s B = [[1 2]; sym(pi) x; x 2]; 276s assert (isequal (flipud(A), B)) 276s ***** test 276s % scalar 276s syms x 276s assert (isequal (flipud(x), x)) 276s 3 tests, 3 passed, 0 known failure, 0 skipped 276s [inst/@sym/tanh.m] 276s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/tanh.m 276s ***** error tanh (sym(1), 2) 276s ***** assert (isequaln (tanh (sym(nan)), sym(nan))) 276s ***** shared x, d 276s d = 1; 276s x = sym('1'); 276s ***** test 276s f1 = tanh(x); 276s f2 = tanh(d); 276s assert( abs(double(f1) - f2) < 1e-15 ) 276s ***** test 276s D = [d d; d d]; 276s A = [x x; x x]; 276s f1 = tanh(A); 276s f2 = tanh(D); 276s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 276s ***** test 276s % round trip 276s y = sym('y'); 276s A = tanh (d); 276s f = tanh (y); 276s h = function_handle (f); 276s B = h (d); 276s assert (A, B, -eps) 276s 5 tests, 5 passed, 0 known failure, 0 skipped 276s [inst/@sym/rewrite.m] 276s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/rewrite.m 276s ***** test 276s syms x 276s assert (isequal (rewrite(x, 'exp'), x)) 276s ***** test 276s % empty 276s e = sym([]); 276s assert (isequal (rewrite(e, 'sin'), e)) 276s ***** test 276s syms x 276s A = [exp(x) exp(2*x)]; 276s B = [sinh(x) + cosh(x) sinh(2*x) + cosh(2*x)]; 276s assert (isequal (rewrite(A, 'sin'), B)) 276s 3 tests, 3 passed, 0 known failure, 0 skipped 276s [inst/@sym/subsindex.m] 276s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/subsindex.m 276s ***** test 276s i = sym(1); 276s a = 7; 276s assert(a(i)==a); 276s i = sym(2); 276s a = 2:2:10; 276s assert(a(i)==4); 276s ***** test 276s i = sym([1 3 5]); 276s a = 1:10; 276s assert( isequal (a(i), [1 3 5])) 276s ***** test 276s i = sym([1 3 5]); 276s a = sym(1:10); 276s assert( isequal (a(i), sym([1 3 5]))); 277s ***** test 277s % should be an error if it doesn't convert to double 277s syms x 277s a = 1:10; 277s try 277s a(x) 277s waserr = false; 277s catch 277s waserr = true; 277s end 277s assert(waserr) 277s ***** test 277s syms x 277s assert (isequal (x(sym (true)), x)) 277s assert (isequal (x(sym (false)), sym ([]))) 277s ***** test 277s x = 6; 277s assert (isequal (x(sym (true)), 6)) 277s assert (isequal (x(sym (false)), [])) 277s ***** test 277s a = sym([10 12 14]); 277s assert (isequal (a(sym ([true false true])), a([1 3]))) 277s assert (isequal (a(sym ([false false false])), sym (ones(1,0)))) 277s ***** test 277s a = [10 11; 12 13]; 277s p = [true false; true true]; 277s assert (isequal (a(sym (p)), a(p))) 277s p = [false false false]; 277s assert (isequal (a(sym (p)), a(p))) 277s ***** error 277s a = [10 12]; 277s I = [sym(true) 2]; 277s b = a(I); 277s 9 tests, 9 passed, 0 known failure, 0 skipped 277s [inst/@sym/det.m] 277s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/det.m 277s ***** assert (isequal (det(sym([])), 1)) 277s ***** test 277s syms x y real 277s assert (isequal (det([x 5; 7 y]), x*y-35)) 277s ***** test 277s syms x 277s assert (isequal (det(x), x)) 277s assert (isequal (det(sym(-6)), sym(-6))) 277s 3 tests, 3 passed, 0 known failure, 0 skipped 277s [inst/@sym/ellipke.m] 277s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/ellipke.m 277s ***** error ellipke (sym(1), 2) 277s ***** test 277s for i = 2:10 277s [K E] = ellipke (sym (1)/i); 277s [k e] = ellipke (1/i); 277s assert (double ([K E]), [k e], 2*eps) 277s end 278s 2 tests, 2 passed, 0 known failure, 0 skipped 278s [inst/@sym/mrdivide.m] 278s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/mrdivide.m 278s ***** test 278s % scalar 278s syms x 278s assert (isa( x/x, 'sym')) 278s assert (isequal( x/x, sym(1))) 278s assert (isa( 2/x, 'sym')) 278s assert (isa( x/2, 'sym')) 279s ***** test 279s % matrix / scalar 279s D = 2*[0 1; 2 3]; 279s A = sym(D); 279s assert (isequal ( A/2 , D/2 )) 279s assert (isequal ( A/sym(2) , D/2 )) 279s ***** test 279s % I/A: either invert A or leave unevaluated: not bothered which 279s A = sym([1 2; 3 4]); 279s B = sym(eye(2)) / A; 279s assert (isequal (B, inv(A)) || strncmpi (sympy (B), 'MatPow', 6)) 279s ***** xtest 279s % immutable test, upstream: TODO 279s A = sym([1 2; 3 4]); 279s B = sym('ImmutableDenseMatrix([[Integer(1), Integer(2)], [Integer(3), Integer(4)]])'); 279s assert (isequal (A/A, B/B)) 279s :18: SyntaxWarning: invalid escape sequence '\(' 279s ***** test 279s % A = C/B is C = A*B 279s A = sym([1 2; 3 4]); 279s B = sym([1 3; 4 8]); 279s C = A*B; 279s A2 = C / B; 279s assert (isequal (A, A2)) 279s ***** test 279s A = [1 2; 3 4]; 279s B = A / A; 279s % assert (isequal (B, sym(eye(2)) 279s assert (isequal (B(1,1), 1)) 279s assert (isequal (B(2,2), 1)) 279s assert (isequal (B(2,1), 0)) 279s assert (isequal (B(1,2), 0)) 279s ***** test 279s A = sym([5 6]); 279s B = sym([1 2; 3 4]); 279s C = A*B; 279s A2 = C / B; 279s assert (isequal (A, A2)) 279s 7 tests, 7 passed, 0 known failure, 0 skipped 279s [inst/@sym/ccode.m] 279s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/ccode.m 279s ***** shared x,y,z 279s syms x y z 279s ***** test 279s % basic test 279s f = x*sin(y) + abs(z); 279s source = ccode(f); 279s expected = 'x*sin(y) + fabs(z)'; 279s assert(strcmp(source, expected)) 279s ***** test 279s % output test 279s f = x*sin(y) + abs(z); 279s [C, H] = ccode(f, 'file', '', 'show_header', false); 279s 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'); 279s 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'); 279s assert(strcmp(C.name, 'file.c')) 279s assert(strcmp(H.name, 'file.h')) 279s hwin = strrep(expected_h_code, sprintf('\n'), sprintf('\r\n')); 279s assert (strcmp (H.code, expected_h_code) || strcmp (H.code, hwin)) 279s s1 = expected_c_code; 279s s2 = strrep(expected_c_code, sprintf('\n'), sprintf('\r\n')); 279s assert (strcmp (C.code, s1) || strcmp (C.code, s2)) 279s 2 tests, 2 passed, 0 known failure, 0 skipped 279s [inst/@sym/besselj.m] 279s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/besselj.m 279s ***** test 279s X = [1 2 3; 4 5 6]; 279s ns = [sym(0) 1 -2; sym(1)/2 -sym(3)/2 pi]; 279s n = double(ns); 279s A = double(besselj(ns, X)); 279s B = besselj(n, X); 279s assert (all (all (abs (A - B) < 50*eps*abs(A)))) 280s ***** test 280s % roundtrip 280s syms x 280s A = besselj(2, 10); 280s q = besselj(2, x); 280s h = function_handle(q); 280s B = h(10); 280s assert (abs (A - B) <= eps*abs(A)) 280s ***** error besselj(sym('x')) 280s 3 tests, 3 passed, 0 known failure, 0 skipped 280s [inst/@sym/gradient.m] 280s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/gradient.m 280s ***** shared x,y,z 280s syms x y z 280s ***** test 280s % 1D 280s f = x^2; 280s assert (isequal (gradient(f), diff(f,x))) 280s assert (isequal (gradient(f,{x}), diff(f,x))) 280s assert (isequal (gradient(f,[x]), diff(f,x))) 280s assert (isequal (gradient(f,x), diff(f,x))) 280s ***** test 280s % const 280s f = sym(1); 280s g = sym(0); 280s assert (isequal (gradient(f), g)) 280s assert (isequal (gradient(f,x), g)) 280s ***** test 280s % double const 280s f = 1; 280s g = sym(0); 280s assert (isequal (gradient(f,x), g)) 280s ***** test 280s % 1D fcn in 2d/3d 280s f = sin(y); 280s assert (isequal (gradient(f), diff(f,y))) 280s assert (isequal (gradient(f, {x,y}), [sym(0); diff(f,y)])) 280s assert (isequal (gradient(f, [x y]), [sym(0); diff(f,y)])) 280s assert (isequal (size (gradient(f, {x,y})), [2 1])) 280s assert (isequal (gradient(f, {x,y,z}), [0; diff(f,y); 0])) 280s assert (isequal (gradient(f, [x y z]), [0; diff(f,y); 0])) 280s assert (isequal (size (gradient(f, {x,y,z})), [3 1])) 281s ***** test 281s % grad is column vector 281s f = sin(y); 281s assert (isequal (size (gradient(f, {x,y})), [2 1])) 281s assert (isequal (size (gradient(f, {x,y,z})), [3 1])) 281s assert (isequal (size (gradient(f, [x y])), [2 1])) 281s assert (isequal (size (gradient(f, [x;y])), [2 1])) 281s ***** test 281s % 2d fcn in 2d/3d 281s f = sin(exp(x)*y); 281s g2 = [diff(f,x); diff(f,y)]; 281s g3 = [diff(f,x); diff(f,y); diff(f,z)]; 281s assert (isequal (gradient(f), g2)) 281s assert (isequal (gradient(f, {x,y}), g2)) 281s assert (isequal (gradient(f, {x,y,z}), g3)) 281s ***** test 281s % 2d fcn in 2d/3d 281s f = sin(exp(x)*y+sinh(z)); 281s g2 = [diff(f,x); diff(f,y)]; 281s g3 = [diff(f,x); diff(f,y); diff(f,z)]; 281s assert (isequal (gradient(f), g3)) 281s assert (isequal (gradient(f, {x,y}), g2)) 281s assert (isequal (gradient(f, {x,y,z}), g3)) 281s ***** error gradient(sym('x'), 42, 42) 281s ***** error gradient([sym('x') sym('x')]) 281s 9 tests, 9 passed, 0 known failure, 0 skipped 281s [inst/@sym/fix.m] 281s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/fix.m 281s ***** test 281s d = 3/2; 281s x = sym('3/2'); 281s f1 = fix(x); 281s f2 = fix(d); 281s assert (isequal (f1, f2)) 281s ***** test 281s D = [1.1 4.6; -3.4 -8.9]; 281s A = [sym(11)/10 sym(46)/10; sym(-34)/10 sym(-89)/10]; 281s f1 = fix(A); 281s f2 = fix(D); 281s assert( isequal (f1, f2)) 281s ***** test 281s d = sym(-11)/10; 281s c = -1; 281s assert (isequal (fix (d), c)) 281s ***** test 281s d = sym(-19)/10; 281s c = -1; 281s assert (isequal (fix (d), c)) 282s 4 tests, 4 passed, 0 known failure, 0 skipped 282s [inst/@sym/ldivide.m] 282s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/ldivide.m 282s ***** test 282s % scalar 282s syms x 282s assert (isa (x .\ 1, 'sym')) 282s assert (isa (x .\ x, 'sym')) 282s assert (isequal (x .\ 1, 1/x)) 282s assert (isequal (x .\ x, sym(1))) 282s ***** test 282s % matrix-scalar 282s D = [1 1; 2 3]; 282s A = sym(D); 282s assert (isequal ( A .\ 6 , D .\ 6 )) 282s assert (isequal ( A .\ sym(6) , D .\ 6 )) 282s assert (isequal ( D .\ sym(6) , D .\ 6 )) 282s ***** test 282s % matrix-matrix 282s D = [1 2; 3 4]; 282s A = sym(D); 282s assert (isequal ( A .\ A , D .\ D )) 282s assert (isequal ( A .\ D , D .\ D )) 282s assert (isequal ( D .\ A , D .\ D )) 282s ***** test 282s % matrix .\ matrix with symbols 282s syms x y 282s A = [x y; x^2 2*y]; 282s B = [y x; x y]; 282s assert (isequal ( A .\ A , sym(ones(2, 2)) )) 282s assert (isequal ( B .\ A , [x/y y/x; x 2] )) 282s ***** test 282s % scalar .\ matrix 282s D = 3*[1 2; 3 4]; 282s A = sym(D); 282s assert (isequal ( 3 .\ A , 3 .\ D )) 283s 5 tests, 5 passed, 0 known failure, 0 skipped 283s [inst/@sym/reshape.m] 283s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/reshape.m 283s ***** test 283s d = [2 4 6; 8 10 12]; 283s a = sym(d); 283s assert (isequal (reshape(a, [1 6]), reshape(d, [1 6]))) 283s assert (isequal (reshape(a, 1, 6), reshape(d, 1, 6))) 283s assert (isequal (reshape(a, 2, 3), reshape(d, 2, 3))) 283s assert (isequal (reshape(a, 3, 2), reshape(d, 3, 2))) 283s assert (isequal (reshape(a, 6, 1), reshape(d, 6, 1))) 283s ***** shared x, a, d 283s syms x 283s a = [1 x^2 x^4; x x^3 x^5]; 283s d = [0 2 4; 1 3 5]; 283s 283s ***** test 283s b = reshape(a, [1 6]); 283s assert (isequal (size(b), [1 6])) 283s assert (isequal (b, x.^reshape(d,1,6))) 283s 283s ***** test 283s b = reshape(a, [6 1]); 283s assert (isequal (size(b), [6 1])) 283s assert (isequal (b, x.^reshape(d,6,1))) 283s b = reshape(b, size(a)); 283s assert (isequal (size(b), [2 3])) 283s assert (isequal (b, a)) 283s 283s ***** test 283s b = a(:); 283s assert( isequal (size(b), [6 1])) 283s assert( isequal (b, x.^(d(:)))) 283s 283s ***** test 283s % reshape scalar 283s assert (logical( reshape(x, 1, 1) == x )) 283s assert (logical( reshape(x, [1 1]) == x )) 283s ***** shared a 283s syms a 284s ***** error reshape(a, 2, 1) 284s ***** error reshape(a, 1, 2) 284s ***** error reshape(a, 1, 1, 1) 284s ***** error reshape(a, [1, 1, 1]) 284s 9 tests, 9 passed, 0 known failure, 0 skipped 284s [inst/@sym/ztrans.m] 284s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/ztrans.m 284s ***** test 284s % basic Z-transform table checks 284s % X1, ..., X4 must have inner radius of convergence 1 284s syms n z 284s % trick to extract the closed form formula using the fact that inner roc = 1 284s closed_form = @(X) subs (X, abs (1 / z), 1 / sym (2)); 284s % check if ztrans(f) == X 284s check_ztrans = @(f, X) logical (simplify (closed_form (ztrans (f)) == X)); 284s f1 = sym (1); 284s X1 = 1 / (1 - 1 / z); 284s assert (check_ztrans (f1, X1)); 284s f2 = n; 284s X2 = (1 / z) / (1 - 1 / z)^2; 284s assert (check_ztrans (f2, X2)); 284s f3 = n^2; 284s X3 = (1 / z) * (1 + 1 / z) / (1 - 1 / z)^3; 284s assert (check_ztrans (f3, X3)); 284s f4 = n^3; 284s X4 = (1 / z) * (1 + 4 / z + 1 / z^2) / (1 - 1 / z)^4; 284s assert (check_ztrans (f4, X4)); 284s % basic matrix checks 284s A1 = ztrans ([f1 f2; f3 f4]); 284s B1 = [ztrans(f1) ztrans(f2); ztrans(f3) ztrans(f4)]; 284s assert (isequal (A1, B1)); 284s A2 = ztrans ([f1 f2; f3 f4], z); 284s B2 = [ztrans(f1, z) ztrans(f2, z); ztrans(f3, z) ztrans(f4, z)]; 284s assert (isequal (A2, B2)); 284s A3 = ztrans ([f1 f2; f3 f4], n, z); 284s B3 = [ztrans(f1, n, z) ztrans(f2, n, z); ztrans(f3, n, z) ztrans(f4, n, z)]; 284s assert (isequal (A3, B3)); 291s ***** test 291s % additional Z-transform table checks 291s % X1, ..., X4 must have inner radius of convergence a 291s syms n nonnegative integer 291s syms m positive integer 291s syms a 291s syms z 291s % trick to extract the closed form formula using the fact that inner roc = a 291s closed_form = @(X) subs (X, abs (a / z), 1 / sym (2)); 291s % check if ztrans(f) == X 291s check_ztrans = @(f, X) logical (simplify (closed_form (ztrans (f)) == X)); 291s f1 = a^n; 291s X1 = 1 / (1 - a / z); 291s assert (check_ztrans (f1, X1)); 291s f2 = n * a^n; 291s X2 = (a / z) / (1 - a / z)^2; 291s assert (check_ztrans (f2, X2)); 291s f3 = n^2 * a^n; 291s X3 = (a / z) * (1 + a / z) / (1 - a / z)^3; 291s assert (check_ztrans (f3, X3)); 291s f4 = nchoosek(n + m - 1, m - 1) * a^n; 291s X4 = 1 / (1 - a / z)^m; 291s assert (check_ztrans (f4, X4)); 291s % additional matrix checks 291s A1 = ztrans (f1, [n m; m n], [z a; a z]); 291s B1 = [ztrans(f1, n, z) ztrans(f1, m, a); ztrans(f1, m, a) ztrans(f1, n, z)]; 291s assert (isequal (A1, B1)); 291s A2 = ztrans (f1, m, [z a; a z]); 291s B2 = [ztrans(f1, m, z) ztrans(f1, m, a); ztrans(f1, m, a) ztrans(f1, m, z)]; 291s assert (isequal (A2, B2)); 291s A3 = ztrans (f1, [n m; m n], a); 291s B3 = [ztrans(f1, n, a) ztrans(f1, m, a); ztrans(f1, m, a) ztrans(f1, n, a)]; 291s assert (isequal (A3, B3)); 297s ***** test 297s % Kronecker delta checks 297s syms n n0 nonnegative integer 297s syms z 297s assert (isequal (ztrans (kroneckerDelta (n)), 1)); 297s assert (isequal (ztrans (kroneckerDelta (n - n0)), 1 / z^n0)); 297s ***** test 297s % basic var selection checks 297s syms n m z w 297s assert (isequal (ztrans (1 / factorial (n)), exp (1 / z))); 297s assert (isequal (ztrans (1 / factorial (z)), exp (1 / w))); 297s assert (isequal (ztrans (1 / factorial (m), w), exp (1 / w))); 297s assert (isequal (ztrans (1 / factorial (m), m, w), exp (1 / w))); 298s ***** test 298s % additional var selection checks 298s syms n m z 298s f = kroneckerDelta(m) / factorial (n); 298s assert (isequal (ztrans (f, z), exp (1 / z) * kroneckerDelta (m))); 298s assert (isequal (ztrans (f, n, z), exp (1 / z) * kroneckerDelta (m))); 298s assert (isequal (ztrans (f, m, z), 1 / factorial (n))); 299s ***** test 299s % if no t, use symvar: take x before a 299s syms a x z 299s assert (isequal (ztrans (a / factorial (x)), a * exp (1 / z))); 299s ***** error ztrans (sym ('n')^sym ('n', 'nonnegative', 'integer')) 299s 7 tests, 7 passed, 0 known failure, 0 skipped 299s [inst/@sym/rdivide.m] 299s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/rdivide.m 299s ***** test 299s % scalar 299s syms x 299s assert (isa (x ./ 1, 'sym')) 299s assert (isa (x ./ x, 'sym')) 299s assert (isequal (x ./ 1, x)) 299s assert (isequal (x ./ x, sym(1))) 299s ***** test 299s % matrix-scalar 299s D = 2*[0 1; 2 3]; 299s A = sym(D); 299s assert (isequal ( A./2 , D/2 )) 299s assert (isequal ( A./sym(2) , D/2 )) 299s assert (isequal ( D./sym(2) , D/2 )) 299s ***** test 299s % matrix ./ matrix 299s D = [1 2; 3 4]; 299s A = sym(D); 299s assert (isequal ( A./A , D./D )) 299s assert (isequal ( A./D , D./D )) 299s assert (isequal ( D./A , D./D )) 300s ***** test 300s % matrix ./ matrix with symbols 300s syms x y 300s A = [x y; x^2 2*y]; 300s B = [y x; x y]; 300s assert (isequal ( A./A , sym(ones(2,2)) )) 300s assert (isequal ( A./B , [x/y y/x; x 2] )) 300s ***** test 300s % scalar ./ matrix 300s D = [1 2; 3 4]; 300s A = sym(D); 300s assert (isequal ( 12./A , 12./D )) 300s 5 tests, 5 passed, 0 known failure, 0 skipped 300s [inst/@sym/triu.m] 300s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/triu.m 300s ***** test 300s % scalar 300s syms x 300s assert (isequal (triu(x), x)) 300s assert (isequal (triu(x,0), x)) 300s assert (isequal (triu(x,1), 0)) 300s assert (isequal (triu(x,-1), 0)) 300s ***** test 300s % with symbols 300s syms x 300s A = [x 2*x; 3*x 4*x]; 300s assert (isequal (triu(A), [x 2*x; 0 4*x])) 300s ***** test 300s % diagonal shifts 300s B = round(10*rand(3,4)); 300s A = sym(B); 300s assert (isequal (triu(A), triu(B))) 300s assert (isequal (triu(A,0), triu(B,0))) 300s assert (isequal (triu(A,1), triu(B,1))) 300s assert (isequal (triu(A,-1), triu(B,-1))) 301s ***** test 301s % double array pass through 301s B = round(10*rand(3,4)); 301s assert (isequal (triu(B,sym(1)), triu(B,1))) 301s assert (isa (triu(B,sym(1)), 'double')) 301s ***** test 301s % immutable test 301s A = sym('ImmutableDenseMatrix([[Integer(1), Integer(2)], [Integer(3), Integer(4)]])'); 301s assert (isequal (triu (A), sym ([1 2; 0 4]))) 301s assert (isequal (tril (A), sym ([1 0; 3 4]))) 301s :18: SyntaxWarning: invalid escape sequence '\(' 301s 5 tests, 5 passed, 0 known failure, 0 skipped 301s [inst/@sym/mod.m] 301s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/mod.m 301s ***** error mod (sym(1), 2, 3 ,4) 301s ***** assert (isequal (mod (sym(5), 4), sym(1))) 301s ***** assert (isequal (mod ([sym(5) 8], 4), [1 0] )) 301s ***** assert (isequal (mod (sym(5), [2 3]), [1 2] )) 301s ***** assert (isequal (mod ([sym(5) sym(6)], [2 3]), [1 0] )) 301s ***** test 301s syms x 301s assert (isequal ( mod (5*x, 3), 2*x )) 302s ***** test 302s syms x 302s a = [7*x^2 + 3*x + 3 3*x; 13*x^4 6*x]; 302s assert (isequal ( mod (a,3), [x^2 0; x^4 0] )) 302s ***** test 302s % vector of polys with mix of vars: symvar on each 302s syms x y 302s a = [6*x 7*y]; 302s b = mod(a, 4); 302s c = [2*x 3*y]; 302s assert (isequal (b, c)) 303s ***** test 303s % coeff has variable 303s syms x 303s n = sym('n', 'integer'); 303s p = (3*n + 2)*x; 303s q = mod(p, 3); 303s assert (isequal (q, 2*x)) 303s ***** test 303s % coeff has variable 303s syms x a 303s p = a*x; 303s q = mod(p, 3); 303s q = children(q); 303s q = q(2); % order might be fragile! 303s w = subs(q, a, 5); 303s assert (isequal (w, 2)) 303s ***** test 303s % different modulo 303s syms x y 303s q = mod([5*x + 10 5*y + 10], [2 3]); 303s assert (isequal (q, [x 2*y + 1])) 303s 11 tests, 11 passed, 0 known failure, 0 skipped 303s [inst/@sym/atanh.m] 303s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/atanh.m 303s ***** error atanh (sym(1), 2) 303s ***** assert (isequaln (atanh (sym(nan)), sym(nan))) 303s ***** shared x, d 303s d = 1/2; 303s x = sym('1/2'); 303s ***** test 303s f1 = atanh(x); 303s f2 = atanh(d); 303s assert( abs(double(f1) - f2) < 1e-15 ) 303s ***** test 303s D = [d d; d d]; 303s A = [x x; x x]; 303s f1 = atanh(A); 303s f2 = atanh(D); 303s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 304s ***** test 304s % round trip 304s y = sym('y'); 304s A = atanh (d); 304s f = atanh (y); 304s h = function_handle (f); 304s B = h (d); 304s assert (A, B, -eps) 304s 5 tests, 5 passed, 0 known failure, 0 skipped 304s [inst/@sym/vertcat.m] 304s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/vertcat.m 304s ***** test 304s % basic 304s syms x 304s A = [x; x]; 304s B = vertcat(x, x); 304s C = vertcat(x, x, x); 304s assert (isa (A, 'sym')) 304s assert (isa (B, 'sym')) 304s assert (isa (C, 'sym')) 304s assert (isequal (size(A), [2 1])) 304s assert (isequal (size(B), [2 1])) 304s assert (isequal (size(C), [3 1])) 304s ***** test 304s % basic, part 2 304s syms x 304s A = [x; 1]; 304s B = [1; x]; 304s C = [1; 2; x]; 304s assert (isa (A, 'sym')) 304s assert (isa (B, 'sym')) 304s assert (isa (C, 'sym')) 304s assert (isequal (size(A), [2 1])) 304s assert (isequal (size(B), [2 1])) 304s assert (isequal (size(C), [3 1])) 304s ***** test 304s % column vectors 304s a = [sym(1); 2]; 304s b = [sym(3); 4]; 304s assert (isequal ( [a;b] , [1; 2; 3; 4] )) 304s assert (isequal ( [a;b;a] , [1; 2; 3; 4; 1; 2] )) 304s ***** test 304s % row vectors 304s a = [sym(1) 2]; 304s b = [sym(3) 4]; 304s assert (isequal ( [a;b] , [1 2; 3 4] )) 304s assert (isequal ( [a;b;a] , [1 2; 3 4; 1 2] )) 304s ***** test 304s % row vector, other row 304s a = [sym(1) 2]; 304s assert (isequal ( [a; [sym(3) 4]] , [1 2; 3 4] )) 304s ***** test 304s % empty vectors 304s v = [sym(1) sym(2)]; 304s a = [v; []]; 304s assert (isequal (a, v)) 304s a = [[]; v; []]; 304s assert (isequal (a, v)) 304s a = [v; []; []]; 304s assert (isequal (a, v)) 304s ***** xtest 304s % FIXME: is this Octave bug? worth worrying about 304s syms x 304s a = [x; [] []]; 304s assert (isequal (a, x)) 304s !!!!! known failure 304s octave_base_value::map_value(): wrong type argument 'null_matrix' 304s ***** test 304s % more empty vectors 304s v = [sym(1) sym(2)]; 304s q = sym(ones(0, 2)); 304s assert (isequal ([v; q], v)) 304s ***** error 304s v = [sym(1) sym(2)]; 304s q = sym(ones(0, 3)); 304s w = vertcat(v, q); 304s ***** test 304s % Octave 3.6 bug: should pass on 3.8.1 and matlab 304s a = [sym(1) 2]; 304s assert (isequal ( [a; [3 4]] , [1 2; 3 4] )) 304s assert (isequal ( [a; sym(3) 4] , [1 2; 3 4] )) 304s % more examples 304s syms x 304s [x [x x]; x x x]; 304s [[x x] x; x x x]; 304s [[x x] x; [x x] x]; 304s [x x x; [x x] x]; 305s ***** test 305s % issue #700 305s A = sym ([1 2]); 305s B = simplify (A); 305s assert (isequal ([B; A], [A; B])) 305s 11 tests, 10 passed, 1 known failure, 0 skipped 305s [inst/@sym/private_disp_name.m] 305s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/private_disp_name.m 305s ***** test 305s syms x 305s s = private_disp_name(x, 'x'); 305s assert (strcmp (s, 'x')) 305s 1 test, 1 passed, 0 known failure, 0 skipped 305s [inst/@sym/ellipticCPi.m] 305s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/ellipticCPi.m 305s ***** error ellipticCPi (sym (1)) 305s ***** error ellipticCPi (sym (1), 2, 3) 305s ***** assert (double (ellipticCPi (0, sym (1)/2)), 1.854074677, 10e-10) 305s ***** assert (double (ellipticCPi (sym (6)/10, sym(71)/10)), 1.29469534336658, -20*eps) 305s 4 tests, 4 passed, 0 known failure, 0 skipped 305s [inst/@sym/logint.m] 305s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/logint.m 305s ***** error logint (sym(1), 2) 305s ***** xtest 305s assert (isequaln (logint (sym(nan)), sym(nan))) 305s !!!!! known failure 305s assert (isequaln (logint (sym (nan)), sym (nan))) failed 305s ***** shared x, d 305s d = 2; 305s x = sym('2'); 305s ***** test 305s f1 = logint(x); 305s f2 = 1.045163780117492784845; 305s assert( abs(double(f1) - f2) < 1e-15 ) 305s ***** test 305s D = [d d; d d]; 305s A = [x x; x x]; 305s f1 = logint(A); 305s f2 = 1.045163780117492784845; 305s f2 = [f2 f2; f2 f2]; 305s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 305s ***** test 305s % round trip 305s y = sym('y'); 305s A = logint (d); 305s f = logint (y); 305s h = function_handle (f); 305s B = h (d); 305s assert (A, B, -eps) 305s 5 tests, 4 passed, 1 known failure, 0 skipped 305s [inst/@sym/lu.m] 305s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/lu.m 305s ***** test 305s % scalar 305s [l, u, p] = lu(sym(6)); 305s assert (isequal (l, sym(1))) 305s assert (isequal (u, sym(6))) 305s assert (isequal (p, sym(1))) 305s syms x 305s [l, u, p] = lu(x); 305s assert (isequal (l*u, p*x)) 305s [l, u] = lu(x); 305s assert (isequal (l*u, x)) 306s ***** test 306s % perm 306s A = sym(fliplr(2*eye(3))); 306s [L, U, P] = lu(A); 306s assert (isequal (L*U, P*A)) 306s [L, U, P] = lu(A, 'matrix'); 306s assert (isequal (L*U, P*A)) 306s [L, U, p] = lu(A, 'vector'); 306s assert (isequal (L*U, A(p,:))) 306s [L, U] = lu(A); 306s assert (isequal (L*U, A)) 306s ***** test 306s % p is col vectpr 306s A = sym([0 2; 3 4]); 306s [L, U, p] = lu(A, 'vector'); 306s assert(iscolumn(p)) 306s ***** test 306s % simple matrix 306s A = [1 2; 3 4]; 306s B = sym(A); 306s [L, U, P] = lu(B); 306s assert (isequal (L*U, P*B)) 306s assert (isequal (U(2,1), sym(0))) 306s % needs pivot 306s A = [0 2; 3 4]; 306s B = sym(A); 306s [L, U, P] = lu(B); 306s [Ld, Ud, Pd] = lu(A); 306s assert (isequal (L*U, P*A)) 306s assert (isequal (U(2,1), sym(0))) 306s % matches regular LU 306s assert ( max(max(double(L)-Ld)) <= 10*eps) 306s assert ( max(max(double(U)-Ud)) <= 10*eps) 306s assert ( isequal (P, Pd)) 307s ***** test 307s % rectangular 307s A = sym([1 2; 3 4; 5 6]); 307s [L, U] = lu (A); 307s assert (isequal (L*U, A)) 307s ***** test 307s % rectangular 307s A = sym([1 2 3; 4 5 6]); 307s [L, U] = lu (A); 307s assert (isequal (L*U, A)) 307s ***** test 307s % rectangular, repeated row 307s A = sym([1 2 3; 2 4 6]); 307s [L, U] = lu (A); 307s assert (isequal (L*U, A)) 307s ***** test 307s % rectangular, needs permutation 307s A = sym([0 0 0; 1 2 3]); 307s [L, U] = lu (A); 307s assert (isequal (L*U, A)) 307s assert (~isequal (tril (L), L)) 307s [L, U, P] = lu (A); 307s assert (isequal (L*U, P*A)) 307s assert (isequal (tril (L), L)) 307s 8 tests, 8 passed, 0 known failure, 0 skipped 307s [inst/@sym/tand.m] 307s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/tand.m 307s ***** error tand (sym(1), 2) 307s ***** assert (isequaln (tand (sym(nan)), sym(nan))) 307s ***** test 307s f1 = tand (sym(1)); 307s f2 = tand (1); 307s assert (double (f1), f2, -eps) 307s ***** test 307s D = [10 30; 110 -45]; 307s A = sym(D); 307s f1 = tand (A); 307s f2 = tand (D); 307s assert (double (f1), f2, -eps) 307s 4 tests, 4 passed, 0 known failure, 0 skipped 307s [inst/@sym/sym2poly.m] 307s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/sym2poly.m 307s ***** shared x,y,a,b,c 307s syms x y a b c 307s ***** assert (isequal (sym2poly (x^2 + 3*x - 4), [1 3 -4])) 307s ***** assert (isequal (sym2poly (x^6 - x^3), [1 0 0 -1 0 0 0])) 308s ***** assert (isequal (sym2poly (x^2 + 3*x - 4, x), [1 3 -4])) 308s ***** assert (norm (sym2poly (pi*x^2 + exp(sym(1))) - [pi 0 exp(1)]) < 10*eps) 308s ***** assert (isa (sym2poly (x^2 + 3*x - 4), 'double')) 308s ***** assert (isa (sym2poly (x^2 + 3*x - 4, x), 'sym')) 308s ***** assert (isequal (sym2poly (x^2+y*x, x), [sym(1) y sym(0)])) 308s ***** assert (isequal (sym2poly (x^2+y*x, y), [x x^2])) 309s ***** assert (isequal (sym2poly (poly2sym ([a b c], x), x), [a b c])) 309s ***** assert (isequal (poly2sym (sym2poly(a*x^2 + c, x), x), a*x^2 + c)) 309s ***** assert (isequal (sym2poly (poly2sym ([1 2 3])), [1 2 3])) 309s ***** error 309s % too many symbols for single-input 309s p = a*x^2 + 2; 309s c = sym2poly (p); 309s ***** assert (isequal (sym2poly (sym(5)), sym(5))) 309s 13 tests, 13 passed, 0 known failure, 0 skipped 309s [inst/@sym/inv.m] 309s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/inv.m 309s ***** test 309s % scalar 309s syms x 309s assert (isequal (inv(x), 1/x)) 309s ***** test 309s % diagonal 309s syms x 309s A = [sym(1) 0; 0 x]; 309s B = [sym(1) 0; 0 1/x]; 309s assert (isequal (inv(A), B)) 310s ***** test 310s % 2x2 inverse 310s A = [1 2; 3 4]; 310s assert (max (max (abs (double (inv (sym (A))) - inv(A)))) <= 3*eps) 310s ***** error 310s syms a; 310s A = [a a; a a]; 310s inv(A) 310s ***** error 310s syms a; 310s A = [a a]; 310s inv(A) 310s 5 tests, 5 passed, 0 known failure, 0 skipped 310s [inst/@sym/cumprod.m] 310s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/cumprod.m 310s ***** shared x, y 310s x = sym ('x'); 310s y = sym ('y'); 310s ***** error cumprod (x, 1, 2) 310s ***** assert (isequal (cumprod ([-x; -2*x; -3*x]), [-x; 2*x^2; -6*x^3])) 310s ***** assert (isequal (expand (cumprod ([x + i, x - i])), [x + i, x^2 + 1])) 310s ***** assert (isequal (cumprod ([1, x; y, 2], 1), [1, x; y, 2*x] )) 310s ***** assert (isequal (cumprod ([1, x; y, 2], 2), [1, x; y, 2*y] )) 311s ***** test cumprod ([x, x], [2, 1]); # ensure behaves like builtin cumprod 311s ***** test cumprod ([x, x], [1, -2]); # ensure behaves like builtin cumprod 311s ***** error cumprod (x, []) 311s ***** error cumprod (x, {1}) 311s ***** error cumprod (x, struct('a', 1)) 311s ***** error cumprod (x, x) 311s ***** error cumprod (x, 0) 311s ***** error cumprod (x, -1) 311s 13 tests, 13 passed, 0 known failure, 0 skipped 311s [inst/@sym/fresnels.m] 311s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/fresnels.m 311s ***** error fresnels (sym(1), 2) 311s ***** test 311s a = fresnels(sym(0)); 311s assert (isequal (a, sym(0))) 311s ***** test 311s b = fresnels(sym('oo')); 311s assert (isequal (b, sym(1)/2)) 311s ***** test 311s % values in a matrix 311s syms x 311s a = fresnels([sym(0) sym('oo') x 1]); 311s b = [sym(0) sym(1)/2 fresnels(x) fresnels(sym(1))]; 311s assert (isequal (a, b)) 311s ***** test 311s % round trip 311s syms x 311s f = fresnels (x); 311s h = function_handle (f); 311s A = h (1.1); 311s B = fresnels (1.1); 311s assert (A, B) 311s 5 tests, 5 passed, 0 known failure, 0 skipped 311s [inst/@sym/psi.m] 311s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/psi.m 311s ***** assert (isequal (psi (sym (1)), -eulergamma)) 311s ***** assert (isequal (psi (1, sym (1)), sym (pi)^2/6)) 311s ***** assert (isinf (psi (sym ('inf')))) 311s ***** test 311s % compare to Maple: evalf(Psi(-101/100)); 311s maple = vpa ('100.3963127058453949545769053445198842332424', 40); 311s us = vpa (psi (sym (-101)/100), 40); 311s assert (abs(double(maple-us)) < 1e-39) 311s ***** test 311s % compare to Maple: evalf(Psi(1, 3*I-2)); 311s maple = vpa ('-0.1651414829219882371561038184133243839778799', 40) - ... 311s vpa ('0.1960040752985823275302034466611711263617296j', 40); 311s us = vpa (psi (1, sym (-2) + sym(3i)), 40); 311s assert (abs(double(maple-us)) < 1e-39) 311s ***** test 311s % should match @double/psi 311s if (exist ('psi','builtin')) 311s assert (psi (pi), double (psi (sym (pi))), -3*eps) 311s assert (psi (100), double (psi (sym (100))), -3*eps) 311s assert (psi (1e-3), double (psi (1/sym (1e3))), -3*eps) 311s if (exist ('OCTAVE_VERSION', 'builtin')) 311s % 2014a doesn't support negative or complex arguments 311s assert (psi (-1.5), double (psi (sym (-3)/2)), -3*eps) 311s assert (psi (-8.3), double (psi (sym (-83)/10)),-4*eps) 311s assert (psi (2i), double (psi (sym (2i))), -3*eps) 311s assert (psi (10i+3), double (psi (sym (10i)+3)), -3*eps) 311s end 311s end 312s ***** test 312s % @double/psi loses accuracy near the poles: note higher rel tol 312s if (exist ('psi','builtin')) 312s if (exist ('OCTAVE_VERSION', 'builtin')) 312s assert (psi (-1.1), double (psi (sym (-11)/10)), -6*eps) 312s assert (psi (-1.01), double (psi (sym (-101)/100)), -50*eps) 312s end 312s end 312s ***** test 312s if (exist ('psi','builtin')) 312s assert (psi (1, pi), double (psi (1, sym (pi))), -3*eps) 312s assert (psi (1, 100), double (psi (1, sym (100))), -3*eps) 312s assert (psi (1, 1e-4), double (psi (1, 1/sym (1e4))), -3*eps) 312s end 312s ***** test 312s if (exist ('psi','builtin')) 312s assert (psi (2, pi), double (psi (2, sym (pi))), -3*eps) 312s assert (psi (2, 1000), double (psi (2, sym (1000))), -3*eps) 312s assert (psi (2, 1e-4), double (psi (2, 1/sym (1e4))), -3*eps) 312s end 312s ***** test 312s % round trip 312s if (exist ('psi','builtin')) 312s syms x 312s f = psi (x); 312s h = function_handle (f); 312s A = h (1.1); 312s B = psi (1.1); 312s assert (A, B) 312s end 313s 10 tests, 10 passed, 0 known failure, 0 skipped 313s [inst/@sym/isvector.m] 313s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/isvector.m 313s ***** assert(isvector(sym('x'))) 313s ***** assert(isvector(sym([1 2 3]))) 313s ***** assert(isvector(sym([1; 2]))) 313s ***** assert(~isvector(sym([1 2; 3 4]))) 313s ***** assert(~isvector(sym([]))) 313s ***** assert(isvector(sym(ones(1,0)))) 313s ***** assert(~isvector(sym(ones(0,3)))) 313s 7 tests, 7 passed, 0 known failure, 0 skipped 313s [inst/@sym/hilb.m] 313s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/hilb.m 313s ***** test 313s A = hilb (sym(3)); 313s 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]; 313s assert (isequal (A, B)) 313s 1 test, 1 passed, 0 known failure, 0 skipped 313s [inst/@sym/subs.m] 313s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/subs.m 313s ***** error subs (sym(1), 2, 3, 4) 313s ***** shared x,y,t,f 313s syms x y t 313s f = x*y; 313s ***** test 313s assert( isequal( subs(f, x, y), y^2 )) 313s assert( isequal( subs(f, y, sin(x)), x*sin(x) )) 313s assert( isequal( subs(f, x, 16), 16*y )) 313s ***** test 313s % multiple subs w/ cells 313s assert( isequal( subs(f, {x}, {t}), y*t )) 313s assert( isequal( subs(f, {x y}, {t t}), t*t )) 313s assert( isequal( subs(f, {x y}, {t 16}), 16*t )) 313s assert( isequal( subs(f, {x y}, {16 t}), 16*t )) 313s assert( isequal( subs(f, {x y}, {2 16}), 32 )) 313s ***** test 313s % multiple subs w/ vectors 313s assert( isequal( subs(f, [x y], [t t]), t*t )) 313s assert( isequal( subs(f, [x y], [t 16]), 16*t )) 313s assert( isequal( subs(f, [x y], [2 16]), 32 )) 313s ***** test 313s % anything you can think of 313s assert( isequal( subs(f, [x y], {t t}), t*t )) 313s assert( isequal( subs(f, {x y}, [t t]), t*t )) 313s assert( isequal( subs(f, {x; y}, [t; t]), t*t )) 314s ***** test 314s % sub in doubles gives sym (matches SMT 2013b) 314s % FIXME: but see 314s % http://www.mathworks.co.uk/help/symbolic/gradient.html 314s assert( isequal( subs(f, {x y}, {2 pi}), 2*sym(pi) )) 314s assert( ~isa(subs(f, {x y}, {2 pi}), 'double')) 314s assert( isa(subs(f, {x y}, {2 pi}), 'sym')) 314s assert( isa(subs(f, {x y}, {2 sym(pi)}), 'sym')) 314s assert( isa(subs(f, {x y}, {sym(2) sym(pi)}), 'sym')) 314s ***** shared x,y,t,f,F 314s syms x y t 314s f = sin(x)*y; 314s F = [f; 2*f]; 314s ***** test 314s % need the simultaneous=True flag in SymPy (matches SMT 2013b) 314s assert( isequal( subs(f, [x t], [t 6]), y*sin(t) )) 314s assert( isequal( subs(F, [x t], [t 6]), [y*sin(t); 2*y*sin(t)] )) 314s ***** test 314s % swap x and y (also needs simultaneous=True 314s assert( isequal( subs(f, [x y], [y x]), x*sin(y) )) 314s ***** test 314s % but of course both x and y to t still works 314s assert( isequal( subs(f, [x y], [t t]), t*sin(t) )) 314s ***** shared 314s ***** test 314s % Issue #10, subbing matrices in for scalars 314s syms y 314s a = sym([1 2; 3 4]); 314s f = sin(y); 314s g = subs(f, y, a); 314s assert (isequal (g, sin(a))) 314s ***** test 314s % Issue #10, subbing matrices in for scalars 314s syms y 314s a = sym([1 2]); 314s g = subs(sin(y), {y}, {a}); 314s assert (isequal (g, sin(a))) 314s ***** test 314s % Issue #10, subbing matrices in for scalars 314s syms y 314s a = sym([1; 2]); 314s g = subs(sin(y), {y}, a); 314s assert (isequal (g, sin(a))) 314s ***** test 314s % Issue #10, subbing matrices in for scalars 314s syms y 314s a = [10 20 30]; 314s f = 2*y; 314s g = subs(f, y, a); 314s assert (isequal (g, 2*a)) 314s assert (isa (g, 'sym')) 314s ***** test 314s % Issue #10, sub matrices in for two scalars 314s syms x y 314s a = [10 20 30]; 314s f = x^2*y; 314s g = subs(f, {x y}, {a a+1}); 314s h = a.^2.*(a+1); 314s assert (isequal (g, h)) 314s ***** test 314s % Issue #10, sub matrices in for two scalars 314s syms x y z 314s a = [10 20 30]; 314s f = x^2*y; 314s g = subs(f, {x y}, {a z}); 314s h = a.^2*z; 314s assert (isequal (g, h)) 314s g = subs(f, {x y}, {a 6}); 314s h = a.^2*6; 314s assert (isequal (g, h)) 315s ***** error 315s syms x y 315s a = [10 20 30]; 315s f = x^2*y; 315s g = subs(f, {x y}, {[10 20 30] [10 20]}); 315s ***** test 315s % two inputs 315s syms x y 315s assert (isequal (subs (2*x, 6), sym(12))) 315s assert (isequal (subs (2*x*y^2, 6), 12*y^2)) 315s assert (isequal (subs (2*y, 6), sym(12))) 315s assert (isequal (subs (sym(2), 6), sym(2))) 315s ***** test 315s % only two inputs, vector 315s syms x 315s assert (isequal (subs (2*x, [3 5]), sym([6 10]))) 315s ***** test 315s % SMT compat, subbing in vec/mat for nonexist x 315s syms x y z 315s % you might think this would be y: 315s assert (~ isequal (subs (y, x, [1 2]), y)) 315s % but it gives two y's: 315s assert (isequal (subs (y, x, [1 2]), [y y])) 315s assert (isequal (subs (sym(42), [3 5]), sym([42 42]))) 315s assert (isequal (subs (sym(42), x, []), sym([]))) 315s assert (isequal (subs (y, {x y}, {[1 2; 3 4], 6}), sym([6 6; 6 6]))) 315s assert (isequal (subs (y, {x z}, {[1 2; 3 4], 6}), [y y; y y])) 316s ***** test 316s syms x y 316s assert (isequal (subs (sym(42), x, y), sym(42))) 316s assert (isequal (subs (sym(42), y), sym(42))) 316s assert (isequal (subs (sym(42)), sym(42))) 316s ***** test 316s % empty lists 316s assert (isequal (subs (sym(42), {}, {}), sym(42))) 316s assert (isequal (subs (42, sym([]), sym([])), sym(42))) 316s ***** test 316s syms x y 316s f = x*y; 316s x = 6; y = 7; 316s g = subs (f); 316s assert (isequal (g, sym (42))) 316s assert (isa (g, 'sym')) 316s ***** test 316s syms x y 316s f = x*y; 316s x = 6; 316s g = subs (f); 316s assert (isequal (g, 6*y)) 316s ***** test 316s syms x y 316s f = x*y; 316s xsave = x; 316s x = 6; 316s g = subs (f); 316s assert (isequal (g, 6*y)) 316s assert (isequal (f, xsave*y)) 316s ***** test 316s syms a x y 316s f = a*x*y; 316s a = 6; 316s clear x 316s g = subs (f); 316s syms x 316s assert (isequal (g, 6*x*y)) 316s 25 tests, 25 passed, 0 known failure, 0 skipped 316s [inst/@sym/acsch.m] 316s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/acsch.m 316s ***** error acsch (sym(1), 2) 316s ***** assert (isequaln (acsch (sym(nan)), sym(nan))) 316s ***** shared x, d 316s d = 1; 316s x = sym('1'); 316s ***** test 316s f1 = acsch(x); 316s f2 = acsch(d); 316s assert( abs(double(f1) - f2) < 1e-15 ) 316s ***** test 316s D = [d d; d d]; 316s A = [x x; x x]; 316s f1 = acsch(A); 316s f2 = acsch(D); 316s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 316s ***** test 316s % round trip 316s y = sym('y'); 316s A = acsch (d); 316s f = acsch (y); 316s h = function_handle (f); 316s B = h (d); 316s assert (A, B, -eps) 317s 5 tests, 5 passed, 0 known failure, 0 skipped 317s [inst/@sym/partfrac.m] 317s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/partfrac.m 317s ***** test 317s % basic 317s syms x y z 317s assert(logical( partfrac(y/(x + 2)/(x + 1),x) == -y/(x + 2) + y/(x + 1) )) 317s assert(logical( factor(partfrac(x^2/(x^2 - y^2),y)) == factor(x/(2*(x + y)) + x/(2*(x - y)) ))) 317s assert(logical( factor(partfrac(x^2/(x^2 - y^2),x)) == factor(-y/(2*(x + y)) + y/(2*(x - y)) + 1 ))) 317s 1 test, 1 passed, 0 known failure, 0 skipped 317s [inst/@sym/pinv.m] 317s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/pinv.m 317s ***** test 317s % scalar 317s syms x 317s assert (isequal (pinv(x), 1/x)) 318s ***** test 318s % 2x3 318s A = [1 2 3; 4 5 6]; 318s assert (max (max (abs (double (pinv (sym (A))) - pinv(A)))) <= 10*eps) 318s 2 tests, 2 passed, 0 known failure, 0 skipped 318s [inst/@sym/asech.m] 318s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/asech.m 318s ***** error asech (sym(1), 2) 318s ***** assert (isequaln (asech (sym(nan)), sym(nan))) 318s ***** shared x, d 318s d = 1/2; 318s x = sym('1/2'); 318s ***** test 318s f1 = asech(x); 318s f2 = asech(d); 318s assert( abs(double(f1) - f2) < 1e-15 ) 318s ***** test 318s D = [d d; d d]; 318s A = [x x; x x]; 318s f1 = asech(A); 318s f2 = asech(D); 318s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 318s ***** test 318s % round trip 318s y = sym('y'); 318s A = asech (d); 318s f = asech (y); 318s h = function_handle (f); 318s B = h (d); 318s assert (A, B, -eps) 318s 5 tests, 5 passed, 0 known failure, 0 skipped 318s [inst/@sym/function_handle.m] 318s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/function_handle.m 318s ***** shared x,y,z 318s syms x y z 318s ***** test 318s % basic test 318s h = function_handle(2*x); 318s assert(isa(h, 'function_handle')) 318s assert(h(3)==6) 318s ***** test 318s % autodetect inputs 318s h = function_handle(2*x*y, x+y); 318s [t1, t2] = h(3,5); 318s assert(t1 == 30 && t2 == 8) 318s ***** test 318s % specified inputs 318s h = function_handle(2*x*y, 'vars', [x y]); 318s assert(h(3,5)==30) 318s h = function_handle(2*x*y, x+y, 'vars', [x y]); 318s [t1, t2] = h(3,5); 318s assert(t1 == 30 && t2 == 8) 318s ***** test 318s % cell arrays for vars list 318s h = function_handle(2*x*y, x+y, 'vars', {x y}); 318s [t1, t2] = h(3,5); 318s assert(t1 == 30 && t2 == 8) 318s h = function_handle(2*x*y, x+y, 'vars', {'x' 'y'}); 318s [t1, t2] = h(3,5); 318s assert(t1 == 30 && t2 == 8) 318s ***** test 318s % cell arrays specfies order, overriding symvar order 318s h = function_handle(x*y, 12/y, 'vars', {y x}); 318s [t1, t2] = h(3, 6); 318s assert(t1 == 18 && t2 == 4) 318s h = function_handle(x*y, 12/y, 'vars', [y x]); 318s [t1, t2] = h(3, 6); 318s assert(t1 == 18 && t2 == 4) 318s ***** test 318s % cell arrays specfies order, overriding symvar order 318s h = function_handle(x*y, 12/y, 'vars', {y x}); 318s [t1, t2] = h(3, 6); 318s assert(t1 == 18 && t2 == 4) 318s h = function_handle(x*y, 12/y, 'vars', [y x]); 318s [t1, t2] = h(3, 6); 318s assert(t1 == 18 && t2 == 4) 319s ***** test 319s % Functions with different names in Sympy. 319s f = abs(x); % becomes Abs(x) 319s h = function_handle(f); 319s assert(h(-10) == 10) 319s f = ceil(x); 319s h = function_handle(f); 319s assert(h(10.1) == 11) 319s ***** test 319s % 'file' with empty filename returns handle 319s h = function_handle(2*x*y, 'file', ''); 319s assert(isa(h, 'function_handle')) 319s assert(h(3,5)==30) 319s h = function_handle(2*x*y, 'vars', {x y}, 'file', ''); 319s assert(isa(h, 'function_handle')) 319s assert(h(3,5)==30) 319s ***** test 319s % output to disk 319s fprintf('\n') 319s if (exist ('OCTAVE_VERSION', 'builtin')) 319s temp_file = tempname('', 'oct_'); 319s else 319s temp_file = tempname(); 319s end 319s % allow loading function from temp_file 319s [temp_path, ans, ans] = fileparts(temp_file); 319s addpath(temp_path); 319s f = function_handle(2*x*y, 2^x, 'vars', {x y z}, 'file', temp_file); 319s assert( isa(f, 'function_handle')) 319s addpath(temp_path); % Matlab 2014a needs this? 319s [a,b] = f(10,20,30); 319s assert (isnumeric (a) && isnumeric (b)) 319s assert (a == 400) 319s assert (b == 1024) 319s if (exist ('OCTAVE_VERSION', 'builtin')) 319s assert (unlink([temp_file '.m']) == 0) 319s else 319s delete ([temp_file '.m']) 319s end 319s % remove temp_path from load path 319s rmpath(temp_path); 319s 319s Wrote file /tmp/oct_sMcCPl.m. 319s ***** test 319s % output to disk: also works with .m specified 319s if (exist ('OCTAVE_VERSION', 'builtin')) 319s temp_file = [tempname('', 'oct_') '.m']; 319s else 319s temp_file = [tempname() '.m']; 319s end 319s % allow loading function from temp_file 319s [temp_path, ans, ans] = fileparts(temp_file); 319s addpath(temp_path); 319s f = function_handle(2*x*y, 2^x, 'vars', {x y z}, 'file', temp_file); 319s assert( isa(f, 'function_handle')) 319s addpath(temp_path); % Matlab 2014a needs this? 319s [a,b] = f(10,20,30); 319s assert (isnumeric (a) && isnumeric (b)) 319s assert (a == 400) 319s assert (b == 1024) 319s if (exist ('OCTAVE_VERSION', 'builtin')) 319s assert (unlink(temp_file) == 0) 319s else 319s delete (temp_file) 319s end 319s % remove temp_path from load path 319s rmpath(temp_path); 319s Wrote file /tmp/oct_WpwZwb.m. 319s ***** test 319s % non-scalar outputs 319s H = [x y z]; 319s M = [x y; z 16]; 319s V = [x;y;z]; 319s h = function_handle(H, M, V); 319s [t1,t2,t3] = h(1,2,3); 319s assert(isequal(t1, [1 2 3])) 319s assert(isequal(t2, [1 2; 3 16])) 319s assert(isequal(t3, [1;2;3])) 319s ***** test 319s % non-scalar outputs in .m files 319s H = [x y z]; 319s M = [x y; z 16]; 319s V = [x;y;z]; 319s if (exist ('OCTAVE_VERSION', 'builtin')) 319s temp_file = tempname('', 'oct_'); 319s else 319s temp_file = tempname(); 319s end 319s % allow loading function from temp_file 319s [temp_path, ans, ans] = fileparts(temp_file); 319s addpath(temp_path); 319s h = function_handle(H, M, V, 'vars', {x y z}, 'file', temp_file); 319s assert( isa(h, 'function_handle')) 319s addpath(temp_path); % Matlab 2014a needs this? 319s [t1,t2,t3] = h(1,2,3); 319s assert(isequal(t1, [1 2 3])) 319s assert(isequal(t2, [1 2; 3 16])) 319s assert(isequal(t3, [1;2;3])) 319s if (exist ('OCTAVE_VERSION', 'builtin')) 319s assert (unlink([temp_file '.m']) == 0) 319s else 319s delete ([temp_file '.m']) 319s end 319s % remove temp_path from load path 319s rmpath(temp_path); 319s Wrote file /tmp/oct_qFcxhZ.m. 319s ***** test 319s % order of outputs is lexiographic 319s syms a A x y 319s f = y + 10*a + 100*x + 1000*A; 319s h = function_handle(f); 319s assert (h(1, 2, 3, 4) == 1000 + 20 + 300 + 4) 319s ***** test 319s % https://github.com/cbm755/octsympy/issues/854 319s f = function_handle (x + 1i*sqrt (sym(3))); 319s assert (f (1), complex (1, sqrt (3)), -eps) 319s 14 tests, 14 passed, 0 known failure, 0 skipped 319s [inst/@sym/tan.m] 319s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/tan.m 319s ***** error tan (sym(1), 2) 319s ***** assert (isequaln (tan (sym(nan)), sym(nan))) 319s ***** shared x, d 319s d = 1; 319s x = sym('1'); 319s ***** test 319s f1 = tan(x); 319s f2 = tan(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 = tan(A); 319s f2 = tan(D); 319s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 319s ***** test 319s % round trip 319s y = sym('y'); 319s A = tan (d); 319s f = tan (y); 319s h = function_handle (f); 319s B = h (d); 319s assert (A, B, -eps) 320s 5 tests, 5 passed, 0 known failure, 0 skipped 320s [inst/@sym/zeros.m] 320s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/zeros.m 320s ***** test 320s y = zeros(sym(2)); 320s x = [0 0; 0 0]; 320s assert( isequal( y, sym(x))) 320s ***** test 320s y = zeros(sym(2), 1); 320s x = [0; 0]; 320s assert( isequal( y, sym(x))) 320s ***** test 320s y = zeros(sym(1), 2); 320s x = [0 0]; 320s assert( isequal( y, sym(x))) 320s ***** test 320s y = zeros (sym([2 3])); 320s x = sym (zeros ([2 3])); 320s assert (isequal (y, x)) 320s ***** assert( isa( zeros(sym(2), 'double'), 'double')) 320s ***** assert( isa( zeros(3, sym(3), 'single') , 'single')) 320s ***** assert( isa( zeros(3, sym(3)), 'sym')) 320s ***** assert( isa( zeros(3, sym(3), 'sym'), 'sym')) 320s ***** xtest 320s % Issue #13 320s assert( isa( zeros(3, 3, 'sym'), 'sym')) 320s !!!!! known failure 320s invalid data type specified 320s 9 tests, 8 passed, 1 known failure, 0 skipped 320s [inst/@sym/permute.m] 320s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/permute.m 320s ***** error permute (sym(1)) 320s ***** error permute (sym(1), 2, 3) 320s ***** test 320s D = round(10*rand(5,3)); 320s A = sym(D); 320s B = permute(A, [1 2]); 320s assert (isequal(B, A)) 320s B = permute(A, [2 1]); 320s assert (isequal(B, A.')) 320s ***** test 320s syms x 320s A = [1 x]; 320s B = permute(A, [2 1]); 320s assert (isequal(B, [1; x])) 320s 4 tests, 4 passed, 0 known failure, 0 skipped 320s [inst/@sym/gammainc.m] 320s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/gammainc.m 320s ***** assert (isequal (gammainc (sym(0), 1), sym(0))) 320s ***** assert (isequal (gammainc (sym(0), 2), sym(0))) 320s ***** assert (isequal (gammainc (sym('oo'), 1), sym(1))) 321s ***** assert (isequal (gammainc (sym(0), 1, 'upper'), sym(1))) 321s ***** assert (isequal (gammainc (sym(0), 2, 'upper'), sym(1))) 321s ***** assert (isequal (gammainc (sym('oo'), 1, 'upper'), sym(0))) 321s ***** test 321s % default is lower 321s syms x a 321s assert (isequal (gammainc (x, a), gammainc(x, a, 'lower'))) 321s ***** test 321s % compare to double 321s x = 5; a = 1; 321s A = gammainc (x, a); 321s B = double (gammainc (sym(x), a)); 321s assert(A, B, -eps) 321s ***** test 321s % compare to double where gamma(a) != 1 321s x = 5; a = 3; 321s A = gammainc (x, a); 321s B = double (gammainc (sym(x), a)); 321s assert(A, B, -eps) 321s ***** test 321s % compare to double 321s x = 100; a = 1; 321s A = gammainc (x, a); 321s B = double (gammainc (sym(x), a)); 321s assert(A, B, -eps) 321s ***** test 321s % compare to double 321s xs = sym(1)/1000; x = 1/1000; a = 1; 321s A = gammainc (x, a); 321s B = double (gammainc (xs, a)); 321s assert(A, B, -eps) 321s ***** test 321s % compare to double 321s x = 5; a = 1; 321s A = gammainc (x, a, 'upper'); 321s B = double (gammainc (sym(x), a, 'upper')); 321s assert(A, B, -10*eps) 321s ***** test 321s % compare to double 321s x = 10; a = 1; 321s A = gammainc (x, a, 'upper'); 321s B = double (gammainc (sym(x), a, 'upper')); 321s assert(A, B, -10*eps) 321s ***** test 321s % compare to double 321s x = 40; a = 1; 321s A = gammainc (x, a, 'upper'); 321s B = double (gammainc (sym(x), a, 'upper')); 321s assert(A, B, -10*eps) 321s ***** test 321s % compare to double 321s xs = sym(1)/1000; x = 1/1000; a = 1; 321s A = gammainc (x, a, 'upper'); 321s B = double (gammainc (xs, a, 'upper')); 321s assert(A, B, -eps) 321s ***** test 321s % vectorized 321s P = gammainc([sym(pi) 2], [1 3]); 321s expected = [gammainc(pi, sym(1)) gammainc(2, sym(3))]; 321s assert (isequal (P, expected)) 321s ***** test 321s % vectorized 321s P = gammainc(sym(pi), [1 3]); 321s expected = [gammainc(sym(pi), 1) gammainc(sym(pi), 3)]; 321s assert (isequal (P, expected)) 322s ***** test 322s % vectorized 322s P = gammainc([sym(pi) 2], 1); 322s expected = [gammainc(pi, sym(1)) gammainc(2, sym(1))]; 322s assert (isequal (P, expected)) 322s ***** test 322s % round trip 322s syms x a 322s f = gammainc (x, a, 'upper'); 322s h = function_handle (f, 'vars', [x a]); 322s A = h (1.1, 2); 322s B = gammainc (1.1, 2, 'upper'); 322s assert (A, B) 322s ***** test 322s % round trip 322s syms x a 322s f = gammainc (x, a, 'lower'); 322s h = function_handle (f, 'vars', [x a]); 322s A = h (1.1, 2); 322s B = gammainc (1.1, 2, 'lower'); 322s assert (A, B) 322s ***** test 322s % round trip 322s syms x a 322s f = gammainc (x, a, 'upper'); 322s h = function_handle (f, 'vars', [x a]); 322s A = h (1.1, 2.2); 322s B = gammainc (1.1, 2.2, 'upper'); 322s assert (A, B) 322s ***** test 322s % round trip 322s syms x a 322s f = gammainc (x, a, 'lower'); 322s h = function_handle (f, 'vars', [x a]); 322s A = h (1.1, 2.2); 322s B = gammainc (1.1, 2.2, 'lower'); 322s assert (A, B) 322s 22 tests, 22 passed, 0 known failure, 0 skipped 322s [inst/@sym/dawson.m] 322s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/dawson.m 322s ***** test 322s if (exist ('OCTAVE_VERSION', 'builtin')) 322s % dawson missing on Matlab, Issue #742 322s A = dawson([1 2]); 322s B = double(dawson(sym([1 2]))); 322s assert(A, B, -eps) 322s end 322s 1 test, 1 passed, 0 known failure, 0 skipped 322s [inst/@sym/isnan.m] 322s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/isnan.m 322s ***** shared x,zoo,oo,snan 322s oo = sym(inf); 322s zoo = sym('zoo'); 322s x = sym('x'); 322s snan = sym(nan); 322s ***** test 322s % various ops that give nan 322s assert (isnan(0*oo)) 322s assert (isnan(0*zoo)) 322s assert (isnan(snan)) 322s assert (isnan(snan-snan)) 322s assert (isnan(oo+snan)) 322s assert (isnan(oo-oo)) 322s assert (isnan(oo-zoo)) 322s assert (isnan(oo+zoo)) 322s assert (~isnan(oo)) 322s assert (~isnan(zoo)) 322s assert (~isnan(oo+oo)) 322s ***** test 322s % more ops give nan 322s assert(isnan(x+snan)) 322s assert(isnan(x*snan)) 322s assert(isnan(0*snan)) 322s assert(isnan(x+nan)) 322s assert(isnan(x*nan)) 322s assert(isnan(sym(0)*nan)) 323s ***** test 323s % array 323s assert (isequal( isnan([oo zoo]), [0 0] )) 323s assert (isequal( isnan([10 snan]), [0 1] )) 323s assert (isequal( isnan([snan snan]), [1 1] )) 323s assert (isequal( isnan([snan x]), [1 0] )) 323s ***** test 323s % sub in to algebraic expression gives nan 323s y = x - oo; 323s y = subs(y, x, oo); 323s assert(isnan(y)) 323s ***** test 323s % Must not contain string 'symbol'; these all should make an 323s % actual nan. Actually a ctor test, not isnan. 323s y = sym(nan); 323s assert (isempty (strfind (sympy (y), 'Symbol'))) 323s y = sym('nan'); 323s assert (isempty (strfind (sympy (y), 'Symbol'))) 323s y = sym('NaN'); 323s assert (isempty( strfind (sympy (y), 'Symbol'))) 323s 5 tests, 5 passed, 0 known failure, 0 skipped 323s [inst/@sym/orth.m] 323s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/orth.m 323s ***** test 323s A = [1 2; 3 6]; 323s K = orth(A); 323s L = orth(sym(A)); 323s assert (isequal (size(L), [2 1])) 323s dif1 = abs (double(L) - K); 323s dif2 = abs (double(L) + K); 323s assert (all (dif1 < 1e-15) || all (dif2 < 1e-15)) 323s ***** test 323s A = [1; 3]; 323s K = orth(A); 323s L = orth(sym(A)); 323s assert (isequal (size(L), [2 1])) 323s dif1 = abs (double(L) - K); 323s dif2 = abs (double(L) + K); 323s assert (all (dif1 < 1e-16) || all (dif2 < 1e-16)) 323s ***** test 323s A = sym([1 2; 3 4]); 323s L = orth(sym(A)); 323s assert (isequal (size(L), [2 2])) 323s v = L(:, 1); 323s w = L(:, 2); 323s assert (isAlways (v' * v == 1)) 323s assert (isAlways (w' * w == 1)) 323s assert (isAlways (v' * w == 0)) 323s ***** test 323s A = sym([1 1; 1 0; 1 0]); 323s L = orth(sym(A)); 323s assert (isequal (size(L), [3 2])) 323s v = L(:, 1); 323s w = L(:, 2); 323s assert (isAlways (v' * v == 1)) 323s assert (isAlways (w' * w == 1)) 323s assert (isAlways (v' * w == 0)) 323s % y and z components must be equal 323s assert (isAlways (v(2) == v(3))) 323s assert (isAlways (w(2) == w(3))) 323s 4 tests, 4 passed, 0 known failure, 0 skipped 323s [inst/@sym/sinc.m] 323s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/sinc.m 323s ***** error sinc (sym(1), 2) 323s ***** assert (isequaln (sinc (sym(nan)), sym(nan))) 324s ***** assert (isequal (sinc (sym(0)), sym(1))) 324s ***** assert (isequal (sinc (sym(1)), sym(0))) 324s ***** assert (isequal (sinc (-sym(1)), sym(0))) 324s ***** assert (double (sinc (sym(pi))), sinc (pi), -10*eps) 324s ***** test 324s A = [-sym(1)/2 sym(1)/2 pi; -sym(7)/2 sym(71)/2 sym(101)/3]; 324s D = double (A); 324s assert (sinc (D), double (sinc (A)), -200*eps) 324s ***** test 324s A = [sym(51)/2 sym(1001)/3 sym(10001)/3 sym(100001)/3]; 324s D = double (A); 324s assert (sinc (D), double (sinc (A)), 1e-10) 325s ***** test 325s % round trip 325s syms x 325s A = sinc (1); 325s f = sinc (x); 325s h = function_handle (f); 325s B = h (1); 325s assert (A, B, -eps) 325s ***** test 325s % round trip 325s syms x 325s f = sinc (x); 325s h = function_handle (f); 325s A = sinc (1.5); 325s B = h (1.5); 325s assert (A, B, -eps) 325s ***** test 325s syms x 325s h = function_handle (sinc (x)); 325s A = double (sinc (sym (12)/10)); 325s B = h (1.2); 325s C = sinc (1.2); 325s assert (A, B, -eps) 325s assert (A, C, -eps) 325s 11 tests, 11 passed, 0 known failure, 0 skipped 325s [inst/@sym/times.m] 325s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/times.m 325s ***** test 325s % scalar 325s syms x 325s assert (isa (x.*2, 'sym')) 325s assert (isequal (x.*2, x*2)) 325s assert (isequal (2.*sym(3), sym(6))) 325s assert (isequal (sym(2).*3, sym(6))) 325s ***** test 325s % matrix-matrix and matrix-scalar 325s D = [0 1; 2 3]; 325s A = sym(D); 325s assert (isequal ( 2.*A , 2*D )) 325s assert (isequal ( A.*2 , 2*D )) 325s assert (isequal ( A.*A , D.*D )) 325s assert (isequal ( A.*D , D.*D )) 325s assert (isequal ( D.*A , D.*D )) 325s ***** test 325s syms x 325s A = [1 x]; 325s B = [2 3]; 325s assert (isequal (A.*B, [2 3*x])) 326s ***** test 326s % immutable test 326s A = sym([1 2]); 326s B = sym('ImmutableDenseMatrix([[Integer(1), Integer(2)]])'); 326s assert (isequal (A.*A, B.*B)) 326s :18: SyntaxWarning: invalid escape sequence '\(' 326s ***** test 326s % MatrixSymbol test 326s A = sym([1 2; 3 4]); 326s B = sym('ImmutableDenseMatrix([[Integer(1), Integer(2)], [Integer(3), Integer(4)]])'); 326s C = sym('MatrixSymbol("C", 2, 2)'); 326s assert (~ isempty (strfind (sympy (C.*C), 'Hadamard'))) 326s assert (~ isempty (strfind (sympy (A.*C), 'Hadamard'))) 326s assert (~ isempty (strfind (sympy (C.*A), 'Hadamard'))) 326s assert (~ isempty (strfind (sympy (B.*C), 'Hadamard'))) 326s assert (~ isempty (strfind (sympy (C.*B), 'Hadamard'))) 326s :18: SyntaxWarning: invalid escape sequence '\(' 326s :18: SyntaxWarning: invalid escape sequence '\(' 326s 5 tests, 5 passed, 0 known failure, 0 skipped 326s [inst/@sym/linspace.m] 326s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/linspace.m 326s ***** test 326s a = linspace(sym(3), 5, 5); 326s b = [sym(6) 7 8 9 10]/2; 326s assert (isequal (a, b)) 326s ***** test 326s % non-integers 326s A = linspace(0, sym(pi), 10); 326s assert (length (A) == 10); 326s assert (isequal (A(6), 5*sym(pi)/9)); 326s ***** test 326s % default argument for N 326s A = linspace(1, 100); 326s assert (length (A) == 100); 326s ***** test 326s % special case for just N = 1 326s A = linspace(sym(2), 3, 1); 326s assert (isequal (A, 3)) 326s A = linspace(sym(2), 3, 0); 326s assert (isequal (A, 3)) 326s A = linspace(sym(2), 3, sym(3)/2); 326s assert (isequal (A, 3)) 326s 4 tests, 4 passed, 0 known failure, 0 skipped 326s [inst/@sym/sec.m] 326s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/sec.m 326s ***** error sec (sym(1), 2) 326s ***** assert (isequaln (sec (sym(nan)), sym(nan))) 326s ***** shared x, d 326s d = 1; 326s x = sym('1'); 326s ***** test 326s f1 = sec(x); 326s f2 = sec(d); 326s assert( abs(double(f1) - f2) < 1e-15 ) 326s ***** test 326s D = [d d; d d]; 326s A = [x x; x x]; 326s f1 = sec(A); 326s f2 = sec(D); 326s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 326s ***** test 326s % round trip 326s y = sym('y'); 326s A = sec (d); 326s f = sec (y); 326s h = function_handle (f); 326s B = h (d); 326s assert (A, B, -eps) 326s 5 tests, 5 passed, 0 known failure, 0 skipped 326s [inst/@sym/min.m] 326s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/min.m 326s ***** test 326s % scalars with dim 326s a = min(sym(pi), [], 1); 326s b = sym(pi); 326s assert (isequal (a, b)); 326s a = min(sym(pi), [], 2); 326s assert (isequal (a, b)); 326s a = max(sym(pi), [], 1); 326s assert (isequal (a, b)); 326s a = max(sym(pi), [], 2); 326s assert (isequal (a, b)); 326s ***** shared A, D 326s D = [0 1 2 3]; 326s A = sym(D); 326s ***** test 326s % row vectors 326s assert (isequal (min(A), sym(min(D)))) 326s assert (isequal (min(A), sym(0))) 326s assert (isequal (max(A), sym(max(D)))) 326s assert (isequal (max(A), sym(3))) 327s ***** test 327s % row vectors with dim 327s assert (isequal (min(A, [], 1), sym(min(D, [], 1)))) 327s assert (isequal (min(A, [], 2), sym(min(D, [], 2)))) 327s assert (isequal (max(A, [], 1), sym(max(D, [], 1)))) 327s assert (isequal (max(A, [], 2), sym(max(D, [], 2)))) 327s ***** test 327s % column vectors 327s A = A.'; 327s D = D.'; 327s assert (isequal (min(A), sym(min(D)))) 327s assert (isequal (min(A), sym(0))) 327s assert (isequal (max(A), sym(max(D)))) 327s assert (isequal (max(A), sym(3))) 327s ***** test 327s % row vectors with dim 327s assert (isequal (min(A, [], 1), sym(min(D, [], 1)))) 327s assert (isequal (min(A, [], 2), sym(min(D, [], 2)))) 327s assert (isequal (max(A, [], 1), sym(max(D, [], 1)))) 327s assert (isequal (max(A, [], 2), sym(max(D, [], 2)))) 327s ***** shared 327s ***** test 327s % empty 327s a = min(sym([])); 327s assert(isempty(a)) 327s a = max(sym([])); 327s assert(isempty(a)) 327s ***** test 327s % matrix 327s A = [1 4 6; 2 2 5]; 327s A = sym(A); 327s assert (isequal (min(A), sym([1 2 5]))) 327s assert (isequal (min(A, [], 1), sym([1 2 5]))) 327s assert (isequal (min(A, [], 2), sym([1; 2]))) 327s assert (isequal (max(A), sym([2 4 6]))) 327s assert (isequal (max(A, [], 1), sym([2 4 6]))) 327s assert (isequal (max(A, [], 2), sym([6; 5]))) 327s ***** test 327s % index output is double not sym 327s [m, I] = min(sym(2), [], 1); 327s assert (strcmp(class(I), 'double')) 327s [m, I] = max(sym(2), [], 1); 327s assert (strcmp(class(I), 'double')) 327s ***** test 327s % empty rows/columns, I is double 327s A = sym(zeros(0, 4)); 327s [m, I] = min(A, [], 1); 327s assert (strcmp(class(I), 'double')) 327s [m, I] = max(A, [], 1); 327s assert (strcmp(class(I), 'double')) 327s A = sym(zeros(3, 0)); 327s [m, I] = min(A, [], 2); 327s assert (strcmp(class(I), 'double')) 327s [m, I] = max(A, [], 2); 327s assert (strcmp(class(I), 'double')) 327s ***** test 327s % index output 327s A = [0 1 9; 10 7 4]; 327s B = sym(A); 327s [m1, I1] = min(A); 327s [m2, I2] = min(B); 327s assert (isequal (I1, I2)) 327s assert (isequal (m1, double(m2))) 327s [m1, I1] = max(A); 327s [m2, I2] = max(B); 327s assert (isequal (I1, I2)) 327s assert (isequal (m1, double(m2))) 328s ***** test 328s % index output, with dim 328s A = [0 1 9; 10 7 4]; 328s B = sym(A); 328s [m1, I1] = min(A, [], 1); 328s [m2, I2] = min(B, [], 1); 328s assert (isequal (I1, I2)) 328s assert (isequal (m1, double(m2))) 328s [m1, I1] = min(A, [], 2); 328s [m2, I2] = min(B, [], 2); 328s assert (isequal (I1, I2)) 328s assert (isequal (m1, double(m2))) 328s [m1, I1] = max(A, [], 1); 328s [m2, I2] = max(B, [], 1); 328s assert (isequal (I1, I2)) 328s assert (isequal (m1, double(m2))) 328s [m1, I1] = max(A, [], 2); 328s [m2, I2] = max(B, [], 2); 328s assert (isequal (I1, I2)) 328s assert (isequal (m1, double(m2))) 328s ***** test 328s % empty columns 328s A = sym(zeros(0, 4)); 328s [m, I] = min(A, [], 1); 328s assert (isequal (size(m), [0 4])) 328s assert (isequal (size(I), [0 4])) 328s [m, I] = max(A, [], 1); 328s assert (isequal (size(m), [0 4])) 328s assert (isequal (size(I), [0 4])) 328s ***** test 328s % empty rows 328s A = sym(zeros(3, 0)); 328s [m, I] = min(A, [], 2); 328s assert (isequal (size(m), [3 0])) 328s assert (isequal (size(I), [3 0])) 328s [m, I] = max(A, [], 2); 328s assert (isequal (size(m), [3 0])) 328s assert (isequal (size(I), [3 0])) 328s ***** test 328s % another empty case 328s % we differ slightly from double which gives 1x0/0x1 328s A = sym(zeros(3, 0)); 328s [m, I] = min(A, [], 1); 328s assert (isempty (m)) 328s assert (isempty (I)) 328s A = sym(zeros(0, 3)); 328s [m, I] = min(A, [], 2); 328s assert (isempty (m)) 328s assert (isempty (I)) 328s ***** test 328s % empty without index output 328s A = sym(zeros(3, 0)); 328s assert (isempty (min (A, [], 1))) 328s assert (isempty (max (A, [], 1))) 328s assert (isempty (min (A, [], 2))) 328s assert (isempty (max (A, [], 2))) 328s A = sym(zeros(0, 3)); 328s assert (isempty (min (A, [], 1))) 328s assert (isempty (max (A, [], 1))) 328s assert (isempty (min (A, [], 2))) 328s assert (isempty (max (A, [], 2))) 329s ***** test 329s % binary op form, one a scalar 329s A = sym([3 1 9]); 329s m = min(A, sym(2)); 329s M = max(A, sym(2)); 329s assert (isequal (m, sym([2 1 2]))) 329s assert (isequal (M, sym([3 2 9]))) 329s m = min(sym(2), A); 329s M = max(sym(2), A); 329s assert (isequal (m, sym([2 1 2]))) 329s assert (isequal (M, sym([3 2 9]))) 329s ***** test 329s % binary op form, both scalar 329s m = min(sym(1), sym(2)); 329s M = max(sym(2), sym(2)); 329s assert (isequal (m, sym(1))) 329s assert (isequal (M, sym(2))) 329s ***** test 329s syms x y 329s assert (isequal (children (min (x, y)), [x y])) 329s ***** test 329s syms x y z 329s A = [x 1; y z]; 329s assert (isequal (min (A, [], 1), [min(x, y) min(1, z)])) 329s assert (isequal (max (A, [], 1), [max(x, y) max(1, z)])) 329s assert (isequal (min (A, [], 2), [min(x, 1); min(y, z)])) 329s assert (isequal (max (A, [], 2), [max(x, 1); max(y, z)])) 329s ***** test 329s syms x y positive 329s a = min([x 2 y -6]); 329s assert (isequal (a, -6)) 329s a = max([x y -6]); 329s assert (isequal (a, max(x, y))) 329s ***** test 329s syms x negative 329s a = min([x 6 10]); 329s assert (isequal (a, x)) 329s a = max([x -2 6]); 329s assert (isequal (a, 6)) 329s 21 tests, 21 passed, 0 known failure, 0 skipped 329s [inst/@sym/horner.m] 329s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/horner.m 329s ***** error horner (sym(1), 2, 3) 329s ***** assert (isAlways (horner(sym(1)) == 1)) 329s ***** test 329s syms x 329s assert (isAlways (horner(x) == x)) 329s ***** test 329s syms x a 329s p = a^2 + a*x + 2*a + 2*x; 329s assert (isequal (horner (p, a), a*(a+x+2) + 2*x)) 329s q = a^2 + 2*a + x*(a + 2); 329s assert (isequal (horner (p, x), q)) 329s assert (isequal (horner (p), q)) 330s ***** test 330s syms x 330s p = poly2sym ([2 4 6 8], x); 330s q = horner (p); 330s assert (isAlways (p == q)) 330s assert (isAlways (horner(2*x^3 + 4*x^2 + 6*x + 8) == q)) 330s ***** test 330s % non-sym input 330s syms x 330s assert (isequal (horner(6, x), sym(6))) 330s 6 tests, 6 passed, 0 known failure, 0 skipped 330s [inst/@sym/resize.m] 330s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/resize.m 330s ***** test 330s B = sym([1 0 0; 0 0 0]); 330s assert (isequal (resize (sym(1), 2, 3), B)) 330s assert (isequal (resize (sym(1), [2 3]), B)) 330s ***** test 330s B = sym([1 0; 0 0]); 330s assert (isequal (resize (sym(1), 2), B)) 330s ***** test 330s A = sym([pi 2; 3 4]); 330s assert (isequal (resize (A, 1), sym(pi))) 330s ***** assert (isequal (size (resize (sym(1), 0, 0)), [0 0])) 330s ***** assert (isequal (size (resize (sym(1), 6, 0)), [6 0])) 330s ***** assert (isequal (size (resize (sym(1), 0, 3)), [0 3])) 330s ***** error resize (sym(1)) 331s ***** error resize (sym(1), 2, 3, 4) 331s ***** error resize (sym(1), [2 3 4]) 331s 9 tests, 9 passed, 0 known failure, 0 skipped 331s [inst/@sym/fortran.m] 331s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/fortran.m 331s ***** shared x,y,z 331s syms x y z 331s ***** test 331s % basic test 331s f = x*sin(y) + abs(z); 331s source = fortran(f); 331s expected = ' x*sin(y) + abs(z)'; 331s s1 = strrep (expected, 'abs', 'Abs'); 331s assert (strcmp (source, expected) || strcmp (source, s1)) 331s ***** test 331s % output test 331s f = x*sin(y) + abs(z); 331s [F,H] = fortran(f, 'file', '', 'show_header', false); 331s 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'); 331s 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'); 331s assert(strcmp(F.name, 'file.f90')) 331s assert(strcmp(H.name, 'file.h')) 331s %disp(expected_f_code); disp(F.code) 331s s1 = strrep (expected_f_code, 'abs', 'Abs'); 331s s2 = strrep (expected_f_code, sprintf ('\n'), sprintf ('\r\n')); 331s s3 = strrep (s2, 'abs', 'Abs'); 331s s4 = strrep (expected_h_code, sprintf ('\n'), sprintf ('\r\n')); 331s assert (strcmp (F.code, expected_f_code) || strcmp (F.code, s1) || strcmp (F.code, s2) || strcmp (F.code, s3)) 331s assert (strcmp (H.code, expected_h_code) || strcmp (H.code, s4)) 331s 2 tests, 2 passed, 0 known failure, 0 skipped 331s [inst/@sym/setdiff.m] 331s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/setdiff.m 331s ***** test 331s A = sym([1 2 3]); 331s B = sym([1 2 4]); 331s C = setdiff(A, B); 331s D = sym([3]); 331s assert (isequal (C, D)) 331s ***** test 331s % one nonsym 331s A = sym([1 2 3]); 331s B = [1 2 4]; 331s C = setdiff(A, B); 331s D = sym([3]); 331s assert (isequal (C, D)) 331s ***** test 331s % empty 331s A = sym([1 2 3]); 331s C = setdiff(A, A); 331s assert (isempty (C)) 331s ***** test 331s % empty input 331s A = sym([1 2]); 331s C = setdiff(A, []); 331s assert (isequal (C, A) || isequal (C, sym([2 1]))) 331s ***** test 331s % scalar 331s syms x 331s assert (isequal (setdiff([x 1], x), sym(1))) 331s assert (isempty (setdiff(x, x))) 331s ***** test 331s A = interval(sym(1), 3); 331s B = interval(sym(2), 5); 331s C = setdiff(A, B); 331s assert( isequal( C, interval(sym(1), 2, false, true))) 331s 6 tests, 6 passed, 0 known failure, 0 skipped 331s [inst/@sym/laplace.m] 331s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/laplace.m 331s ***** test 331s % basic 331s syms t s u w 331s assert(logical( laplace(cos(3*t)) == s/(s^2+9) )) 331s assert(logical( laplace(t^3) == 6/s^4 )) 332s ***** test 332s % matlab SMT compat 332s syms t s u w z 332s assert(logical( laplace(exp(2*t)) == 1/(s-2) )) 332s assert(logical( laplace(exp(2*s)) == 1/(z-2) )) 332s assert(logical( laplace(exp(2*u),w) == 1/(w-2) )) 332s assert(logical( laplace(exp(2*u),u,w) == 1/(w-2) )) 332s ***** test 332s syms x s t z 332s % matlab SMT prefers t over x 332s assert (isequal (laplace (x*exp (t), z), x/(z - 1))) 332s % as usual, you can just specify: 332s assert (isequal (laplace(x*exp(t), t, z), x/(z - 1))) % SMT result 332s assert (isequal (laplace(x*exp(t), x, z), exp(t)/z^2)) 333s ***** test 333s syms x a s 333s % if no t, use symvar: take x before a 333s assert (isequal (laplace (a*exp (x)), a/(s - 1))) 333s ***** error laplace (sym('t')*sym('t', 'real')) 333s ***** test 333s % constant, issue #250 333s syms s 333s f = laplace(2, s); 333s assert (isequal (f, 2/s)) 333s ***** test 333s % Dirac delta and Heaviside tests 333s syms t s 333s assert (isequal (laplace(dirac(t-3)), exp(-3*s))) 333s assert (isequal (laplace((t-3)*heaviside(t-3)), exp(-3*s)/s^2)) 333s ***** xtest 333s % Differential operator to algebraic 333s % SymPy cannot evaluate? (Issue #170) 333s syms s f(t) 333s assert(logical( laplace(diff(f(t),t),t,s) == s*laplace(f(t),t,s)-f(0) )) 333s 8 tests, 8 passed, 0 known failure, 0 skipped 333s [inst/@sym/arg.m] 333s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/arg.m 333s ***** test 333s syms x 333s assert (isequal (angle (x), arg (x))); 333s 1 test, 1 passed, 0 known failure, 0 skipped 333s [inst/@sym/plus.m] 333s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/plus.m 333s ***** test 333s % basic addition 333s syms x 333s assert (isa (x+5, 'sym')) 333s assert (isa (5+x, 'sym')) 333s assert (isa (5+sym(4), 'sym')) 333s assert (isequal (5+sym(4), sym(9))) 334s ***** test 334s % array addition 334s syms x 334s D = [0 1; 2 3]; 334s A = [sym(0) 1; sym(2) 3]; 334s DZ = D - D; 334s assert( isequal ( A + D , 2*D )) 334s assert( isequal ( D + A , 2*D )) 334s assert( isequal ( A + A , 2*D )) 334s assert( isequal ( A + 2 , D + 2 )) 334s assert( isequal ( 4 + A , 4 + D )) 334s ***** test 334s % ensure MatrixExpr can be manipulated somewhat 334s syms n m integer 334s A = sym('A', [n m]); 334s B = subs(A, [n m], [5 6]); 334s B = B + 1; 334s assert (isa (B, 'sym')) 334s C = B(1, 1); % currently makes a MatrixElement 334s C = C + 1; 334s assert (isa (C, 'sym')) 334s 3 tests, 3 passed, 0 known failure, 0 skipped 334s [inst/@sym/real.m] 334s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/real.m 334s ***** assert (isequal (real (sym (4) + 3i),4)) 334s ***** test 334s syms x y real 334s z = x + 1i*y; 334s assert (isequal (real (z),x)) 334s ***** test 334s syms x y real 334s Z = [4 x + 1i*y; x 4 + 3i]; 334s assert (isequal (real (Z),[4 x; x 4])) 334s ***** test 334s syms x real 334s d = exp (x*i); 334s assert (isequal (real (d), cos (x))) 335s ***** test 335s % round trip 335s syms x 335s d = 3 - 5i; 335s f = real (x); 335s A = real (d); 335s h = function_handle (f); 335s B = h (d); 335s assert (A, B) 335s 5 tests, 5 passed, 0 known failure, 0 skipped 335s [inst/@sym/expm.m] 335s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/expm.m 335s ***** test 335s % scalar 335s syms x 335s assert (isequal (expm(x), exp(x))) 335s ***** test 335s % diagonal 335s A = [sym(1) 0; 0 sym(3)]; 335s B = [exp(sym(1)) 0; 0 exp(sym(3))]; 335s assert (isequal (expm(A), B)) 335s ***** test 335s % diagonal w/ x 335s syms x positive 335s A = [sym(1) 0; 0 x+2]; 335s B = [exp(sym(1)) 0; 0 exp(x+2)]; 335s assert (isequal (expm(A), B)) 335s ***** test 335s % non-diagonal 335s syms x positive 335s A = [sym(1) 2; 0 x+2]; 335s B = expm(A); 335s C = double(subs(B, x, 4)); 335s D = expm(double(subs(A, x, 4))); 335s assert (max (max (abs (C - D))) <= 1e-11) 335s 4 tests, 4 passed, 0 known failure, 0 skipped 335s [inst/@sym/dirac.m] 335s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/dirac.m 335s ***** error dirac (sym(1), 2) 335s ***** assert (isequaln (dirac (sym(nan)), sym(nan))) 335s ***** shared x, d 335s d = 1; 335s x = sym('1'); 335s ***** test 335s f1 = dirac(x); 335s f2 = dirac(d); 335s assert( abs(double(f1) - f2) < 1e-15 ) 335s ***** test 335s D = [d d; d d]; 335s A = [x x; x x]; 335s f1 = dirac(A); 335s f2 = dirac(D); 335s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 336s ***** test 336s % round trip 336s y = sym('y'); 336s A = dirac (d); 336s f = dirac (y); 336s h = function_handle (f); 336s B = h (d); 336s assert (A, B, -eps) 336s 5 tests, 5 passed, 0 known failure, 0 skipped 336s [inst/@sym/ellipticK.m] 336s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/ellipticK.m 336s ***** error ellipticK (sym(1), 2) 336s ***** assert (isequal (ellipticK (sym (0)), sym (pi)/2)) 336s ***** assert (isequal (ellipticK (sym (-inf)), sym (0))) 336s ***** assert (double (ellipticK (sym (1)/2)), 1.854074677, 10e-10) 336s ***** assert (double (ellipticK (sym (pi)/4)), 2.225253684, 10e-10) 336s ***** assert (double (ellipticK (sym (-55)/10)), 0.9324665884, 10e-11) 336s ***** test 336s % compare to double ellipke 336s m = 1/5; 336s ms = sym(1)/5; 336s [K, E] = ellipke (m); 336s assert (double (ellipticK (ms)), K, -1e-15) 336s assert (double (ellipticE (ms)), E, -1e-15) 336s ***** test 336s % compare to double ellipke 336s if (exist ('OCTAVE_VERSION', 'builtin')) 336s m = -10.3; 336s ms = -sym(103)/10; 336s [K, E] = ellipke (m); 336s assert (double (ellipticK (ms)), K, -1e-15) 336s assert (double (ellipticE (ms)), E, -1e-15) 336s end 336s ***** test 336s % compare to Maple 336s us = vpa (ellipticK (sym (7)), 40); 336s % > evalf(EllipticK(sqrt(7)), 40); 336s maple = vpa ('0.6168027921799632674669917683443602673441', 40) - ... 336s vpa ('0.9114898734184488922164103102629560336918j', 40); 336s assert (abs (double (maple - us)), 0, 1e-39) 336s 9 tests, 9 passed, 0 known failure, 0 skipped 336s [inst/@sym/ei.m] 336s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/ei.m 336s ***** test 336s syms x 336s f = ei(sym(0)); 336s assert (double(f) == -inf) 336s ***** test 336s D = [1.895117816355937 4.954234356001890]; 336s A = ei(sym([1 2])); 336s assert (all (abs(double(A) - D) < 1e-15)) 336s 2 tests, 2 passed, 0 known failure, 0 skipped 336s [inst/@sym/atand.m] 336s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/atand.m 336s ***** error atand (sym(1), 2) 336s ***** assert (isequaln (atand (sym(nan)), sym(nan))) 336s ***** test 336s f1 = atand (sym(1)/2); 336s f2 = atand (1/2); 336s assert (double (f1), f2, -eps) 336s ***** test 336s D = [1 2; 3 4]/4; 336s A = sym([1 2; 3 4])/4; 336s f1 = atand (A); 336s f2 = atand (D); 336s assert (double (f1), f2, -eps) 337s 4 tests, 4 passed, 0 known failure, 0 skipped 337s [inst/@sym/children.m] 337s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/children.m 337s ***** test 337s % basics, sum 337s syms x y 337s f = 2*x + x*x + sin(y); 337s assert (isempty (setxor (children(f), [2*x x*x sin(y)]))) 337s ***** test 337s % basics, product 337s syms x y 337s f = 2*x*sin(y); 337s assert (isempty (setxor (children(f), [2 x sin(y)]))) 337s ***** test 337s % basics, product and powers 337s syms x y 337s f = 2*x^2*y^3; 337s assert (isempty (setxor (children(f), [2 x^2 y^3]))) 337s ***** test 337s % eqn, ineq 337s syms x y 337s lhs = 2*x^2; rhs = y^3 + 7; 337s assert (isequal (children(lhs == rhs), [lhs rhs])) 337s assert (isequal (children(lhs < rhs), [lhs rhs])) 337s assert (isequal (children(lhs >= rhs), [lhs rhs])) 337s ***** test 337s % matrix 337s syms x y 337s f = [4 + y 1 + x; 2 + x 3 + x]; 337s c = children(f); 337s ec = {[4 y], [1 x]; [2 x], [3 x]}; 337s assert (isequal (size(c), size(ec))) 337s for i=1:length(c) 337s assert (isempty (setxor (c{i}, ec{i}))) 337s end 337s ***** test 337s % matrix, sum/prod 337s syms x y 337s f = [x + y; x*sin(y); sin(x)]; 337s ec = {[x y]; [x sin(y)]; [x]}; 337s c = children(f); 337s assert (isequal (size(c), size(ec))) 337s for i=1:length(c) 337s assert (isempty (setxor (c{i}, ec{i}))) 337s end 337s ***** test 337s % scalar symbol 337s syms x 337s assert (isequal (children(x), x)) 337s ***** test 337s % scalar number 337s x = sym(6); 337s assert (isequal (children(x), x)) 337s ***** test 337s % symbolic size matrix 337s syms n m integer 337s A = sym('a', [n m]); 337s C = children (A); 337s assert (isequal (C(2), n)) 337s assert (isequal (C(3), m)) 338s ***** xtest 338s % symbolic size matrix, fails on newer SymPy Issue #1089 338s syms n m integer 338s A = sym('a', [n m]); 338s assert (isequal (children (A), [sym('a') n m])) 338s !!!!! known failure 338s assert (isequal (children (A), [sym('a'), n, m])) failed 338s 10 tests, 9 passed, 1 known failure, 0 skipped 338s [inst/@sym/conj.m] 338s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/conj.m 338s ***** test 338s a = sym(6); 338s b = sym(5i); 338s assert (isequal (conj(a), a)) 338s assert (isequal (conj(b), -b)) 338s assert (isequal (conj(a+b), a-b)) 338s ***** test 338s syms x 338s assert (isequal (conj(conj(x)), x)) 338s ***** test 338s syms x real 338s assert (isequal (conj(x), x)) 338s ***** test 338s % array 338s syms x 338s A = [x 6+1i; sym(1) x+2i]; 338s B = [conj(x) 6-1i; sym(1) conj(x)-2i]; 338s assert (isequal (conj(A), B)) 338s ***** test 338s % true/false 338s t = sym(true); 338s f = sym(false); 338s assert (isequal ( conj(t), t)) 338s assert (isequal ( conj(f), f)) 338s ***** test 338s % round trip 338s syms x 338s d = 3 - 5i; 338s f = conj (x); 338s A = conj (d); 338s h = function_handle (f); 338s B = h (d); 338s assert (A, B) 338s 6 tests, 6 passed, 0 known failure, 0 skipped 338s [inst/@sym/isinf.m] 338s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/isinf.m 338s ***** shared x,zoo,oo,snan 338s oo = sym(inf); 338s zoo = sym('zoo'); 338s x = sym('x'); 338s snan = sym(nan); 338s ***** test 338s % various ops that give inf and nan 338s assert (isinf(oo)) 338s assert (isinf(zoo)) 338s assert (isinf(oo+oo)) 338s assert (~isinf(oo+zoo)) 338s assert (~isinf(0*oo)) 338s assert (~isinf(0*zoo)) 338s assert (~isinf(snan)) 338s assert (~isinf(oo-oo)) 338s assert (~isinf(oo-zoo)) 338s ***** test 338s % arrays 338s assert (isequal( isinf([oo zoo]), [1 1] )) 338s assert (isequal( isinf([oo 1]), [1 0] )) 338s assert (isequal( isinf([10 zoo]), [0 1] )) 338s assert (isequal( isinf([x oo x]), [0 1 0] )) 338s ***** test 338s % Must not contain string 'symbol'; these all should make an 338s % actual infinity. Actually a ctor test, not isinf. 338s % IIRC, SMT in Matlab 2013b fails. 338s oo = sym(inf); 338s assert (isempty (strfind (sympy (oo), 'Symbol'))) 338s oo = sym(-inf); 338s assert (isempty (strfind (sympy (oo), 'Symbol'))) 338s oo = sym('inf'); 338s assert (isempty (strfind (sympy (oo), 'Symbol'))) 338s oo = sym('-inf'); 338s assert (isempty (strfind (sympy (oo), 'Symbol'))) 338s oo = sym('Inf'); 338s assert (isempty (strfind (sympy (oo), 'Symbol'))) 338s ***** test 338s % ops with infinity shouldn't collapse 338s syms x oo zoo 338s y = x + oo; 338s assert (~isempty (strfind (lower (sympy (y)), 'add') )) 338s y = x - oo; 338s assert (~isempty (strfind (lower (sympy (y)), 'add') )) 338s y = x - zoo; 338s assert (~isempty (strfind (lower (sympy (y)), 'add') )) 338s y = x*oo; 338s assert (~isempty (strfind (lower (sympy (y)), 'mul') )) 338s ***** test 338s % ops with infinity are not necessarily infinite 338s syms x oo zoo 338s y = x + oo; 338s assert(~isinf(y)) % SMT 2014a says "true", I disagree 338s y = x - zoo; 338s assert(~isinf(y)) 338s y = x*oo; 338s assert(~isinf(y)) 339s 5 tests, 5 passed, 0 known failure, 0 skipped 339s [inst/@sym/and.m] 339s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/and.m 339s ***** shared t, f 339s t = sym(true); 339s f = sym(false); 339s ***** test 339s % simple 339s assert (isequal (t & f, f)) 339s assert (isequal (t & t, t)) 339s ***** test 339s % mix wih nonsym 339s assert (isequal (t & false, f)) 339s assert (isequal (t & true, t)) 339s assert (isequal (t & 0, f)) 339s assert (isequal (t & 1, t)) 339s assert (isa (t & false, 'sym')) 339s assert (isa (t & 1, 'sym')) 339s ***** test 339s % array 339s w = [t t f f]; 339s z = [t f t f]; 339s assert (isequal (w & z, [t f f f])) 339s ***** test 339s % number 339s assert (isequal( sym(1) & t, t)) 339s assert (isequal( sym(0) & t, f)) 339s ***** test 339s % output is sym even for scalar t/f 339s assert (isa (t & f, 'sym')) 339s ***** test 339s % eqns, exclusive 339s syms x 339s e = (x == 3) & (x^2 == 9); 339s assert (isequal (subs(e, x, [-3 0 3]), [f f t])) 339s ***** error and (sym('x'), 2, 3) 339s 7 tests, 7 passed, 0 known failure, 0 skipped 339s [inst/@sym/taylor.m] 339s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/taylor.m 339s ***** test 339s syms x 339s f = exp(x); 339s expected = 1 + x + x^2/2 + x^3/6 + x^4/24 + x^5/120; 339s assert (isequal (taylor(f), expected)) 339s assert (isequal (taylor(f,x), expected)) 339s assert (isequal (taylor(f,x,0), expected)) 339s ***** test 339s syms x 339s f = exp(x); 339s expected = 1 + x + x^2/2 + x^3/6 + x^4/24; 339s assert (isequal (taylor(f,'order',5), expected)) 339s assert (isequal (taylor(f,x,'order',5), expected)) 339s assert (isequal (taylor(f,x,0,'order',5), expected)) 340s ***** test 340s % key/value ordering doesn't matter 340s syms x 340s f = exp(x); 340s g1 = taylor(f, 'expansionPoint', 1, 'order', 3); 340s g2 = taylor(f, 'order', 3, 'expansionPoint', 1); 340s assert (isequal (g1, g2)) 340s ***** test 340s syms x 340s f = x^2; 340s assert (isequal (taylor(f,x,0,'order',0), 0)) 340s assert (isequal (taylor(f,x,0,'order',1), 0)) 340s assert (isequal (taylor(f,x,0,'order',2), 0)) 340s assert (isequal (taylor(f,x,0,'order',3), x^2)) 340s assert (isequal (taylor(f,x,0,'order',4), x^2)) 340s ***** test 340s syms x y 340s f = exp(x)+exp(y); 340s expected = 2 + x + x^2/2 + x^3/6 + x^4/24 + y + y^2/2 + y^3/6 + y^4/24; 340s assert (isAlways(taylor(f,[x,y],'order',5)== expected)) 340s assert (isAlways(taylor(f,[x,y],[0,0],'order',5) == expected)) 341s ***** test 341s % key/value ordering doesn't matter 341s syms x 341s f = exp(x); 341s g1 = taylor(f, 'expansionPoint', 1, 'order', 3); 341s g2 = taylor(f, 'order', 3, 'expansionPoint', 1); 341s assert (isequal (g1, g2)) 341s ***** test 341s syms x 341s f = x^2; 341s assert (isequal (taylor(f,x,0,'order',0), 0)) 341s assert (isequal (taylor(f,x,0,'order',1), 0)) 341s assert (isequal (taylor(f,x,0,'order',2), 0)) 341s assert (isequal (taylor(f,x,0,'order',3), x^2)) 341s assert (isequal (taylor(f,x,0,'order',4), x^2)) 341s ***** test 341s % syms for a and order 341s syms x 341s f = x^2; 341s assert (isequal (taylor(f,x,sym(0),'order',sym(2)), 0)) 341s assert (isequal (taylor(f,x,sym(0),'order',sym(4)), x^2)) 341s ***** test 341s syms x y 341s f = exp (x^2 + y^2); 341s expected = 1+ x^2 +y^2 + x^4/2 + x^2*y^2 + y^4/2; 341s assert (isAlways(taylor(f,[x,y],'order',5)== expected)) 341s assert (isAlways(taylor(f,[x,y],'expansionPoint', [0,0],'order',5) == expected)) 342s ***** test 342s syms x y 342s f = sqrt(1+x^2+y^2); 342s expected = 1+ x^2/2 +y^2/2 - x^4/8 - x^2*y^2/4 - y^4/8; 342s assert (isAlways(taylor(f,[x,y],'order',6)== expected)) 342s assert (isAlways(taylor(f,[x,y],'expansionPoint', [0,0],'order',5) == expected)) 343s ***** test 343s syms x y 343s f = sin (x^2 + y^2); 343s 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; 343s assert (isAlways(taylor(f,[x,y],'expansionPoint', [1,0],'order',3) == expected)) 344s ***** test 344s % key/value ordering doesn't matter 344s syms x y 344s f = exp(x+y); 344s g1 = taylor(f, 'expansionPoint',1, 'order', 3); 344s g2 = taylor(f, 'order', 3, 'expansionPoint',1); 344s assert (isAlways(g1== g2)) 344s ***** test 344s syms x y 344s f = x^2 + y^2; 344s assert (isAlways(taylor(f,[x,y],[0,0],'order',0)== sym(0) )) 344s assert (isAlways(taylor(f,[x,y],[0,0],'order',1)== sym(0) )) 344s assert (isAlways(taylor(f,[x,y],[0,0],'order',2)== sym(0) )) 344s assert (isAlways(taylor(f,[x,y],[0,0],'order',3)== sym(x^2 + y^2))) 344s assert (isAlways(taylor(f,[x,y],[0,0],'order',4)== sym(x^2 + y^2))) 344s ***** test 344s % expansion point 344s syms x a 344s f = x^2; 344s g = taylor(f,x,2); 344s assert (isequal (simplify(g), f)) 344s assert (isequal (g, 4*x+(x-2)^2-4)) 344s g = taylor(f,x,a); 344s assert (isequal (simplify(g), f)) 345s ***** test 345s % wrong order-1 series with nonzero expansion pt: 345s % upstream bug https://github.com/sympy/sympy/issues/9351 345s syms x 345s g = x^2 + 2*x + 3; 345s h = taylor (g, x, 4, 'order', 1); 345s assert (isequal (h, 27)) 345s ***** test 345s syms x y z 345s g = x^2 + 2*y + 3*z; 345s h = taylor (g, [x,y,z], 'order', 4); 345s assert (isAlways(h == g)) ; 345s ***** test 345s syms x y z 345s g = sin(x*y*z); 345s h = taylor (g, [x,y,z], 'order', 4); 345s assert (isAlways(h == x*y*z)) ; 345s ***** error 345s syms x y 345s taylor(0, [x, y], [1, 2, 3]); 345s 18 tests, 18 passed, 0 known failure, 0 skipped 345s [inst/@sym/besseljn.m] 345s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/besseljn.m 345s ***** test 345s % roundtrip 345s syms x 345s A = double(besseljn(sym(2), sym(9))); 345s q = besseljn(sym(2), x); 345s h = function_handle(q); 345s B = h(9); 345s assert (abs (A - B) <= eps) 345s ***** error jn(sym('x')) 345s 2 tests, 2 passed, 0 known failure, 0 skipped 345s [inst/@sym/kron.m] 345s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/kron.m 345s ***** error kron (sym (2)) 345s ***** test 345s syms x y 345s A = [sin(x), sin(y); x, y]; 345s B = ones(2); 345s 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]); 345s assert (isequal (kron(A, B), expected)) 346s ***** test 346s syms x y 346s A = [sin(x), sin(y); x, y]; 346s B = 2; 346s assert (isequal (kron(A, B), 2*A)) 346s ***** test 346s syms x y 346s A = [sin(x), sin(y)]; 346s B = 2; 346s assert (isequal( kron(B, A), 2*A)) 346s ***** test 346s syms x y; 346s X = [tan(x), tan(x)]; 346s Y = [cot(x); cot(x)]; 346s expected = sym(ones(2)); 346s assert (isequal (simplify(kron(X, Y)), expected)) 346s ***** test 346s syms x y z 346s X = [x, y, z]; 346s Y = [y, y; x, x]; 346s 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]; 346s assert (isequal (kron(X, Y), expected)) 346s ***** test 346s syms x y 346s X = [x, x^2; y, y^2]; 346s Y = [1, 0; 0, 1]; 346s expected = [x, x^2, 0, 0; y, y^2, 0, 0; 0, 0, x, x^2; 0, 0, y, y^2]; 346s assert (isequal (kron(Y, X), expected)) 347s ***** test 347s syms x y z 347s assert (isequal (kron (x, y, z), x*y*z)) 347s assert (isequal (kron (x, y, z, 4), 4*x*y*z)) 347s assert (isequal (kron ([2 3], y, z), [2 3]*y*z)) 347s assert (isequal (kron ([2 3], [4; 5], y), [8 12; 10 15]*y)) 347s ***** test 347s syms x y 347s A = kron ([x y], [1, -1; -1, 1], [2 3; 4 5]); 347s D = kron ([7 9], [1, -1; -1, 1], [2 3; 4 5]); 347s A = double (subs (A, [x y], [7 9])); 347s assert (isequal (A, D)) 348s 9 tests, 9 passed, 0 known failure, 0 skipped 348s [inst/@sym/gammaln.m] 348s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/gammaln.m 348s ***** assert (isequal (gammaln (sym (3)), log (sym (2)))) 348s ***** assert (isequal (gammaln (sym (10)), log (gamma (sym (10))))) 348s ***** test 348s % compare to Maple: evalf(lnGAMMA(Pi)); 348s maple = vpa ('0.827694592323437101529578558452359951153502', 40); 348s us = vpa (gammaln (sym(pi)), 40); 348s assert (abs(double(maple-us)) < 1e-39) 348s ***** test 348s % compare to Maple: evalf(lnGAMMA(3+2*I)); 348s maple = vpa ('-0.0316390593739611898037677296008797172022603', 40) + ... 348s vpa ('2.02219319750132712401643376238334982100512j', 40); 348s us = vpa (gammaln (sym(3) + 2i), 40); 348s assert (abs(double(maple-us)) < 1e-39) 348s ***** test 348s % compare to Maple: evalf(lnGAMMA(-1.5)); 348s % notably, @double/gammaln has zero imag part 348s maple = vpa ('0.8600470153764810145109326816703567873271571', 40) - ... 348s vpa ('6.2831853071795864769252867665590057683943388j', 40); 348s us = vpa (gammaln (-sym(3)/2), 40); 348s assert (abs(double(maple-us)) < 1e-39) 348s ***** assert (gammaln (pi), double (gammaln (sym (pi))), -3*eps) 348s ***** assert (gammaln (100), double (gammaln (sym (100))), -3*eps) 348s ***** assert (gammaln (1e-3), double (gammaln (1/sym (1e3))), -100*eps) 348s ***** test 348s % round trip 348s syms x 348s f = gammaln (x); 348s h = function_handle (f); 348s A = h (1.1); 348s B = gammaln (1.1); 348s assert (A, B) 348s 9 tests, 9 passed, 0 known failure, 0 skipped 348s [inst/@sym/nextprime.m] 348s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/nextprime.m 348s ***** assert (isequal (nextprime(sym(2)), 3)); 348s ***** assert (isequal (nextprime(sym(18)), 19)); 348s ***** assert (isequal (nextprime(sym([1 2 3])), [2 3 5])); 349s ***** assert (isequal (nextprime(sym([-1 0])), [2 2])); 349s ***** test 349s % result is a sym 349s p = nextprime(sym(2)); 349s assert (isa (p, 'sym')) 349s 5 tests, 5 passed, 0 known failure, 0 skipped 349s [inst/@sym/logspace.m] 349s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/logspace.m 349s ***** test 349s % default argument for N 349s A = logspace(0, 2); 349s assert (length (A) == 50); 349s ***** test 349s % special case: pi as end pt 349s A = logspace(-sym(3), sym(pi), 3); 349s assert (isequal (A(end), sym(pi))) 349s ***** test 349s A = logspace(-sym(4), 0, 3); 349s B = [sym(1)/10000 sym(1)/100 sym(1)]; 349s assert (isequal (A, B)) 349s ***** test 349s % vpa support, might need recent sympy for sympy issue #10063 349s n = 32; 349s A = logspace(-vpa(1,n), 0, 3); 349s B = [10^(-vpa(1,n)) 10^(-vpa(sym(1)/2,n)) vpa(1,n)]; 349s assert (isequal (A, B)) 349s assert (max(abs(double(A) - logspace(-1, 0, 3))) < 1e-15) 349s 4 tests, 4 passed, 0 known failure, 0 skipped 349s [inst/@sym/degree.m] 349s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/degree.m 349s ***** error degree (sym(1), 2, 3) 349s ***** test 349s syms x 349s assert (isequal (degree(x^3), 3)) 349s assert (isequal (degree(x^3 + 6), 3)) 349s ***** test 349s % specify variable 349s syms x y 349s p = x^2 + y*x + 1; 349s assert (isequal (degree(p), 2)) 349s assert (isequal (degree(p, x), 2)) 349s assert (isequal (degree(p, y), 1)) 350s ***** test 350s syms x a oo 350s assert (isequal (degree(x^3, a), 0)) 350s assert (isequal (degree(sym(1), a), 0)) 350s assert (isequal (degree(sym(0), a), -oo)) 350s ***** xtest 350s % constant inputs 350s syms oo 350s assert (isequal (degree(sym(1)), 0)) 350s assert (isequal (degree(sym(0)), -oo)) 350s 5 tests, 5 passed, 0 known failure, 0 skipped 350s [inst/@sym/atan2.m] 350s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/atan2.m 350s ***** error atan2 (1) 350s ***** error atan2 (1, 2, 3) 350s ***** test 350s % some angles 350s e = sym(1); 350s a = atan2(0, e); 350s assert (isequal (a, sym(0))) 350s a = atan2(e, 0); 350s assert (isequal (a, sym(pi)/2)) 350s ***** test 350s % symbols can give numerical answer 350s syms x positive 350s a = atan2(0, x); 350s assert (isequal (a, sym(0))) 350s a = atan2(x, 0); 350s assert (isequal (a, sym(pi)/2)) 350s a = atan2(-x, 0); 350s assert (isequal (a, -sym(pi)/2)) 350s ***** test 350s % matrices 350s x = sym([1 -2; 0 0]); 350s y = sym([0 0; 8 -3]); 350s a = atan2(y, x); 350s sp = sym(pi); 350s aex = [0 sp; sp/2 -sp/2]; 350s assert (isequal (a, aex)) 351s ***** test 351s % round trip 351s syms x y 351s xd = -2; yd = -3; 351s f = atan2 (x, y); 351s A = atan2 (xd, yd); 351s h = function_handle (f); 351s B = h (xd, yd); 351s assert (A, B, -eps) 351s 6 tests, 6 passed, 0 known failure, 0 skipped 351s [inst/@sym/coth.m] 351s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/coth.m 351s ***** error coth (sym(1), 2) 351s ***** assert (isequaln (coth (sym(nan)), sym(nan))) 351s ***** shared x, d 351s d = 1; 351s x = sym('1'); 351s ***** test 351s f1 = coth(x); 351s f2 = coth(d); 351s assert( abs(double(f1) - f2) < 1e-15 ) 351s ***** test 351s D = [d d; d d]; 351s A = [x x; x x]; 351s f1 = coth(A); 351s f2 = coth(D); 351s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 351s ***** test 351s % round trip 351s y = sym('y'); 351s A = coth (d); 351s f = coth (y); 351s h = function_handle (f); 351s B = h (d); 351s assert (A, B, -eps) 351s 5 tests, 5 passed, 0 known failure, 0 skipped 351s [inst/@sym/coshint.m] 351s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/coshint.m 351s ***** error coshint (sym(1), 2) 351s ***** xtest 351s assert (isequaln (coshint (sym(nan)), sym(nan))) 351s !!!!! known failure 351s assert (isequaln (coshint (sym (nan)), sym (nan))) failed 351s ***** shared x, d 351s d = 1; 351s x = sym('1'); 351s ***** test 351s f1 = coshint(x); 351s f2 = 0.8378669409802082408947; 351s assert( abs(double(f1) - f2) < 1e-15 ) 351s ***** test 351s D = [d d; d d]; 351s A = [x x; x x]; 351s f1 = coshint(A); 351s f2 = 0.8378669409802082408947; 351s f2 = [f2 f2; f2 f2]; 351s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 351s ***** test 351s % round trip 351s y = sym('y'); 351s A = coshint (d); 351s f = coshint (y); 351s h = function_handle (f); 351s B = h (d); 351s assert (A, B, -eps) 351s 5 tests, 4 passed, 1 known failure, 0 skipped 351s [inst/@sym/ellipticE.m] 351s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/ellipticE.m 351s ***** error ellipticE (sym(1), 2, 3) 351s ***** assert (double (ellipticE (sym (-105)/10)), 3.70961391, 10e-9) 351s ***** assert (double (ellipticE (sym (-pi)/4)), 1.844349247, 10e-10) 351s ***** assert (double (ellipticE (sym (0))), 1.570796327, 10e-10) 351s ***** assert (double (ellipticE (sym (1))), 1, 10e-1) 351s ***** test 351s % compare to Maple 351s us = vpa (ellipticE (sym(7)/6, sym(13)/7), 40); 351s % > evalf(EllipticE(sin(7/6), sqrt(13/7)), 40); 351s maple = vpa ('0.6263078268598504591831743625971763209496', 40) + ... 351s vpa ('0.1775496232203171126975790989055865596501j', 40); 351s assert (abs (double (maple - us)), 0, 2e-39) 352s ***** test 352s % compare to Maple 352s us = vpa (ellipticE (sym(8)/7), 40); 352s % > evalf(EllipticE(sqrt(8/7)), 40); 352s maple = vpa ('0.8717182992576322508542205614105802333270', 40) + ... 352s vpa ('0.1066754320328976949531350910798010526685j', 40); 352s assert (abs (double (maple - us)), 0, 2e-39) 352s 7 tests, 7 passed, 0 known failure, 0 skipped 352s [inst/@sym/atan.m] 352s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/atan.m 352s ***** error atan (sym(1), 2) 352s ***** assert (isequaln (atan (sym(nan)), sym(nan))) 352s ***** shared x, d 352s d = 1; 352s x = sym('1'); 352s ***** test 352s f1 = atan(x); 352s f2 = atan(d); 352s assert( abs(double(f1) - f2) < 1e-15 ) 352s ***** test 352s D = [d d; d d]; 352s A = [x x; x x]; 352s f1 = atan(A); 352s f2 = atan(D); 352s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 352s ***** test 352s % round trip 352s y = sym('y'); 352s A = atan (d); 352s f = atan (y); 352s h = function_handle (f); 352s B = h (d); 352s assert (A, B, -eps) 352s 5 tests, 5 passed, 0 known failure, 0 skipped 352s [inst/@sym/ezsurf.m] 352s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/ezsurf.m 352s ***** error 352s syms u v t 352s ezsurf(u*v, 2*u*v, 3*v*t) 352s ***** error 352s syms u v t 352s ezsurf(u*v, 2*u*v, u*v*t) 352s 2 tests, 2 passed, 0 known failure, 0 skipped 352s [inst/@sym/cumsum.m] 352s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/cumsum.m 352s ***** shared x, y 352s x = sym ('x'); 352s y = sym ('y'); 352s ***** error cumsum (x, 1, 2) 352s ***** assert (isequal (cumsum ([-x; -2*x; -3*x]), [-x; -3*x; -6*x])) 353s ***** assert (isequal (cumsum ([x + 2i*y, 2*x + i*y]), [x + 2i*y, 3*x + 3i*y])) 353s ***** assert (isequal (cumsum ([x, 2*x; 3*x, 4*x], 1), [1*x, 2*x; 4*x, 6*x] )) 353s ***** assert (isequal (cumsum ([x, 2*x; 3*x, 4*x], 2), [1*x, 3*x; 3*x, 7*x] )) 354s ***** test cumsum ([x, x], [2, 1]); # ensure behaves like builtin cumsum 354s ***** test cumsum ([x, x], [1, -2]); # ensure behaves like builtin cumsum 354s ***** error cumsum (x, []) 354s ***** error cumsum (x, {1}) 354s ***** error cumsum (x, struct('a', 1)) 354s ***** error cumsum (x, x) 354s ***** error cumsum (x, 0) 354s ***** error cumsum (x, -1) 354s 13 tests, 13 passed, 0 known failure, 0 skipped 354s [inst/@sym/transpose.m] 354s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/transpose.m 354s ***** test 354s x = sym(1); 354s assert (isequal (x.', x)) 354s ***** assert (isempty (sym([]).')) 354s ***** test 354s syms x; 354s assert (isequal (x.', x)) 354s ***** test 354s A = [1 2; 3 4]; 354s assert(isequal( sym(A).' , sym(A.') )) 354s ***** test 354s A = [1 2] + 1i; 354s assert(isequal( sym(A).' , sym(A.') )) 354s 5 tests, 5 passed, 0 known failure, 0 skipped 354s [inst/@sym/cos.m] 354s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/cos.m 354s ***** error cos (sym(1), 2) 354s ***** assert (isequaln (cos (sym(nan)), sym(nan))) 354s ***** shared x, d 354s d = 1; 354s x = sym('1'); 354s ***** test 354s f1 = cos(x); 354s f2 = cos(d); 354s assert( abs(double(f1) - f2) < 1e-15 ) 354s ***** test 354s D = [d d; d d]; 354s A = [x x; x x]; 354s f1 = cos(A); 354s f2 = cos(D); 354s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 354s ***** test 354s % round trip 354s y = sym('y'); 354s A = cos (d); 354s f = cos (y); 354s h = function_handle (f); 354s B = h (d); 354s assert (A, B, -eps) 354s 5 tests, 5 passed, 0 known failure, 0 skipped 354s [inst/@sym/isconstant.m] 354s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/isconstant.m 354s ***** test 354s syms x 354s A = [x 2 3]; 354s B = [false true true]; 354s assert (isequal (isconstant (A), B)) 354s ***** test 354s syms x 354s A = [x 2; 3 x]; 354s B = [false true; true false]; 354s assert (isequal (isconstant (A), B)) 354s 2 tests, 2 passed, 0 known failure, 0 skipped 354s [inst/@sym/ellipticF.m] 354s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/ellipticF.m 354s ***** error ellipticF (sym(1)) 354s ***** error ellipticF (sym(1), 2, 3) 355s ***** assert (double (ellipticF (sym (pi)/3, sym (-105)/10)), 0.6184459461, 10e-11) 355s ***** assert (double (ellipticF (sym (pi)/4, sym (-pi))), 0.6485970495, 10e-11) 355s ***** assert (double (ellipticF (sym (1), sym (-1))), 0.8963937895, 10e-11) 355s ***** assert (double (ellipticF (sym (pi)/6, sym (0))), 0.5235987756, 10e-11) 355s ***** test 355s % compare to Maple 355s us = vpa (ellipticF (sym(11)/10, sym(9)/4), 40); 355s % > evalf(EllipticF(sin(11/10), sqrt(9/4)), 40); 355s maple = vpa ('1.206444996991058996424988192917728014427', 40) - ... 355s vpa ('0.8157358125823472313001683083685348517476j', 40); 355s assert (abs (double (maple - us)), 0, 1e-39) 355s 7 tests, 7 passed, 0 known failure, 0 skipped 355s [inst/@sym/besseli.m] 355s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/besseli.m 355s ***** test 355s X = [1 2 3; 4 5 6]; 355s ns = [sym(0) 1 -2; sym(1)/2 -sym(3)/2 pi]; 355s n = double(ns); 355s A = double(besseli(ns, X)); 355s B = besseli(n, X); 355s assert (all (all (abs (A - B) < 100*eps*abs(A)))) 355s ***** test 355s % roundtrip 355s syms x 355s A = besseli(2, 10); 355s q = besseli(2, x); 355s h = function_handle(q); 355s B = h(10); 355s assert (abs (A - B) <= eps*abs(A)) 355s ***** error besseli(sym('x')) 356s 3 tests, 3 passed, 0 known failure, 0 skipped 356s [inst/@sym/pretty.m] 356s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/pretty.m 356s ***** test 356s % simple 356s syms x 356s s1 = pretty(sin(x)); 356s s2 = sprintf(' sin(x)\n'); 356s assert (strcmp (s1, s2)) 356s ***** test 356s % force ascii 356s syms x 356s s1 = pretty(sin(x/2), 'ascii'); 356s s2 = sprintf(' /x\\\n sin|-|\n \\2/\n'); 356s swin = strrep(s1, sprintf('\r\n'), sprintf('\n')); 356s assert (strcmp (s1, s2) || strcmp (swin, s2)) 356s ***** test 356s % force unicode 356s syms x 356s s1 = pretty(sin(x/2), 'unicode'); 356s s2 = sprintf(' ⎛x⎞\n sin⎜─⎟\n ⎝2⎠\n'); 356s swin = strrep(s1, sprintf('\r\n'), sprintf('\n')); 356s assert (strcmp (s1, s2) || strcmp (swin, s2)) 356s 3 tests, 3 passed, 0 known failure, 0 skipped 356s [inst/@sym/assumeAlso.m] 356s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/assumeAlso.m 356s ***** test 356s syms x 356s x = assumeAlso(x, 'positive'); 356s a = assumptions(x); 356s assert(strcmp(a, 'x: positive')) 356s ***** error 356s syms x 356s x = assumeAlso (x, x); 356s ***** test 356s syms x positive 356s x = assumeAlso(x, 'integer'); 356s [tilde, a] = assumptions(x, 'dict'); 356s assert(a{1}.integer) 356s assert(a{1}.positive) 356s ***** test 356s % multiple assumptions 356s syms x positive 356s x = assumeAlso(x, 'integer', 'even'); 356s [tilde, a] = assumptions(x, 'dict'); 356s assert(a{1}.integer) 356s assert(a{1}.positive) 356s assert(a{1}.even) 356s ***** test 356s % multiple assumptions 356s syms x integer 356s x = assumeAlso (x, 'even', 'positive'); 356s [tilde, a] = assumptions (x, 'dict'); 356s assert (a{1}.integer) 356s assert (a{1}.even) 356s assert (a{1}.positive) 356s ***** test 356s % has output so avoids workspace 356s syms x positive 356s x2 = x; 356s f = sin(x); 356s assumeAlso(x, 'integer'); 356s a = assumptions(x); 356s assert(strcmp(a, 'x: positive, integer') || strcmp(a, 'x: integer, positive')) 356s a = assumptions(x2); 356s assert(strcmp(a, 'x: positive, integer') || strcmp(a, 'x: integer, positive')) 356s a = assumptions(f); 356s assert(strcmp(a, 'x: positive, integer') || strcmp(a, 'x: integer, positive')) 356s ***** test 356s % has no output so does workspace 356s syms x positive 356s x2 = x; 356s f = sin(x); 356s assumeAlso(x, 'integer'); 356s a = assumptions(x); 356s assert(strcmp(a, 'x: positive, integer') || strcmp(a, 'x: integer, positive')) 356s a = assumptions(x2); 356s assert(strcmp(a, 'x: positive, integer') || strcmp(a, 'x: integer, positive')) 356s a = assumptions(f); 356s assert(strcmp(a, 'x: positive, integer') || strcmp(a, 'x: integer, positive')) 356s ***** error 356s syms a 356s assumeAlso (a > 0) 356s ***** test 356s syms x y 356s assumeAlso ([x y], 'even') 356s assert (strcmp (assumptions (x), 'x: even')) 356s assert (strcmp (assumptions (y), 'y: even')) 356s ***** test 356s syms x y positive 356s f = sin (2*x); 356s assumeAlso ([x y], 'even') 356s assert (strcmp (assumptions (x), 'x: even, positive') || strcmp (assumptions (x), 'x: positive, even')) 356s assert (strcmp (assumptions (y), 'y: even, positive') || strcmp (assumptions (y), 'y: positive, even')) 356s assert (strcmp (assumptions (f), 'x: even, positive') || strcmp (assumptions (f), 'x: positive, even')) 357s ***** test 357s % with output, original x and y are unchanged 357s syms x y positive 357s f = sin (2*x); 357s [p, q] = assumeAlso ([x y], 'even'); 357s assert (strcmp (assumptions (x), 'x: positive')) 357s assert (strcmp (assumptions (y), 'y: positive')) 357s assert (strcmp (assumptions (f), 'x: positive')) 357s assert (strcmp (assumptions (p), 'x: even, positive') || strcmp (assumptions (p), 'x: positive, even')) 357s assert (strcmp (assumptions (q), 'y: even, positive') || strcmp (assumptions (q), 'y: positive, even')) 357s 11 tests, 11 passed, 0 known failure, 0 skipped 357s [inst/@sym/cosint.m] 357s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/cosint.m 357s ***** error cosint (sym(1), 2) 357s ***** xtest 357s assert (isequaln (cosint (sym(nan)), sym(nan))) 357s !!!!! known failure 357s assert (isequaln (cosint (sym (nan)), sym (nan))) failed 357s ***** shared x, d 357s d = 1; 357s x = sym('1'); 357s ***** test 357s f1 = cosint(x); 357s f2 = 0.3374039229009681346626; 357s assert( abs(double(f1) - f2) < 1e-15 ) 357s ***** test 357s D = [d d; d d]; 357s A = [x x; x x]; 357s f1 = cosint(A); 357s f2 = 0.3374039229009681346626; 357s f2 = [f2 f2; f2 f2]; 357s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 357s ***** test 357s % round trip 357s y = sym('y'); 357s A = cosint (d); 357s f = cosint (y); 357s h = function_handle (f); 357s B = h (d); 357s assert (A, B, -eps) 357s 5 tests, 4 passed, 1 known failure, 0 skipped 357s [inst/@sym/coeffs.m] 357s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/coeffs.m 357s ***** error coeffs (sym(1), 2, 3, 4) 357s ***** error coeffs (sym(1), 2, 'al') 357s ***** error coeffs (sym(1), 'al') 357s ***** test 357s % simple 357s syms x 357s [c, t] = coeffs(6*x*x + 27); 357s assert (isequal (c, [6 27])) 357s assert (isequal (t, [x*x 1])) 357s ***** test 357s % specify a variable 357s syms x 357s [c, t] = coeffs(6*x*x + 27, x); 357s assert (isequal (c, [6 27])) 357s assert (isequal (t, [x*x 1])) 357s ***** test 357s % specify another variable 357s syms x y 357s [c, t] = coeffs(6*x + 27, y); 357s assert (isequal (c, 6*x + 27)) 357s assert (isequal (t, 1)) 357s ***** test 357s % weird SMT order 357s syms x 357s a1 = [27 6]; 357s a2 = [6 27]; 357s c = coeffs(6*x*x + 27); 357s assert (isequal (c, a1)) 357s coeffs(6*x*x + 27); 357s assert (isequal (ans, a1)) 357s [c, t] = coeffs(6*x*x + 27); 357s assert (isequal (c, a2)) 358s ***** test 358s % no weird order with "all" 358s syms x 358s c = coeffs(6*x*x + 27, 'all'); 358s assert (isequal (c, [6 0 27])) 358s ***** test 358s % "all" 358s syms x 358s [c, t] = coeffs(6*x*x + 27, 'all'); 358s assert (isequal (c, [6 0 27])) 358s assert (isequal (t, [x^2 x 1])) 358s ***** test 358s % "All" 358s syms x 358s [c, t] = coeffs(6*x, 'All'); 358s assert (isequal (c, [6 0])) 358s assert (isequal (t, [x 1])) 358s ***** test 358s % multivariable array 358s syms x y 358s [c, t] = coeffs(6*x*x + 27*y*x + 36, [x y]); 358s a = [6 27 36]; 358s s = [x^2 x*y 1]; 358s assert (isequal (c, a)) 358s assert (isequal (t, s)) 358s % with list 358s [c, t] = coeffs(6*x*x + 27*y*x + 36, {x y}); 358s assert (isequal (c, a)) 358s assert (isequal (t, s)) 358s ***** test 358s % other symbols treated as part of coeffs 358s syms x y 358s [c, t] = coeffs(6*x*x + 27*y*x + 36, x); 358s a = [6 27*y 36]; 358s s = [x^2 x 1]; 358s assert (isequal (c, a)) 358s assert (isequal (t, s)) 359s ***** error 359s % TODO: multivariate all not working (https://github.com/cbm755/octsympy/issues/720) 359s syms x y 359s [c, t] = coeffs(6*x^2 + 7*y + 19, [x y], 'all'); 359s ***** test 359s % empty same as not specifying; maybe not SMT compatible: 359s % https://github.com/cbm755/octsympy/pull/708#discussion_r94292831 359s syms x y 359s [c, t] = coeffs(6*x*x + 27*y*x + 36, {}); 359s a = [6 27 36]; 359s assert (isequal (c, a)) 359s [c, t] = coeffs(6*x*x + 27*y*x + 36); 359s assert (isequal (c, a)) 359s ***** test 359s % no input defaults to all symbols (not symvar to get x) 359s syms x y 359s [c, t] = coeffs(6*x*x + 27*y*x + 36); 359s assert (isequal (c, [6 27 36])) 359s ***** test 359s % non sym input 359s syms x 359s assert (isequal (coeffs(6, x), sym(6))) 359s ***** test 359s % constant input without x 359s assert (isequal (coeffs(sym(6)), sym(6))) 359s ***** test 359s % constant input without x 359s assert (isequal (coeffs (sym(6), {}), sym(6))) 359s % irrational coefficients 359s syms x 359s f = x^2 + sqrt(sym(2))*x; 359s [c1, t1] = coeffs (f); 359s [c2, t2] = coeffs (f, x); 359s assert (isequal (c1, c2)) 359s assert (isequal (t1, t2)) 359s 18 tests, 18 passed, 0 known failure, 0 skipped 359s [inst/@sym/mldivide.m] 359s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/mldivide.m 359s ***** test 359s % scalar 359s syms x 359s assert (isa( x\x, 'sym')) 359s assert (isequal( x\x, sym(1))) 359s assert (isa( 2\x, 'sym')) 359s assert (isa( x\2, 'sym')) 359s ***** test 359s % scalar \ matrix: easy, no system 359s D = 2*[0 1; 2 3]; 359s A = sym(D); 359s assert (isequal ( 2 \ A , D/2 )) 359s assert (isequal ( sym(2) \ A , D/2 )) 360s ***** test 360s % singular matrix 360s A = sym([1 2; 2 4]); 360s b = sym([5; 10]); 360s x = A \ b; 360s syms c1 360s y = [-2*c1 + 5; c1]; 360s assert (isequal (x, y)) 360s ***** test 360s % singular matrix, mult RHS 360s A = sym([1 2; 2 4]); 360s B = sym([[5; 10] [0; 2] [0; 0]]); 360s x = A \ B; 360s syms c1 c5 360s y = [-2*c1 + 5 nan -2*c5; c1 nan c5]; 360s assert (isequaln (x, y)) 360s ***** warning 360s % vpa, nearly singular matrix 360s A = sym([1 2; 2 4]); 360s A(1,1) = vpa('1.001'); 360s b = sym([1; 2]); 360s x = A \ b; 360s y = [sym(0); vpa('0.5')]; 360s assert (isequal (x, y)) 360s ***** warning 360s % vpa, singular rhs 360s A = sym([1 2; 2 4]); 360s b = [vpa('1.01'); vpa('2')]; 360s x = A \ b; 360s assert (all(isnan(x))) 360s 6 tests, 6 passed, 0 known failure, 0 skipped 360s [inst/@sym/prod.m] 360s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/prod.m 360s ***** error prod (sym(1), 2, 3) 360s ***** error prod (sym(1), 42) 360s ***** shared x,y,z 360s syms x y z 360s ***** assert (isequal (prod (x), x)) 360s ***** assert (isequal (prod ([x y z]), x*y*z)) 360s ***** assert (isequal (prod ([x; y; z]), x*y*z)) 360s ***** assert (isequal (prod ([x y z], 1), [x y z])) 361s ***** assert (isequal (prod ([x y z], 2), x*y*z)) 361s ***** shared a,b 361s b = [1 2; 3 4]; a = sym(b); 361s ***** assert (isequal (prod(a), prod(b))) 361s ***** assert (isequal (prod(a,1), prod(b,1))) 361s ***** assert (isequal (prod(a,2), prod(b,2))) 361s ***** test 361s % weird inputs 361s a = prod('xx', sym(1)); 361s assert (isequal (a, sym('xx'))) 361s 11 tests, 11 passed, 0 known failure, 0 skipped 361s [inst/@sym/ellipticPi.m] 361s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/ellipticPi.m 361s ***** error ellipticPi (sym (1)) 361s ***** error ellipticPi (sym (1), 2, 3, 4) 361s ***** assert (double (ellipticPi (sym (-23)/10, sym (pi)/4, 0)), 0.5876852228, 10e-11) 361s ***** assert (double (ellipticPi (sym (1)/3, sym (pi)/3, sym (1)/2)), 1.285032276, 10e-11) 361s ***** assert (double (ellipticPi (sym (2), sym (pi)/6, sym (2))), 0.7507322117, 10e-11) 361s ***** xtest 361s % FIXME: search/report upstream 361s assert (double (ellipticPi (sym (-1), 0, sym (1))), 0) 361s !!!!! known failure 361s ASSERT errors for: assert (double (ellipticPi (sym (-1), 0, sym (1))),0) 361s 361s Location | Observed | Expected | Reason 361s () NaN 0 'NaN' mismatch 361s ***** xtest 361s % FIXME: this is a regression somewhere: loss of precision: Issue #1064 361s % compare to Maple, complete 361s us = vpa (ellipticPi (sym(1)/6, sym(4)/3), 40); 361s % > evalf(EllipticPi(sin(1/6), sqrt(4/3)), 40); 361s maple = vpa ('2.019271696236161760696477679310987869058', 40) - ... 361s vpa ('1.708165765120289929280805062355360570830j', 40); 361s assert (abs (double (maple - us)), 0, 2e-39) 364s !!!!! known failure 364s ASSERT errors for: assert (abs (double (maple - us)),0,2e-39) 364s 364s Location | Observed | Expected | Reason 364s () 5.7666e-32 0 Abs err 5.7666e-32 exceeds tol 2e-39 by 6e-32 364s ***** test 364s % compare to Maple, complete 364s us = vpa (ellipticPi (sym(1)/6, sym(4)/3), 40); 364s % > evalf(EllipticPi(sin(1/6), sqrt(4/3)), 40); 364s maple = vpa ('2.019271696236161760696477679310987869058', 40) - ... 364s vpa ('1.708165765120289929280805062355360570830j', 40); 364s assert (abs (double (maple - us)), 0, 2e-30) 366s ***** test 366s % compare to Maple, incomplete 366s us = vpa (ellipticPi (sym(8)/7, sym(4)/3, sym(2)/7), 40); 366s % > evalf(EllipticPi(sin(4/3), 8/7, sqrt(2/7)), 40); 366s maple = vpa ('2.089415796799294830305265090302275542033', 40) - ... 366s vpa ('4.798862045930802761256228043192491271947j', 40); 366s assert (abs (double (maple - us)), 0, 6e-39) 367s 9 tests, 7 passed, 2 known failures, 0 skipped 367s [inst/@sym/cart2pol.m] 367s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/cart2pol.m 367s ***** test 367s % multiple non-scalar inputs 367s x = sym ('x', [2 2]); 367s assume (x, 'real'); 367s y = sym ('y', [2 2]); 367s assume (y, 'real'); 367s [theta, r] = cart2pol (x, y); 367s assert (isequal (r, sqrt (x.^2 + y.^2))); 367s assert (isequal (tan (theta), y ./ x)); 367s % mixing scalar inputs with non-scalar inputs 367s syms z real 367s [theta_2, r_2, z_2] = cart2pol (x, y, z); 367s assert (isequal (r_2, sqrt (x.^2 + y.^2))); 367s assert (isequal (tan (theta_2), y ./ x)); 367s assert (isequal (z_2, z * ones (2, 2))); 368s ***** test 368s % column vector with 2 entries 368s syms x y real 368s [theta, r] = cart2pol ([x; y]); 368s assert (isequal (r, sqrt (x.^2 + y.^2))); 368s assert (isequal (tan (theta), y ./ x)); 368s % column vector with 3 entries 368s syms z real 368s [theta_2, r_2, z_2] = cart2pol ([x; y; z]); 368s assert (isequal (r_2, sqrt (x.^2 + y.^2))); 368s assert (isequal (tan (theta_2), y ./ x)); 368s assert (isequal (z_2, z)); 368s ***** test 368s % matrix with 2 columns 368s syms x y u v real 368s C = [x y; u v]; 368s [theta, r] = cart2pol (C); 368s assert (isequal (r, [sqrt(x.^2+y.^2); sqrt(u.^2+v.^2)])); 368s assert (isequal (tan (theta), [y/x; v/u])); 368s % matrix with 3 columns 368s syms z w real 368s C_2 = [x y z; u v w]; 368s [theta_2, r_2, z_2] = cart2pol (C_2); 368s assert (isequal (r, [sqrt(x.^2+y.^2); sqrt(u.^2+v.^2)])); 368s assert (isequal (tan (theta), [y/x; v/u])); 368s assert (isequal (z_2, [z; w])); 369s 3 tests, 3 passed, 0 known failure, 0 skipped 369s [inst/@sym/imag.m] 369s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/imag.m 369s ***** assert (isequal (imag (sym (4) + 3i),3)) 369s ***** test 369s syms x y real 369s z = x + 1i*y; 369s assert (isequal (imag (z),y)) 369s ***** test 369s syms x y real 369s Z = [4 x + 1i*y; 1i*y 4 + 3i]; 369s assert (isequal (imag (Z),[0 y; y 3])) 369s ***** test 369s syms x real 369s d = exp (x*i); 369s assert (isequal (imag (d), sin (x))) 370s ***** test 370s % round trip 370s syms x 370s d = 3 - 5i; 370s f = imag (x); 370s A = imag (d); 370s h = function_handle (f); 370s B = h (d); 370s assert (A, B) 370s 5 tests, 5 passed, 0 known failure, 0 skipped 370s [inst/@sym/isna.m] 370s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/isna.m 370s ***** test 370s % no sym should be NA 370s syms x oo 370s assert (~isna(sym(1))) 370s assert (~isna(x)) 370s assert (~isna(oo)) 370s assert (~isna(sym(nan))) 370s assert (isequal (isna (sym ([1 nan])), [false false])) 370s 1 test, 1 passed, 0 known failure, 0 skipped 370s [inst/@sym/power.m] 370s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/power.m 370s ***** test 370s % scalar .^ scalar 370s syms x 370s assert (isa (x.^2, 'sym')) 370s assert (isa (2.^x, 'sym')) 370s assert (isa (x.^x, 'sym')) 370s assert (isequal (x.^2, x^2)) 370s assert (isequal (2.^x, 2^x)) 370s assert (isequal (x.^x, x^x)) 370s ***** test 370s % scalar .^ matrix 370s D = [0 1; 2 3]; 370s A = sym(D); 370s assert (isequal ( sym(2).^D , 2.^D )) 370s assert (isequal ( sym(2).^A , 2.^A )) 370s assert (isequal ( 2.^D , 2.^A )) 370s assert (isequal ( 2.^A , 2.^A )) 370s ***** test 370s % matrix .^ matrix 370s syms x 370s A = [x 2*x; 3*x 4*x]; 370s D = [0 1; 2 3]; 370s B = sym(D); 370s assert (isequal ( A.^D, [1 2*x; 9*x^2 64*x^3] )) 370s assert (isequal ( A.^B, [1 2*x; 9*x^2 64*x^3] )) 370s ***** test 370s % matrix .^ scalar 370s syms x 370s A = [x 2*x]; 370s assert (isequal ( A.^2, [x^2 4*x^2] )) 370s assert (isequal ( A.^sym(2), [x^2 4*x^2] )) 371s ***** test 371s % 1^oo 371s % (sympy >= 0.7.5 gives NaN, SMT R2013b: gives 1) 371s oo = sym(inf); 371s assert (isnan (1^oo)) 371s ***** test 371s % 1^zoo 371s % (1 on sympy 0.7.4--0.7.6, but nan in git (2014-12-12, a210908d4)) 371s zoo = sym('zoo'); 371s assert (isnan (1^zoo)) 371s ***** test 371s % immutable test 371s A = sym([1 2]); 371s B = sym('ImmutableDenseMatrix([[Integer(1), Integer(2)]])'); 371s assert (isequal (A.^A, B.^B)) 371s :18: SyntaxWarning: invalid escape sequence '\(' 371s 7 tests, 7 passed, 0 known failure, 0 skipped 371s [inst/@sym/isprime.m] 371s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/isprime.m 371s ***** assert (isprime (sym(5))) 371s ***** assert (~isprime (sym(4))) 371s ***** assert (~isprime (sym(0))) 371s ***** assert (~isprime (sym(1))) 371s ***** test 371s a = [5 7 6; 1 2 337]; 371s assert (isequal (isprime (a), [true true false; false true true])) 371s ***** assert (~isprime(sym(-4))) 371s ***** assert (~isprime(sym(4i))) 371s ***** assert (~isprime(sym(3)/5)) 371s ***** error 371s isprime(sym('x')); 371s 9 tests, 9 passed, 0 known failure, 0 skipped 371s [inst/@sym/isequaln.m] 371s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/isequaln.m 371s ***** test 371s a = sym([1 2]); 371s b = a; 371s assert (isequaln (a, b)) 371s b(1) = 42; 371s assert (~isequaln (a, b)) 371s ***** test 371s a = sym([1 2; 3 4]); 371s b = a; 371s assert (isequaln (a, b)) 371s b(1) = 42; 371s assert (~isequaln (a, b)) 371s ***** test 371s a = sym([nan; 2]); 371s b = a; 371s assert (isequaln (a, b)) 371s ***** test 371s a = sym([nan 2; 3 4]); 371s b = a; 371s assert (isequaln (a, b)) 371s ***** test 371s % more than two arrays 371s a = sym([nan 2 3]); 371s b = a; 371s c = a; 371s assert (isequaln (a, b, c)) 371s c(1) = 42; 371s assert (~isequaln (a, b, c)) 371s 5 tests, 5 passed, 0 known failure, 0 skipped 371s [inst/@sym/piecewise.m] 371s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/piecewise.m 371s ***** test 371s % basic 371s syms x real 371s f = piecewise (abs (x) < 1, 1); 371s assert (isnan (subs (f, -1))); 371s assert (isequal (subs (f, 0), 1)); 371s assert (isnan (subs (f, 1))); 372s ***** test 372s % heaviside 372s syms x real 372s f = rewrite (heaviside (x, 1 / sym (2)), 'Piecewise'); 372s g = piecewise (x < 0, 0, x == 0, 1 / sym (2), x > 0, 1); 372s assert (logical (simplify (f == g))); 372s 2 tests, 2 passed, 0 known failure, 0 skipped 372s [inst/@sym/numden.m] 372s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/numden.m 372s ***** error numden (sym(1), 2) 372s ***** test 372s syms x 372s [n, d] = numden (1/x); 372s assert (isequal (n, sym(1)) && isequal (d, x)) 372s ***** test 372s syms x y 372s n1 = [sym(1); x]; 372s d1 = [x; y]; 372s [n, d] = numden (n1 ./ d1); 372s assert (isequal (n, n1) && isequal (d, d1)) 372s ***** test 372s [n, d] = numden (sym(2)); 372s assert (isequal (n, 2)); 372s assert (isequal (d, 1)); 372s ***** test 372s syms x y 372s [n, d] = numden ((x + pi)/(y + 6)); 372s assert (isequal (n, x + pi)); 372s assert (isequal (d, y + 6)); 372s ***** test 372s syms x y 372s [n, d] = numden ((x^2 + y^2)/(x*y)); 372s assert (isequal (n, x^2 + y^2)); 372s assert (isequal (d, x*y)); 372s 6 tests, 6 passed, 0 known failure, 0 skipped 372s [inst/@sym/disp.m] 372s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/disp.m 372s ***** test 372s syms x 372s s = disp(sin(x)); 372s assert(strcmp(s, sprintf(' sin(x)\n'))) 372s ***** test 372s syms x 372s s = disp(sin(x/2), 'flat'); 372s assert(strcmp(s, sprintf(' sin(x/2)\n'))) 372s ***** test 372s % Examples of 2x0 and 0x2 empty matrices: 372s a = sym([1 2; 3 4]); 372s b2x0 = a([true true], [false false]); 372s b0x2 = a([false false], [true true]); 372s assert (isequal (size (b2x0), [2 0])) 372s assert (isequal (size (b0x2), [0 2])) 372s s = disp(b2x0); 372s assert(strcmp(s, sprintf(' []\n'))) 372s s = disp(b0x2); 372s assert(strcmp(s, sprintf(' []\n'))) 372s 3 tests, 3 passed, 0 known failure, 0 skipped 372s [inst/@sym/jordan.m] 372s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/jordan.m 372s ***** test 372s % basic 372s A = sym ([2 1 0 0; 0 2 1 0; 0 0 3 0; 0 1 -1 3]); 372s [V, J] = jordan (A); 372s assert (isequal (inv (V) * A * V, J)); 372s assert (isequal (J, sym ([2 1 0 0; 0 2 0 0; 0 0 3 0; 0 0 0 3]))) 372s % the first 2 generalized eigenvectors form a cycle 372s assert (isequal ((A - J(1, 1) * eye (4)) * V(:, 1), zeros (4, 1))); 372s assert (isequal ((A - J(2, 2) * eye (4)) * V(:, 2), V(:, 1))); 372s % the last 2 generalized eigenvectors are eigenvectors 372s assert (isequal ((A - J(3, 3) * eye (4)) * V(:, 3), zeros (4, 1))); 372s assert (isequal ((A - J(4, 4) * eye (4)) * V(:, 4), zeros (4, 1))); 374s ***** test 374s % scalars 374s assert (isequal (jordan (sym (-10)), sym (-10))); 374s assert (isequal (jordan (sym ('x')), sym ('x'))); 374s ***** test 374s % diagonal matrices 374s A = diag (sym ([6 6 7])); 374s [V1, D] = eig (A); 374s [V2, J] = jordan (A); 374s assert (isequal (V1, V2)); 374s assert (isequal (D, J)); 374s ***** test 374s % matrices of unknown entries 374s A = [sym('a') sym('b'); sym('c') sym('d')]; 374s [V, D] = eig (A); 374s J = jordan (A); 374s assert (isequal (simplify (D), simplify (J))); 374s ***** test 374s % matrices of mixed entries 374s A = [sym('x')+9 sym('y'); sym(0) 6]; 374s [V, D] = eig (A); 374s J = jordan (A); 374s assert (isequal (simplify (D), simplify (J))); 374s 5 tests, 5 passed, 0 known failure, 0 skipped 374s [inst/@sym/mpower.m] 374s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/mpower.m 374s ***** test 374s syms x 374s assert(isequal(x^(sym(4)/5), x.^(sym(4)/5))) 374s ***** test 374s % integer powers of scalars 374s syms x 374s assert (isequal (x^2, x*x)) 374s assert (isequal (x^sym(3), x*x*x)) 375s ***** test 375s % array ^ integer 375s syms x y 375s A = [x 2; y 4]; 375s assert (isequal (A^2, A*A)) 375s assert (isequal (simplify(A^3 - A*A*A), [0 0; 0 0])) 375s ***** test 375s % array ^ rational 375s Ad = [1 2; 0 3]; 375s A = sym(Ad); 375s B = A^(sym(1)/3); 375s Bd = Ad^(1/3); 375s assert (max(max(abs(double(B) - Bd))) < 1e-14) 375s ***** test 375s % non-integer power 375s A = sym([1 2; 0 3]); 375s B = A^pi; 375s C = [1 -1+3^sym(pi); 0 sym(3)^pi]; 375s assert (isequal (B, C)) 375s ***** test 375s % matpow 375s syms n 375s A = sym([1 2; 3 4]); 375s B = A^n; 375s C = 10 + B + B^2; 375s D = subs(C, n, 1); 375s E = 10 + A + A^2; 375s assert (isequal (simplify(D), simplify(E))) 378s ***** test 378s % matpow, sub in zero gives identity 378s A = sym([1 2; 0 3]); 378s syms n; 378s B = A^n; 378s C = subs(B, n, 1); 378s assert (isequal (C, A)) 378s C = subs(B, n, 0); 378s assert (isequal (C, sym(eye(2)))) 378s ***** xtest 378s % scalar^array (e.g., defined by matrix exponential) not implemented in SymPy? 378s % on 1.0 < SymPy <= 1.5.1, you can form the expression but still cannot eval 378s syms x 378s A = [1 2; 3 4]; 378s B = x^A; 378s assert (strcmp (regexprep (disp (B, 'flat'), '\s+', ''), 'x**Matrix([[1,2],[3,4]])')) 378s % sub in and compare to double 378s Bs = subs(B, x, sym(3)/2); 378s D1 = double(Bs); 378s D2 = (3/2)^[1 2; 3 4]; 378s assert (max(max(abs(D1 - D2))) < 1e-14) 378s !!!!! known failure 378s Python exception: TypeError: unsupported operand type(s) for ** or pow(): 'Symbol' and 'MutableDenseMatrix' 378s occurred at line 2 of the Python code block: 378s return x**y 378s ***** error 378s A = sym([1 2; 3 4]); 378s B = A^A; 378s 9 tests, 8 passed, 1 known failure, 0 skipped 378s [inst/@sym/asind.m] 378s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/asind.m 378s ***** error asind (sym(1), 2) 378s ***** assert (isequaln (asind (sym(nan)), sym(nan))) 378s ***** test 378s f1 = asind (sym(1)/2); 378s f2 = asind (1/2); 378s assert (double (f1), f2, -eps) 378s ***** test 378s D = [1 2; 3 4]/4; 378s A = sym([1 2; 3 4])/4; 378s f1 = asind (A); 378s f2 = asind (D); 378s assert (double (f1), f2, -eps) 378s 4 tests, 4 passed, 0 known failure, 0 skipped 378s [inst/@sym/chebyshevT.m] 378s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/chebyshevT.m 378s ***** error chebyshevT (sym(1)) 378s ***** error chebyshevT (sym(1), 2, 3) 378s ***** assert (isequaln (chebyshevT (2, sym(nan)), sym(nan))) 378s ***** shared x 378s syms x 378s ***** assert(isequal(chebyshevT(0, x), sym(1))) 378s ***** assert(isequal(chebyshevT(1, x), x)) 378s ***** assert(isequal(chebyshevT(2, x), 2*x*x - 1)) 378s ***** assert(isequal(chebyshevT([0 1 2], x), [sym(1) x (2*x*x-1)])) 379s ***** test 379s % round trip 379s syms n z 379s f = chebyshevT (n, z); 379s h = function_handle (f, 'vars', [n z]); 379s A = h (1.1, 2.2); 379s B = chebyshevT (1.1, 2.2); 379s assert (A, B) 379s 8 tests, 8 passed, 0 known failure, 0 skipped 379s [inst/@sym/chol.m] 379s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/chol.m 379s ***** error chol (sym ([1 2; 3 4])); 379s ***** error chol (sym ([1 2; 3 4; 5 6])); 379s ***** test 379s A = chol(hilb(sym(2))); 379s B = [[1 0]; sym(1)/2 sqrt(sym(3))/6]; 379s assert( isequal( A, B )) 379s 3 tests, 3 passed, 0 known failure, 0 skipped 379s [inst/@sym/rhs.m] 379s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/rhs.m 379s ***** test 379s syms x 379s f = x + 1 == 2*x; 379s assert (isequal (rhs(f), 2*x)) 379s ***** error 379s syms x 379s rhs(x) 379s 2 tests, 2 passed, 0 known failure, 0 skipped 379s [inst/@sym/length.m] 379s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/length.m 379s ***** test 379s a = sym([1 2 3]); 379s assert(length(a) == 3); 379s ***** test 379s % 2D array 379s a = sym([1 2 3; 4 5 6]); 379s assert(length(a) == 3); 379s ***** test 379s % empty 379s a = sym([]); 379s assert(length(a) == 0); 379s 3 tests, 3 passed, 0 known failure, 0 skipped 379s [inst/@sym/erfc.m] 379s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/erfc.m 379s ***** error erfc (sym(1), 2) 379s ***** assert (isequaln (erfc (sym(nan)), sym(nan))) 379s ***** shared x, d 379s d = 1; 379s x = sym('1'); 379s ***** test 379s f1 = erfc(x); 379s f2 = erfc(d); 379s assert( abs(double(f1) - f2) < 1e-15 ) 379s ***** test 379s D = [d d; d d]; 379s A = [x x; x x]; 379s f1 = erfc(A); 379s f2 = erfc(D); 379s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 379s ***** test 379s % round trip 379s y = sym('y'); 379s A = erfc (d); 379s f = erfc (y); 379s h = function_handle (f); 379s B = h (d); 379s assert (A, B, -eps) 379s 5 tests, 5 passed, 0 known failure, 0 skipped 379s [inst/@sym/charpoly.m] 379s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/charpoly.m 379s ***** error charpoly (sym (1), 1, 2) 380s ***** error charpoly (sym ([1 2])) 380s ***** test 380s syms x 380s A = sym([1 2; 3 4]); 380s assert (isequal (charpoly(A, x), x^2 - 5*x -2)) 380s ***** test 380s syms x 380s A = sym([1 2; 3 4]); 380s B = sym([1 -5 -2]); 380s assert (isequal (charpoly(A), B)) 380s ***** test 380s syms x 380s A = sym([x x; x x]); 380s B = sym([1 -2*x 0]); 380s assert (isequal (charpoly(A), B)) 380s 5 tests, 5 passed, 0 known failure, 0 skipped 380s [inst/@sym/solve.m] 380s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/solve.m 380s ***** test 380s % Simple, single variable, single solution 380s syms x 380s d = solve(10*x == 50); 380s assert (isequal (d, 5)) 380s ***** test 380s % Single variable, multiple solutions 380s syms x 380s d = solve(x^2 == 4); 380s assert (length(d) == 2); 380s assert (isequal (d, [2; -2]) || isequal (d, [-2; 2])) 380s ***** shared x,y,eq 380s syms x y 380s eq = 10*x == 20*y; 380s ***** test 380s d = solve(eq, x); 380s assert (isequal (d, 2*y)) 380s ***** test 380s d = solve(eq, y); 380s assert (isequal (d, x/2)) 380s ***** test 380s d = solve(eq); 380s assert (isequal (d, 2*y)) 380s ***** shared x,y 380s syms x y 380s ***** test 380s d = solve(2*x - 3*y == 0, x + y == 1); 380s assert (isequal (d.x, sym(3)/5) && isequal(d.y, sym(2)/5)) 380s ***** test 380s d = solve(2*x - 3*y == 0, x + y == 1, x, y); 380s assert (isequal (d.x, sym(3)/5) && isequal(d.y, sym(2)/5)) 381s ***** test 381s % Multiple solutions, multiple variables 381s d = solve(x^2 == 4, x + y == 1); 381s assert (length(d) == 2); 381s % FIXME: SMT has d.x gives vector and d.y giving vector, what is 381s % more intuitive? 381s for i = 1:2 381s assert (isequal (d{i}.x + d{i}.y, 1)) 381s assert (isequal ((d{i}.x)^2, 4)) 381s end 381s ***** test 381s % No solutions 381s syms x y z 381s d = solve(x == y, z); 381s assert (isempty (d)); 381s ***** test 381s % Multiple outputs with single solution 381s [X, Y] = solve(2*x + y == 5, x + y == 3); 381s assert (isequal (X, 2)) 381s assert (isequal (Y, 1)) 381s ***** test 381s % system: vector of equations, vector of vars 381s [X, Y] = solve([2*x + y == 5, x + y == 3], [x y]); 381s assert (isequal (X, 2)) 381s assert (isequal (Y, 1)) 381s ***** test 381s % system: vector of equations, individual vars 381s [X, Y] = solve([2*x + y == 5, x + y == 3], x, y); 381s assert (isequal (X, 2)) 381s assert (isequal (Y, 1)) 381s ***** test 381s % system: individual equations, vector of vars 381s [X, Y] = solve(2*x + y == 5, x + y == 3, [x y]); 381s assert (isequal (X, 2)) 381s assert (isequal (Y, 1)) 381s ***** test 381s % Multiple outputs with multiple solns 381s [X, Y] = solve(x*x == 4, x == 2*y); 381s assert ((isequal (X, [2; -2]) && isequal (Y, [1; -1])) || ... 381s (isequal (X, [-2; 2]) && isequal (Y, [-1; 1]))) 382s ***** test 382s % Multiple outputs with multiple solns, specify vars 382s [X, Y] = solve(x*x == 4, x == 2*y, x, y); 382s assert ((isequal (X, [2; -2]) && isequal (Y, [1; -1])) || ... 382s (isequal (X, [-2; 2]) && isequal (Y, [-1; 1]))) 382s ***** error 382s % mult outputs not allowed for scalar equation, even with mult soln (?) 382s [s1, s2] = solve(x^2 == 4, x); 382s ***** test 382s % overdetermined 382s X = solve(2*x - 10 == 0, 3*x - 15 == 0, x); 382s assert (isequal (X, sym(5))) 382s ***** test 382s a = solve(2*x >= 10, 10*x <= 50); 382s assert (isequal( a, x==sym(5))) 382s ***** test 382s A = solve([2*x == 4*y, 2 == 3], x); 382s assert (isempty (A)) 382s ***** test 382s % Issue #850 382s A = solve (sym(pi)^2*x + y == 0); 382s assert (isequal (A, -y/sym(pi)^2)) 382s ***** test 382s % https://github.com/sympy/sympy/issues/14632 382s A = solve([2*x == 4*y, sym(2) == 2], x); 382s assert (isequal (A, 2*y)) 382s ***** test 382s % https://github.com/sympy/sympy/issues/14632 382s A = solve([2*x^2 == 32*y^2, sym(2) == 2], x); 382s B = solve([2*x^2 == 32*y^2], x); 382s assert (isequal (A, B) || isequal (A, flip (B))) 383s ***** test 383s A = solve ([x+1 0], x); 383s assert (isequal (A, sym (-1))) 383s ***** test 383s A = solve (x + 1, x); 383s assert (isequal (A, sym (-1))) 383s A = solve (x, x); 383s assert (isequal (A, sym (0))) 383s 24 tests, 24 passed, 0 known failure, 0 skipped 383s [inst/@sym/uminus.m] 383s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/uminus.m 383s ***** test 383s % scalar 383s syms x 383s assert (isa (-x, 'sym')) 383s assert (isequal (-(-x), x)) 383s ***** test 383s % matrix 383s D = [0 1; 2 3]; 383s A = sym(D); 383s assert( isequal( -A, -D )) 383s 2 tests, 2 passed, 0 known failure, 0 skipped 383s [inst/@sym/ifourier.m] 383s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/ifourier.m 383s ***** error ifourier (sym(1), 2, 3, 4) 383s ***** test 383s % matlab SMT compat 383s syms t r u x w 383s Pi=sym('pi'); 383s assert(logical( ifourier(exp(-abs(w))) == 1/(Pi*(x^2 + 1)) )) 383s assert(logical( ifourier(exp(-abs(x))) == 1/(Pi*(t^2 + 1)) )) 383s assert(logical( ifourier(exp(-abs(r)),u) == 1/(Pi*(u^2 + 1)) )) 383s assert(logical( ifourier(exp(-abs(r)),r,u) == 1/(Pi*(u^2 + 1)) )) 385s ***** test 385s % basic 385s syms x w 385s Pi=sym('pi'); 385s assert(logical( ifourier(exp(-w^2/4)) == 1/(sqrt(Pi)*exp(x^2)) )) 385s assert(logical( ifourier(sqrt(Pi)/exp(w^2/4)) == exp(-x^2) )) 386s ***** test 386s % Dirac delta tests 386s syms x w 386s Pi=sym('pi'); 386s assert(logical( ifourier(dirac(w-2)) == exp(2*1i*x)/(2*Pi) )) 386s assert (logical( ifourier(sym(2), w, x) == 2*dirac(x) )) 386s ***** test 386s % advanced test 386s syms x w c d 386s Pi=sym('pi'); 386s 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); 386s assert(logical( simplify(ifourier(cos(c*w)+2*sin(3*d*w)+exp(-abs(w)))-f) == 0 )) 387s ***** xtest 387s % Inverse Fourier transform cannot recover non-smooth functions 387s % SymPy cannot evaluate correctly?? 387s syms x w 387s assert(logical( ifourier(2/(w^2 + 1)) == exp(-abs(x)) )) 387s assert(logical( ifourier(2/(w^2 + 1)) == heaviside(x)/exp(x) + heaviside(-x)*exp(x) )) 387s assert(logical( ifourier(-(w*4)/(w^4 + 2*w^2 + 1) )== -x*exp(-abs(x))*1i )) 387s assert(logical( ifourier(-(w*4)/(w^4 + 2*w^2 + 1) )== -x*(heaviside(x)/exp(x) + heaviside(-x)*exp(x))*1i )) 388s !!!!! known failure 388s assert (logical (ifourier (2 / (w ^ 2 + 1)) == exp (-abs (x)))) failed 388s ***** error ifourier (sym('k', 'positive')*sym('k')) 388s ***** test 388s % SMT compact, prefers k over symvar 388s syms k x y 388s assert (isequal (ifourier(y*exp(-k^2/4)), y/sqrt(sym(pi))*exp(-x^2))) 389s 8 tests, 7 passed, 1 known failure, 0 skipped 389s [inst/@sym/cosh.m] 389s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/cosh.m 389s ***** error cosh (sym(1), 2) 389s ***** assert (isequaln (cosh (sym(nan)), sym(nan))) 389s ***** shared x, d 389s d = 1; 389s x = sym('1'); 389s ***** test 389s f1 = cosh(x); 389s f2 = cosh(d); 389s assert( abs(double(f1) - f2) < 1e-15 ) 389s ***** test 389s D = [d d; d d]; 389s A = [x x; x x]; 389s f1 = cosh(A); 389s f2 = cosh(D); 389s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 389s ***** test 389s % round trip 389s y = sym('y'); 389s A = cosh (d); 389s f = cosh (y); 389s h = function_handle (f); 389s B = h (d); 389s assert (A, B, -eps) 389s 5 tests, 5 passed, 0 known failure, 0 skipped 389s [inst/@sym/laguerreL.m] 389s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/laguerreL.m 389s ***** shared x 389s syms x 389s ***** assert (isequal (laguerreL(0, x), sym(1))) 389s ***** assert (isequal (laguerreL(1, x), 1-x)) 389s ***** assert (isequal (laguerreL(2, x), x^2/2 - 2*x + 1)) 389s ***** error laguerreL(x) 389s ***** error laguerreL(1, 2, x, 3) 389s ***** shared 389s ***** test 389s if (pycall_sympy__ ('return Version(spver) > Version("1.4")')) 389s syms x 389s assert (isequal (laguerreL (-3, x), exp(x)*(x^2/2 + 2*x + 1))) 389s end 389s ***** test 389s syms x n 389s L = laguerreL([2 n], x); 389s expected = [laguerreL(2, x) laguerreL(n, x)]; 389s assert (isequal (L, expected)) 389s ***** test 389s syms x y 389s L = laguerreL([1; 2], [x; y]); 389s expected = [laguerreL(1, x); laguerreL(2, y)]; 389s assert (isequal (L, expected)) 390s ***** test 390s syms x n 390s assert (isequal (laguerreL(n, 0, x), laguerreL(n, x))) 390s ***** shared x, y, n 390s syms x y n 390s ***** assert (isequal (laguerreL([1 n], 0, x), laguerreL([1 n], x))) 390s ***** test 390s L = laguerreL([1; n], [pi; 0], [x; y]); 390s expected = [laguerreL(1, pi, x); laguerreL(n, 0, y)]; 390s assert (isequal (L, expected)) 390s ***** test 390s L = laguerreL([1 n], [pi 0], x); 390s expected = [laguerreL(1, pi, x) laguerreL(n, 0, x)]; 390s assert (isequal (L, expected)) 390s ***** test 390s L = laguerreL([1 n], pi, [x y]); 390s expected = [laguerreL(1, pi, x) laguerreL(n, pi, y)]; 390s assert (isequal (L, expected)) 390s ***** test 390s L = laguerreL(1, [pi 0], [x y]); 390s expected = [laguerreL(1, pi, x) laguerreL(1, 0, y)]; 390s assert (isequal (L, expected)) 390s ***** test 390s L = laguerreL([1 n], pi, x); 390s expected = [laguerreL(1, pi, x) laguerreL(n, pi, x)]; 390s assert (isequal (L, expected)) 390s ***** test 390s L = laguerreL(1, [pi 0], x); 390s expected = [laguerreL(1, pi, x) laguerreL(1, 0, x)]; 390s assert (isequal (L, expected)) 390s ***** test 390s L = laguerreL(1, pi, [x y]); 390s expected = [laguerreL(1, pi, x) laguerreL(1, pi, y)]; 390s assert (isequal (L, expected)) 391s ***** test 391s % round trip 391s f = laguerreL (n, x); 391s h = function_handle (f); 391s A = h (1, 3.2); 391s B = laguerreL (1, 3.2); 391s assert (A, B) 391s A = h ([1 2], [3.3 4.4]); 391s B = laguerreL ([1 2], [3.3 4.4]); 391s assert (A, B) 391s ***** error 391s % round trip 391s f = laguerreL (n, y, x); 391s h = function_handle (f); 391s 19 tests, 19 passed, 0 known failure, 0 skipped 391s [inst/@sym/cot.m] 391s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/cot.m 391s ***** error cot (sym(1), 2) 391s ***** assert (isequaln (cot (sym(nan)), sym(nan))) 391s ***** shared x, d 391s d = 1; 391s x = sym('1'); 391s ***** test 391s f1 = cot(x); 391s f2 = cot(d); 391s assert( abs(double(f1) - f2) < 1e-15 ) 391s ***** test 391s D = [d d; d d]; 391s A = [x x; x x]; 391s f1 = cot(A); 391s f2 = cot(D); 391s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 391s ***** test 391s % round trip 391s y = sym('y'); 391s A = cot (d); 391s f = cot (y); 391s h = function_handle (f); 391s B = h (d); 391s assert (A, B, -eps) 391s 5 tests, 5 passed, 0 known failure, 0 skipped 391s [inst/@sym/eval.m] 391s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/eval.m 391s ***** error eval (sym(1), 2) 391s ***** assert (isnumeric (eval (sym(3)))) 391s ***** assert (isnumeric (eval (sin (sym(3))))) 391s ***** test 391s syms x y 391s f = 2*x*y; 391s x = 3; 391s y = 4; 391s g = eval (f); 391s assert (isequal (g, 24)) 391s ***** test 391s syms x y 391s f = 2*x*y; 391s clear y 391s x = 3; 391s g = eval (f); 391s assert (isequal (g, 6*sym('y'))) 391s ***** test 391s % do not convert inputs to sym, for SMT compat 391s nearpi = pi + 1e-14; % sym could make this pi 391s x = sym('x'); 391s f = 2*x; 391s x = nearpi; 391s d = eval (f); 391s assert (abs (d - 2*pi) > 1e-15) 391s 6 tests, 6 passed, 0 known failure, 0 skipped 391s [inst/@sym/symvar.m] 391s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/symvar.m 391s ***** error symvar (sym(1), 2, 3) 391s ***** test 391s %% some empty cases 391s assert (isempty (symvar (sym(1)))); 391s assert (isempty (symvar (sym(1),1))); 391s assert (isempty (symvar (sym(1),0))); 391s assert (isempty (symvar (sym('x'),0))); 391s ***** shared x,y,f 391s x=sym('x'); y=sym('y'); f=x^2+3*x*y-y^2; 391s ***** assert (isequal (symvar (f), [x y])); 391s ***** assert (isequal (symvar (f, 1), x)); 391s ***** test 391s %% closest to x 391s syms x y a b c xx 391s alpha = sym('alpha'); 391s % https://www.mathworks.com/matlabcentral/newsreader/view_thread/237730 391s assert( isequal (symvar (b*xx*exp(alpha) + c*sin(a*y), 2), [xx y])) 391s %% tests to match Matlab R2013b 392s ***** shared x,y,z,a,b,c,X,Y,Z 392s syms x y z a b c X Y Z 392s ***** test 392s %% X,Y,Z first if no 2nd argument 392s s = prod([x y z a b c X Y Z]); 392s assert (isequal( symvar (s), [X Y Z a b c x y z] )) 392s ***** test 392s %% uppercase have *low* priority with argument? 392s s = prod([x y z a b c X Y Z]); 392s assert (isequal (symvar (s,4), [x, y, z, c] )) 392s ***** test 392s %% closest to x 392s s = prod([y z a b c Y Z]); 392s assert (isequal( symvar (s,6), [ y, z, c, b, a, Y] )) 392s s = prod([a b c Y Z]); 392s assert (isequal( symvar (s,4), [ c, b, a, Y] )) 392s ***** test 392s %% upper case letters in correct order 392s s = X*Y*Z; 392s assert (isequal( symvar (s,3), [X Y Z] )) 392s ***** test 392s % diff. assumptions make diff. symbols 392s x1 = sym('x'); 392s x2 = sym('x', 'positive'); 392s f = x1*x2; 392s assert (length (symvar (f)) == 2) 392s z = symvar (f, 1); 392s assert (xor (isequal (z, x1), isequal (z, x2))) 392s 10 tests, 10 passed, 0 known failure, 0 skipped 392s [inst/@sym/assume.m] 392s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/assume.m 392s ***** test 392s syms x 392s x = assume(x, 'positive'); 392s a = assumptions(x); 392s assert(strcmp(a, 'x: positive')) 392s x = assume(x, 'even'); 392s a = assumptions(x); 392s assert(strcmp(a, 'x: even')) 392s x = assume(x, 'odd'); 392s a = assumptions(x); 392s assert(strcmp(a, 'x: odd')) 392s ***** error 392s syms x 392s x = assume (x, x); 392s ***** error 392s syms x 392s x = assume (x/pi, 'integer') 393s ***** test 393s % multiple assumptions 393s syms x 393s x = assume(x, 'positive', 'integer'); 393s [tilde, a] = assumptions(x, 'dict'); 393s assert(a{1}.integer) 393s assert(a{1}.positive) 393s ***** test 393s % multiple assumptions 393s syms x 393s x = assume(x, 'even', 'positive'); 393s [tilde, a] = assumptions(x, 'dict'); 393s assert(a{1}.even) 393s assert(a{1}.positive) 393s ***** test 393s % has output so avoids workspace 393s syms x positive 393s x2 = x; 393s f = sin(x); 393s x = assume(x, 'negative'); 393s a = assumptions(x); 393s assert(strcmp(a, 'x: negative')) 393s a = assumptions(x2); 393s assert(strcmp(a, 'x: positive')) 393s a = assumptions(f); 393s assert(strcmp(a, 'x: positive')) 393s ***** test 393s % clear: has output so avoids workspace 393s syms x positive 393s f = 2*x; 393s x2 = assume(x, 'clear'); 393s assert (~ isempty (assumptions (f))); 393s ***** test 393s % has no output so does workspace 393s syms x positive 393s x2 = x; 393s f = sin(x); 393s assume(x, 'negative'); 393s a = assumptions(x); 393s assert(strcmp(a, 'x: negative')) 393s a = assumptions(x2); 393s assert(strcmp(a, 'x: negative')) 393s a = assumptions(f); 393s assert(strcmp(a, 'x: negative')) 393s ***** test 393s % clear: has not output so does workspace 393s syms x positive 393s f = 2*x; 393s assume(x, 'clear'); 393s assert (isempty (assumptions (f))); 393s assert (isempty (assumptions ())); 393s ***** test 393s syms x positive 393s assume (x, 'clear') 393s assert (isempty (assumptions ())) 393s ***** error 393s syms x 393s x2 = assume (x, 'clear', 'real'); 393s ***** error 393s syms a 393s assume (a > 0) 393s ***** test 393s syms x y 393s assume ([x y], 'real') 393s assert (strcmp (assumptions (x), 'x: real')) 393s assert (strcmp (assumptions (y), 'y: real')) 393s ***** test 393s syms x y 393s assume ([x y], 'positive', 'even') 393s assert (strcmp (assumptions (x), 'x: positive, even') || strcmp (assumptions (x), 'x: even, positive')) 393s assert (strcmp (assumptions (y), 'y: positive, even') || strcmp (assumptions (y), 'y: even, positive')) 393s ***** test 393s % with output, original x and y are unchanged 393s syms x y 393s [p, q] = assume ([x y], 'real'); 393s assert (isempty (assumptions (x))) 393s assert (isempty (assumptions (y))) 393s assert (strcmp (assumptions (p), 'x: real')) 393s assert (strcmp (assumptions (q), 'y: real')) 394s ***** test 394s % matrix input 394s syms a b c d 394s assume ([a b; c d], 'real') 394s assert (strcmp (assumptions (a), 'a: real')) 394s assert (strcmp (assumptions (b), 'b: real')) 394s assert (strcmp (assumptions (c), 'c: real')) 394s assert (strcmp (assumptions (d), 'd: real')) 394s 16 tests, 16 passed, 0 known failure, 0 skipped 394s [inst/@sym/limit.m] 394s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/limit.m 394s ***** error limit (sym(1), 2, 3, 4, 5) 394s ***** shared x, oo 394s syms x 394s oo = sym(inf); 394s ***** assert (isa (limit(x, x, pi), 'sym')) 394s ***** assert (isequal (limit(x, x, pi), sym(pi))) 394s ***** assert (isequal (limit(sin(x)/x, x, 0), 1)) 394s ***** test 394s % left/right-hand limit 394s assert (isequal (limit(1/x, x, 0, 'right'), oo)) 394s assert (isequal (limit(1/x, x, 0), oo)) 394s assert (isequal (limit(1/x, x, 0, 'left'), -oo)) 394s assert (isequal (limit(1/x, x, oo), 0)) 394s assert (isequal (limit(sign(x), x, 0, 'left'), -1)) 394s assert (isequal (limit(sign(x), x, 0, 'right'), 1)) 394s assert (isequal (limit(sign(x), x, 0, '-'), -1)) 394s assert (isequal (limit(sign(x), x, 0, '+'), 1)) 394s ***** test 394s % matrix 394s syms y 394s A = [x 1/x x*y]; 394s B = sym([3 sym(1)/3 3*y]); 394s assert (isequal (limit(A, x, 3), B)) 395s ***** test 395s % omitting arguments 395s syms a 395s assert (isequal (limit(a), 0)) 395s assert (isequal (limit(a*x+a+2), a+2)) 395s assert (isequal (limit(a*x+a+2, 6), 7*a+2)) 395s ***** test 395s % constants 395s assert (isequal (limit(sym(6)), 6)) 395s assert (isequal (limit(sym(6), 7), 6)) 395s assert (isequal (limit([sym(6) sym(2)], 7), [6 2])) 395s ***** test 395s % double constant, with sym limit 395s a = limit (6, sym(0)); 395s assert (isa (a, 'sym')) 395s assert (isequal (a, sym(6))) 395s 9 tests, 9 passed, 0 known failure, 0 skipped 395s [inst/@sym/fliplr.m] 395s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/fliplr.m 395s ***** test 395s % simple 395s syms x 395s A = [x 2; sym(pi) x]; 395s B = [2 x; x sym(pi)]; 395s assert (isequal (fliplr(A), B)) 395s ***** test 395s % simple, odd # cols 395s syms x 395s A = [x 2 sym(pi); x 1 2]; 395s B = [sym(pi) 2 x; 2 1 x]; 395s assert (isequal (fliplr(A), B)) 395s ***** test 395s % scalar 395s syms x 395s assert (isequal (fliplr(x), x)) 395s 3 tests, 3 passed, 0 known failure, 0 skipped 395s [inst/@sym/rank.m] 395s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/rank.m 395s ***** test 395s A = sym([1 2; 3 4]); 395s assert (rank(A) == 2); 395s ***** test 395s A = sym([1 2 3; 3 4 5]); 395s assert (rank(A) == 2); 395s ***** test 395s A = sym([1 2; 1 2]); 395s assert (rank(A) == 1); 395s ***** test 395s A = sym([1 2; 3 4]); 395s assert (rank(A) == 2); 396s ***** assert (rank(sym(1)) == 1); 396s ***** assert (rank(sym(0)) == 0); 396s ***** assert (rank(sym('x', 'positive')) == 1); 396s 7 tests, 7 passed, 0 known failure, 0 skipped 396s [inst/@sym/euler.m] 396s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/euler.m 396s ***** error euler (sym(1), 2, 3) 396s ***** assert (isequal (euler (sym(0)), sym(1))) 396s ***** test 396s m = sym([0 1 2; 8 10 888889]); 396s A = euler (m); 396s B = sym([1 0 -1; 1385 -50521 0]); 396s assert (isequal (A, B)) 396s ***** test 396s syms x 396s assert (isequal (euler(6, x), x^6 - 3*x^5 + 5*x^3 - 3*x)) 396s ***** assert (isnan (euler (3, sym(nan)))) 396s ***** test 396s syms m x 396s em = euler (m, x); 396s A = subs(em, [m x], [2 sym(pi)]); 396s assert (isequal (A, sym(pi)^2 - sym(pi))) 396s ***** test 396s % vectorized 396s syms x y 396s A = euler([1; 2], [x; y]); 396s B = [x - sym(1)/2; y^2 - y]; 396s assert (isequal (A, B)) 396s ***** test 396s % round trip 396s syms m z 396s f = euler (m, z); 396s h = function_handle (f, 'vars', [m z]); 396s A = h (2, 2.2); 396s B = euler (2, 2.2); 396s assert (A, B) 396s ***** test 396s % compare vpa to maple: Digits:=34; evalf(euler(13, exp(1)+Pi*I/13)); 396s A = vpa('1623.14184180556920918624604530515') + ... 396s vpa('4270.98066989140286451493108809574')*1i; 396s z = vpa (exp(1), 32) + vpa(pi, 32)/13*1i; 396s B = euler (13, z); 396s relerr = abs(double(abs((B - A)/A))); 396s assert (relerr < 20*eps); 398s ***** xtest 398s % as above, high-prec result broken in 1.12: https://github.com/sympy/sympy/issues/24156 398s A = vpa('1623.14184180556920918624604530515') + ... 398s vpa('4270.98066989140286451493108809574')*1i; 398s z = vpa (exp(1), 32) + vpa(pi, 32)/13*1i; 398s B = euler (13, z); 398s relerr = abs(double(abs((B - A)/A))); 398s assert (relerr < 2e-31); 399s !!!!! known failure 399s assert (relerr < 2e-31) failed 399s 10 tests, 9 passed, 1 known failure, 0 skipped 399s [inst/@sym/lhs.m] 399s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/lhs.m 399s ***** test 399s syms x y 399s f = x + 1 == 2*y; 399s assert (isequal (lhs(f), x + 1)) 399s assert (isequal (rhs(f), 2*y)) 400s ***** test 400s syms x y 400s f = x + 1 < 2*y; 400s assert (isequal (lhs(f), x + 1)) 400s assert (isequal (rhs(f), 2*y)) 400s ***** test 400s syms x y 400s f = x + 1 >= 2*y; 400s assert (isequal (lhs(f), x + 1)) 400s assert (isequal (rhs(f), 2*y)) 400s ***** test 400s syms x y 400s A = [x == y 2*x < 2*y; 3*x > 3*y 4*x <= 4*y; 5*x >= 5*y x < 0]; 400s L = [x 2*x; 3*x 4*x; 5*x x]; 400s R = [y 2*y; 3*y 4*y; 5*y 0]; 400s assert (isequal( lhs(A), L)) 400s assert (isequal( rhs(A), R)) 400s ***** error 400s syms x 400s lhs(x) 400s ***** error 400s lhs(sym(true)) 400s ***** error 400s syms x 400s A = [1 + x == 2*x sym(6)]; 400s lhs(A) 400s 7 tests, 7 passed, 0 known failure, 0 skipped 400s [inst/@sym/diag.m] 400s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/diag.m 400s ***** test 400s % scalar 400s syms x 400s assert (isequal (diag(x), x)) 400s ***** test 400s % row,col vec input 400s syms x 400s r = [1 x 2]; 400s c = [sym(1); x]; 400s assert (isequal (diag(diag(c)), c)) 400s assert (isequal (diag(c), [sym(1) 0; 0 x])) 400s assert (isequal (diag(diag(r)), r.')) 400s assert (isequal (diag(r), [sym(1) 0 0; 0 x 0; sym(0) 0 2])) 401s ***** test 401s % create matrix, kth diag 401s syms x 401s r = [1 x]; 401s z = sym(0); 401s assert (isequal (diag (x, 0), x)) 401s assert (isequal (diag (x, 1), [z x; z z])) 401s assert (isequal (diag (x, -1), [z z; x z])) 401s assert (isequal (diag (x, 2), [z z x; z z z; z z z])) 401s assert (isequal (diag (r, 1), [z 1 z; z z x; z z z])) 401s ***** test 401s % extract kth diag 401s A = sym([1 2 3; 4 5 6]); 401s assert (isequal (diag(A), sym([1; 5]))) 401s assert (isequal (diag(A, 0), sym([1; 5]))) 401s assert (isequal (diag(A, 1), sym([2; 6]))) 401s assert (isequal (diag(A, 2), sym(3))) 401s assert (isequal (diag(A, -1), sym(4))) 401s assert (isempty (diag(A, -2))) 401s assert (isempty (diag(A, 3))) 401s 4 tests, 4 passed, 0 known failure, 0 skipped 401s [inst/@sym/dot.m] 401s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/dot.m 401s ***** error dot (sym(1), 2, 3) 401s ***** test 401s a = sym([1; 1; 0]); 401s b = sym([1; 2; 4]); 401s c = dot(a, b); 401s assert (isequal (c, sym(3))) 401s ***** test 401s syms x 401s a = sym([x; 0; 0]); 401s b = sym([0; 1; 0]); 401s c = dot(a, b); 401s assert (isequal (c, sym(0))) 401s ***** test 401s assert (isequal (dot (sym([1 i]), sym([i 2])), sym(-i))) 402s 4 tests, 4 passed, 0 known failure, 0 skipped 402s [inst/@sym/prevprime.m] 402s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/prevprime.m 402s ***** assert (isequal (prevprime(sym(3)), 2)); 402s ***** assert (isequal (prevprime(sym(20)), 19)); 402s ***** assert (isequal (prevprime(sym([3 5 10])), [2 3 7])); 402s ***** error prevprime(sym(2)) 402s ***** error prevprime(sym(-2)) 402s ***** test 402s % result is a sym 402s p = prevprime(sym(3)); 402s assert (isa (p, 'sym')) 402s 6 tests, 6 passed, 0 known failure, 0 skipped 402s [inst/@sym/logical.m] 402s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/logical.m 402s ***** test 402s % basics, many others in isAlways.m 402s assert (logical(true)) 402s assert (~(logical(false))) 402s ***** test 402s % numbers to logic? 402s assert (logical(sym(1))) 402s assert (logical(sym(-1))) 402s assert (~logical(sym(0))) 402s ***** test 402s % eqns, "structurally equivalent" 402s syms x 402s e = logical(x == x); 402s assert ( islogical (e)) 402s assert (e) 402s e = logical(x == 1); 402s assert ( islogical (e)) 402s assert (~e) 402s ***** test 402s % eqn could have solutions but are false in general 402s syms x 402s e = logical(x^2 == x); 402s assert ( islogical (e)) 402s assert (~e) 402s e = logical(2*x == x); 402s assert ( islogical (e)) 402s assert (~e) 402s ***** test 402s % FIXME: (not sure yet) T/F matrices should stay sym until logical() 402s a = sym(1); 402s e = a == a; 402s assert (isa (e, 'sym')) 402s assert (islogical (logical (e))) 402s e = [a == a a == 0 a == a]; 402s assert (isa (e, 'sym')) 402s assert (islogical (logical (e))) 402s ***** test 402s % sym vectors of T/F to logical 402s a = sym(1); 402s e = [a == a a == 0 a == a]; 402s w = logical(e); 402s assert (islogical (w)) 402s assert (isequal (w, [true false true])) 402s e = e'; 402s w = logical(e); 402s assert (islogical (w)) 402s assert (isequal (w, [true; false; true])) 402s ***** test 402s % sym matrix of T/F to logical 402s a = sym([1 2 3; 4 5 6]); 402s b = sym([1 2 0; 4 0 6]); 402s e = a == b; 402s w = logical(e); 402s assert (islogical (w)) 402s assert (isequal (w, [true true false; true false true])) 402s ***** error 402s syms x 402s logical(x); 402s ***** error 402s logical(sym(nan)) 402s ***** test 402s % but oo and zoo are non-zero so we call those true 402s % (SMT errors on these) FIXME 402s syms oo zoo 402s assert (logical (oo)) 402s % assert (logical (zoo)) 402s ***** test 402s % older Octave (< 4.2) didn't automatically do "if (logical(obj))" 402s e = sym(true); 402s if (e) 402s assert(true); 402s else 402s assert(false); 402s end 402s ***** test 402s % more of above 402s e2 = sym(1) == sym(1); 402s if (e2) 402s assert(true); 402s else 402s assert(false); 402s end 402s e3 = sym([1 2]) == sym([1 1]); 402s if (e3(1)) 402s assert(true); 402s else 402s assert(false); 402s end 402s 12 tests, 12 passed, 0 known failure, 0 skipped 402s [inst/@sym/bessely.m] 402s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/bessely.m 402s ***** test 402s X = [1 2 3; 4 5 6]; 402s ns = [sym(0) 1 -2; sym(1)/2 -sym(3)/2 pi]; 402s n = double(ns); 402s A = double(bessely(ns, X)); 402s B = bessely(n, X); 402s assert (all (all (abs (A - B) < 50*eps*abs(A)))) 403s ***** test 403s % roundtrip 403s syms x 403s A = bessely(2, 10); 403s q = bessely(2, x); 403s h = function_handle(q); 403s B = h(10); 403s assert (abs (A - B) <= eps*abs(A)) 403s ***** error bessely(sym('x')) 403s 3 tests, 3 passed, 0 known failure, 0 skipped 403s [inst/@sym/subsasgn.m] 403s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/subsasgn.m 403s ***** shared a,b 403s b = [1:4]; 403s a = sym(b); 403s ***** test a(1) = 10; b(1) = 10; 403s assert(isequal( a, b )) 403s ***** test I = logical([1 0 1 0]); 403s a(I) = 2; b(I) = 2; 403s assert(isequal( a, b )) 403s ***** test I = logical([1 0 1 0]); 403s a(I) = [2 4]; b(I) = [2 4]; 403s assert(isequal( a, b )) 403s ***** test I = logical([1 0 1 0]); 403s a(I) = [2; 4]; b(I) = [2; 4]; 403s assert(isequal( a, b )) 403s ***** shared 403s ***** test 403s b = 1:4; b = [b; 2*b; 3*b]; 403s a = sym(b); 403s rhs = [10 11; 12 13]; 403s a([1:2],[1:2]) = rhs; 403s b([1:2],[1:2]) = rhs; 403s assert(isequal( a, b )) 403s a(1:2,1:2) = rhs; 403s assert(isequal( a, b )) 404s ***** test 404s % slice : 404s b = 1:4; b = [b; 2*b]; 404s a = sym(b); 404s rhs = [10 11; 12 13]; 404s a(:,2:3) = rhs; 404s b(:,2:3) = rhs; 404s assert(isequal( a, b )) 404s ***** test 404s % grow 2D 404s b = 1:4; b = [b; 2*b]; 404s a = sym(b); 404s rhs = [10 11; 12 13]; 404s a([1 end+1],end:end+1) = rhs; 404s b([1 end+1],end:end+1) = rhs; 404s assert(isequal( a, b )) 404s ***** test 404s % grow from nothing 404s clear a 404s a(3) = sym (1); 404s b = sym ([0 0 1]); 404s assert (isequal (a, b)) 404s ***** test 404s % grow from nothing, 2D 404s clear a 404s a(2, 3) = sym (1); 404s b = sym ([0 0 0; 0 0 1;]); 404s assert (isequal (a, b)) 404s ***** test 404s % linear indices of 2D 404s b = 1:4; b = [b; 2*b; 3*b]; 404s a = sym(b); 404s b(1:4) = [10 11 12 13]; 404s a(1:4) = [10 11 12 13]; 404s assert(isequal( a, b )) 404s b(1:4) = [10 11; 12 13]; 404s a(1:4) = [10 11; 12 13]; 404s assert(isequal( a, b )) 405s ***** error 405s % Wrong shape matrix RHS: Matlab/Octave don't allow this on doubles. 405s % Matlab SMT 2013b gets it wrong. We throw an error. 405s rhs = [10 11; 12 13]; 405s a = sym (magic (3)); 405s a(1:2,1:2) = rhs(:); 405s ***** test 405s % Issue #963: vector RHS with diff orientation from 2D indexing 405s b = 1:4; b = [b; 2*b; 3*b]; 405s a = sym(b); 405s b(1:2:3, 1) = 11:2:13; 405s a(1:2:3, 1) = sym(11:2:13); 405s assert (isequal (a, b)) 405s b(1:2:3, 1) = 1:2:3; 405s a(1:2:3, 1) = 1:2:3; 405s assert (isequal (a, b)) 405s ***** test 405s % Issue #963: vector RHS with diff orientation from 2D indexing 405s a = sym (magic (3)); 405s b = a; 405s a(1:2:3, 2) = [14 15]; 405s b(1:2:3, 2) = [14; 15]; 405s assert (isequal (a, b)) 405s a(2, 1:2:3) = [24 25]; 405s b(2, 1:2:3) = [24; 25]; 405s assert (isequal (a, b)) 406s ***** test 406s % 1D growth and 'end' 406s g = sym([1 2 3]); 406s g(3:4) = [67 68]; 406s g(end:end+1) = [12 14]; 406s assert(isequal( g, [1 2 67 12 14] )) 406s ***** test 406s % expanding empty and scalar 406s syms x 406s c = sym([]); 406s c(1) = x; 406s assert(isequal( c, x )) 406s c(2) = 2*x; 406s assert(isequal( c, [x 2*x] )) 406s ***** shared a,b,I,J 406s b = 1:4; b = [b; 3*b; 5*b]; a = sym(b); 406s I = logical([1 0 1]); 406s J = logical([1 0 1 0]); 406s ***** assert(isequal( a(I,J), b(I,J) )) 406s ***** test 406s rhs = [90 91; 92 93]; 406s b(I, J) = rhs; 406s a(I, J) = rhs; 406s assert(isequal( a, b )) 406s ***** test 406s b(I, J) = 100; 406s a(I, J) = 100; 406s assert(isequal( a, b )) 406s ***** shared 406s ***** test 406s % logical with all false 406s syms x 406s y = x; 406s y(false) = 6; 406s assert(isequal( y, x )); 406s a = [x x]; 406s a([false false]) = [6 6]; 406s assert(isequal( a, [x x] )); 406s ***** test 406s % issue #18, scalar access 406s syms x 406s x(1) = sym(6); 406s assert(isequal( x, sym(6) )); 406s x(1) = 6; 406s assert(isequal( x, sym(6) )); 406s x(true) = 88; 406s assert(isequal( x, sym(88) )); 406s ***** test 406s % bug: assignment to column vector used to fail 406s A = sym(zeros(3,1)); 406s A(1) = 5; 407s ***** test 407s % symfun creation (generic function) 407s syms x 407s g(x) = x*x; 407s assert(isa(g,'symfun')) 407s ***** test 407s % symfun creation (generic function) 407s syms x g(x) 407s assert(isa(g,'symfun')) 407s ***** test 407s % symfun creation when g already exists and is a sym/symfun 407s syms x 407s g = x; 407s syms g(x) 407s assert(isa(g,'symfun')) 407s clear g 407s g(x) = x; 407s g(x) = x*x; 407s assert(isa(g,'symfun')) 407s ***** test 407s % Issue #443: assignment with sym indices 407s A = sym([10 11]); 407s A(sym(1)) = 12; 407s assert (isequal (A, sym([12 11]))) 407s ***** test 407s % Issue #443: assignment with sym indices 407s A = sym([10 11]); 407s A(sym(1), 1) = 12; 407s assert (isequal (A, sym([12 11]))) 407s A(sym(1), sym(1)) = 13; 407s assert (isequal (A, sym([13 11]))) 407s ***** test 407s % Issue #443: assignment with sym indices, increase size 407s A = sym([10 11]); 407s A(sym(2), 1) = 12; 407s assert (isequal (A, sym([10 11; 12 0]))) 407s ***** error 407s % Issue #443 407s A = sym([10 11]); 407s A(2, sym('x')) = sym(12); 407s ***** error 407s % Issue #443 407s A = sym([10 11]); 407s A(sym(2), sym('x')) = sym(12); 407s ***** error 407s % issue #445 407s A = sym([10 11]); 407s A(1.1) = 13 407s ***** error 407s % issue #445 407s A = sym([10 11]); 407s A(sym(pi)) = 13 407s ***** error 407s % issue #445 407s A = sym([1 2; 3 4]); 407s A(1.3, 1.2) = 13 407s ***** test 407s % older expansion tests 407s syms x 407s f = [2*x 3*x]; 407s f(2) = 4*x; 407s assert (isequal (f, [2*x 4*x])) 407s f(2) = 2; 407s assert (isequal(f, [2*x 2])) 407s g = f; 407s g(1,3) = x*x; 407s assert (isequal(g, [2*x 2 x^2])) 407s g = f; 407s g(3) = x*x; 407s assert (isequal(g, [2*x 2 x^2])) 407s g = f; 407s g(3) = 4; 407s assert (isequal(g, [2*x 2 4])) 408s ***** test 408s % older slicing tests 408s syms x 408s f = [1 x^2 x^4]; 408s f(1:2) = [x x]; 408s assert (isequal( f, [x x x^4] )) 408s f(1:2) = [1 2]; 408s assert (isequal( f, [1 2 x^4] )) 408s f(end-1:end) = [3 4]; 408s assert (isequal( f, [1 3 4] )) 408s f(3:4) = [10 11]; 408s assert (isequal( f, [1 3 10 11] )) 408s f(end:end+1) = [12 14]; 408s assert (isequal( f, [1 3 10 12 14] )) 408s ***** test 408s % struct.str = sym, sometimes calls subsasgn 408s d = struct(); 408s syms x 408s d.a = x; 408s assert (isa (d, 'struct')) 408s assert (isequal (d.a, x)) 408s d.('a') = x; 408s assert (isa (d, 'struct')) 408s assert (isequal (d.a, x)) 408s d = setfield(d, 'a', x); 408s assert (isa (d, 'struct')) 408s assert (isequal (d.a, x)) 408s % at least on Oct 3.8, this calls sym's subsasgn 408s d = struct(); 408s d = setfield(d, 'a', x); 408s assert (isa (d, 'struct')) 408s assert (isequal (d.a, x)) 408s ***** test 408s % bool scalar assignments of true/false into sym 408s syms x 408s a = sym([1 2 x 3]); 408s b = [1 2 10 4]; 408s e = a == b; 408s assert (logical (e(2))) 408s e(2) = false; 408s assert (~logical (e(2))) 408s ***** test 408s % bool vector assignments of true/false into sym 408s syms x 408s a = sym([1 2 x 3]); 408s b = [1 2 10 4]; 408s e = a == b; 408s e(1:2) = [true true]; 408s assert (isequal (e, [sym(1)==1 sym(2)==2 x==10 sym(3)==4])) 408s ***** test 408s % bool scalar promoted to vector assignments into sym 408s syms x 408s a = sym([1 2 x 3]); 408s b = [1 2 10 4]; 408s e = a == b; 408s e(1:2) = true; 408s assert (isequal (e, [sym(1)==1 sym(2)==2 x==10 sym(3)==4])) 409s ***** test 409s % grow scalar equality expression into a matrix of equalities 409s syms a b c d 409s e = a == b; 409s e(2) = c == d; 409s assert (isequal (e, [a==b c==d])) 409s ***** shared a, b, I 409s b = [1:4]; b = [b; 3*b; 5*b]; 409s a = sym(b); 409s I = mod (b, 5) > 1; 409s ***** test 409s A = a; A(I) = 2*b(I); 409s B = b; B(I) = 2*b(I); 409s assert (isequal (A, B)) 409s ***** test 409s % scalar RHS 409s A = a; A(I) = 17; 409s B = b; B(I) = 17; 409s assert (isequal (A, B)) 409s ***** test 409s % nonetheless, above strange case should give right answer 409s I = logical([1 0 1 0; 0 1 0 1; 1 0 1 0]); 409s rhs = 2*b(I); 409s rhs2 = reshape(rhs, 2, 3); 409s A0 = a; A1 = a; 409s A0(I) = rhs; 409s A1(I) = rhs2; 409s assert (isequal (A0, A1)) 409s ***** shared AA, BB 409s BB = [1 2 3; 4 5 6]; 409s AA = sym(BB); 409s ***** test 409s A = AA; B = BB; 409s B([1 6]) = [8 9]; 409s A([1 6]) = [8 9]; 409s assert (isequal (A, B)) 409s ***** test 409s % rhs scalar 409s A = AA; B = BB; 409s B([1 6]) = 88; 409s A([1 6]) = 88; 409s assert (isequal (A, B)) 410s ***** test 410s % If rhs is not a vector, make sure col-based access works 410s rhs = [18 20; 19 21]; 410s A = AA; B = BB; 410s B([1 6]) = 88; 410s A([1 6]) = 88; 410s B([1 2 3 4]) = rhs; 410s A([1 2 3 4]) = rhs; 410s assert (isequal (A, B)) 410s ***** test 410s % Growth 410s A = AA; B = BB; 410s A(1,5) = 10; 410s B(1,5) = 10; 410s assert (isequal (A, B)) 410s ***** shared 410s ***** test 410s % Check row deletion 1D 410s a = sym([1; 3; 5]); 410s b = sym([3; 5]); 410s a(1) = []; 410s assert( isequal( a, b)) 410s ***** test 410s % Check column deletion 1D 410s a = sym([1, 4, 8]); 410s b = sym([4, 8]); 410s a(1) = []; 410s assert( isequal( a, b)) 410s ***** test 410s % Check row deletion 2D 410s a = sym([1, 2; 3, 4]); 410s b = sym([3, 4]); 410s a(1, :) = []; 410s assert( isequal( a, b)) 410s ***** test 410s % Check column deletion 2D 410s a = sym([1, 2; 3, 4]); 410s b = sym([2; 4]); 410s a(:, 1) = []; 410s assert( isequal( a, b)) 410s ***** test 410s % General assign 410s a = sym([1, 2; 3, 4]); 410s b = sym([5, 5; 5, 5]); 410s a(:) = 5; 410s assert( isequal( a, b)) 410s ***** test 410s % Empty matrix 410s a = sym([1, 2; 3, 4]); 410s a(:) = []; 410s assert( isequal( a, sym([]))) 410s ***** test 410s % Disassemble matrix 410s a = sym([1 2; 3 4; 5 6]); 410s b = sym([3 5 2 4 6]); 410s a(1) = []; 410s assert (isequal (a, b)); 410s ***** error 410s a = sym([1, 2; 3, 4]); 410s a(1, 2) = []; 411s ***** test 411s % Issue #964 411s a = sym(10); 411s a(1) = []; 411s assert (isempty (a)) 411s assert (isequal (a, zeros(1, 0))) 411s ***** test 411s % Issue #963: scalar asgn to empty part of matrix 411s A = sym (magic (3)); 411s B = A; 411s A(1, []) = 42; 411s assert (isequal (A, B)) 411s A([], 2) = 42; 411s assert (isequal (A, B)) 411s A([]) = 42; 411s assert (isequal (A, B)) 411s A([], []) = 42; 411s assert (isequal (A, B)) 411s A(2:3, []) = 42; 411s assert (isequal (A, B)) 411s A([], 2:3) = 42; 411s assert (isequal (A, B)) 411s A(:, []) = 42; 411s assert (isequal (A, B)) 411s A([], :) = 42; 411s assert (isequal (A, B)) 411s ***** test 411s % Issue #1026 411s a = sym(1:5); 411s a(1:3) = []; 411s assert (isequal (a, sym([4 5]))) 411s ***** test 411s % Issue #1026 411s B = eye(4); 411s A = sym(B); 411s A(1:2, :) = []; 411s B(1:2, :) = []; 411s assert (isequal (A, B)) 411s ***** error 411s % TODO: do we care what error? 411s A = sym (magic (3)); 411s A(2:3, []) = [66; 66]; 411s ***** error 411s A = sym (magic (3)); 411s A([]) = [66; 66]; 411s ***** error 411s A = sym (magic (3)); 411s A([], 1) = [66; 66]; 412s ***** test 412s % Issue #966: empty indexing, empty RHS, A unchanged 412s B = magic(3); 412s A = sym(B); 412s A(1, []) = []; 412s assert (isequal (A, B)) 412s A([], 2) = []; 412s assert (isequal (A, B)) 412s A([], []) = []; 412s assert (isequal (A, B)) 412s A(2:3, []) = []; 412s assert (isequal (A, B)) 412s A([], 2:3) = []; 412s assert (isequal (A, B)) 412s A(:, []) = []; 412s assert (isequal (A, B)) 412s A([], :) = []; 412s assert (isequal (A, B)) 412s ***** test 412s % Issue 967 412s B = [1 2; 3 4]; 412s A = sym(B); 412s A([]) = []; 412s assert (isequal (A, B)) 412s ***** test 412s % Issue #965 412s a = sym(7); 412s a([]) = []; 412s assert (isequal (a, sym(7))) 412s ***** test 412s % Issue #965 412s a = sym(7); 412s a([]) = 42; 412s assert (isequal (a, sym(7))) 412s ***** error 412s % Issue #965 412s a = sym(7); 412s a([]) = [42 42] 412s ***** test 412s b = eye (3); 412s a = sym (b); 412s I = [2 3; 4 5]; 412s a(I) = -2*I; 412s b(I) = -2*I; 412s assert (isequal (a, sym (b))); 412s assert (size (a), [3 3]); 413s ***** error 413s syms x 413s A = [1 x; x 2]; 413s A(5) = x; 413s ***** test 413s % 2D indexing with length in one dimension more than 2 413s a = sym ([1 2; 3 4; 5 6]); 413s indices = [1 4; 2 5; 3 6]; 413s b = [10 11; 12 13; 14 15]; 413s a(indices) = b; 413s assert (isequal (a, sym (b))); 413s ***** test 413s A = sym ([0 0 0]); 413s indices = [false true false]; 413s A(indices) = 1; 413s assert (isequal (A, sym ([0 1 0]))); 413s A(indices) = []; 413s assert (isequal (A, sym ([0 0]))); 413s indices = [false false]; 413s A(indices) = []; 413s assert (isequal (A, sym ([0 0]))); 413s ***** shared a, b 413s a = [1 2 3 5; 4 5 6 9; 7 5 3 2]; 413s b = sym (a); 413s ***** test 413s A = a; B = b; 413s A(true) = 0; 413s B(true) = 0; 413s assert (isequal (A, B)) 413s ***** test 413s A = a; B = b; 413s A(false) = 0; 413s B(false) = 0; 413s assert (isequal (A, B)) 413s ***** test 413s c = [false true]; 413s A = a; B = b; 413s A(c) = 0; B(c) = 0; 413s assert (isequal (A, B)) 413s d = c | true; 413s A(d) = 1; B(d) = 1; 413s assert (isequal (A, B)) 413s d = c & false; 413s A(d) = 2; B(d) = 2; 413s assert (isequal (A, B)) 414s ***** test 414s c = [false true false true; true false true false; false true false true]; 414s A = a; B = b; 414s A(c) = 0; B(c) = 0; 414s assert (isequal (A, B)) 414s d = c | true; 414s A(d) = 1; B(d) = 1; 414s assert (isequal (A, B)) 414s d = c & false; 414s A(d) = 2; B(d) = 2; 414s assert (isequal (A, B)) 414s ***** test 414s c = [false true false true false]; 414s A = a; B = b; 414s A(c) = 0; B(c) = 0; 414s assert (isequal (A, B)) 414s d = c | true; 414s A(d) = 1; B(d) = 1; 414s assert (isequal (A, B)) 414s d = c & false; 414s A(d) = 2; B(d) = 2; 414s assert (isequal (A, B)) 415s ***** test 415s c = [false; true; false; true; false]; 415s A = a; B = b; 415s A(c) = 0; B(c) = 0; 415s assert (isequal (A, B)) 415s d = c | true; 415s A(d) = 1; B(d) = 1; 415s assert (isequal (A, B)) 415s d = c & false; 415s A(d) = 2; B(d) = 2; 415s assert (isequal (A, B)) 415s ***** test 415s c = [false true; false true; true false]; 415s A = a; B = b; 415s A(c) = 0; B(c) = 0; 415s assert (isequal (A, B)) 415s d = c | true; 415s A(d) = 1; B(d) = 1; 415s assert (isequal (A, B)) 415s d = c & false; 415s A(d) = 2; B(d) = 2; 415s assert (isequal (A, B)) 415s 77 tests, 77 passed, 0 known failure, 0 skipped 415s [inst/@sym/display.m] 415s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/display.m 415s ***** test 415s assert(true) 415s 1 test, 1 passed, 0 known failure, 0 skipped 415s [inst/@sym/erfi.m] 415s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/erfi.m 415s ***** error erfi (sym(1), 2) 415s ***** assert (isequaln (erfi (sym(nan)), sym(nan))) 415s ***** shared x, d 415s d = 0; 415s x = sym('0'); 415s ***** test 415s f1 = erfi(x); 415s f2 = 0; 415s assert( abs(double(f1) - f2) < 1e-15 ) 415s ***** test 415s D = [d d; d d]; 415s A = [x x; x x]; 415s f1 = erfi(A); 415s f2 = 0; 415s f2 = [f2 f2; f2 f2]; 415s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 416s ***** test 416s % round trip 416s y = sym('y'); 416s A = erfi (d); 416s f = erfi (y); 416s h = function_handle (f); 416s B = h (d); 416s assert (A, B, -eps) 416s 5 tests, 5 passed, 0 known failure, 0 skipped 416s [inst/@sym/asec.m] 416s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/asec.m 416s ***** error asec (sym(1), 2) 416s ***** assert (isequaln (asec (sym(nan)), sym(nan))) 416s ***** shared x, d 416s d = 2; 416s x = sym('2'); 416s ***** test 416s f1 = asec(x); 416s f2 = asec(d); 416s assert( abs(double(f1) - f2) < 1e-15 ) 416s ***** test 416s D = [d d; d d]; 416s A = [x x; x x]; 416s f1 = asec(A); 416s f2 = asec(D); 416s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 416s ***** test 416s % round trip 416s y = sym('y'); 416s A = asec (d); 416s f = asec (y); 416s h = function_handle (f); 416s B = h (d); 416s assert (A, B, -eps) 416s 5 tests, 5 passed, 0 known failure, 0 skipped 416s [inst/@sym/fourier.m] 416s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/fourier.m 416s ***** test 416s % matlab SMT compatibiliy for arguments 416s syms r x u w v 416s Pi=sym('pi'); 416s assert(logical( fourier(exp(-x^2)) == sqrt(Pi)/exp(w^2/4) )) 416s assert(logical( fourier(exp(-w^2)) == sqrt(Pi)/exp(v^2/4) )) 416s assert(logical( fourier(exp(-r^2),u) == sqrt(Pi)/exp(u^2/4) )) 416s assert(logical( fourier(exp(-r^2),r,u) == sqrt(Pi)/exp(u^2/4) )) 418s ***** test 418s % basic tests 418s syms x w 418s assert(logical( fourier(exp(-abs(x))) == 2/(w^2 + 1) )) 418s assert(logical( fourier(x*exp(-abs(x))) == -(w*4*1i)/(w^4 + 2*w^2 + 1) )) 419s ***** test 419s % Dirac delta tests 419s syms x w 419s Pi=sym('pi'); 419s assert(logical( fourier(dirac(x-2)) == exp(-2*1i*w) )) 419s assert (logical( fourier(sym(2), x, w) == 4*Pi*dirac(w) )) 419s ***** test 419s % advanced test 419s syms x w c d 419s Pi=sym('pi'); 419s F=Pi*(dirac(w-c)+dirac(w+c))+2*Pi*1i*(dirac(w+3*d)-dirac(w-3*d))+2/(w^2+1); 419s assert(logical( fourier(cos(c*x)+2*sin(3*d*x)+exp(-abs(x))) == expand(F) )) 420s ***** xtest 420s % Differential operator to algebraic 420s % SymPy cannot evaluate? (Issue #170) 420s syms x w f(x) 420s assert(logical( fourier(diff(f(x),x),x,w) == -1i*w*fourier(f(x),x,w) )) 421s !!!!! known failure 421s assert (logical (fourier (diff (f (x), x), x, w) == -1i * w * fourier (f (x), x, w))) failed 421s 5 tests, 4 passed, 1 known failure, 0 skipped 421s [inst/@sym/log2.m] 421s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/log2.m 421s ***** assert (isequal (log2 (sym (1024)), sym (10))) 421s ***** assert (isequal (log2 (sym ([2 16; 32 1])), sym ([1 4; 5 0]))) 421s ***** test 421s % round-trip 421s syms x 421s f = log2 (x); 421s h = function_handle (f); 421s A = h (1.1); 421s B = log2 (1.1); 421s assert (A, B, -5*eps) 421s 3 tests, 3 passed, 0 known failure, 0 skipped 421s [inst/@sym/ne.m] 421s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/ne.m 421s ***** test 421s % simple 421s x = sym(1); y = sym(1); e = x ~= y; 421s assert (~logical (e)) 421s x = sym(1); y = sym(2); e = x ~= y; 421s assert (logical(e)) 421s ***** test 421s % array -- array 421s syms x 421s a = sym([1 3 3 2*x]); 421s b = sym([2 x 3 10]); 421s e = a ~= b; 421s assert (isa (e, 'sym')) 421s assert (logical (e(1))) 421s assert (isa (e(2), 'sym')) 421s assert (isequal (e(2), 3 ~= x)) 421s assert (~logical (e(3))) 421s assert (isa (e(4), 'sym')) 421s assert (isequal (e(4), 2*x ~= 10)) 421s ***** test 421s % oo 421s syms oo x 421s e = oo ~= x; 421s assert (isa (e, 'sym')) 421s s = strtrim (disp (e, 'flat')); 421s % SymPy <= 0.7.6.x will be '!=', newer gives 'Ne', test both 421s assert (strcmp (s, 'oo != x') || strcmp (s, 'Ne(oo, x)')) 421s ***** test 421s % nan 421s syms oo x 421s snan = sym(nan); 421s e = snan ~= sym(0); 421s assert (logical (e)) 421s e = snan ~= snan; 421s assert (logical (e)) 421s 4 tests, 4 passed, 0 known failure, 0 skipped 421s [inst/@sym/acosd.m] 421s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/acosd.m 421s ***** error acosd (sym(1), 2) 421s ***** assert (isequaln (acosd (sym(nan)), sym(nan))) 421s ***** test 421s f1 = acosd (sym(1)/2); 421s f2 = acosd (1/2); 421s assert (double (f1), f2, -eps) 421s ***** test 421s D = [1 2; 3 4]/4; 421s A = sym([1 2; 3 4])/4; 421s f1 = acosd (A); 421s f2 = acosd (D); 421s assert (double (f1), f2, -eps) 422s 4 tests, 4 passed, 0 known failure, 0 skipped 422s [inst/@sym/formula.m] 422s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/formula.m 422s ***** test 422s syms x 422s assert (isequal (formula(x), x)) 422s assert (isequal (formula(2*x), 2*x)) 422s 1 test, 1 passed, 0 known failure, 0 skipped 422s [inst/@sym/besselh.m] 422s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/besselh.m 422s ***** test 422s % default to k=1 422s syms z a 422s A = besselh(a, z); 422s B = besselh(a, 1, z); 422s assert (isequal (A, B)) 422s ***** error besselh(sym('z')) 422s ***** error besselh(2, 0, sym('z')) 422s ***** error besselh(2, 3, sym('z')) 422s ***** test 422s % doubles, relative error 422s X = [1 2 pi; 4i 5 6+6i]; 422s Xs = sym(X); 422s Alpha = [pi 3 1; 3 2 0]; 422s Alphas = sym(Alpha); 422s for k = 1:2 422s A = double(besselh(Alphas, k, Xs)); 422s B = besselh(Alpha, k, X); 422s assert (all (all (abs(A - B) < 10*eps*abs(A)))) 422s end 422s ***** test 422s % round-trip 422s syms x 422s for k = 1:2 422s A = besselh(4, k, 10); 422s q = besselh(4, k, x); 422s h = function_handle(q); 422s B = h(10); 422s assert (abs(A - B) <= eps*abs(A)) 422s end 422s 6 tests, 6 passed, 0 known failure, 0 skipped 422s [inst/@sym/zeta.m] 422s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/zeta.m 422s ***** error zeta (sym(1), 2, 3) 422s ***** assert (isequaln (zeta (sym(nan)), sym(nan))) 422s ***** test 422s f1 = zeta (sym(2)); 422s f2 = pi^2/6; 422s assert (double (f1), f2, -1e-15) 422s ***** test 422s A = sym([0 2; 4 6]); 422s f1 = zeta (A); 422s f2 = [-1/2 pi^2/6; pi^4/90 pi^6/945]; 422s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 423s ***** test 423s % round trip 423s y = sym('y'); 423s f = zeta (y); 423s h = function_handle (f); 423s A = zeta (2); 423s B = h (2); 423s assert (A, B, -eps) 423s ***** test 423s syms x 423s assert (isequal (zeta (0, x), zeta(x))) 423s ***** test 423s % ensure its the nth deriv wrt x, not the n deriv 423s syms x n 423s F = zeta (n, x); 423s F = subs(F, n, 3); 423s assert (isequal (F, diff (zeta (x), x, x, x))) 423s 7 tests, 7 passed, 0 known failure, 0 skipped 423s [inst/@sym/acot.m] 423s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/acot.m 423s ***** error acot (sym(1), 2) 423s ***** assert (isequaln (acot (sym(nan)), sym(nan))) 423s ***** shared x, d 423s d = 1; 423s x = sym('1'); 423s ***** test 423s f1 = acot(x); 423s f2 = acot(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 = acot(A); 423s f2 = acot(D); 423s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 423s ***** test 423s % round trip 423s y = sym('y'); 423s A = acot (d); 423s f = acot (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/subsref.m] 423s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/subsref.m 423s ***** shared a,b 423s b = [1:4]; 423s a = sym(b); 423s ***** assert(isequal( a(1), b(1) )) 423s ***** assert(isequal( a(2), b(2) )) 423s ***** assert(isequal( a(4), b(4) )) 423s ***** assert(isempty( a([]) )) 423s ***** shared a,b 423s b = [1:4]; b = [b; 3*b; 5*b]; 423s a = sym(b); 423s ***** assert(isequal( a(1), b(1) )) 423s ***** assert(isequal( a(2), b(2) )) 423s ***** assert(isequal( a(4), b(4) )) 423s ***** assert(isequal( a(:,:), a )) 423s ***** assert(isequal( a(1:2,1:3), a(1:2,1:3) )) 423s ***** assert(isequal( a(1:2:3,[1 2 4]), b(1:2:3,[1 2 4]) )) 423s ***** assert(isequal( a(1:2:3,[4 2 3 1]), b(1:2:3,[4 2 3 1]) )) 424s ***** assert(isequal( a(1:2:3,[4 1 1 1]), b(1:2:3,[4 1 1 1]) )) 424s ***** assert(isequal( a([],:), b([],:) )) 424s ***** assert(isequal( size(a([],:)), [0 4] )) 424s ***** assert(isequal( a(1:2,[]), b(1:2,[]) )) 424s ***** assert(isequal( size(a(1:2,[])), [2 0] )) 424s ***** assert(isempty( a(1:2,[]) )) 424s ***** assert(isempty( a([],[]) )) 424s ***** assert(isequal( a([],[]), sym([]) )) 424s ***** assert(~isequal( a(1:2,[]), sym([]) )) 424s ***** shared e 424s e = sym([1 3 5; 2 4 6]); 424s ***** assert(isequal( e(:), sym((1:6)') )) 424s ***** assert(isequal( e([1 2 3]), sym([1 2 3]) )) 424s ***** assert(isequal( e([1; 3; 4]), sym([1; 3; 4]) )) 424s ***** assert(isempty( e([]) )) 424s ***** assert(isempty( e('') )) 424s ***** assert(isequal( e([]), sym([]) )) 424s ***** shared a,b 424s b = 1:5; a = sym(b); 424s ***** assert(isequal( a([1 2 5]), b([1 2 5]) )) 424s ***** assert(isequal( a([1; 2; 5]), b([1; 2; 5]) )) 424s ***** shared x 424s syms x 424s ***** test 424s % logical with empty result 424s assert(isempty( x(false) )) 424s a = [x x]; 424s assert(isempty( a([false false]) )) 424s ***** test 424s % issue 18, scalar access 424s assert(isequal( x(1), x )) 424s assert(isequal( x(true), x )) 424s ***** shared 424s ***** test 424s % older access tests 424s syms x 424s f = [x 2; 3 4*x]; 424s % element access 424s assert (logical( f(1,1) == x )) 424s assert (logical( f(1,2) == 2 )) 424s % linear access of 2d array 424s assert (logical( f(1) == x )) 424s assert (logical( f(2) == 3 )) % column based 424s assert (logical( f(3) == 2 )) 424s ***** shared a,b 424s % effectively a random matrix 424s a = reshape( round(50*(sin(1:20)+1)), 5,4); 424s b = sym(a); 425s ***** test 425s % older array refs test 425s assert (logical(b(1,1) == a(1,1))) 425s assert (logical(b(3,1) == a(3,1))) 425s assert (logical(b(1,3) == a(1,3))) 425s assert (logical(b(4,4) == a(4,4))) 425s ***** test 425s % older array refs test: linear indices 425s assert (logical(b(1) == a(1))) 425s assert (logical(b(3) == a(3))) 425s assert (logical(b(13) == a(13))) 425s ***** test 425s % older array refs test: end 425s assert (all(all(logical( b(end,1) == a(end,1) )))) 425s assert (all(all(logical( b(2,end) == a(2,end) )))) 425s assert (all(all(logical( b(end,end) == a(end,end) )))) 425s assert (all(all(logical( b(end-1,1) == a(end-1,1) )))) 425s assert (all(all(logical( b(2,end-1) == a(2,end-1) )))) 425s assert (all(all(logical( b(end-1,end-1) == a(end-1,end-1) )))) 425s ***** shared 425s ***** test 425s % older slicing tests 425s syms x 425s a = [1 2 3 4 5 6]; a = [a; 3*a; 5*a; 2*a; 4*a]; 425s b = sym(a); 425s assert (isequal( b(:,1), a(:,1) )) 425s assert (isequal( b(:,2), a(:,2) )) 425s assert (isequal( b(1,:), a(1,:) )) 425s assert (isequal( b(2,:), a(2,:) )) 425s assert (isequal( b(:,:), a(:,:) )) 425s assert (isequal( b(1:3,2), a(1:3,2) )) 425s assert (isequal( b(1:4,:), a(1:4,:) )) 425s assert (isequal( b(1:2:5,:), a(1:2:5,:) )) 425s assert (isequal( b(1:2:4,:), a(1:2:4,:) )) 425s assert (isequal( b(2:2:4,3), a(2:2:4,3) )) 425s assert (isequal( b(2:2:4,3), a(2:2:4,3) )) 426s ***** test 426s % 2D arrays 426s b = [1:4]; b = [b; 3*b; 5*b]; 426s a = sym(b); 426s I = rand(size(b)) > 0.5; 426s assert (isequal (a(I), b(I))) 426s I = I(:); 426s assert (isequal (a(I), b(I))) 426s I = I'; 426s assert (isequal (a(I), b(I))) 426s I = logical(zeros(size(b))); 426s assert (isequal (a(I), b(I))) 427s ***** test 427s % 1D arrays, does right with despite warning 427s r = [1:6]; 427s ar = sym(r); 427s c = r'; 427s ac = sym(c); 427s Ir = rand(size(r)) > 0.5; 427s Ic = rand(size(c)) > 0.5; 427s assert (isequal (ar(Ir), r(Ir))) 427s assert (isequal (ac(Ic), c(Ic))) 427s assert (isequal (ar(Ic), r(Ic))) 427s assert (isequal (ac(Ir), c(Ir))) 427s ***** test 427s % rccross tests 427s B = [1 2 3 4; 5 6 7 9; 10 11 12 13]; 427s A = sym(B); 427s assert (isequal (A([1 3],[2 3]), B([1 3], [2 3]) )) 427s assert (isequal (A(1,[2 3]), B(1,[2 3]) )) 427s assert (isequal (A([1 2],4), B([1 2],4) )) 427s assert (isequal (A([2 1],[4 2]), B([2 1],[4 2]) )) 427s assert (isequal (A([],[]), B([],[]) )) 427s ***** error 427s % issue #445 427s A = sym([10 11]); 427s A(1.1) 427s ***** error 427s % issue #445 427s A = sym([10 11]); 427s A(sym(4)/3) 428s ***** error 428s % issue #445 428s A = sym([1 2; 3 4]); 428s A(1.1, 1) 428s ***** error 428s % issue #445 428s A = sym([1 2; 3 4]); 428s A(1, sym(4)/3) 428s ***** error 428s A = sym([1 2; 3 4]); 428s A(5) 428s ***** shared a, b 428s a = [1 2 3 5; 4 5 6 9; 7 5 3 2]; 428s b = sym (a); 428s ***** test 428s c = true; 428s assert (isequal (a(c), b(c))) 428s c = false; 428s assert (isequal (a(c), b(c))) 428s ***** test 428s c = [false true]; 428s assert (isequal (a(c), b(c))) 428s d = c | true; 428s assert (isequal (a(d), b(d))) 428s d = c & false; 428s assert (isequal (a(d), b(d))) 428s ***** test 428s c = [false true false true; true false true false; false true false true]; 428s assert (isequal (a(c), b(c))) 428s d = c | true; 428s assert (isequal (a(d), b(d))) 428s d = c & false; 428s assert (isequal (a(d), b(d))) 428s ***** test 428s c = [false true false true false]; 428s assert (isequal (a(c), b(c))) 428s d = c | true; 428s assert (isequal (a(d), b(d))) 428s d = c & false; 428s assert (isequal (a(d), b(d))) 428s ***** test 428s c = [false; true; false; true; false]; 428s assert (isequal (a(c), b(c))) 428s d = c | true; 428s assert (isequal (a(d), b(d))) 428s d = c & false; 428s assert (isequal (a(d), b(d))) 428s ***** test 428s c = [false true; false true; true false]; 428s assert (isequal (a(c), b(c))) 428s d = c | true; 428s assert (isequal (a(d), b(d))) 428s d = c & false; 428s assert (isequal (a(d), b(d))) 429s ***** shared 429s ***** test 429s % Orientation of empty results of logical indexing on row or column vectors 429s r = [1:6]; 429s c = r'; 429s ar = sym(r); 429s ac = sym(c); 429s assert (isequal (ar(false), r(false))) 429s assert (isequal (ac(false), c(false))) 429s assert (isequal (ar(false (1, 6)), r(false (1, 6)))) 429s assert (isequal (ac(false (1, 6)), c(false (1, 6)))) 429s assert (isequal (ar(false (6, 1)), r(false (6, 1)))) 429s assert (isequal (ac(false (6, 1)), c(false (6, 1)))) 429s 50 tests, 50 passed, 0 known failure, 0 skipped 429s [inst/@sym/isallconstant.m] 429s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/isallconstant.m 429s ***** assert (isallconstant([sym(1) 2 3])) 429s ***** test 429s syms x 429s assert (~isallconstant([sym(1) x 3])) 429s ***** test 429s syms x 429s assert (~isallconstant([sym(1) x; sym(2) 3])) 429s 3 tests, 3 passed, 0 known failure, 0 skipped 429s [inst/@sym/end.m] 429s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/end.m 429s ***** test 429s % scalar 429s syms x 429s y = x(1:end); 429s assert (isequal (x, y)) 429s ***** test 429s % vector 429s syms x 429s A = [1 2 x 4]; 429s y = A(end-1:end); 429s assert (isequal (y, [x 4])) 429s ***** test 429s % subset of matrix 429s syms x 429s A = [1 2 x; x 3 9; 4 x*x 6]; 429s y = A(end,1:end-1); 429s assert (isequal (y, [4 x*x])) 429s ***** test 429s % linear index of matrix 429s syms x 429s A = [1 2 x; x 3 9]; 429s y = A(end); 429s assert (isequal (y, sym(9))) 429s 4 tests, 4 passed, 0 known failure, 0 skipped 429s [inst/@sym/uplus.m] 429s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/uplus.m 429s ***** test 429s syms x 429s assert (isa (+x, 'sym')) 429s assert (isequal (+x, x)) 429s ***** test 429s A = sym([0 -1 inf]); 429s assert( isequal ( +A, A)) 429s 2 tests, 2 passed, 0 known failure, 0 skipped 429s [inst/@sym/sinhint.m] 429s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/sinhint.m 429s ***** error sinhint (sym(1), 2) 429s ***** xtest 429s assert (isequaln (sinhint (sym(nan)), sym(nan))) 429s !!!!! known failure 429s assert (isequaln (sinhint (sym (nan)), sym (nan))) failed 429s ***** shared x, d 429s d = 1; 429s x = sym('1'); 429s ***** test 429s f1 = sinhint(x); 429s f2 = 1.057250875375728514572; 429s assert( abs(double(f1) - f2) < 1e-15 ) 429s ***** test 429s D = [d d; d d]; 429s A = [x x; x x]; 429s f1 = sinhint(A); 429s f2 = 1.057250875375728514572; 429s f2 = [f2 f2; f2 f2]; 429s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 429s ***** test 429s % round trip 429s y = sym('y'); 429s A = sinhint (d); 429s f = sinhint (y); 429s h = function_handle (f); 429s B = h (d); 429s assert (A, B, -eps) 430s 5 tests, 4 passed, 1 known failure, 0 skipped 430s [inst/@sym/interval.m] 430s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/interval.m 430s ***** test 430s a = interval(sym(1), 2); 430s assert (isa (a, 'sym')) 430s ***** test 430s % some set subtraction 430s a = interval(sym(0), 4); 430s b = interval(sym(0), 1); 430s c = interval(sym(1), 4, true); 430s q = a - b; 430s assert (isequal( q, c)) 430s 2 tests, 2 passed, 0 known failure, 0 skipped 430s [inst/@sym/isNone.m] 430s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/isNone.m 430s ***** test 430s None = pycall_sympy__ ('return None'); 430s ***** shared None 430s None = pycall_sympy__ ('return None'); 430s ***** assert (isNone(None)) 430s ***** assert (~isNone(sym('x'))) 430s ***** assert (islogical(isNone(None))) 430s ***** test 430s a = [1 None]; 430s a = [None None]; 430s a = [None; 1]; 430s a = [None; None]; 430s a = [None 2; 3 None]; 430s ***** test 430s a = sym([1 2]); 430s a(1,2) = None; 430s assert (isequal (a, [sym(1) None])); 430s ***** assert (isequal (None(1), None)); 430s ***** error None(None); 430s ***** error x=sym('x'); x(None); 430s ***** error x=1; x(None); 430s ***** error None(None); 430s ***** error 1 + None; 430s ***** error None - 1; 430s ***** error 6*None; 430s ***** error 2^None; 430s ***** error [1 2].*None; 430s ***** error isconstant(None); 430s ***** error nnz(None); 430s ***** error logical(None); 430s ***** error isAlways(None); 430s ***** error logical([sym(true) None]); 430s ***** error isAlways([sym(true) None]); 430s ***** assert (isequal (children(None), None)) 430s ***** assert (isequal (repmat(None, 1, 2), [None None])) 430s ***** assert (isequal (fliplr(None), None)) 430s ***** assert (isequal (flipud(None), None)) 430s 26 tests, 26 passed, 0 known failure, 0 skipped 430s [inst/@sym/asinh.m] 430s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/asinh.m 430s ***** error asinh (sym(1), 2) 430s ***** assert (isequaln (asinh (sym(nan)), sym(nan))) 430s ***** shared x, d 430s d = 1; 430s x = sym('1'); 430s ***** test 430s f1 = asinh(x); 430s f2 = asinh(d); 430s assert( abs(double(f1) - f2) < 1e-15 ) 430s ***** test 430s D = [d d; d d]; 430s A = [x x; x x]; 430s f1 = asinh(A); 430s f2 = asinh(D); 430s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 430s ***** test 430s % round trip 430s y = sym('y'); 430s A = asinh (d); 430s f = asinh (y); 430s h = function_handle (f); 430s B = h (d); 430s assert (A, B, -eps) 430s 5 tests, 5 passed, 0 known failure, 0 skipped 430s [inst/@sym/sign.m] 430s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/sign.m 430s ***** error sign (sym(1), 2) 430s ***** assert (isequaln (sign (sym(nan)), sym(nan))) 430s ***** shared x, d 430s d = 1; 430s x = sym('1'); 430s ***** test 430s f1 = sign(x); 430s f2 = sign(d); 430s assert( abs(double(f1) - f2) < 1e-15 ) 430s ***** test 430s D = [d d; d d]; 430s A = [x x; x x]; 430s f1 = sign(A); 430s f2 = sign(D); 430s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 431s ***** test 431s % round trip 431s y = sym('y'); 431s A = sign (d); 431s f = sign (y); 431s h = function_handle (f); 431s B = h (d); 431s assert (A, B, -eps) 431s 5 tests, 5 passed, 0 known failure, 0 skipped 431s [inst/@sym/isempty.m] 431s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/isempty.m 431s ***** shared se, a 431s se = sym ([]); 431s a = sym ([1 2]); 431s ***** assert (~isempty (sym (1))) 431s ***** assert (isempty (sym (se))) 431s ***** assert (isempty (se == [])) 431s ***** test 431s ***** test se(1) = 10; 431s ***** test assert ( isa (se, 'sym')) 431s ***** test assert ( isequal (se, 10)) 431s ***** shared 431s ***** test 431s % empty matrices 431s A = sym('A', [3 0]); 431s assert (isempty (A)) 431s A = sym(ones(3,0)); 431s assert (isempty (A)) 431s ***** test 431s % non-empty symbolic-size matrices 431s syms n integer 431s A = sym('A', [3 n]); 431s assert (~isempty (A)) 431s ***** xtest 431s % empty symbolic-size matrices 431s % FIXME: will fail until size stop lying by saying 1x1 431s syms n integer 431s A = sym('A', [0 n]); 431s assert (isempty (A)) 431s A = sym('A', [n 0]); 431s assert (isempty (A)) 431s !!!!! known failure 431s assert (isempty (A)) failed 431s 10 tests, 9 passed, 1 known failure, 0 skipped 431s [inst/@sym/bernoulli.m] 431s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/bernoulli.m 431s ***** error bernoulli (sym(1), 2, 3) 431s ***** assert (isequal (bernoulli (sym(8)), -sym(1)/30)) 431s ***** assert (isequal (bernoulli (sym(9)), sym(0))) 431s ***** test syms x 431s assert (isequal (bernoulli(3,x), x^3 - 3*x^2/2 + x/2)) 431s ***** test 431s % two different definitions in literature 431s assert (isequal (abs (bernoulli (sym(1))), sym(1)/2)) 431s ***** test 431s % we use B_1 = 1/2 431s if (pycall_sympy__ ('return Version(spver) >= Version("1.12.dev")')) 431s assert (isequal (bernoulli (sym(1)), sym(1)/2)) 431s end 431s !!!!! test failed 431s Python exception: TypeError: '>=' not supported between instances of 'int' and 'str' 431s occurred at line 1 of the Python code block: 431s return Version(spver) >= Version("1.12.dev") 431s ***** test 431s m = sym([0 2; 8 888889]); 431s A = bernoulli (m); 431s B = [1 sym(1)/6; -sym(1)/30 0]; 431s assert (isequal (A, B)) 431s ***** test 431s syms x 431s A = bernoulli ([0; 1], x); 431s B = [sym(1); x - sym(1)/2]; 431s assert (isequal (A, B)) 431s ***** test 431s % round trip 431s syms n x 431s f = bernoulli (n, x); 431s h = function_handle (f, 'vars', [n x]); 431s A = h (2, 2.2); 431s B = bernoulli (2, 2.2); 431s assert (A, B) 432s 9 tests, 8 passed, 0 known failure, 0 skipped 432s [inst/@sym/sqrt.m] 432s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/sqrt.m 432s ***** error sqrt (sym(1), 2) 432s ***** assert (isequaln (sqrt (sym(nan)), sym(nan))) 432s ***** shared x, d 432s d = 1; 432s x = sym('1'); 432s ***** test 432s f1 = sqrt(x); 432s f2 = sqrt(d); 432s assert( abs(double(f1) - f2) < 1e-15 ) 432s ***** test 432s D = [d d; d d]; 432s A = [x x; x x]; 432s f1 = sqrt(A); 432s f2 = sqrt(D); 432s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 432s ***** test 432s % round trip 432s y = sym('y'); 432s A = sqrt (d); 432s f = sqrt (y); 432s h = function_handle (f); 432s B = h (d); 432s assert (A, B, -eps) 432s 5 tests, 5 passed, 0 known failure, 0 skipped 432s [inst/@sym/beta.m] 432s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/beta.m 432s ***** error beta (sym(1), 2, 3) 432s ***** assert (isequal (double (beta (sym(1), 2)), 1/2)) 432s ***** assert (isinf (double (beta (sym(1), 0)))) 432s ***** test 432s % round trip 432s syms x y 432s f = beta (x, y); 432s h = function_handle (f); 432s A = h (1.1, 2.2); 432s B = beta (1.1, 2.2); 432s assert (A, B) 432s 4 tests, 4 passed, 0 known failure, 0 skipped 432s [inst/@sym/null.m] 432s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/null.m 432s ***** test 432s A = sym([1 2; 3 4]); 432s assert (isempty (null (A))) 432s ***** assert (isempty (null (sym(4)))) 432s ***** test 432s A = sym([1 2 3; 3 4 5]); 432s assert (isequal (null(A), sym([1;-2;1]))) 432s 3 tests, 3 passed, 0 known failure, 0 skipped 432s [inst/@sym/argnames.m] 432s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/argnames.m 432s ***** test 432s % basic tests 432s syms x 432s f = 2*x; 432s assert (isempty (argnames(x))) 432s assert (isempty (argnames(f))) 432s 1 test, 1 passed, 0 known failure, 0 skipped 432s [inst/@sym/ceil.m] 432s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/ceil.m 432s ***** error ceil (sym(1), 2) 432s ***** assert (isequaln (ceil (sym(nan)), sym(nan))) 432s ***** shared x, d 432s d = 3/2; 432s x = sym('3/2'); 432s ***** test 432s f1 = ceil(x); 432s f2 = ceil(d); 432s assert( abs(double(f1) - f2) < 1e-15 ) 432s ***** test 432s D = [d d; d d]; 432s A = [x x; x x]; 432s f1 = ceil(A); 432s f2 = ceil(D); 432s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 432s ***** test 432s % round trip 432s y = sym('y'); 432s A = ceil (d); 432s f = ceil (y); 432s h = function_handle (f); 432s B = h (d); 432s assert (A, B, -eps) 432s 5 tests, 5 passed, 0 known failure, 0 skipped 432s [inst/@sym/csc.m] 432s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/csc.m 432s ***** error csc (sym(1), 2) 432s ***** assert (isequaln (csc (sym(nan)), sym(nan))) 432s ***** shared x, d 432s d = 1; 432s x = sym('1'); 432s ***** test 432s f1 = csc(x); 432s f2 = csc(d); 432s assert( abs(double(f1) - f2) < 1e-15 ) 432s ***** test 432s D = [d d; d d]; 432s A = [x x; x x]; 432s f1 = csc(A); 432s f2 = csc(D); 432s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 433s ***** test 433s % round trip 433s y = sym('y'); 433s A = csc (d); 433s f = csc (y); 433s h = function_handle (f); 433s B = h (d); 433s assert (A, B, -eps) 433s 5 tests, 5 passed, 0 known failure, 0 skipped 433s [inst/@sym/acsc.m] 433s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/acsc.m 433s ***** error acsc (sym(1), 2) 433s ***** assert (isequaln (acsc (sym(nan)), sym(nan))) 433s ***** shared x, d 433s d = 1; 433s x = sym('1'); 433s ***** test 433s f1 = acsc(x); 433s f2 = acsc(d); 433s assert( abs(double(f1) - f2) < 1e-15 ) 433s ***** test 433s D = [d d; d d]; 433s A = [x x; x x]; 433s f1 = acsc(A); 433s f2 = acsc(D); 433s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 433s ***** test 433s % round trip 433s y = sym('y'); 433s A = acsc (d); 433s f = acsc (y); 433s h = function_handle (f); 433s B = h (d); 433s assert (A, B, -eps) 433s 5 tests, 5 passed, 0 known failure, 0 skipped 433s [inst/@sym/rows.m] 433s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/rows.m 433s ***** test 433s a = sym([1 2 3]); 433s assert (rows(a) == 1) 433s ***** test 433s a = sym([1 2 3; 4 5 6]); 433s assert (rows(a) == 2) 433s 2 tests, 2 passed, 0 known failure, 0 skipped 433s [inst/@sym/isAlways.m] 433s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/isAlways.m 433s ***** test 433s % basics 433s assert(isAlways(true)) 433s assert(isAlways(1==1)) 433s assert(isAlways(sym(1)==sym(1))) 433s assert(isAlways(sym(1)==1)) 433s ***** test 433s % numbers to logic? 433s assert (isAlways(sym(1))) 433s assert (isAlways(sym(-1))) 433s assert (~isAlways(sym(0))) 433s ***** shared x 433s syms x 433s ***** test 433s % in this case it is boolean 433s expr = x - x == 0; 433s assert (logical(expr)) 433s assert (isAlways(expr)) 433s % and both are logical type 433s assert (islogical(logical(expr))) 433s assert (islogical(isAlways(expr))) 433s ***** test 433s % structurally same and mathematically true 433s % (here expr should be sym, non-boolean) 433s expr = x == x; 433s assert (logical(expr)) 433s assert (isAlways(expr)) 433s %assert (~islogical(expr)) % FIXME: Issue #56 433s %assert (isa(expr, 'sym)) 433s ***** test 433s % structurally same and mathematically true 433s % (here expr should be sym, non-boolean) 433s expr = 1 + x == x + 1; 433s assert (logical(expr)) 433s assert (isAlways(expr)) 433s ***** test 433s % non-zero numbers are true 433s assert (isAlways(sym(1))) 433s assert (isAlways(sym(-10))) 433s assert (~isAlways(sym(0))) 433s ***** shared x, y 433s syms x y 433s ***** test 433s % structurally same and mathematically true 433s % (here expr should be sym, non-boolean) 433s expr = x*(1+y) == x*(y+1); 433s assert (logical(expr)) 433s assert (isAlways(expr)) 433s assert (islogical(isAlways(expr))) 433s ***** test 433s % Now for some differences 433s % simplest example from SymPy FAQ 433s expr = x*(1+y) == x+x*y; 433s assert (~logical(expr)) 433s assert (isAlways(expr)) 433s ***** test 433s % more differences 1, these don't simplify in sympy (as of 2016-01) 433s expr = (x+1)^2 == x*x + 2*x + 1; 433s assert (~logical(expr)) 433s assert (isAlways(expr)) 433s ***** test 433s % more differences 2 433s expr = sin(2*x) == 2*sin(x)*cos(x); 433s assert (~logical(expr)) 433s assert (isAlways(expr)) 434s ***** test 434s % more differences 3, false 434s expr = x*(x+y) == x^2 + x*y + 1; 434s assert (~logical(expr)) 434s assert (~isAlways(expr)) 434s assert (~isAlways(expr, 'unknown', 'error')) 434s ***** test 434s % logically not equal, math equal 434s exprn = x*(x+y) ~= x^2 + x*y; 434s assert (logical(exprn)) 434s assert (~isAlways(exprn)) 434s ***** test 434s % logically not equal, math not equal 434s exprn = x*(x+y) ~= x^2 + x*y + 1; 434s assert (logical(exprn)) 434s assert (isAlways(exprn)) 434s ***** test 434s % equal and not equal 434s e1 = sin(x)^2 + cos(x)^2 == 1; 434s e2 = sin(x)^2 + cos(x)^2 == 2; 434s assert (~logical(e1)) 434s assert (isAlways(e1)) 434s assert (~logical(e2)) 434s assert (~isAlways(e2)) 434s assert (~isAlways(e2, 'unknown', 'error')) 434s ***** error isAlways(x, 'unknown', 'kevin') 434s ***** error isAlways(x, 'unknown') 434s ***** error isAlways(x, 'kevin', 'true') 434s ***** error 434s a = [x*(x+y)==x^2+x*y x==y]; 434s b = isAlways(a, 'unknown', 'error'); 434s ***** error 434s a = x==y; 434s b = isAlways(a, 'unknown', 'error'); 435s ***** test 435s % array, unknown keyword 435s a = [x==x x==x+1 x==y x*(x+y)==x^2+x*y cos(x)^2+sin(x)^2==2]; 435s b = isAlways(a, 'unknown', false); 435s c = isAlways(a, 'unknown', 'false'); 435s expect = [true false false true false]; 435s assert (islogical(b)) 435s assert (isequal (b, expect)) 435s assert (isequal (c, expect)) 435s b = isAlways(a, 'unknown', true); 435s c = isAlways(a, 'unknown', 'true'); 435s expect = [true false true true false]; 435s assert (islogical(b)) 435s assert (isequal (b, expect)) 435s assert (isequal (c, expect)) 435s ***** test 435s % ineq 435s e = x*(x+y) <= x^2 + x*y + 1; 435s assert (~logical(e)) 435s assert (isAlways(e)) 435s e = x*(x+y) <= x^2 + x*y; 435s assert (~logical(e)) 435s assert (isAlways(e)) 436s 21 tests, 21 passed, 0 known failure, 0 skipped 436s [inst/@sym/trace.m] 436s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/trace.m 436s ***** test 436s % scalar 436s syms x 436s assert (isequal (trace(x), x)) 436s ***** test 436s syms x 436s A = [x 3; 2*x 5]; 436s assert (isequal (trace(A), x + 5)) 436s 2 tests, 2 passed, 0 known failure, 0 skipped 436s [inst/@sym/igamma.m] 436s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/igamma.m 436s ***** test 436s % mostly tested in @sym/gammainc 436s syms x 436s assert (isequal (igamma (2, x), gammainc(x, 2, 'upper'))) 436s ***** test 436s % unregularized 436s B = double (igamma (sym(3), 1)); 436s A = gammainc (1, 3, 'upper')*gamma (3); 436s assert (A, B, -2*eps) 436s ***** test 436s % something like a round trip: no igamma() 436s syms x a 436s f = igamma (a, x); 436s h = function_handle (f, 'vars', [a x]); 436s A = h (1.1, 2.2); 436s B = double (igamma (sym(11)/10, sym(22)/10)); 436s C = gammainc (2.2, 1.1, 'upper')*gamma(1.1); 436s assert (A, B, -10*eps) 436s assert (A, C, -10*eps) 436s 3 tests, 3 passed, 0 known failure, 0 skipped 436s [inst/@sym/equationsToMatrix.m] 436s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/equationsToMatrix.m 436s ***** test 436s syms x y z 436s [A, B] = equationsToMatrix ([x + y - z == 1, 3*x - 2*y + z == 3, 4*x - 2*y + z + 9 == 0], [x, y, z]); 436s a = sym ([1 1 -1; 3 -2 1; 4 -2 1]); 436s b = sym ([1; 3; -9]); 436s assert (isequal (A, a)) 436s assert (isequal (B, b)) 437s ***** test 437s syms x y z 437s 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]); 437s a = sym ([3 -3 -5; 4 -7 -3; 4 -9 -3]); 437s assert (isequal (A, a)) 437s ***** test 437s syms x y 437s [A, B] = equationsToMatrix ([3*x + 9*y - 5 == 0, -8*x - 3*y == -2]); 437s a = sym ([3 9; -8 -3]); 437s b = sym ([5; -2]); 437s assert (isequal (A, a)) 437s assert (isequal (B, b)) 437s ***** test 437s % override symvar order 437s syms x y 437s [A, B] = equationsToMatrix ([3*x + 9*y - 5 == 0, -8*x - 3*y == -2], [y x]); 437s a = sym ([9 3; -3 -8]); 437s b = sym ([5; -2]); 437s assert (isequal (A, a)) 437s assert (isequal (B, b)) 438s ***** test 438s syms x y z 438s [A, B] = equationsToMatrix ([x - 9*y + z == -5, -9*y*z == -5], [y, x]); 438s a = sym ([[-9 1]; -9*z 0]); 438s b = sym ([-5 - z; -5]); 438s assert (isequal (A, a)) 438s assert (isequal (B, b)) 438s ***** test 438s syms x y 438s [A, B] = equationsToMatrix (-6*x + 4*y == 5, 4*x - 4*y - 5, x, y); 438s a = sym ([-6 4; 4 -4]); 438s b = sym ([5; 5]); 438s assert (isequal (A, a)) 438s assert (isequal (B, b)) 438s ***** test 438s % vertical list of equations 438s syms x y 438s [A, B] = equationsToMatrix ([-6*x + 4*y == 5; 4*x - 4*y - 5], [x y]); 438s a = sym ([-6 4; 4 -4]); 438s b = sym ([5; 5]); 438s assert (isequal (A, a)) 438s assert (isequal (B, b)) 438s ***** test 438s syms x y 438s [A, B] = equationsToMatrix (5*x == 1, y, x - 6*y - 7, y); 438s a = sym ([0; 1; -6]); 438s b = sym ([1 - 5*x; 0; -x + 7]); 438s assert (isequal (A, a)) 438s assert (isequal (B, b)) 439s ***** error 439s syms x y 439s [A, B] = equationsToMatrix (x^2 + y^2 == 1, x - y + 1, x, y); 439s ***** test 439s % single equation 439s syms x 439s [A, B] = equationsToMatrix (3*x == 2, x); 439s a = sym (3); 439s b = sym (2); 439s assert (isequal (A, a)) 439s assert (isequal (B, b)) 439s ***** test 439s % single equation w/ symvar 439s syms x 439s [A, B] = equationsToMatrix (3*x == 2); 439s a = sym (3); 439s b = sym (2); 439s assert (isequal (A, a)) 439s assert (isequal (B, b)) 439s ***** error 439s syms x 439s equationsToMatrix (3*x == 2, [x x]) 439s 12 tests, 12 passed, 0 known failure, 0 skipped 439s [inst/@sym/columns.m] 439s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/columns.m 439s ***** test 439s a = sym([1 2 3]); 439s assert (columns(a) == 3) 439s ***** test 439s a = sym([1; 2]); 439s assert (columns(a) == 1) 439s 2 tests, 2 passed, 0 known failure, 0 skipped 439s [inst/@sym/tril.m] 439s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/tril.m 439s ***** test 439s syms x 439s assert (isequal (tril(x), x)) 439s ***** test 439s % with symbols 439s syms x 439s A = [x 2*x; 3*x 4*x]; 439s assert (isequal (tril(A), [x 0; 3*x 4*x])) 440s ***** test 440s % diagonal shifts 440s B = round(10*rand(3,4)); 440s A = sym(B); 440s assert (isequal (tril(A), tril(B))) 440s assert (isequal (tril(A,0), tril(B,0))) 440s assert (isequal (tril(A,1), tril(B,1))) 440s assert (isequal (tril(A,-1), tril(B,-1))) 440s ***** test 440s % double array pass through 440s B = round(10*rand(3,4)); 440s assert (isequal (tril(B,sym(1)), tril(B,1))) 440s assert (isa (tril(B,sym(1)), 'double')) 440s 4 tests, 4 passed, 0 known failure, 0 skipped 440s [inst/@sym/toeplitz.m] 440s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/toeplitz.m 440s ***** test 440s % rect 440s R = [10 20 40]; C = [10 30]; 440s A = sym(toeplitz(R,C)); 440s B = toeplitz(sym(R),sym(C)); 440s assert (isequal (A, B)) 440s R = [10 20]; C = [10 30 50]; 440s A = sym(toeplitz(R,C)); 440s B = toeplitz(sym(R),sym(C)); 440s assert (isequal (A, B)) 441s ***** test 441s % symbols 441s syms x y 441s R = [10 20 40]; C = [10 30]; 441s Rs = [10 x 40]; Cs = [10 y]; 441s A = toeplitz(R,C); 441s B = toeplitz(Rs,Cs); 441s assert (isequal (A, subs(B,[x,y],[20 30]))) 441s ***** test 441s % hermitian 441s syms a b c 441s A = [a b c; conj(b) a b; conj(c) conj(b) a]; 441s B = toeplitz([a,b,c]); 441s assert (isequal( A, B)) 441s ***** warning 441s % mismatch 441s syms x 441s B = toeplitz([10 x], [1 3 x]); 441s ***** warning 441s % scalar 441s B = toeplitz(sym(2), 3); 441s assert (isequal (B, sym(2))) 441s ***** test 441s % mismatch 441s syms x y 441s fprintf('\n one warning expected\n') % how to quiet this one? 441s A = toeplitz([10 2], [1 3 5]); 441s s = warning ('off', 'OctSymPy:toeplitz:diagconflict'); 441s B = toeplitz([10 x], [1 3 y]); 441s warning(s) 441s assert (isequal (A, subs(B, [x,y], [2 5]))) 441s 441s one warning expected 441s warning: toeplitz: column wins diagonal conflict 441s warning: called from 441s toeplitz at line 84 column 7 441s __test__ at line 6 column 4 441s test at line 682 column 11 441s /tmp/tmp.Cv8FYfBjAN at line 2542 column 31 441s 441s 6 tests, 6 passed, 0 known failure, 0 skipped 441s [inst/@sym/lambertw.m] 441s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/lambertw.m 441s ***** test 441s % W(x)*exp(W(x)) == x 441s syms x 441s T = lambertw(x)*exp(lambertw(x)); 441s T = double (subs (T, x, 10)); 441s assert (isequal (T, 10)); 441s ***** test 441s % k, x not x, k to match SMT 441s syms x 441s T = lambertw(2, x)*exp(lambertw(2, x)); 441s T = double (subs (T, x, 10)); 441s assert (abs(T - 10) < 1e-15) 442s ***** assert (isequal (lambertw(sym(0)), sym(0))) 442s ***** assert ( isequal (lambertw (-1/exp(sym(1))), -sym(1))) 442s ***** assert ( isequal (lambertw (0, -1/exp(sym(1))), -sym(1))) 442s ***** assert ( isequal (lambertw (-1, -1/exp(sym(1))), -sym(1))) 442s ***** xtest 442s % W(x)*exp(W(x)) == x; FIXME: a failure in SymPy? 442s syms x 442s T = simplify(lambertw(x)*exp(lambertw(x))); 442s assert (isequal (T, x)) 442s !!!!! known failure 442s assert (isequal (T, x)) failed 442s ***** assert (abs (lambertw(pi) - double(lambertw(sym(pi)))) < 5*eps) 442s ***** assert (abs (lambertw(-1, 5) - double(lambertw(-1, sym(5)))) < 5*eps) 442s ***** assert (abs (lambertw(2, 2) - double(lambertw(2, sym(2)))) < 5*eps) 442s ***** test 442s % round trip 442s syms x k 442s A = lambertw (5); 442s f = lambertw (x); 442s h = function_handle (f); 442s B = h (5); 442s assert (A, B) 442s 442s A = lambertw (3, 5); 442s f = lambertw (k, x); 442s h = function_handle (f); 442s B = h (3, 5); 442s assert (A, B) 442s 11 tests, 10 passed, 1 known failure, 0 skipped 442s [inst/@sym/sympy.m] 442s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/sympy.m 442s ***** assert (strcmp (sympy (sym(pi)), 'pi')) 442s ***** assert (strcmp (sympy (sym(1)), 'Integer(1)')) 442s ***** assert (strcmp (sympy (sym(2)/3), 'Rational(2, 3)')) 442s ***** assert (strcmp (sympy (sym('x')), 'Symbol(''x'')')) 442s ***** test 442s x = sym('x'); 442s assert (isequal (sym(sympy(x)), x)) 442s :18: SyntaxWarning: invalid escape sequence '\(' 442s 5 tests, 5 passed, 0 known failure, 0 skipped 442s [inst/@sym/lt.m] 442s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/lt.m 442s ***** test 442s % simple 442s x = sym(1); y = sym(1); e = x < y; 442s assert (~logical (e)) 442s x = sym(1); y = sym(2); e = x < y; 442s assert (logical (e)) 442s ***** test 442s % mix sym and double 442s x = sym(1); y = 1; e = x < y; 442s assert (~logical (e)) 442s x = sym(1); y = 2; e = x < y; 442s assert (logical (e)) 442s x = 1; y = sym(1); e = x < y; 442s assert (~logical (e)) 442s x = 1; y = sym(2); e = x < y; 442s assert (logical (e)) 442s ***** test 442s % Type of the output is sym or logical? 442s % FIXME: in current version, they are sym 442s x = sym(1); y = sym(1); e1 = x < y; 442s x = sym(1); y = sym(2); e2 = x < y; 442s %assert (islogical (e1)) 442s %assert (islogical (e2)) 442s assert (isa (e1, 'sym')) 442s assert (isa (e2, 'sym')) 442s ***** test 442s % ineq w/ symbols 442s syms x y 442s e = x < y; 442s assert (~islogical (e)) 442s assert (isa (e, 'sym')) 442s ***** test 442s % array -- array 442s syms x 442s a = sym([1 3 3 2*x]); 442s b = sym([2 x 3 10]); 442s e = a < b; 442s assert (isa (e, 'sym')) 442s assert (logical (e(1))) 442s assert (isa (e(2), 'sym')) 442s assert (isequal (e(2), 3 < x)) 442s assert (~logical (e(3))) 442s assert (isa (e(4), 'sym')) 442s assert (isequal (e(4), 2*x < 10)) 443s ***** test 443s % array -- scalar 443s syms x oo 443s a = sym([1 x oo]); 443s b = sym(3); 443s e = a < b; 443s assert (isa (e, 'sym')) 443s assert (logical (e(1))) 443s assert (isa (e(2), 'sym')) 443s assert (isequal (e(2), x < 3)) 443s assert (~logical (e(3))) 443s ***** test 443s % scalar -- array 443s syms x oo 443s a = sym(1); 443s b = sym([2 x -oo]); 443s e = a < b; 443s assert (isa (e, 'sym')) 443s assert (logical (e(1))) 443s assert (isa (e(2), 'sym')) 443s assert (isequal (e(2), 1 < x)) 443s assert (~logical (e(3))) 443s ***** test 443s % ineq w/ nan 443s syms x 443s snan = sym(nan); 443s e = x < snan; 443s assert (~logical (e)) 443s e = snan < x; 443s assert (~logical (e)) 443s b = [sym(0) x]; 443s e = b < snan; 443s assert (isequal (e, [false false])) 443s ***** test 443s % oo 443s syms oo x 443s e = oo < x; 443s assert (isa (e, 'sym')) 443s assert (strcmp (strtrim (disp (e, 'flat')), 'oo < x')) 443s ***** test 443s % sympy true matrix 443s a = sym([1 3 3]); 443s b = sym([2 4 1]); 443s e = a < b; 443s %assert (~isa (e, 'sym')) 443s %assert (islogical (e)) 443s assert (isequal (e, [true true false])) 443s ***** test 443s % oo, finite real variables 443s syms oo 443s syms z real 443s assumeAlso(z, 'finite') 443s e = -oo < z; 443s assert (isequal (e, sym(true))) 443s e = z < oo; 443s assert (isequal (e, sym(true))) 443s ***** test 443s % -oo, positive var (known failure w/ sympy 0.7.6.x) 443s syms oo 443s syms z positive 443s e = -oo < z; 443s assert (logical (e)) 443s assert (isequal (e, sym(true))) 444s ***** test 444s % positive 444s syms z positive 444s e = -1 < z; 444s assert (isequal (e, sym(true))) 444s ***** test 444s syms oo 444s z = sym('z', 'negative'); 444s e = z < oo; 444s assert (isequal (e, sym(true))) 444s 14 tests, 14 passed, 0 known failure, 0 skipped 444s [inst/@sym/hypot.m] 444s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/hypot.m 444s ***** assert (isequal (hypot (sym(3), 4), sym(5))) 444s ***** test 444s % compare to @double (note Matlab hypot only takes 2 inputs) 444s A = hypot (hypot ([1 2 3], [4 5 6]), [7 8 9]); 444s B = double (hypot (sym([1 2 3]), [4 5 6], [7 8 9])); 444s assert (A, B, -eps) 444s ***** test 444s % compare to @double, with complex 444s A = hypot ([1+2i 3+4i], [1 3+1i]); 444s B = double (hypot (sym([1+2i 3+4i]), [1 3+1i])); 444s assert (A, B, -eps) 444s ***** test 444s % matrices 444s x = sym([1 -2; 0 3]); 444s y = sym([0 0; 8 4]); 444s A = hypot (x, y); 444s B = sym([1 2; 8 5]); 444s assert (isequal (A, B)) 444s 4 tests, 4 passed, 0 known failure, 0 skipped 444s [inst/@sym/nnz.m] 444s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/nnz.m 444s ***** assert (nnz (sym ([1])) == 1) 444s ***** assert (nnz (sym ([0])) == 0) 444s ***** assert (nnz (sym ([])) == 0) 444s ***** assert (nnz (sym ([1 0; 0 3])) == 2) 445s ***** test 445s syms x 445s assert (nnz ([x 0]) == 1) 445s ***** assert (nnz (sym (true)) == 1) 445s ***** assert (nnz (sym (false)) == 0) 445s ***** assert (nnz (sym (inf)) == 1) 445s ***** assert (nnz (sym (nan)) == 1) 445s 9 tests, 9 passed, 0 known failure, 0 skipped 445s [inst/@sym/hessian.m] 445s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/hessian.m 445s ***** error hessian (sym(1), 2, 3) 445s ***** error hessian ([sym(1) sym(2)]) 445s ***** shared x,y,z 445s syms x y z 445s ***** test 445s % 1D 445s f = x^2; 445s assert (isequal (hessian(f), diff(f,x,x))) 445s assert (isequal (hessian(f,{x}), diff(f,x,x))) 445s assert (isequal (hessian(f,x), diff(f,x,x))) 445s ***** test 445s % const 445s f = sym(1); 445s g = sym(0); 445s assert (isequal (hessian(f), g)) 445s assert (isequal (hessian(f,x), g)) 445s ***** test 445s % double const 445s f = 1; 445s g = sym(0); 445s assert (isequal (hessian(f,x), g)) 445s ***** test 445s % linear 445s f = 42*x; 445s g = sym(0); 445s assert (isequal (hessian(f), g)) 445s assert (isequal (hessian(f,x), g)) 445s ***** test 445s % linear 445s f = 42*x - sym('a')*y; 445s g = [0 0; 0 0]; 445s assert (isequal (hessian(f, {x y}), g)) 445s ***** test 445s % 2d 445s f = x*cos(y); 445s g = [0 -sin(y); -sin(y) -f]; 445s assert (isequal (hessian(f), g)) 445s assert (isequal (hessian(f, {x y}), g)) 445s ***** test 445s % 3d 445s f = x*cos(z); 445s Hexp = [0 0 -sin(z); sym(0) 0 0; -sin(z) 0 -f]; 445s H = hessian(f, {x y z}); 445s assert (isequal (H, Hexp)) 445s 9 tests, 9 passed, 0 known failure, 0 skipped 445s [inst/@sym/polylog.m] 445s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/polylog.m 445s ***** assert (isequal (polylog (sym('s'), 0), sym(0))) 446s ***** assert (isequal (double (polylog (1, sym(-1))), -log(2))) 446s ***** assert (isequal (double (polylog (0, sym(2))), -2)) 446s ***** assert (isequal (double (polylog (-1, sym(2))), 2)) 446s ***** assert (isequal (double (polylog (-2, sym(3))), -1.5)) 446s ***** assert (isequal (double (polylog (-3, sym(2))), 26)) 446s ***** assert (isequal (double (polylog (-4, sym(3))), -15)) 446s ***** assert (isequal (double (polylog (1, sym(1)/2)), log(2))) 446s ***** test 446s % round trip 446s syms s z 446s f = polylog (s, z); 446s h = function_handle (f, 'vars', [s z]); 446s A = h (1.1, 2.2); 446s B = polylog (1.1, 2.2); 446s assert (A, B) 446s 9 tests, 9 passed, 0 known failure, 0 skipped 446s [inst/@sym/sinh.m] 446s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/sinh.m 446s ***** error sinh (sym(1), 2) 446s ***** assert (isequaln (sinh (sym(nan)), sym(nan))) 446s ***** shared x, d 446s d = 1; 446s x = sym('1'); 446s ***** test 446s f1 = sinh(x); 446s f2 = sinh(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 = sinh(A); 446s f2 = sinh(D); 446s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 446s ***** test 446s % round trip 446s y = sym('y'); 446s A = sinh (d); 446s f = sinh (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 [inst/@sym/factorial.m] 446s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/factorial.m 446s ***** error factorial (sym(1), 2) 446s ***** xtest 446s assert (isequaln (factorial (sym(nan)), sym(nan))) 446s !!!!! known failure 446s assert (isequaln (factorial (sym (nan)), sym (nan))) failed 446s ***** shared x, d 446s d = 1; 446s x = sym('1'); 446s ***** test 446s f1 = factorial(x); 446s f2 = factorial(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 = factorial(A); 446s f2 = factorial(D); 446s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 446s ***** test 446s % round trip 446s y = sym('y'); 446s A = factorial (d); 446s f = factorial (y); 446s h = function_handle (f); 446s B = h (d); 446s assert (A, B, -eps) 446s 5 tests, 4 passed, 1 known failure, 0 skipped 446s [inst/@sym/acoth.m] 446s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/acoth.m 446s ***** error acoth (sym(1), 2) 446s ***** assert (isequaln (acoth (sym(nan)), sym(nan))) 446s ***** shared x, d 446s d = 2; 446s x = sym('2'); 446s ***** test 446s f1 = acoth(x); 446s f2 = acoth(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 = acoth(A); 446s f2 = acoth(D); 446s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 447s ***** test 447s % round trip 447s y = sym('y'); 447s A = acoth (d); 447s f = acoth (y); 447s h = function_handle (f); 447s B = h (d); 447s assert (A, B, -eps) 447s 5 tests, 5 passed, 0 known failure, 0 skipped 447s [inst/@sym/sech.m] 447s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/sech.m 447s ***** error sech (sym(1), 2) 447s ***** assert (isequaln (sech (sym(nan)), sym(nan))) 447s ***** shared x, d 447s d = 1; 447s x = sym('1'); 447s ***** test 447s f1 = sech(x); 447s f2 = sech(d); 447s assert( abs(double(f1) - f2) < 1e-15 ) 447s ***** test 447s D = [d d; d d]; 447s A = [x x; x x]; 447s f1 = sech(A); 447s f2 = sech(D); 447s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 447s ***** test 447s % round trip 447s y = sym('y'); 447s A = sech (d); 447s f = sech (y); 447s h = function_handle (f); 447s B = h (d); 447s assert (A, B, -eps) 447s 5 tests, 5 passed, 0 known failure, 0 skipped 447s [inst/@sym/eye.m] 447s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/eye.m 447s ***** test 447s y = eye(sym(2)); 447s x = [1 0; 0 1]; 447s assert( isequal( y, sym(x))) 447s ***** test 447s y = eye(sym(2), 1); 447s x = [1; 0]; 447s assert( isequal( y, sym(x))) 447s ***** test 447s y = eye(sym(1), 2); 447s x = [1 0]; 447s assert( isequal( y, sym(x))) 447s ***** test 447s y = eye (sym([2 3])); 447s x = sym (eye ([2 3])); 447s assert (isequal (y, x)) 447s ***** assert( isa( eye(sym(2), 'double'), 'double')) 447s ***** assert( isa( eye(3, sym(3), 'single') , 'single')) 447s ***** assert( isa( eye(3, sym(3)), 'sym')) 447s ***** assert( isa( eye(3, sym(3), 'sym'), 'sym')) 447s ***** xtest 447s % Issue #13 447s assert( isa( eye(3, 3, 'sym'), 'sym')) 447s !!!!! known failure 447s invalid data type specified 447s 9 tests, 8 passed, 1 known failure, 0 skipped 447s [inst/@sym/gt.m] 447s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/gt.m 447s ***** test 447s % simple 447s x = sym(1); y = sym(1); e = x > y; 447s assert (~logical (e)) 447s x = sym(1); y = sym(2); e = x > y; 447s assert (~logical (e)) 447s ***** test 447s % array -- array 447s syms x 447s a = sym([1 3 3 2*x]); 447s b = sym([2 x 3 10]); 447s e = a > b; 447s assert (isa (e, 'sym')) 447s assert (~logical (e(1))) 447s assert (isa (e(2), 'sym')) 447s assert (isequal (e(2), 3 > x)) 447s assert (~logical (e(3))) 447s assert (isa (e(4), 'sym')) 447s assert (isequal (e(4), 2*x > 10)) 448s 2 tests, 2 passed, 0 known failure, 0 skipped 448s [inst/@sym/intersect.m] 448s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/intersect.m 448s ***** test 448s A = sym([1 2 3]); 448s B = sym([1 2 4]); 448s C = intersect(A, B); 448s D = sym([1 2]); 448s assert (isequal (C, D)) 448s ***** test 448s % one nonsym 448s A = sym([1 2 3]); 448s B = [1 2 4]; 448s C = intersect(A, B); 448s D = sym([1 2]); 448s assert (isequal (C, D)) 448s ***** test 448s % empty 448s A = sym([1 2 3]); 448s C = intersect(A, A); 448s assert (isequal (C, A)) 448s ***** test 448s % empty input 448s A = sym([1 2]); 448s C = intersect(A, []); 448s assert (isequal (C, sym([]))) 448s ***** test 448s % scalar 448s syms x 448s assert (isequal (intersect([x 1], x), x)) 448s assert (isequal (intersect(x, x), x)) 448s ***** test 448s A = interval(sym(1), 3); 448s B = interval(sym(2), 5); 448s C = intersect(A, B); 448s assert( isequal( C, interval(sym(2), 3))) 448s 6 tests, 6 passed, 0 known failure, 0 skipped 448s [inst/@sym/symprod.m] 448s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/symprod.m 448s ***** error symprod (sym(1), 2, 3, 4, 5) 448s ***** test 448s % simple 448s syms n 448s assert (isequal (symprod(n, n, 1, 10), factorial(sym(10)))) 448s assert (isequal (symprod(n, n, sym(1), sym(10)), factorial(10))) 448s ***** test 448s % one input 448s syms n 448s f = symprod (n); 448s g = factorial (n); 448s assert (isequal (f, g)) 448s f = symprod (2*n); 448s g = 2^n * factorial (n); 448s assert (isequal (f, g)) 448s ***** test 448s % constant input 448s f = symprod (sym(2)); 448s syms x 448s g = 2^x; 448s assert (isequal (f, g)) 448s ***** test 448s % two inputs 448s syms n 448s f = symprod (2*n, n); 448s g = 2^n * factorial (n); 448s assert (isequal (f, g)) 448s ***** test 448s % two inputs, second is range 448s syms n 448s f = symprod (n, [1 6]); 448s g = 720; 448s assert (isequal (f, g)) 448s f = symprod (n, [sym(1) 6]); 448s g = 720; 448s assert (isequal (f, g)) 448s f = symprod (2*n, [1 6]); 448s g = sym(2)^6*720; 448s assert (isequal (f, g)) 449s ***** test 449s % three inputs, last is range 449s syms n 449s f = symprod (2*n, n, [1 4]); 449s g = sym(384); 449s assert (isequal (f, g)) 449s f = symprod (2*n, n, [sym(1) 4]); 449s g = sym(384); 449s assert (isequal (f, g)) 449s f = symprod (2, n, [sym(1) 4]); 449s g = sym(16); 449s assert (isequal (f, g)) 449s ***** test 449s % three inputs, no range 449s syms n 449s f = symprod (2*n, 1, 4); 449s g = sym(384); 449s assert (isequal (f, g)) 449s f = symprod (5, sym(1), 3); 449s g = sym(125); 449s assert (isequal (f, g)) 449s ***** test 449s % infinite product 449s syms a n oo 449s zoo = sym('zoo'); 449s assert (isequal (symprod(a, n, 1, oo), a^oo)) 449s assert (isequal (symprod(a, n, 1, inf), a^oo)) 449s 9 tests, 9 passed, 0 known failure, 0 skipped 449s [inst/@sym/round.m] 449s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/round.m 449s ***** test 449s d = 3/2; 449s x = sym('3/2'); 449s f1 = round(x); 449s f2 = round(d); 449s assert (isequal (f1, f2)) 449s ***** xtest 449s % ideally rounding direction would match Octave 449s d = 5/2; 449s x = sym('5/2'); 449s f1 = round(x); 449s f2 = round(d); 449s assert (isequal (f1, f2)) 449s !!!!! known failure 449s assert (isequal (f1, f2)) failed 449s ***** test 449s D = [1.1 4.6; -3.4 -8.9]; 449s A = [sym(11)/10 sym(46)/10; sym(-34)/10 sym(-89)/10]; 449s f1 = round(A); 449s f2 = round(D); 449s assert( isequal (f1, f2)) 449s ***** test 449s d = sym(-11)/10; 449s c = -1; 449s assert (isequal (round (d), c)) 450s ***** test 450s d = sym(-19)/10; 450s c = -2; 450s assert (isequal (round (d), c)) 450s ***** test 450s d = 7j/2; 450s x = sym(7j)/2; 450s f1 = round (x); 450s f2 = round (d); 450s assert (isequal (f1, f2)) 450s ***** test 450s d = 5/3 - 4j/7; 450s x = sym(5)/3 - sym(4j)/7; 450s f1 = round (x); 450s f2 = round (d); 450s assert (isequal (f1, f2)) 450s 7 tests, 6 passed, 1 known failure, 0 skipped 450s [inst/@sym/ellipticCE.m] 450s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/ellipticCE.m 450s ***** error ellipticCE (sym (1), 2) 450s ***** assert (isequal (ellipticCE (sym (0)), sym (1))) 450s ***** assert (isequal (ellipticCE (sym (1)), sym (pi)/2)) 450s ***** assert (double (ellipticCE (sym (pi)/4)), 1.482786927, 10e-10) 450s ***** assert (double (ellipticCE (sym (pi)/2)), 1.775344699, 10e-10) 450s 5 tests, 5 passed, 0 known failure, 0 skipped 450s [inst/@sym/simplify.m] 450s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/simplify.m 450s ***** shared x,p,q 450s syms x 450s p = x^2 + x + 1; 450s q = horner (p); 450s ***** assert(~isequal( p - q, 0)) 450s ***** assert(isequal( simplify(p - q), 0)) 450s 2 tests, 2 passed, 0 known failure, 0 skipped 450s [inst/@sym/all.m] 450s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/all.m 450s ***** test 450s % matrix 450s a = [0 3; 1 2]; 450s s = sym (a); 450s assert (isequal (all (s), all (a))) 450s assert (isequal (all (s,1), all (a,1))) 450s assert (isequal (all (s,2), all (a,2))) 450s ***** test 450s % vector 450s a = [1 2 3]; 450s s = sym (a); 450s assert (isequal (all (s), all (a))) 450s assert (isequal (all (s,1), all (a,1))) 450s assert (isequal (all (s,2), all (a,2))) 451s ***** test 451s % should fail on symbols 451s syms x 451s s = [1 2 x]; 451s try 451s all (s) 451s waserr = false; 451s catch 451s waserr = true; 451s end 451s assert (waserr) 451s 3 tests, 3 passed, 0 known failure, 0 skipped 451s [inst/@sym/airy.m] 451s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/airy.m 451s ***** test 451s syms z 451s a = airy(0, z); 451s ap = airy(1, z); 451s assert (isequal (diff (a), ap)) 451s assert (isequal (diff (ap), z*a)) 451s ***** test 451s syms z 451s b = airy(2, z); 451s bp = airy(3, z); 451s assert (isequal (diff (b), bp)) 451s assert (isequal (diff (bp), z*b)) 451s ***** test 451s % default to k=0 451s syms z 451s a = airy(0, z); 451s a2 = airy(z); 451s assert (isequal (a, a2)) 451s ***** error airy(0, sym('x'), 2) 451s ***** error airy(4, sym('z')) 451s ***** error airy(-1, sym('z')) 451s ***** test 451s % symbolic k 451s syms z 451s b1 = airy(2, z); 451s b2 = airy(sym(2), z); 451s assert (isequal (b1, b2)) 451s ***** test 451s % doubles, relative error 451s X = [1 2 pi; 4i 5 6+6i]; 451s Xs = sym(X); 451s for k = 0:3 451s A = double(airy(k, Xs)); 451s B = airy(k, X); 451s assert (all (all (abs(A - B) < 500*eps*abs(A)))) 451s end 452s ***** test 452s % round-trip 452s syms x 452s for k = 0:3 452s A = airy(k, 10); 452s q = airy(k, x); 452s h = function_handle(q); 452s B = h(10); 452s assert (abs(A-B) < 500*eps*abs(A)) 452s end 452s 9 tests, 9 passed, 0 known failure, 0 skipped 452s [inst/@sym/besselk.m] 452s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/besselk.m 452s ***** test 452s X = [1 2 3; 4 5 6]; 452s ns = [sym(0) 1 -2; sym(1)/2 -sym(3)/2 pi]; 452s n = double(ns); 452s A = double(besselk(ns, X)); 452s B = besselk(n, X); 452s assert (all (all (abs (A - B) < 2*eps*abs(A)))) 452s ***** test 452s % roundtrip 452s syms x 452s A = besselk(2, 10); 452s q = besselk(2, x); 452s h = function_handle(q); 452s B = h(10); 452s assert (abs (A - B) <= eps*abs(A)) 452s ***** error besselk(sym('x')) 453s 3 tests, 3 passed, 0 known failure, 0 skipped 453s [inst/@sym/minus.m] 453s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/minus.m 453s ***** test 453s % scalar 453s syms x 453s assert (isa (x-1, 'sym')) 453s assert (isa (x-x, 'sym')) 453s assert (isequal (x-x, sym(0))) 453s ***** test 453s % matrices 453s D = [0 1; 2 3]; 453s A = sym(D); 453s DZ = D - D; 453s assert (isequal ( A - D , DZ )) 453s assert (isequal ( A - A , DZ )) 453s assert (isequal ( D - A , DZ )) 453s assert (isequal ( A - 2 , D - 2 )) 453s assert (isequal ( 4 - A , 4 - D )) 453s 2 tests, 2 passed, 0 known failure, 0 skipped 453s [inst/@sym/cross.m] 453s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/cross.m 453s ***** error cross (sym(1), 2, 3) 453s ***** test 453s a = sym([1; 0; 0]); 453s b = sym([0; 1; 0]); 453s c = cross(a, b); 453s assert (isequal (c, sym([0; 0; 1]))) 453s ***** test 453s syms x 453s a = sym([x; 0; 0]); 453s b = sym([0; 1; 0]); 453s c = cross(a, b); 453s assert (isequal (c, sym([0; 0; x]))) 453s 3 tests, 3 passed, 0 known failure, 0 skipped 453s [inst/@sym/horzcat.m] 453s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/horzcat.m 453s ***** test 453s % basic 453s syms x 453s A = [x x]; 453s B = horzcat(x, x); 453s C = horzcat(x, x, x); 453s assert (isa (A, 'sym')) 453s assert (isa (B, 'sym')) 453s assert (isa (C, 'sym')) 453s assert (isequal (size(A), [1 2])) 453s assert (isequal (size(B), [1 2])) 453s assert (isequal (size(C), [1 3])) 453s ***** test 453s % basic, part 2 453s syms x 453s A = [x 1]; 453s B = [1 x]; 453s C = [1 2 x]; 453s assert (isa (A, 'sym')) 453s assert (isa (B, 'sym')) 453s assert (isa (C, 'sym')) 453s assert (isequal (size(A), [1 2])) 453s assert (isequal (size(B), [1 2])) 453s assert (isequal (size(C), [1 3])) 453s ***** test 453s % row vectors 453s a = [sym(1) 2]; 453s b = [sym(3) 4]; 453s assert (isequal ( [a b] , [1 2 3 4] )) 453s assert (isequal ( [a 3 4] , [1 2 3 4] )) 453s assert (isequal ( [3 4 a] , [3 4 1 2] )) 453s assert (isequal ( [a [3 4]] , [1 2 3 4] )) 453s assert (isequal ( [a sym(3) 4] , [1 2 3 4] )) 453s assert (isequal ( [a [sym(3) 4]] , [1 2 3 4] )) 454s ***** test 454s % col vectors 454s a = [sym(1); 2]; 454s b = [sym(3); 4]; 454s assert (isequal ( [a b] , [1 3; 2 4] )) 454s assert (isequal ( [a b a] , [1 3 1; 2 4 2] )) 454s ***** test 454s % empty vectors 454s v = sym(1); 454s a = [v []]; 454s assert (isequal (a, v)) 454s a = [[] v []]; 454s assert (isequal (a, v)) 454s a = [v [] []]; 454s assert (isequal (a, v)) 454s ***** test 454s % more empty vectors 454s v = [sym(1) sym(2)]; 454s q = sym(ones(1, 0)); 454s assert (isequal ([v q], v)) 454s ***** error 454s v = [sym(1) sym(2)]; 454s q = sym(ones(3, 0)); 454s w = horzcat(v, q); 454s ***** test 454s % issue #700 454s A = sym ([1 2]); 454s B = simplify (A); 454s assert (isequal ([B A], [A B])) 454s 8 tests, 8 passed, 0 known failure, 0 skipped 454s [inst/@sym/diff.m] 454s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/diff.m 454s ***** shared x,y,z 454s syms x y z 454s ***** test 454s % basic 454s assert(logical( diff(sin(x)) - cos(x) == 0 )) 454s assert(logical( diff(sin(x),x) - cos(x) == 0 )) 454s assert(logical( diff(sin(x),x,x) + sin(x) == 0 )) 455s ***** test 455s % these fail when doubles are not converted to sym 455s assert(logical( diff(sin(x),x,2) + sin(x) == 0 )) 455s assert(logical( diff(sym(1),x) == 0 )) 455s assert(logical( diff(1,x) == 0 )) 455s assert(logical( diff(pi,x) == 0 )) 455s ***** test 455s % symbolic diff of const (w/o variable) fails in sympy, but we work around 455s assert (isequal (diff(sym(1)), sym(0))) 455s ***** test 455s % nth symbolic diff of const 455s assert (isequal (diff(sym(1), 2), sym(0))) 455s assert (isequal (diff(sym(1), sym(1)), sym(0))) 455s ***** test 455s % octave's vector difference still works 455s assert(isempty(diff(1))) 455s assert((diff([2 6]) == 4)) 455s ***** test 455s % other forms 455s f = sin(x); 455s g = diff(f,x,2); 455s assert (isequal (diff(f,2), g)) 455s assert (isequal (diff(f,sym(2)), g)) 455s g = diff(f,x); 455s assert (isequal (diff(f), g)) 455s assert (isequal (diff(f,1), g)) 455s ***** test 455s % old SMT supported (still does?) the 'n' before the 'x' 455s % we might remove this someday, no longer seems documented in SMT 455s f = sin(x); 455s g = diff(f,x,2); 455s assert (isequal (diff(f,2,x), g)) 455s assert (isequal (diff(f,sym(2),x), g)) 455s g = diff(f,x); 455s assert (isequal (diff(f,1,x), g)) 455s ***** test 455s % matrix 455s A = [x sin(x); x*y 10]; 455s B = [1 cos(x); y 0]; 455s assert(isequal(diff(A,x),B)) 455s ***** test 455s % bug: use symvar 455s a = x*y; 455s b = diff(a); 455s assert (isequal (b, y)) 456s ***** test 456s % bug: symvar should be used on the matrix, not comp-by-comp 456s a = [x y x*x]; 456s b = diff(a); 456s assert (~isequal (b(2), 1)) 456s assert (isequal (b, [1 0 2*x])) 456s b = diff(a,1); 456s assert (~isequal (b(2), 1)) 456s assert (isequal (b, [1 0 2*x])) 456s 10 tests, 10 passed, 0 known failure, 0 skipped 456s [inst/@sym/numel.m] 456s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/numel.m 456s ***** test 456s a = sym([1 2 3]); 456s assert(numel(a) == 3); 456s ***** test 456s % 2D array 456s a = sym([1 2 3; 4 5 6]); 456s assert(numel(a) == 6); 456s ***** test 456s % empty 456s a = sym([]); 456s assert(numel(a) == 0); 456s 3 tests, 3 passed, 0 known failure, 0 skipped 456s [inst/@sym/acosh.m] 456s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/acosh.m 456s ***** error acosh (sym(1), 2) 456s ***** assert (isequaln (acosh (sym(nan)), sym(nan))) 456s ***** shared x, d 456s d = 1; 456s x = sym('1'); 456s ***** test 456s f1 = acosh(x); 456s f2 = acosh(d); 456s assert( abs(double(f1) - f2) < 1e-15 ) 456s ***** test 456s D = [d d; d d]; 456s A = [x x; x x]; 456s f1 = acosh(A); 456s f2 = acosh(D); 456s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 456s ***** test 456s % round trip 456s y = sym('y'); 456s A = acosh (d); 456s f = acosh (y); 456s h = function_handle (f); 456s B = h (d); 456s assert (A, B, -eps) 456s 5 tests, 5 passed, 0 known failure, 0 skipped 456s [inst/@sym/repmat.m] 456s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/repmat.m 456s ***** test 456s % simple 456s syms x 456s A = [x x x; x x x]; 456s assert (isequal (repmat(x, 2, 3), A)) 456s ***** test 456s % block cf double 456s A = [1 2 3; 4 5 6]; 456s B = sym(A); 456s C = repmat(A, 2, 3); 456s D = repmat(B, 2, 3); 456s assert (isequal (C, D)) 456s ***** test 456s % empty 456s A = repmat(sym([]), 2, 3); 456s assert (isempty(A)); 456s assert (isequal (size(A), [0 0])) 456s ***** test 456s % more empties 456s A = repmat(sym(pi), [0 0]); 456s assert (isequal (size(A), [0 0])) 456s A = repmat(sym(pi), [0 3]); 456s assert (isequal (size(A), [0 3])) 456s A = repmat(sym(pi), [2 0]); 456s assert (isequal (size(A), [2 0])) 456s 4 tests, 4 passed, 0 known failure, 0 skipped 456s [inst/@sym/ellipticCK.m] 456s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/ellipticCK.m 456s ***** error ellipticCK (sym (1), 2) 457s ***** assert (double (ellipticCK (sym (1)/2)), 1.8541, 10e-5) 457s ***** assert (double (ellipticCK (sym (101)/10)), 0.812691836806976, -3*eps) 457s ***** assert (isequal (ellipticCK (sym (1)), sym(pi)/2)) 457s 4 tests, 4 passed, 0 known failure, 0 skipped 457s [inst/@sym/erfinv.m] 457s >>>>> /tmp/autopkgtest.uN8AL6/build.Ssc/src/inst/@sym/erfinv.m 457s ***** error erfinv (sym(1), 2) 457s ***** assert (isequaln (erfinv (sym(nan)), sym(nan))) 457s ***** shared x, d 457s d = 1/2; 457s x = sym('1/2'); 457s ***** test 457s f1 = erfinv(x); 457s f2 = erfinv(d); 457s assert( abs(double(f1) - f2) < 1e-15 ) 457s ***** test 457s D = [d d; d d]; 457s A = [x x; x x]; 457s f1 = erfinv(A); 457s f2 = erfinv(D); 457s assert( all(all( abs(double(f1) - f2) < 1e-15 ))) 457s ***** test 457s % round trip 457s y = sym('y'); 457s A = erfinv (d); 457s f = erfinv (y); 457s h = function_handle (f); 457s B = h (d); 457s assert (A, B, -eps) 457s 5 tests, 5 passed, 0 known failure, 0 skipped 457s Checking C++ files ... 457s 458s Done running the unit tests. 458s Some tests failed. Giving up... 458s Summary: 2401 tests, 2370 passed, 30 known failures, 0 skipped 458s autopkgtest [10:29:17]: test command1: -----------------------] 458s autopkgtest [10:29:17]: test command1: - - - - - - - - - - results - - - - - - - - - - 458s command1 FAIL non-zero exit status 1 458s autopkgtest [10:29:17]: @@@@@@@@@@@@@@@@@@@@ summary 458s command1 FAIL non-zero exit status 1 468s nova [W] Skipping flock for amd64 468s Creating nova instance adt-oracular-amd64-octave-symbolic-20240616-102138-juju-7f2275-prod-proposed-migration-environment-3-d998726b-14fe-476c-8c8c-c86c7a524d76 from image adt/ubuntu-oracular-amd64-server-20240615.img (UUID 94fd7b6f-4495-4684-bd31-1d1deeaa1788)...