0s autopkgtest [16:11:36]: starting date and time: 2025-03-15 16:11:36+0000 0s autopkgtest [16:11:36]: git checkout: 325255d2 Merge branch 'pin-any-arch' into 'ubuntu/production' 0s autopkgtest [16:11:36]: host juju-7f2275-prod-proposed-migration-environment-9; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.54r3i_kf/out --timeout-copy=6000 --setup-commands 'ln -s /dev/null /etc/systemd/system/bluetooth.service; printf "http_proxy=http://squid.internal:3128\nhttps_proxy=http://squid.internal:3128\nno_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,radosgw.ps5.canonical.com\n" >> /etc/environment' --apt-pocket=proposed=src:glibc --apt-upgrade r-cran-gmp --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=glibc/2.41-1ubuntu2 -- lxd -r lxd-armhf-10.145.243.188 lxd-armhf-10.145.243.188:autopkgtest/ubuntu/plucky/armhf 20s autopkgtest [16:11:56]: testbed dpkg architecture: armhf 22s autopkgtest [16:11:58]: testbed apt version: 2.9.33 26s autopkgtest [16:12:02]: @@@@@@@@@@@@@@@@@@@@ test bed setup 28s autopkgtest [16:12:04]: testbed release detected to be: None 35s autopkgtest [16:12:11]: updating testbed package index (apt update) 37s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [126 kB] 38s Get:2 http://ftpmaster.internal/ubuntu plucky InRelease [257 kB] 38s Get:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease [126 kB] 38s Get:4 http://ftpmaster.internal/ubuntu plucky-security InRelease [126 kB] 39s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [15.8 kB] 39s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [379 kB] 39s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [99.7 kB] 40s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf Packages [114 kB] 40s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf c-n-f Metadata [1832 B] 40s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/restricted armhf c-n-f Metadata [116 B] 40s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf Packages [312 kB] 40s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf c-n-f Metadata [11.1 kB] 40s Get:13 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse armhf Packages [3472 B] 40s Get:14 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse armhf c-n-f Metadata [240 B] 40s Get:15 http://ftpmaster.internal/ubuntu plucky/multiverse Sources [299 kB] 41s Get:16 http://ftpmaster.internal/ubuntu plucky/universe Sources [21.0 MB] 75s Get:17 http://ftpmaster.internal/ubuntu plucky/main Sources [1394 kB] 78s Get:18 http://ftpmaster.internal/ubuntu plucky/main armhf Packages [1378 kB] 80s Get:19 http://ftpmaster.internal/ubuntu plucky/main armhf c-n-f Metadata [29.4 kB] 80s Get:20 http://ftpmaster.internal/ubuntu plucky/restricted armhf c-n-f Metadata [108 B] 80s Get:21 http://ftpmaster.internal/ubuntu plucky/universe armhf Packages [15.1 MB] 103s Get:22 http://ftpmaster.internal/ubuntu plucky/multiverse armhf Packages [172 kB] 105s Fetched 41.0 MB in 1min 8s (606 kB/s) 106s Reading package lists... 115s autopkgtest [16:13:31]: upgrading testbed (apt dist-upgrade and autopurge) 117s Reading package lists... 117s Building dependency tree... 117s Reading state information... 118s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 118s Starting 2 pkgProblemResolver with broken count: 0 118s Done 119s Entering ResolveByKeep 119s 119s Calculating upgrade... 120s The following packages will be upgraded: 120s libc-bin libc6 locales pinentry-curses python3-jinja2 sos strace 120s 7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 120s Need to get 8683 kB of archives. 120s After this operation, 23.6 kB of additional disk space will be used. 120s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf libc6 armhf 2.41-1ubuntu2 [2932 kB] 123s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf libc-bin armhf 2.41-1ubuntu2 [545 kB] 124s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf locales all 2.41-1ubuntu2 [4246 kB] 129s Get:4 http://ftpmaster.internal/ubuntu plucky/main armhf strace armhf 6.13+ds-1ubuntu1 [445 kB] 129s Get:5 http://ftpmaster.internal/ubuntu plucky/main armhf pinentry-curses armhf 1.3.1-2ubuntu3 [40.6 kB] 129s Get:6 http://ftpmaster.internal/ubuntu plucky/main armhf python3-jinja2 all 3.1.5-2ubuntu1 [109 kB] 130s Get:7 http://ftpmaster.internal/ubuntu plucky/main armhf sos all 4.9.0-5 [365 kB] 131s Preconfiguring packages ... 131s Fetched 8683 kB in 10s (848 kB/s) 131s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64655 files and directories currently installed.) 131s Preparing to unpack .../libc6_2.41-1ubuntu2_armhf.deb ... 131s Unpacking libc6:armhf (2.41-1ubuntu2) over (2.41-1ubuntu1) ... 131s Setting up libc6:armhf (2.41-1ubuntu2) ... 132s (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 ... 64655 files and directories currently installed.) 132s Preparing to unpack .../libc-bin_2.41-1ubuntu2_armhf.deb ... 132s Unpacking libc-bin (2.41-1ubuntu2) over (2.41-1ubuntu1) ... 132s Setting up libc-bin (2.41-1ubuntu2) ... 132s (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 ... 64655 files and directories currently installed.) 132s Preparing to unpack .../locales_2.41-1ubuntu2_all.deb ... 132s Unpacking locales (2.41-1ubuntu2) over (2.41-1ubuntu1) ... 133s Preparing to unpack .../strace_6.13+ds-1ubuntu1_armhf.deb ... 133s Unpacking strace (6.13+ds-1ubuntu1) over (6.11-0ubuntu1) ... 133s Preparing to unpack .../pinentry-curses_1.3.1-2ubuntu3_armhf.deb ... 133s Unpacking pinentry-curses (1.3.1-2ubuntu3) over (1.3.1-2ubuntu2) ... 133s Preparing to unpack .../python3-jinja2_3.1.5-2ubuntu1_all.deb ... 133s Unpacking python3-jinja2 (3.1.5-2ubuntu1) over (3.1.5-2) ... 133s Preparing to unpack .../archives/sos_4.9.0-5_all.deb ... 133s Unpacking sos (4.9.0-5) over (4.9.0-4) ... 133s Setting up sos (4.9.0-5) ... 134s Setting up pinentry-curses (1.3.1-2ubuntu3) ... 134s Setting up locales (2.41-1ubuntu2) ... 135s Generating locales (this might take a while)... 136s en_US.UTF-8... done 136s Generation complete. 136s Setting up python3-jinja2 (3.1.5-2ubuntu1) ... 137s Setting up strace (6.13+ds-1ubuntu1) ... 137s Processing triggers for man-db (2.13.0-1) ... 138s Processing triggers for systemd (257.3-1ubuntu3) ... 140s Reading package lists... 141s Building dependency tree... 141s Reading state information... 141s Starting pkgProblemResolver with broken count: 0 141s Starting 2 pkgProblemResolver with broken count: 0 141s Done 141s Solving dependencies... 142s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 144s autopkgtest [16:14:00]: rebooting testbed after setup commands that affected boot 182s autopkgtest [16:14:38]: testbed running kernel: Linux 6.8.0-52-generic #53~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jan 15 18:10:51 UTC 2 206s autopkgtest [16:15:02]: @@@@@@@@@@@@@@@@@@@@ apt-source r-cran-gmp 219s Get:1 http://ftpmaster.internal/ubuntu plucky/universe r-cran-gmp 0.7-5-1 (dsc) [2084 B] 219s Get:2 http://ftpmaster.internal/ubuntu plucky/universe r-cran-gmp 0.7-5-1 (tar) [167 kB] 219s Get:3 http://ftpmaster.internal/ubuntu plucky/universe r-cran-gmp 0.7-5-1 (diff) [2460 B] 219s gpgv: Signature made Tue Jan 28 23:46:55 2025 UTC 219s gpgv: using RSA key 73471499CC60ED9EEE805946C5BD6C8F2295D502 219s gpgv: issuer "plessy@debian.org" 219s gpgv: Can't check signature: No public key 219s dpkg-source: warning: cannot verify inline signature for ./r-cran-gmp_0.7-5-1.dsc: no acceptable signature found 219s autopkgtest [16:15:15]: testing package r-cran-gmp version 0.7-5-1 221s autopkgtest [16:15:17]: build not needed 224s autopkgtest [16:15:20]: test run-unit-test: preparing testbed 226s Reading package lists... 226s Building dependency tree... 226s Reading state information... 227s Starting pkgProblemResolver with broken count: 0 227s Starting 2 pkgProblemResolver with broken count: 0 227s Done 228s The following NEW packages will be installed: 228s fontconfig fontconfig-config fonts-dejavu-core fonts-dejavu-mono libblas3 228s libcairo2 libdatrie1 libdeflate0 libfontconfig1 libfreetype6 libgfortran5 228s libgomp1 libgraphite2-3 libharfbuzz0b libice6 libjbig0 libjpeg-turbo8 228s libjpeg8 liblapack3 liblerc4 libpango-1.0-0 libpangocairo-1.0-0 228s libpangoft2-1.0-0 libpaper-utils libpaper2 libpixman-1-0 libsharpyuv0 libsm6 228s libtcl8.6 libthai-data libthai0 libtiff6 libtk8.6 libwebp7 libxcb-render0 228s libxcb-shm0 libxft2 libxrender1 libxss1 libxt6t64 r-base-core r-cran-gmp 228s r-cran-mass r-cran-rmpfr unzip x11-common xdg-utils zip 228s 0 upgraded, 48 newly installed, 0 to remove and 0 not upgraded. 228s Need to get 40.2 MB of archives. 228s After this operation, 74.0 MB of additional disk space will be used. 228s Get:1 http://ftpmaster.internal/ubuntu plucky/main armhf libfreetype6 armhf 2.13.3+dfsg-1 [330 kB] 229s Get:2 http://ftpmaster.internal/ubuntu plucky/main armhf fonts-dejavu-mono all 2.37-8 [502 kB] 229s Get:3 http://ftpmaster.internal/ubuntu plucky/main armhf fonts-dejavu-core all 2.37-8 [835 kB] 230s Get:4 http://ftpmaster.internal/ubuntu plucky/main armhf fontconfig-config armhf 2.15.0-2ubuntu1 [37.5 kB] 230s Get:5 http://ftpmaster.internal/ubuntu plucky/main armhf libfontconfig1 armhf 2.15.0-2ubuntu1 [114 kB] 230s Get:6 http://ftpmaster.internal/ubuntu plucky/main armhf fontconfig armhf 2.15.0-2ubuntu1 [190 kB] 230s Get:7 http://ftpmaster.internal/ubuntu plucky/main armhf libblas3 armhf 3.12.1-2 [132 kB] 231s Get:8 http://ftpmaster.internal/ubuntu plucky/main armhf libpixman-1-0 armhf 0.44.0-3 [183 kB] 231s Get:9 http://ftpmaster.internal/ubuntu plucky/main armhf libxcb-render0 armhf 1.17.0-2 [15.3 kB] 231s Get:10 http://ftpmaster.internal/ubuntu plucky/main armhf libxcb-shm0 armhf 1.17.0-2 [5774 B] 231s Get:11 http://ftpmaster.internal/ubuntu plucky/main armhf libxrender1 armhf 1:0.9.10-1.1build1 [16.0 kB] 231s Get:12 http://ftpmaster.internal/ubuntu plucky/main armhf libcairo2 armhf 1.18.2-2 [484 kB] 232s Get:13 http://ftpmaster.internal/ubuntu plucky/main armhf libdatrie1 armhf 0.2.13-3build1 [15.7 kB] 232s Get:14 http://ftpmaster.internal/ubuntu plucky/main armhf libdeflate0 armhf 1.23-1 [38.5 kB] 232s Get:15 http://ftpmaster.internal/ubuntu plucky/main armhf libgfortran5 armhf 15-20250222-0ubuntu1 [330 kB] 232s Get:16 http://ftpmaster.internal/ubuntu plucky/main armhf libgomp1 armhf 15-20250222-0ubuntu1 [128 kB] 232s Get:17 http://ftpmaster.internal/ubuntu plucky/main armhf libgraphite2-3 armhf 1.3.14-2ubuntu1 [64.8 kB] 232s Get:18 http://ftpmaster.internal/ubuntu plucky/main armhf libharfbuzz0b armhf 10.2.0-1 [464 kB] 233s Get:19 http://ftpmaster.internal/ubuntu plucky/main armhf x11-common all 1:7.7+23ubuntu3 [21.7 kB] 233s Get:20 http://ftpmaster.internal/ubuntu plucky/main armhf libice6 armhf 2:1.1.1-1 [36.5 kB] 233s Get:21 http://ftpmaster.internal/ubuntu plucky/main armhf libjpeg-turbo8 armhf 2.1.5-3ubuntu2 [127 kB] 233s Get:22 http://ftpmaster.internal/ubuntu plucky/main armhf libjpeg8 armhf 8c-2ubuntu11 [2148 B] 233s Get:23 http://ftpmaster.internal/ubuntu plucky/main armhf liblapack3 armhf 3.12.1-2 [2091 kB] 235s Get:24 http://ftpmaster.internal/ubuntu plucky/main armhf liblerc4 armhf 4.0.0+ds-5ubuntu1 [160 kB] 236s Get:25 http://ftpmaster.internal/ubuntu plucky/main armhf libthai-data all 0.1.29-2build1 [158 kB] 236s Get:26 http://ftpmaster.internal/ubuntu plucky/main armhf libthai0 armhf 0.1.29-2build1 [15.2 kB] 236s Get:27 http://ftpmaster.internal/ubuntu plucky/main armhf libpango-1.0-0 armhf 1.56.2-1 [216 kB] 236s Get:28 http://ftpmaster.internal/ubuntu plucky/main armhf libpangoft2-1.0-0 armhf 1.56.2-1 [43.6 kB] 236s Get:29 http://ftpmaster.internal/ubuntu plucky/main armhf libpangocairo-1.0-0 armhf 1.56.2-1 [25.1 kB] 236s Get:30 http://ftpmaster.internal/ubuntu plucky/main armhf libpaper2 armhf 2.2.5-0.3 [16.3 kB] 236s Get:31 http://ftpmaster.internal/ubuntu plucky/main armhf libpaper-utils armhf 2.2.5-0.3 [14.2 kB] 236s Get:32 http://ftpmaster.internal/ubuntu plucky/main armhf libsharpyuv0 armhf 1.5.0-0.1 [16.4 kB] 236s Get:33 http://ftpmaster.internal/ubuntu plucky/main armhf libsm6 armhf 2:1.2.4-1 [15.1 kB] 236s Get:34 http://ftpmaster.internal/ubuntu plucky/main armhf libtcl8.6 armhf 8.6.16+dfsg-1 [909 kB] 237s Get:35 http://ftpmaster.internal/ubuntu plucky/main armhf libjbig0 armhf 2.1-6.1ubuntu2 [24.9 kB] 237s Get:36 http://ftpmaster.internal/ubuntu plucky/main armhf libwebp7 armhf 1.5.0-0.1 [188 kB] 238s Get:37 http://ftpmaster.internal/ubuntu plucky/main armhf libtiff6 armhf 4.5.1+git230720-4ubuntu4 [179 kB] 238s Get:38 http://ftpmaster.internal/ubuntu plucky/main armhf libxft2 armhf 2.3.6-1build1 [37.4 kB] 238s Get:39 http://ftpmaster.internal/ubuntu plucky/main armhf libxss1 armhf 1:1.2.3-1build3 [6500 B] 238s Get:40 http://ftpmaster.internal/ubuntu plucky/main armhf libtk8.6 armhf 8.6.16-1 [686 kB] 239s Get:41 http://ftpmaster.internal/ubuntu plucky/main armhf libxt6t64 armhf 1:1.2.1-1.2build1 [145 kB] 239s Get:42 http://ftpmaster.internal/ubuntu plucky/main armhf zip armhf 3.0-14ubuntu2 [164 kB] 239s Get:43 http://ftpmaster.internal/ubuntu plucky/main armhf unzip armhf 6.0-28ubuntu6 [167 kB] 239s Get:44 http://ftpmaster.internal/ubuntu plucky/main armhf xdg-utils all 1.2.1-2ubuntu1 [66.0 kB] 239s Get:45 http://ftpmaster.internal/ubuntu plucky/universe armhf r-base-core armhf 4.4.3-1 [28.2 MB] 271s Get:46 http://ftpmaster.internal/ubuntu plucky/universe armhf r-cran-gmp armhf 0.7-5-1 [299 kB] 271s Get:47 http://ftpmaster.internal/ubuntu plucky/universe armhf r-cran-mass armhf 7.3-64-1 [1105 kB] 272s Get:48 http://ftpmaster.internal/ubuntu plucky/universe armhf r-cran-rmpfr armhf 0.9-5-1 [1219 kB] 274s Preconfiguring packages ... 274s Fetched 40.2 MB in 46s (883 kB/s) 274s Selecting previously unselected package libfreetype6:armhf. 274s (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 ... 64655 files and directories currently installed.) 274s Preparing to unpack .../00-libfreetype6_2.13.3+dfsg-1_armhf.deb ... 274s Unpacking libfreetype6:armhf (2.13.3+dfsg-1) ... 274s Selecting previously unselected package fonts-dejavu-mono. 274s Preparing to unpack .../01-fonts-dejavu-mono_2.37-8_all.deb ... 274s Unpacking fonts-dejavu-mono (2.37-8) ... 274s Selecting previously unselected package fonts-dejavu-core. 274s Preparing to unpack .../02-fonts-dejavu-core_2.37-8_all.deb ... 274s Unpacking fonts-dejavu-core (2.37-8) ... 274s Selecting previously unselected package fontconfig-config. 274s Preparing to unpack .../03-fontconfig-config_2.15.0-2ubuntu1_armhf.deb ... 274s Unpacking fontconfig-config (2.15.0-2ubuntu1) ... 274s Selecting previously unselected package libfontconfig1:armhf. 274s Preparing to unpack .../04-libfontconfig1_2.15.0-2ubuntu1_armhf.deb ... 274s Unpacking libfontconfig1:armhf (2.15.0-2ubuntu1) ... 274s Selecting previously unselected package fontconfig. 274s Preparing to unpack .../05-fontconfig_2.15.0-2ubuntu1_armhf.deb ... 274s Unpacking fontconfig (2.15.0-2ubuntu1) ... 274s Selecting previously unselected package libblas3:armhf. 274s Preparing to unpack .../06-libblas3_3.12.1-2_armhf.deb ... 274s Unpacking libblas3:armhf (3.12.1-2) ... 274s Selecting previously unselected package libpixman-1-0:armhf. 274s Preparing to unpack .../07-libpixman-1-0_0.44.0-3_armhf.deb ... 274s Unpacking libpixman-1-0:armhf (0.44.0-3) ... 274s Selecting previously unselected package libxcb-render0:armhf. 274s Preparing to unpack .../08-libxcb-render0_1.17.0-2_armhf.deb ... 274s Unpacking libxcb-render0:armhf (1.17.0-2) ... 275s Selecting previously unselected package libxcb-shm0:armhf. 275s Preparing to unpack .../09-libxcb-shm0_1.17.0-2_armhf.deb ... 275s Unpacking libxcb-shm0:armhf (1.17.0-2) ... 275s Selecting previously unselected package libxrender1:armhf. 275s Preparing to unpack .../10-libxrender1_1%3a0.9.10-1.1build1_armhf.deb ... 275s Unpacking libxrender1:armhf (1:0.9.10-1.1build1) ... 275s Selecting previously unselected package libcairo2:armhf. 275s Preparing to unpack .../11-libcairo2_1.18.2-2_armhf.deb ... 275s Unpacking libcairo2:armhf (1.18.2-2) ... 275s Selecting previously unselected package libdatrie1:armhf. 275s Preparing to unpack .../12-libdatrie1_0.2.13-3build1_armhf.deb ... 275s Unpacking libdatrie1:armhf (0.2.13-3build1) ... 275s Selecting previously unselected package libdeflate0:armhf. 275s Preparing to unpack .../13-libdeflate0_1.23-1_armhf.deb ... 275s Unpacking libdeflate0:armhf (1.23-1) ... 275s Selecting previously unselected package libgfortran5:armhf. 275s Preparing to unpack .../14-libgfortran5_15-20250222-0ubuntu1_armhf.deb ... 275s Unpacking libgfortran5:armhf (15-20250222-0ubuntu1) ... 275s Selecting previously unselected package libgomp1:armhf. 275s Preparing to unpack .../15-libgomp1_15-20250222-0ubuntu1_armhf.deb ... 275s Unpacking libgomp1:armhf (15-20250222-0ubuntu1) ... 275s Selecting previously unselected package libgraphite2-3:armhf. 275s Preparing to unpack .../16-libgraphite2-3_1.3.14-2ubuntu1_armhf.deb ... 275s Unpacking libgraphite2-3:armhf (1.3.14-2ubuntu1) ... 275s Selecting previously unselected package libharfbuzz0b:armhf. 275s Preparing to unpack .../17-libharfbuzz0b_10.2.0-1_armhf.deb ... 275s Unpacking libharfbuzz0b:armhf (10.2.0-1) ... 275s Selecting previously unselected package x11-common. 275s Preparing to unpack .../18-x11-common_1%3a7.7+23ubuntu3_all.deb ... 275s Unpacking x11-common (1:7.7+23ubuntu3) ... 275s Selecting previously unselected package libice6:armhf. 275s Preparing to unpack .../19-libice6_2%3a1.1.1-1_armhf.deb ... 275s Unpacking libice6:armhf (2:1.1.1-1) ... 275s Selecting previously unselected package libjpeg-turbo8:armhf. 275s Preparing to unpack .../20-libjpeg-turbo8_2.1.5-3ubuntu2_armhf.deb ... 275s Unpacking libjpeg-turbo8:armhf (2.1.5-3ubuntu2) ... 275s Selecting previously unselected package libjpeg8:armhf. 275s Preparing to unpack .../21-libjpeg8_8c-2ubuntu11_armhf.deb ... 275s Unpacking libjpeg8:armhf (8c-2ubuntu11) ... 275s Selecting previously unselected package liblapack3:armhf. 275s Preparing to unpack .../22-liblapack3_3.12.1-2_armhf.deb ... 275s Unpacking liblapack3:armhf (3.12.1-2) ... 275s Selecting previously unselected package liblerc4:armhf. 275s Preparing to unpack .../23-liblerc4_4.0.0+ds-5ubuntu1_armhf.deb ... 275s Unpacking liblerc4:armhf (4.0.0+ds-5ubuntu1) ... 275s Selecting previously unselected package libthai-data. 275s Preparing to unpack .../24-libthai-data_0.1.29-2build1_all.deb ... 275s Unpacking libthai-data (0.1.29-2build1) ... 275s Selecting previously unselected package libthai0:armhf. 275s Preparing to unpack .../25-libthai0_0.1.29-2build1_armhf.deb ... 275s Unpacking libthai0:armhf (0.1.29-2build1) ... 275s Selecting previously unselected package libpango-1.0-0:armhf. 275s Preparing to unpack .../26-libpango-1.0-0_1.56.2-1_armhf.deb ... 275s Unpacking libpango-1.0-0:armhf (1.56.2-1) ... 275s Selecting previously unselected package libpangoft2-1.0-0:armhf. 275s Preparing to unpack .../27-libpangoft2-1.0-0_1.56.2-1_armhf.deb ... 275s Unpacking libpangoft2-1.0-0:armhf (1.56.2-1) ... 275s Selecting previously unselected package libpangocairo-1.0-0:armhf. 275s Preparing to unpack .../28-libpangocairo-1.0-0_1.56.2-1_armhf.deb ... 275s Unpacking libpangocairo-1.0-0:armhf (1.56.2-1) ... 275s Selecting previously unselected package libpaper2:armhf. 275s Preparing to unpack .../29-libpaper2_2.2.5-0.3_armhf.deb ... 275s Unpacking libpaper2:armhf (2.2.5-0.3) ... 275s Selecting previously unselected package libpaper-utils. 275s Preparing to unpack .../30-libpaper-utils_2.2.5-0.3_armhf.deb ... 275s Unpacking libpaper-utils (2.2.5-0.3) ... 275s Selecting previously unselected package libsharpyuv0:armhf. 275s Preparing to unpack .../31-libsharpyuv0_1.5.0-0.1_armhf.deb ... 275s Unpacking libsharpyuv0:armhf (1.5.0-0.1) ... 275s Selecting previously unselected package libsm6:armhf. 275s Preparing to unpack .../32-libsm6_2%3a1.2.4-1_armhf.deb ... 275s Unpacking libsm6:armhf (2:1.2.4-1) ... 275s Selecting previously unselected package libtcl8.6:armhf. 275s Preparing to unpack .../33-libtcl8.6_8.6.16+dfsg-1_armhf.deb ... 275s Unpacking libtcl8.6:armhf (8.6.16+dfsg-1) ... 276s Selecting previously unselected package libjbig0:armhf. 276s Preparing to unpack .../34-libjbig0_2.1-6.1ubuntu2_armhf.deb ... 276s Unpacking libjbig0:armhf (2.1-6.1ubuntu2) ... 276s Selecting previously unselected package libwebp7:armhf. 276s Preparing to unpack .../35-libwebp7_1.5.0-0.1_armhf.deb ... 276s Unpacking libwebp7:armhf (1.5.0-0.1) ... 276s Selecting previously unselected package libtiff6:armhf. 276s Preparing to unpack .../36-libtiff6_4.5.1+git230720-4ubuntu4_armhf.deb ... 276s Unpacking libtiff6:armhf (4.5.1+git230720-4ubuntu4) ... 276s Selecting previously unselected package libxft2:armhf. 276s Preparing to unpack .../37-libxft2_2.3.6-1build1_armhf.deb ... 276s Unpacking libxft2:armhf (2.3.6-1build1) ... 276s Selecting previously unselected package libxss1:armhf. 276s Preparing to unpack .../38-libxss1_1%3a1.2.3-1build3_armhf.deb ... 276s Unpacking libxss1:armhf (1:1.2.3-1build3) ... 276s Selecting previously unselected package libtk8.6:armhf. 276s Preparing to unpack .../39-libtk8.6_8.6.16-1_armhf.deb ... 276s Unpacking libtk8.6:armhf (8.6.16-1) ... 276s Selecting previously unselected package libxt6t64:armhf. 276s Preparing to unpack .../40-libxt6t64_1%3a1.2.1-1.2build1_armhf.deb ... 276s Unpacking libxt6t64:armhf (1:1.2.1-1.2build1) ... 276s Selecting previously unselected package zip. 276s Preparing to unpack .../41-zip_3.0-14ubuntu2_armhf.deb ... 276s Unpacking zip (3.0-14ubuntu2) ... 276s Selecting previously unselected package unzip. 276s Preparing to unpack .../42-unzip_6.0-28ubuntu6_armhf.deb ... 276s Unpacking unzip (6.0-28ubuntu6) ... 276s Selecting previously unselected package xdg-utils. 276s Preparing to unpack .../43-xdg-utils_1.2.1-2ubuntu1_all.deb ... 276s Unpacking xdg-utils (1.2.1-2ubuntu1) ... 276s Selecting previously unselected package r-base-core. 276s Preparing to unpack .../44-r-base-core_4.4.3-1_armhf.deb ... 276s Unpacking r-base-core (4.4.3-1) ... 276s Selecting previously unselected package r-cran-gmp. 276s Preparing to unpack .../45-r-cran-gmp_0.7-5-1_armhf.deb ... 276s Unpacking r-cran-gmp (0.7-5-1) ... 276s Selecting previously unselected package r-cran-mass. 276s Preparing to unpack .../46-r-cran-mass_7.3-64-1_armhf.deb ... 276s Unpacking r-cran-mass (7.3-64-1) ... 276s Selecting previously unselected package r-cran-rmpfr. 276s Preparing to unpack .../47-r-cran-rmpfr_0.9-5-1_armhf.deb ... 276s Unpacking r-cran-rmpfr (0.9-5-1) ... 276s Setting up libgraphite2-3:armhf (1.3.14-2ubuntu1) ... 276s Setting up libpixman-1-0:armhf (0.44.0-3) ... 276s Setting up libsharpyuv0:armhf (1.5.0-0.1) ... 276s Setting up liblerc4:armhf (4.0.0+ds-5ubuntu1) ... 276s Setting up libxrender1:armhf (1:0.9.10-1.1build1) ... 276s Setting up libdatrie1:armhf (0.2.13-3build1) ... 276s Setting up libxcb-render0:armhf (1.17.0-2) ... 276s Setting up unzip (6.0-28ubuntu6) ... 276s Setting up x11-common (1:7.7+23ubuntu3) ... 277s Setting up libdeflate0:armhf (1.23-1) ... 277s Setting up libxcb-shm0:armhf (1.17.0-2) ... 277s Setting up libgomp1:armhf (15-20250222-0ubuntu1) ... 277s Setting up libjbig0:armhf (2.1-6.1ubuntu2) ... 277s Setting up zip (3.0-14ubuntu2) ... 277s Setting up libblas3:armhf (3.12.1-2) ... 277s update-alternatives: using /usr/lib/arm-linux-gnueabihf/blas/libblas.so.3 to provide /usr/lib/arm-linux-gnueabihf/libblas.so.3 (libblas.so.3-arm-linux-gnueabihf) in auto mode 277s Setting up libfreetype6:armhf (2.13.3+dfsg-1) ... 277s Setting up fonts-dejavu-mono (2.37-8) ... 277s Setting up libtcl8.6:armhf (8.6.16+dfsg-1) ... 277s Setting up fonts-dejavu-core (2.37-8) ... 277s Setting up libjpeg-turbo8:armhf (2.1.5-3ubuntu2) ... 277s Setting up libgfortran5:armhf (15-20250222-0ubuntu1) ... 277s Setting up libwebp7:armhf (1.5.0-0.1) ... 277s Setting up libharfbuzz0b:armhf (10.2.0-1) ... 277s Setting up libthai-data (0.1.29-2build1) ... 277s Setting up libxss1:armhf (1:1.2.3-1build3) ... 277s Setting up libpaper2:armhf (2.2.5-0.3) ... 277s Setting up xdg-utils (1.2.1-2ubuntu1) ... 277s update-alternatives: using /usr/bin/xdg-open to provide /usr/bin/open (open) in auto mode 277s Setting up libjpeg8:armhf (8c-2ubuntu11) ... 277s Setting up libice6:armhf (2:1.1.1-1) ... 277s Setting up liblapack3:armhf (3.12.1-2) ... 277s update-alternatives: using /usr/lib/arm-linux-gnueabihf/lapack/liblapack.so.3 to provide /usr/lib/arm-linux-gnueabihf/liblapack.so.3 (liblapack.so.3-arm-linux-gnueabihf) in auto mode 277s Setting up fontconfig-config (2.15.0-2ubuntu1) ... 277s Setting up libpaper-utils (2.2.5-0.3) ... 277s Setting up libthai0:armhf (0.1.29-2build1) ... 277s Setting up libtiff6:armhf (4.5.1+git230720-4ubuntu4) ... 277s Setting up libfontconfig1:armhf (2.15.0-2ubuntu1) ... 277s Setting up libsm6:armhf (2:1.2.4-1) ... 277s Setting up fontconfig (2.15.0-2ubuntu1) ... 279s Regenerating fonts cache... done. 279s Setting up libxft2:armhf (2.3.6-1build1) ... 279s Setting up libtk8.6:armhf (8.6.16-1) ... 279s Setting up libpango-1.0-0:armhf (1.56.2-1) ... 279s Setting up libcairo2:armhf (1.18.2-2) ... 279s Setting up libxt6t64:armhf (1:1.2.1-1.2build1) ... 279s Setting up libpangoft2-1.0-0:armhf (1.56.2-1) ... 279s Setting up libpangocairo-1.0-0:armhf (1.56.2-1) ... 279s Setting up r-base-core (4.4.3-1) ... 280s Creating config file /etc/R/Renviron with new version 280s Setting up r-cran-gmp (0.7-5-1) ... 280s Setting up r-cran-mass (7.3-64-1) ... 280s Setting up r-cran-rmpfr (0.9-5-1) ... 280s Processing triggers for libc-bin (2.41-1ubuntu2) ... 280s Processing triggers for man-db (2.13.0-1) ... 280s Processing triggers for install-info (7.1.1-1) ... 288s autopkgtest [16:16:24]: test run-unit-test: [----------------------- 290s BEGIN TEST arith-ex.R 290s 290s R version 4.4.3 (2025-02-28) -- "Trophy Case" 290s Copyright (C) 2025 The R Foundation for Statistical Computing 290s Platform: arm-unknown-linux-gnueabihf (32-bit) 290s 290s R is free software and comes with ABSOLUTELY NO WARRANTY. 290s You are welcome to redistribute it under certain conditions. 290s Type 'license()' or 'licence()' for distribution details. 290s 290s R is a collaborative project with many contributors. 290s Type 'contributors()' for more information and 290s 'citation()' on how to cite R or R packages in publications. 290s 290s Type 'demo()' for some demos, 'help()' for on-line help, or 290s 'help.start()' for an HTML browser interface to help. 290s Type 'q()' to quit R. 290s 290s > library(gmp) 290s 290s Attaching package: ‘gmp’ 290s 290s The following objects are masked from ‘package:base’: 290s 290s %*%, apply, crossprod, matrix, tcrossprod 290s 290s > 290s > ## for reference (==> *not* using *.Rout.save here!) 290s > sessionInfo() 290s R version 4.4.3 (2025-02-28) 290s Platform: arm-unknown-linux-gnueabihf (32-bit) 290s Running under: Ubuntu Plucky Puffin (development branch) 290s 290s Matrix products: default 290s BLAS: /usr/lib/arm-linux-gnueabihf/blas/libblas.so.3.12.1 290s LAPACK: /usr/lib/arm-linux-gnueabihf/lapack/liblapack.so.3.12.1; LAPACK version 3.12.0 290s 290s locale: 290s [1] LC_CTYPE=C.UTF-8 LC_NUMERIC=C LC_TIME=C.UTF-8 290s [4] LC_COLLATE=C.UTF-8 LC_MONETARY=C.UTF-8 LC_MESSAGES=C.UTF-8 290s [7] LC_PAPER=C.UTF-8 LC_NAME=C LC_ADDRESS=C 290s [10] LC_TELEPHONE=C LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C 290s 290s time zone: Etc/UTC 290s tzcode source: system (glibc) 290s 290s attached base packages: 290s [1] stats graphics grDevices utils datasets methods base 290s 290s other attached packages: 290s [1] gmp_0.7-5 290s 290s loaded via a namespace (and not attached): 290s [1] compiler_4.4.3 290s > packageDescription("gmp") 290s Package: gmp 290s Version: 0.7-5 290s Date: 2024-08-23 290s Title: Multiple Precision Arithmetic 290s Authors@R: c(person("Antoine","Lucas",role = c("aut","cre"), email = 290s "antoinelucas@gmail.com", comment = 290s c(ORCID="0000-0002-8059-9767")), person("Immanuel","Scholz", 290s role= "aut"), person("Rainer","Boehme", role = "ctb", email= 290s "rb-gmp@reflex-studio.de"), person("Sylvain","Jasson", role = 290s "ctb", email= "Sylvain.Jasson@inrae.fr"), person("Martin", 290s "Maechler", role = "ctb", email="maechler@stat.math.ethz.ch")) 290s Maintainer: Antoine Lucas 290s Description: Multiple Precision Arithmetic (big integers and rationals, 290s prime number tests, matrix computation), "arithmetic without 290s limitations" using the C library GMP (GNU Multiple Precision 290s Arithmetic). 290s Depends: R (>= 3.5.0) 290s Imports: methods 290s Suggests: Rmpfr, MASS, round 290s SystemRequirements: gmp (>= 4.2.3) 290s License: GPL (>= 2) 290s BuildResaveData: no 290s LazyDataNote: not available, as we use data/*.R *and* our classes 290s NeedsCompilation: yes 290s URL: https://forgemia.inra.fr/sylvain.jasson/gmp 290s Packaged: 2024-08-23 17:22:31 UTC; antoine 290s Author: Antoine Lucas [aut, cre] 290s (), Immanuel Scholz 290s [aut], Rainer Boehme [ctb], Sylvain Jasson [ctb], Martin 290s Maechler [ctb] 290s Repository: CRAN 290s Date/Publication: 2024-08-23 18:40:02 UTC 290s Built: R 4.4.2; arm-unknown-linux-gnueabihf; 'Wed, 29 Jan 2025 08:43:06 290s +0900'; unix 290s 290s -- File: /usr/lib/R/site-library/gmp/Meta/package.rds 290s > 290s > ##' an (x == y) which gives TRUE also when both are NA: 290s > isEQ <- function(x,y) (x == y) | (is.na(x) & is.na(y)) 290s > 290s > ## want to test all these 290s > (ops <- sapply(getGroupMembers("Ops"), getGroupMembers)) 290s $Arith 290s [1] "+" "-" "*" "^" "%%" "%/%" "/" 290s 290s $Compare 290s [1] "==" ">" "<" "!=" "<=" ">=" 290s 290s $Logic 290s [1] "&" "|" 290s 290s > 290s > N. <- as.bigz(NA) 290s > Nq <- as.bigq(NA) 290s > stopifnot(identical(Nq, as.bigq(N.)), 290s + identical(N., as.bigz(Nq)))# used to fail 290s > 290s > xx <- c(NaN, NA, -Inf, -123:-121, -1:2, 7:8, Inf) 290s > (xxI <- as.bigz(xx))# Inf's and NaN's do not exist ==> very large integers for +/- Inf 290s Big Integer ('bigz') object of length 13: 290s [1] NA 290s [2] NA 290s [3] 0 290s [4] -123 290s [5] -122 290s [6] -121 290s [7] -1 290s [8] 0 290s [9] 1 290s [10] 2 290s [11] 7 290s [12] 8 290s [13] 173766203193809456599982445949435627061939786100117250547173286503262376022458008465094333630120854338003194362163007597987225472483598640843335685441710193966274131338557192586399006789292714554767500194796127964596906605976605873665859580600161998556511368530960400907199253450604168622770350228527124626728538626805418833470107651091641919900725415994689920112219170907023561354484047025713734651608777544579846111001059482132180956689444108315785401642188044178788629853592228467331730519810763559577944882016286493908631503101121166109571682295769470379514531105239965209245314082665518579335511291525230373316486697786532335206274149240813489201828773854353041855598709390675430960381072270432383913542702130202430186637321862331068861776780211082856984506050024895394320139435868484643843368002496089956046419964019877586845530207748994394501505588146979082629871366088121763790555364513243984244004147636040219136443410377798011608722717131323621700159335786445601947601694025107888293017058178562647175461026384343438874861406516767158373279032321096262126551620255666605185789463207944391905756886829667520553014724372245300878786091700563444079107099009003380230356461989260377273986023281444076082783406824471703499844642915587790146384758051663547775336021829171033411043796977042190519657861762804226147480755555085278062866268677842432851421790544407006581148631979148571299417963950579210719961422405768071335213324842709316205032078384168750091017964584060285240107161561019930505687950233196051962261970932008838279760834318101044311710769457048672103958655016388894770892065267451228938951370237422841366052736174160431593023473217066764172949768821843606479073866252864377064398085101223216558344281956767163876579889759124956035672317578122141070933058555310274598884089982879647974020264495921703064439532898207943134374576254840272047075633856749514044298135927611328433323640657533550512376900773273703275329924651465759145114579174356770593439987135755889403613364529029604049868233807295134382284730745937309910703657676103447124097631074153287120040247837143656624045055614076111832245239612708339272798262887437416818440064925049838443370805645609424314780108030016683461562597569371539974003402697903023830108053034645133078208043917492087248958344081026378788915528519967248989338592027124423914083391771884524464968645052058218151010508471258285907685355807229880747677634789376 290s > (x <- c(NA, xx[is.finite(xx)])) 290s [1] NA -123 -122 -121 -1 0 1 2 7 8 290s > xI <- as.bigz(x) 290s > xQ <- as.bigq(xI) 290s > stopifnot(identical(xI, as.bigz(xQ)), 290s + identical(numerator(xQ), xI)) # numerator( ) 290s > 290s > stopifnot(isEQ(x, as.integer(x)), isEQ(x, xI), isEQ(x, xQ), 290s + identical(xQ, as.bigq(x)), 290s + identical(is.na(x), is.na(xI)), identical(is.na(x), is.na(xQ)), 290s + identical(is.finite(x), is.finite(xI)), 290s + identical(is.finite(x), is.finite(xQ)), 290s + identical(is.infinite(x), is.infinite(xI)), 290s + identical(is.infinite(x), is.infinite(xQ)), 290s + ## The next 4 all failed till 2012-05-05: 290s + isEQ(x, as.integer(xI)), 290s + isEQ(x, as.integer(xQ)), 290s + isEQ(x, as.numeric(xI)), 290s + isEQ(x, as.numeric(xQ)), 290s + TRUE) 290s > 290s > ## Finally (2020-06-06): mixed arithmetic works : 290s > stopifnot(exprs = { 290s + isEQ(xI - xQ, c(NA, rep(0, 9))) 290s + isEQ(xI + xQ, 2*xI) 290s + isEQ(xI * xQ, x^2) 290s + all.equal(xQ^xI, x^x) 290s + ## as do mixed comparisons 290s + (xI == xQ)[-1] 290s + !(xI < xQ)[-1] 290s + !(xI > xQ)[-1] 290s + (xI >= xQ)[-1] 290s + }) 290s > 290s > ## double precision factorial() is exact up to n=22 290s > stopifnot(factorialZ(0:22) == factorial(0:22)) 290s > 290s > ## factorialZ() etc must also work when passed a bigz instead of an integer; 290s > ## till Jan.2014, they silently produced nonsense. 290s > N <- as.bigz(n <- 3:8) 290s > stopifnot(identical(factorialZ(N), factorialZ(n)), factorialZ (n) == factorial(n), 290s + identical(chooseZ(12, N), chooseZ(12, n)), chooseZ(12,n) == choose(12,n), 290s + identical(fibnum (N), fibnum (n)), 290s + identical(fibnum2(N), fibnum2(n)), 290s + identical(lucnum (N), lucnum (n)), 290s + identical(lucnum2(N), lucnum2(n))) 290s > 290s > 290s > ## This one does *NOT* distinguish NA and NaN -- that's wanted here 290s > EQ1 <- function(x,y) { 290s + (abs(x-y) <= 1e-13*(abs(x)+abs(y)) & !(nx <- is.na(x)) & !(ny <- is.na(y))) | 290s + (nx & ny) 290s + } 290s > stopifnot(EQ1(x, xI)) 290s > EQ <- function(x,y) mapply(EQ1, x, y, USE.NAMES=FALSE) 290s > 290s > ## a version of outer() that should work also with these objects 290s > mOuter <- function(X, Y=X, FUN, ...) { 290s + lapply(seq_along(X), function(i) FUN(X[i], Y, ...)) 290s + } 290s > 290s > matOuter <- function(X, Y=X, FUN, ...) { 290s + t(array(unlist(mOuter(X, Y, FUN, ...)), 290s + dim = c(length(Y), length(X)))) 290s + } 290s > 290s > ##' @title 290s > ##' @param OP an arithmetic OPerator such +, *,.. as R function 290s > ##' @param u numeric vector 290s > ##' @param uI a bigz/biginteger vector, "the same" as 'u'. 290s > ##' @return a logical n x n matrix, say R, R[i,j] := TRUE iff 290s > ##' u[i] OP v[j] are all the same when u,v vary in {u, uI}. 290s > ##' @author Martin Maechler 290s > opEQ <- function(OP, u, uI=as.bigz(u), eq=TRUE) { 290s + stopifnot(length(u) == length(uI)) 290s + if(eq) stopifnot(isEQ(u, uI)) # should be the case when result should be all TRUE 290s + ## 290s + ## choose only some on the RHS: 290s + iR <- 290s + if(no0.R <- (identical(OP, `/`) || identical(OP, `%/%`) || identical(OP, `%%`))) { 290s + ## no zero on the RHS i.e., 2nd operand 290s + is.na(u) | u != 0 290s + } else TRUE 290s + ## choose only some on the LHS: 290s + iL <- 290s + if(no0.L <- (identical(OP, `^`))) { 290s + ## no zero on the LHS i.e., 1st operand 290s + is.na(u) | u != 0 290s + } else TRUE 290s + ## 290s + EQ(mOuter(u [iL],u [iR], OP) -> R, 290s + mOuter(uI[iL],uI[iR], OP)) & 290s + EQ(mOuter(u [iL],uI[iR], OP) -> S, 290s + mOuter(uI[iL], u[iR], OP)) & 290s + EQ(R, S) 290s + } 290s > 290s > ## "Compare" - works "out of the box 290s > eqC <- lapply(sapply(ops$Compare, get), 290s + function(op) opEQ(op, x, xI)) 290s > stopifnot(do.call(all, eqC)) 290s > 290s > opsA <- ops$Arith 290s > 290s > eqA <- lapply(sapply(opsA, get), function(op) opEQ(op, x, xI)) 290s > 290s > op6 <- c("+","-", "*", "/", "%/%", "^")## << are fine - now including "^" _and_ %/% ! 290s > stopifnot(sapply(eqA, all)[op6]) 290s > ## The others: now (2014-07): only %% is left: has several "wrong": 290s > lapply(eqA[is.na(match(names(eqA), op6))], symnum) 290s $`%%` 290s 290s [1,] | | | | | | | | | | 290s [2,] | | . . . | . . . . 290s [3,] | . | . . | . . . . 290s [4,] | . . | . | . . . . 290s [5,] | | | | | | | | | | 290s [6,] | | | | | | | | | | 290s [7,] | | | | | | | | | | 290s [8,] | | | | | | | | | | 290s [9,] | | | | | | | | | | 290s 290s > 290s > ## For example: 290s > symnum(opEQ(`%%`, x, xI))# not all TRUE, since, e.g., 290s 290s [1,] | | | | | | | | | | 290s [2,] | | . . . | . . . . 290s [3,] | . | . . | . . . . 290s [4,] | . . | . | . . . . 290s [5,] | | | | | | | | | | 290s [6,] | | | | | | | | | | 290s [7,] | | | | | | | | | | 290s [8,] | | | | | | | | | | 290s [9,] | | | | | | | | | | 290s > x [3] %% x 290s [1] NA -122 0 -1 0 NaN 0 0 4 6 290s > x [3] %% xI ## (negative turned into >= 0; warning 'division by zero') 290s Big Integer ('bigz') object of length 10: 290s [1] NA 1 0 120 0 NA 0 0 4 6 290s > 290s > x %% x [3] 290s [1] NA -1 0 -121 -1 0 -121 -120 -115 -114 290s > xI %% x [3] ## (no negatives ..) 290s Big Integer ('bigz') object of length 10: 290s [1] NA 121 0 1 121 0 1 2 7 8 290s > 290s > 290s > ##-- "^" ------------ 290s > z1i <- 0:1 290s > z1n <- as.double(z1i) 290s > c(NA^0, NA^0L, z1i^NA, z1n^NA)# <- in R (<= 2011), the first and last are 1 290s [1] 1 1 NA 1 NA 1 290s > stopifnot(isEQ(c(N.^0, N.^0L, z1i^N.), c(1,1,NA,1)), 290s + isEQ(c(Nq^0, Nq^0L, z1i^Nq), c(1,1,NA,1))) 290s Warning message: 290s In `%%.bigz`(x[3], xI) : biginteger division by zero: returning NA 290s > 290s > ## need non-negative values: 290s > x.po0 <- x >= 0 290s > stopifnot(M.pow <- opEQ(`^`, x[x.po0], xI[x.po0])) 290s > if(FALSE)# FIXME 290s + stopifnot(M.powQ <- opEQ(`^`, x[x.po0], xQ[x.po0])) 290s > if(FALSE)# FIXME {z - q} 290s + M.poIQ <- opEQ(`^`,xI[x.po0], xQ[x.po0]) 290s > 290s > ## Modulo arithmetic 290s > i <- as.bigz(-5:10, 16); i <- i[i != 0]; i 290s [1] (11 %% 16) (12 %% 16) (13 %% 16) (14 %% 16) (15 %% 16) (1 %% 16) 290s [7] (2 %% 16) (3 %% 16) (4 %% 16) (5 %% 16) (6 %% 16) (7 %% 16) 290s [13] (8 %% 16) (9 %% 16) (10 %% 16) 290s > stopifnot(identical(as.integer(i), c(11:15, 1:10))) 290s > (Ii <- 1/i )## BUG: in all versions of gmp up to 0.5-5 -- now 7 warnings pow(x, -|n|) 290s [1] (3 %% 16) NA (5 %% 16) NA (15 %% 16) (1 %% 16) 290s [7] NA (11 %% 16) NA (13 %% 16) NA (7 %% 16) 290s [13] NA (9 %% 16) NA 290s Warning messages: 290s 1: In `/.bigz`(1, i) : 290s pow(x, -|n|) returning NA as x has no inverse wrt modulus 290s 2: In `/.bigz`(1, i) : 290s pow(x, -|n|) returning NA as x has no inverse wrt modulus 290s 3: In `/.bigz`(1, i) : 290s pow(x, -|n|) returning NA as x has no inverse wrt modulus 290s 4: In `/.bigz`(1, i) : 290s pow(x, -|n|) returning NA as x has no inverse wrt modulus 290s 5: In `/.bigz`(1, i) : 290s pow(x, -|n|) returning NA as x has no inverse wrt modulus 290s 6: In `/.bigz`(1, i) : 290s pow(x, -|n|) returning NA as x has no inverse wrt modulus 290s 7: In `/.bigz`(1, i) : 290s pow(x, -|n|) returning NA as x has no inverse wrt modulus 290s > I2 <- i^(-1)## BUG: not considering (mod) // segmentation fault in gmp 0.5-1 {now: 7 warn..} 290s > stopifnot(identical(Ii, I2), 290s + is.na(Ii[c(2, 4, 7, 9, 11, 13, 15)]), 290s + identical(Ii[c(1,3)], as.bigz(c(3,5), 16))) 290s Warning messages: 290s 1: In `^.bigz`(i, (-1)) : 290s pow(x, -|n|) returning NA as x has no inverse wrt modulus 290s 2: In `^.bigz`(i, (-1)) : 290s pow(x, -|n|) returning NA as x has no inverse wrt modulus 290s 3: In `^.bigz`(i, (-1)) : 290s pow(x, -|n|) returning NA as x has no inverse wrt modulus 290s 4: In `^.bigz`(i, (-1)) : 290s pow(x, -|n|) returning NA as x has no inverse wrt modulus 290s 5: In `^.bigz`(i, (-1)) : 290s pow(x, -|n|) returning NA as x has no inverse wrt modulus 290s 6: In `^.bigz`(i, (-1)) : 290s pow(x, -|n|) returning NA as x has no inverse wrt modulus 290s 7: In `^.bigz`(i, (-1)) : 290s pow(x, -|n|) returning NA as x has no inverse wrt modulus 290s > (Iz <- 1/(z <- as.bigz(1:12, 13))) 290s [1] (1 %% 13) (7 %% 13) (9 %% 13) (10 %% 13) (8 %% 13) (11 %% 13) 290s [7] (2 %% 13) (5 %% 13) (3 %% 13) (4 %% 13) (6 %% 13) (12 %% 13) 290s > stopifnot(identical(Iz, z^-1), 290s + Iz == c(1, 7, 9, 10, 8, 11, 2, 5, 3, 4, 6, 12), 290s + identical(modulus(Iz), as.bigz(13))) 290s > ## The first two of course give fractions: 290s > (r1 <- as.bigz(3) / 1:12) 290s Big Rational ('bigq') object of length 12: 290s [1] 3 3/2 1 3/4 3/5 1/2 3/7 3/8 1/3 3/10 3/11 1/4 290s > r2 <- as.bigz(3) / as.bigz(1:12) 290s > stopifnot(identical(r1, r2)) 290s > 290s > ## Now, the new scheme : 290s > (iLR <- as.bigz(3, 13) / as.bigz(1:12, 13)) 290s [1] (3 %% 13) (8 %% 13) (1 %% 13) (4 %% 13) (11 %% 13) (7 %% 13) 290s [7] (6 %% 13) (2 %% 13) (9 %% 13) (12 %% 13) (5 %% 13) (10 %% 13) 290s > ## [1] (3 %% 13) (8 %% 13) (1 %% 13) (4 %% 13) (11 %% 13) (7 %% 13) 290s > ## [7] (6 %% 13) (2 %% 13) (9 %% 13) (12 %% 13) (5 %% 13) (10 %% 13) 290s > iL <- as.bigz(3, 13) / as.bigz(1:12) 290s > iLi <- as.bigz(3, 13) / 1:12 290s > iR <- as.bigz(3) / as.bigz(1:12, 13) 290s > iiR <- 3 / as.bigz(1:12, 13) 290s > stopifnot(identical(iL, iLi) 290s + , identical(iR, iiR) 290s + , identical(iR, iLR) 290s + , identical(iL, iR)) ## failed until recently... 290s > 290s > ## whereas these two always use divq.bigz : 290s > (q <- as.bigz(3, 13) %/% as.bigz(1:12)) 290s [1] (3 %% 13) (1 %% 13) (1 %% 13) (0 %% 13) (0 %% 13) (0 %% 13) (0 %% 13) 290s [8] (0 %% 13) (0 %% 13) (0 %% 13) (0 %% 13) (0 %% 13) 290s > ## [1] (3 %% 13) (1 %% 13) (1 %% 13) (0 %% 13) (0 %% 13) (0 %% 13) 290s > ## [7] (0 %% 13) (0 %% 13) (0 %% 13) (0 %% 13) (0 %% 13) (0 %% 13) 290s > stopifnot(identical(q, divq.bigz(as.bigz(3, 13), 1:12)), 290s + ## --------- 290s + identical(q, 3 %/% as.bigz(1:12, 13)), 290s + q == c(3, 1, 1, rep(0,9))) 290s > s <- as.bigz(3, 13) / as.bigz(1:12, 17) 290s > ## used to give 290s > ## Big Integer ('bigz') object of length 12: 290s > ## [1] 3 1 1 0 0 0 0 0 0 0 0 0 290s > ## but now, really just `` drops the contradicting "mod" '' ==> uses rational: 290s > stopifnot(identical(s, r1)) 290s > 290s > ##----- Z^e (modulo m) --------------- 290s > z12 <- as.bigz(1:12,12) 290s > stopifnot(identical(z12^1, z12), z12^0 == 1, 290s + identical(z12^2, as.bigz(rep(c(1,4,9,4,1,0), 2), 12)), 290s + identical(z12^3, 290s + as.bigz(c(1,8,3:5,0,7:9,4,11,0), 12)), 290s + identical(z12^4, z12^2), 290s + identical(z12^5, z12^3), 290s + identical(z12^6, z12^2), 290s + identical(z12^6, (1:12) ^ as.bigz(6, 12)) 290s + ) 290s > 290s > for(E in 6:20) { 290s + ir <- as.integer(r <- z12 ^ E) 290s + stopifnot(identical(modulus(r), as.bigz(12)), 290s + 0 <= ir, ir <= 11) 290s + } 290s > 290s > z17 <- as.bigz(1:16, 17) 290s > stopifnot(z17^0 == 1, identical(z17^1, z17), identical(z17^-1, iz <- 1/z17), 290s + identical(z17^-2, iz^2), (iz^2) * (sq <- z17^2) == 1, 290s + modulus(sq) == 17, unique(sq) == (1:8)^2 %% 17) 290s > 290s > 290s > 290s > ##--- Log()s ------------------------- 290s > (ex <- c(outer(c(2,5,10), 10^(1:3))))# 20 .. 10'000 290s [1] 20 50 100 200 500 1000 2000 5000 10000 290s > stopifnot(dim(L <- outer(as.bigz(2:4), ex, `^`)) == c(3, length(ex))) 290s > l2 <- array(log2(L), dim = dim(L)) 290s > lnL <- log(L) 290s > a.EQ <- function(x,y, tol=1e-15, ...) all.equal(x,y, tol=tol, ...) 290s > stopifnot(a.EQ(l2[1,], ex), 290s + a.EQ(l2[3,], 2*ex), 290s + a.EQ(log(L, 8), lnL/log(8)), 290s + a.EQ(c(l2), lnL/log(2))) 290s > 290s > 290s > ###------------------ bigq -------------------------------- 290s > 290s > 290s > xQ1 <- as.bigq(x, 1) 290s > eqC <- lapply(sapply(ops$Compare, get), function(op) opEQ(op, x, xQ1)) 290s > stopifnot(Reduce(`&`, eqC))## 290s > ## 290s > xQ <- as.bigq(x, 17) # == x/17 .. *are* not equal, i.e., not expecting all TRUE: 290s > eqQ <- lapply(sapply(ops$Compare, get), 290s + function(op) opEQ(op, x, xQ, eq=FALSE)) 290s > lapply(eqQ, symnum)## <- symnum, for nice output 290s $`==` 291s 291s [1,] | | | | | | | | | | 291s [2,] | . | | | | | | | | 291s [3,] | | . | | | | | | | 291s [4,] | | | . | | | | | | 291s [5,] | | | | . | | | | | 291s [6,] | | | | | | | | | | 291s [7,] | | | | | | . | | | 291s [8,] | | | | | | | . | | 291s [9,] | | | | | | | | . | 291s [10,] | | | | | | | | | . 291s 291s $`>` 291s 291s [1,] | | | | | | | | | | 291s [2,] | . . . | | | | | | 291s [3,] | . . . | | | | | | 291s [4,] | . . . | | | | | | 291s [5,] | | | | . | | | | | 291s [6,] | | | | | | | | | | 291s [7,] | | | | | | . . . . 291s [8,] | | | | | | . . . . 291s [9,] | | | | | | . . . . 291s [10,] | | | | | | . . . . 291s 291s $`<` 291s 291s [1,] | | | | | | | | | | 291s [2,] | . . . | | | | | | 291s [3,] | . . . | | | | | | 291s [4,] | . . . | | | | | | 291s [5,] | | | | . | | | | | 291s [6,] | | | | | | | | | | 291s [7,] | | | | | | . . . . 291s [8,] | | | | | | . . . . 291s [9,] | | | | | | . . . . 291s [10,] | | | | | | . . . . 291s 291s $`!=` 291s 291s [1,] | | | | | | | | | | 291s [2,] | . | | | | | | | | 291s [3,] | | . | | | | | | | 291s [4,] | | | . | | | | | | 291s [5,] | | | | . | | | | | 291s [6,] | | | | | | | | | | 291s [7,] | | | | | | . | | | 291s [8,] | | | | | | | . | | 291s [9,] | | | | | | | | . | 291s [10,] | | | | | | | | | . 291s 291s $`<=` 291s 291s [1,] | | | | | | | | | | 291s [2,] | . . . | | | | | | 291s [3,] | . . . | | | | | | 291s [4,] | . . . | | | | | | 291s [5,] | | | | . | | | | | 291s [6,] | | | | | | | | | | 291s [7,] | | | | | | . . . . 291s [8,] | | | | | | . . . . 291s [9,] | | | | | | . . . . 291s [10,] | | | | | | . . . . 291s 291s $`>=` 291s 291s [1,] | | | | | | | | | | 291s [2,] | . . . | | | | | | 291s [3,] | . . . | | | | | | 291s [4,] | . . . | | | | | | 291s [5,] | | | | . | | | | | 291s [6,] | | | | | | | | | | 291s [7,] | | | | | | . . . . 291s [8,] | | | | | | . . . . 291s [9,] | | | | | | . . . . 291s [10,] | | | | | | . . . . 291s 291s > 291s > Fn <- gmp:::pow.bigq; q <- 2.3 291s > stopifnot(inherits(e1 <- tryCatch(Fn(q,q), error=identity), "error"), 291s + inherits(e2 <- tryCatch(q ^ as.bigq(1,3), error=identity), "error"), 291s + grepl("Rmpfr", e1$message), 291s + identical(e1$message, e2$message)) 291s > 291s > 291s > ## FIXME(2): %% and %/% do not work at all for bigq 291s > (opsA4 <- opsA[opsA != "^" & !grepl("^%", opsA)]) 291s [1] "+" "-" "*" "/" 291s > eqA1 <- lapply(sapply(opsA4, get), function(op) opEQ(op, x, xQ1)) 291s > sapply(eqA1, table) 291s +.TRUE -.TRUE *.TRUE /.TRUE 291s 100 100 100 90 291s > ## .TRUE -.TRUE *.TRUE /.TRUE 291s > ## 100 100 100 90 291s > ## ^^^^ (90: was 81) [not dividing by 0] 291s > 291s > ## xQ *is* different from x (apart from x[6] (and, NA x[1])) 291s > eqA <- lapply(sapply(opsA4, get), function(op) opEQ(op, x, xQ, eq=FALSE)) 291s > lapply(eqA, symnum) 291s $`+` 291s 291s [1,] | | | | | | | | | | 291s [2,] | . . . . . . . . . 291s [3,] | . . . . . . . . . 291s [4,] | . . . . . . . . . 291s [5,] | . . . . . . . . . 291s [6,] | . . . . | . . . . 291s [7,] | . . . . . . . . . 291s [8,] | . . . . . . . . . 291s [9,] | . . . . . . . . . 291s [10,] | . . . . . . . . . 291s 291s $`-` 291s 291s [1,] | | | | | | | | | | 291s [2,] | . . . . . . . . . 291s [3,] | . . . . . . . . . 291s [4,] | . . . . . . . . . 291s [5,] | . . . . . . . . . 291s [6,] | . . . . | . . . . 291s [7,] | . . . . . . . . . 291s [8,] | . . . . . . . . . 291s [9,] | . . . . . . . . . 291s [10,] | . . . . . . . . . 291s 291s $`*` 291s 291s [1,] | | | | | | | | | | 291s [2,] | . . . . | . . . . 291s [3,] | . . . . | . . . . 291s [4,] | . . . . | . . . . 291s [5,] | . . . . | . . . . 291s [6,] | | | | | | | | | | 291s [7,] | . . . . | . . . . 291s [8,] | . . . . | . . . . 291s [9,] | . . . . | . . . . 291s [10,] | . . . . | . . . . 291s 291s $`/` 291s 291s [1,] | | | | | | | | | | 291s [2,] | . . . . | . . . . 291s [3,] | . . . . | . . . . 291s [4,] | . . . . | . . . . 291s [5,] | . . . . | . . . . 291s [6,] | . . . . | . . . . 291s [7,] | . . . . | . . . . 291s [8,] | . . . . | . . . . 291s [9,] | . . . . | . . . . 291s 291s > 291s > 291s > ## round(x, digits) -- should work *and* be vectorized in both (x, digits) 291s > x1 <- as.bigq((-19:19), 10) 291s > stopifnot(round(x1, 1) == x1) 291s > 291s > half <- as.bigq(1, 2) 291s > i1 <- (-19:29) 291s > x <- half + i1 291s > cbind(x, round(x)) 291s Big Rational ('bigq') 49 x 2 matrix: 291s [,1] [,2] 291s [1,] -37/2 -18 291s [2,] -35/2 -18 291s [3,] -33/2 -16 291s [4,] -31/2 -16 291s [5,] -29/2 -14 291s [6,] -27/2 -14 291s [7,] -25/2 -12 291s [8,] -23/2 -12 291s [9,] -21/2 -10 291s [10,] -19/2 -10 291s [11,] -17/2 -8 291s [12,] -15/2 -8 291s [13,] -13/2 -6 291s [14,] -11/2 -6 291s [15,] -9/2 -4 291s [16,] -7/2 -4 291s [17,] -5/2 -2 291s [18,] -3/2 -2 291s [19,] -1/2 0 291s [20,] 1/2 0 291s [21,] 3/2 2 291s [22,] 5/2 2 291s [23,] 7/2 4 291s [24,] 9/2 4 291s [25,] 11/2 6 291s [26,] 13/2 6 291s [27,] 15/2 8 291s [28,] 17/2 8 291s [29,] 19/2 10 291s [30,] 21/2 10 291s [31,] 23/2 12 291s [32,] 25/2 12 291s [33,] 27/2 14 291s [34,] 29/2 14 291s [35,] 31/2 16 291s [36,] 33/2 16 291s [37,] 35/2 18 291s [38,] 37/2 18 291s [39,] 39/2 20 291s [40,] 41/2 20 291s [41,] 43/2 22 291s [42,] 45/2 22 291s [43,] 47/2 24 291s [44,] 49/2 24 291s [45,] 51/2 26 291s [46,] 53/2 26 291s [47,] 55/2 28 291s [48,] 57/2 28 291s [49,] 59/2 30 291s > rx1 <- round(x/10, 1) 291s > stopifnot(exprs = { 291s + as.bigz(round(x)) %% 2 == 0 291s + identical(round(x) > x, i1 %% 2 == 1) 291s + (rx1 - x/10) * 20 == c(1,-1) # {recycling up/down}: perfect rounding to even 291s + (round(x/100, 2) - x/100) * 200 == c(1,-1) # (ditto) 291s + }) 291s > (drx1 <- asNumeric(rx1))# shows perfect round to *even* 291s [1] -1.8 -1.8 -1.6 -1.6 -1.4 -1.4 -1.2 -1.2 -1.0 -1.0 -0.8 -0.8 -0.6 -0.6 -0.4 291s [16] -0.4 -0.2 -0.2 0.0 0.0 0.2 0.2 0.4 0.4 0.6 0.6 0.8 0.8 1.0 1.0 291s [31] 1.2 1.2 1.4 1.4 1.6 1.6 1.8 1.8 2.0 2.0 2.2 2.2 2.4 2.4 2.6 291s [46] 2.6 2.8 2.8 3.0 291s > ## but double precision rounding cannot be perfect (as numbers are not exact!): 291s > dx <- asNumeric(x/10) 291s > dx1 <- round(dx, 1) 291s > dmat <- cbind(x=dx, r.x = dx1, rQx = drx1) 291s > ## shows "the picture" a bit {see Martin's vignette in CRAN package 'round'}: 291s > noquote(cbind(apply(dmat, 2, formatC), 291s + ER = ifelse(abs(dx1 - drx1) > 1e-10, "*", ""))) 291s x r.x rQx ER 291s [1,] -1.85 -1.8 -1.8 291s [2,] -1.75 -1.8 -1.8 291s [3,] -1.65 -1.6 -1.6 291s [4,] -1.55 -1.5 -1.6 * 291s [5,] -1.45 -1.4 -1.4 291s [6,] -1.35 -1.3 -1.4 * 291s [7,] -1.25 -1.2 -1.2 291s [8,] -1.15 -1.1 -1.2 * 291s [9,] -1.05 -1 -1 291s [10,] -0.95 -0.9 -1 * 291s [11,] -0.85 -0.8 -0.8 291s [12,] -0.75 -0.8 -0.8 291s [13,] -0.65 -0.6 -0.6 291s [14,] -0.55 -0.5 -0.6 * 291s [15,] -0.45 -0.4 -0.4 291s [16,] -0.35 -0.3 -0.4 * 291s [17,] -0.25 -0.2 -0.2 291s [18,] -0.15 -0.1 -0.2 * 291s [19,] -0.05 -0 0 291s [20,] 0.05 0 0 291s [21,] 0.15 0.1 0.2 * 291s [22,] 0.25 0.2 0.2 291s [23,] 0.35 0.3 0.4 * 291s [24,] 0.45 0.4 0.4 291s [25,] 0.55 0.5 0.6 * 291s [26,] 0.65 0.6 0.6 291s [27,] 0.75 0.8 0.8 291s [28,] 0.85 0.8 0.8 291s [29,] 0.95 0.9 1 * 291s [30,] 1.05 1 1 291s [31,] 1.15 1.1 1.2 * 291s [32,] 1.25 1.2 1.2 291s [33,] 1.35 1.3 1.4 * 291s [34,] 1.45 1.4 1.4 291s [35,] 1.55 1.5 1.6 * 291s [36,] 1.65 1.6 1.6 291s [37,] 1.75 1.8 1.8 291s [38,] 1.85 1.8 1.8 291s [39,] 1.95 2 2 291s [40,] 2.05 2 2 291s [41,] 2.15 2.1 2.2 * 291s [42,] 2.25 2.2 2.2 291s [43,] 2.35 2.3 2.4 * 291s [44,] 2.45 2.4 2.4 291s [45,] 2.55 2.5 2.6 * 291s [46,] 2.65 2.6 2.6 291s [47,] 2.75 2.8 2.8 291s [48,] 2.85 2.8 2.8 291s [49,] 2.95 2.9 3 * 291s > 291s > ## standard R: 291s > rd <- round(pi*10^(-2:5), digits=7:0) 291s > formatC(rd, digits=12, width=1) 291s [1] "0.0314159" "0.314159" "3.14159" "31.4159" "314.159" "3141.59" 291s [7] "31415.9" "314159" 291s > ## bigq -- show we vectorize in both x, digits 291s > (rQ <- round(as.bigq(pi*10^(-2:5)), digits=7:0)) 291s Big Rational ('bigq') object of length 8: 291s [1] 314159/10000000 314159/1000000 314159/100000 314159/10000 291s [5] 314159/1000 314159/100 314159/10 314159 291s > stopifnot(exprs = { 291s + as.integer(numerator (rQ)) == 314159L 291s + as.integer(denominator(rQ)) == 10^(7:0) 291s + all.equal(asNumeric(rQ), rd, tol = 1e-15) 291s + }) 291s > 291s > 291s > 291s BEGIN TEST basic-ex.R 291s 291s R version 4.4.3 (2025-02-28) -- "Trophy Case" 291s Copyright (C) 2025 The R Foundation for Statistical Computing 291s Platform: arm-unknown-linux-gnueabihf (32-bit) 291s 291s R is free software and comes with ABSOLUTELY NO WARRANTY. 291s You are welcome to redistribute it under certain conditions. 291s Type 'license()' or 'licence()' for distribution details. 291s 291s R is a collaborative project with many contributors. 291s Type 'contributors()' for more information and 291s 'citation()' on how to cite R or R packages in publications. 291s 291s Type 'demo()' for some demos, 'help()' for on-line help, or 291s 'help.start()' for an HTML browser interface to help. 291s Type 'q()' to quit R. 291s 291s > library(gmp) 291s 291s Attaching package: ‘gmp’ 291s 291s The following objects are masked from ‘package:base’: 291s 291s %*%, apply, crossprod, matrix, tcrossprod 291s 291s > 291s > assertError <- tools::assertError 291s > 291s > Z1 <- as.bigz(1) ; Z1[FALSE] 291s bigz(0) 291s > Q1 <- as.bigq(1) ; Q1[FALSE] 291s bigq(0) 291s > stopifnot(0 == length(z0 <- as.bigz(0[FALSE])),# failed earlier 291s + 0 == length(q0 <- as.bigq(0[FALSE])),# ditto 291s + is.bigz(Z1), is.bigz(z0), !is.bigz(1L), !is.bigz(1), !is.bigz(Q1), 291s + is.bigq(Q1), is.bigq(q0), !is.bigq(1L), !is.bigq(1/2), !is.bigq(Z1)) 291s > 291s > Z1[integer()] <- 2 # segfaulted earlier 291s > Q1[integer()] <- 2 # ditto 291s > assertError(Z1[1] <- list(1)) # segfaulted 291s > assertError(Q1[1] <- list(1)) # " 291s > assertError(Z1[1] <- NULL ) # " 291s > assertError(Q1[1] <- NULL ) # " 291s > 291s > stopifnot(identical(Z1, as.bigz(1L)), identical(Q1, as.bigq(1L)), 291s + identical(1L, as.integer(Z1)), 291s + identical(1L, as.integer(Q1)),## failed earlier 291s + identical(as.bigz(1[FALSE]), Z1[FALSE]), 291s + identical(as.bigz(1[-1]), Z1[-1]), 291s + identical(Z1[-1], rep(Z1, 0)) 291s + , ##----------- bigq ------------- 291s + identical(as.bigq(1[FALSE]), Q1[-1]), 291s + identical(Q1[FALSE], Q1[-1]), 291s + identical(Q1[-1], rep(Q1, 0)), 291s + identical(q0, rep(Q1, 0)) 291s + ) 291s > 291s > stopifnot(length(1[0]) == 0, 0 == length(Z1[0])) 291s > Z <- as.bigz(I <- 2^(5*0:5)); mZ <- as.bigz(mI <- matrix(I, 2,3)) 291s > Q <- Z / 4 ; mQ <- matrix(Q, 2,3) 291s > 291s > ii <- c(3:2,0:2,1:0,0:2) 291s > i. <- c(2:0,1:0,1); j. <- ii[1:7] 291s > i <- i.[i. != 0] 291s > j <- j.[j. != 0] 291s > I[ii] ; mI[i.,j.] 291s [1] 1024 32 1 32 1 1 32 291s [,1] [,2] [,3] [,4] [,5] 291s [1,] 33554432 32768 32 32768 32 291s [2,] 1048576 1024 1 1024 1 291s [3,] 1048576 1024 1 1024 1 291s [4,] 1048576 1024 1 1024 1 291s > stopifnot(all.equal( Z[ii], I[ii], tol=0), 291s + all.equal(4*Q[ii], I[ii], tol=0), 291s + identical(mI[i,j], mI[i.,j.]), 291s + identical(mZ[i,j], mZ[i.,j.]), 291s + identical(mQ[i,j], mQ[i.,j.])) 291s > stopifnot(all.equal(asNumeric(mZ[i,j]), mI[i,j], tol=0), 291s + all.equal( 4*mQ[i,j], mI[i,j], tol=0)) 291s > 291s > ## Outside indexing for *matrices* now gives an error: 291s > assertError(mI[1,4]); assertError(mZ[1,4]); assertError(mQ[1,4]) 291s > assertError(mI[3,2]); assertError(mZ[3,2]); assertError(mQ[3,2]) 291s > ## whereas outside indexing of vectors should give NA: 291s > stopifnot(identical(I[8:5], asNumeric(Z[8:5])), 291s + identical(I[8:5], asNumeric(Q[8:5] * 4))) 291s > 291s > ## "basics", including as.matrix(), as.array(), as.list() : 291s > i <- 1:9 291s > (x <- as.bigz(i, mod = 3)) 291s [1] (1 %% 3) (2 %% 3) (0 %% 3) (1 %% 3) (2 %% 3) (0 %% 3) (1 %% 3) (2 %% 3) 291s [9] (0 %% 3) 291s > mx <- as.matrix(x) ## used to "bomb" badly: 291s > ## (terminate called after throwing an instance of 'std::bad_alloc') 291s > lx <- as.list(x) 291s > stopifnot(5*x == (5*i) %% 3, 291s + identical(as.bigz(x), x), # was not the case in gmp 0.5-14 291s + identical(mx, as.array(x)), 291s + is(mx, "bigz"), dim(mx) == c(9,1), 291s + is.list(lx), 291s + identical(unlist(lx), 291s + unlist(lapply(x, unclass)))) 291s > 291s > ## remove modulus "the new way" (NULL did fail): 291s > modulus(x) <- NULL 291s > Q <- x / 2 291s > mq <- as.matrix(Q) 291s > lq <- as.list(Q) 291s > stopifnot(identical(x, as.bigz(i %% 3)), 291s + identical(mq, as.array(Q)), 291s + is(mq, "bigq"), dim(mq) == c(9,1), 291s + is.list(lq), 291s + identical(unlist(lq), 291s + unlist(lapply(Q, unclass)))) 291s > 291s > ## Check that as.bigq() is exact *and* asNumeric() is its inverse -------------- 291s > set.seed(47) 291s > summary(x1 <- rt(10000, df = 0.5)) # really long tailed 291s Min. 1st Qu. Median Mean 3rd Qu. Max. 291s -1.881e+11 -2.000e+00 0.000e+00 -1.880e+07 1.000e+00 9.875e+07 291s > summary(x2 <- rlnorm(10000, 200, 100)) 291s Min. 1st Qu. Median Mean 3rd Qu. Max. 291s 0.000e+00 2.624e+57 7.518e+86 2.256e+250 2.840e+116 2.256e+254 291s > x <- c(x1, x2) 291s > qx <- as.bigq(x) 291s > nx <- asNumeric(qx) ## asNumeric()'s method for "bigq" is internal .bigq2num() 291s > stopifnot(identical(x, nx), 291s + identical(nx, gmp:::.bigq2num(qx)) 291s + ) 291s > 291s > ## duplicated(), unique() : ---------------------- 291s > q7 <- as.bigq(-5:7, 7) 291s > if(FALSE)# not yet {well, *HARD* / impossible(?) without S4 } 291s + Q <- q7^2 * as.bigz(77)^10 291s > Q <- q7^2 * as.bigq(77, 2)^10 291s > (uQ <- unique(Q)) 291s Big Rational ('bigq') object of length 8: 291s [1] 3738102281931735025/1024 149524091277269401/64 1345716821495424609/1024 291s [4] 149524091277269401/256 149524091277269401/1024 0 291s [7] 1345716821495424609/256 7326680472586200649/1024 291s > (sDup <- sum(duplicated(Q))) # = 5 291s [1] 5 291s > stopifnot(!duplicated(uQ), 291s + sDup + length(uQ) == length(Q)) 291s > nQ <- asNumeric(Q) 291s > 291s > stopifnot( identical(duplicated(Q), duplicated(nQ)) 291s + , all.equal(unique(Q), unique(nQ)) 291s + , sort(asNumeric(unique(denominator(Q)))) == 4^c(0, 3:5) 291s + , TRUE) 291s > 291s > ## _ TODO _ rep() [times, length.out, each] 291s > checkRep <- function(x) { 291s + if((n <- length(x)) < 2) stop("'length(x)' must at least be 2, for these checks") 291s + ii <- seq_len(n) 291s + n1 <- pmin(.9*n, n-1) 291s + stopifnot(identical(rep(x, 1), x), 291s + identical(rep(x, 3), c(x,x,x)), 291s + identical(rep(x, length.out=n1), x[1:n1]) 291s + , 291s + identical(rep(x, length.out=n+2), x[c(ii,1:2)]) 291s + , ## times is *not* considered when 'length.out' is specified: 291s + identical(rep(x, 4, length.out=n+2), x[c(ii,1:2)]) 291s + , 291s + identical(rep(x, 2, length.out=n1), x[1:n1]) 291s + , 291s + identical(x, rep(x, each=2)[2*ii]) 291s + ) 291s + } 291s > 291s > checkRep(Q) 291s > checkRep(q7) 291s > (Nu <- numerator(uQ)) 291s Big Integer ('bigz') object of length 8: 291s [1] 3738102281931735025 149524091277269401 1345716821495424609 291s [4] 149524091277269401 149524091277269401 0 291s [7] 1345716821495424609 7326680472586200649 291s > checkRep(Nu) 291s > 291s > ##------ Now check that base :: pmin() / pmax() works *in simple cases* for bigz 291s > ##------ (because rep(., length.out) works: 291s > ## {{MM: compare with ~/R/Pkgs/Rmpfr/tests/arith-ex.R }} 291s > (x <- as.bigz(ix <- 2^(3* 0:7))) 291s Big Integer ('bigz') object of length 8: 291s [1] 1 8 64 512 4096 32768 262144 2097152 291s > (x9 <- pmin(x,9)) 291s Big Integer ('bigz') object of length 8: 291s [1] 1 8 9 9 9 9 9 9 291s > xp123 <- pmax(x, 123) 291s > stopifnot(x9 == c(1,8, rep(9,6)), 291s + xp123[1:3] == 123, 291s + xp123[-(1:3)] > 123) 291s > 291s > chk.pmin <- function(x) { 291s + message(deparse(sys.call()),": ") 291s + x9 <- pmin(x, 9) 291s + xp123 <- pmax(x, 123) 291s + stopifnot( 291s + identical(x, pmin(x, Inf)), 291s + identical(x9, pmin(x, 23, Inf, 9)) 291s + , identical(dim(x9), dim(x)) 291s + , identical(dim(xp123), dim(x)) 291s + ) 291s + } 291s > chk.pmin(x) 291s chk.pmin(x): 291s Warning message: 291s In matrix.bigz(x, nrow = 3) : 291s data length [8] is not a sub-multiple or multiple of the number of rows [3] in matrix 291s > mx <- matrix(x, nrow=3) # with correct warning 291s > chk.pmin(mx) 291s chk.pmin(mx): 291s Warning message: 291s In matrix.bigq(qq, nrow = 3) : 291s data length [8] is not a sub-multiple or multiple of the number of rows [3] in matrix 291s > qq <- x / 47 291s > Mq <- matrix(qq, nrow=3) # with correct warning 291s > if(FALSE) { ## FIXME: pmin() / pmax() are completely wrong for "bigq" !! 291s + chk.pmin(qq) 291s + chk.pmin(Mq) 291s + } 291s > 291s > ## [<- : Used to return a *matrix* -- not what we want! 291s > chk.subassign <- function(x, i, value) { 291s + x0 <- x 291s + x[i] <- value 291s + stopifnot(identical(dim(x0), dim(x)), # only when not indexing *outside* 291s + all(x[i] == value))# not always identical() 291s + invisible(x) 291s + } 291s > 291s > x. <- chk.subassign(x , 1, -1) 291s > q. <- chk.subassign(qq, 1, -1) 291s > q. <- chk.subassign(Mq, 1, -1) 291s > x. <- chk.subassign(mx, 1, -1) 291s > 291s > if(require("Rmpfr") && packageVersion("Rmpfr") >= "0.5-2") { 291s + stopifnot( 291s + all.equal(pmin(14, x, 9), 291s + pmin(14, ix, 9), tol=0) 291s + , 291s + all.equal(mq <- pmin(14, x/3, 9), ## numbers + bigq 291s + pmin(14, ix/3, 9), tol= 1e-15) 291s + , 291s + is.bigq(mq)) 291s + ## 291s + ## Now, does pmin etc still work for bigz {it did fail!} 291s + chk.pmin(x) 291s + if(FALSE) ## FIXME: "Rmpfr's pmin / pmax methods destroy this ==> Fix Rmpfr! 291s + chk.pmin(mx) 291s + if(FALSE) { ## FIXME: pmin() / pmax() are completely wrong for "bigq" !! 291s + chk.pmin(qq) 291s + chk.pmin(Mq) 291s + } 291s + ## 291s + ## Ditto for "[<-" : 291s + x. <- chk.subassign(x , 1, -1) 291s + q. <- chk.subassign(qq, 1, -1) 291s + q. <- chk.subassign(Mq, 1, -1) 291s + x. <- chk.subassign(mx, 1, -1) 291s + ## 291s + } else 291s + message("{Rmpfr + gmp} checks __not__ done") 291s Loading required package: Rmpfr 291s C code of R package 'Rmpfr': GMP using 32 bits per limb 291s 291s 291s Attaching package: ‘Rmpfr’ 291s 291s The following object is masked from ‘package:gmp’: 291s 291s outer 291s 291s The following objects are masked from ‘package:stats’: 291s 291s dbinom, dgamma, dnbinom, dnorm, dpois, dt, pnorm 291s 291s The following objects are masked from ‘package:base’: 291s 291s cbind, pmax, pmin, rbind 291s 292s chk.pmin(x): 292s > 292s > ##--------------------------- order(), sort.list() -------------------------- 292s > x <- as.bigz("0x123456789abcdef") # my secret message 292s > B <- x + as.bigz(2)^(110:100) 292s > (dB <- diff(B)) # now works 292s Big Integer ('bigz') object of length 10: 292s [1] -649037107316853453566312041152512 -324518553658426726783156020576256 292s [3] -162259276829213363391578010288128 -81129638414606681695789005144064 292s [5] -40564819207303340847894502572032 -20282409603651670423947251286016 292s [7] -10141204801825835211973625643008 -5070602400912917605986812821504 292s [9] -2535301200456458802993406410752 -1267650600228229401496703205376 292s > stopifnot(dB < 0, 292s + log2(-dB) == 109:100 # 2^{n+1} - 2^n == 2^n 292s + ) 292s > rev(B) # is sorted 292s Big Integer ('bigz') object of length 11: 292s [1] 1267650600228311387025919692271 2535301200456540788522622897647 292s [3] 5070602400912999591516029308399 10141204801825917197502842129903 292s [5] 20282409603651752409476467772911 40564819207303422833423719058927 292s [7] 81129638414606763681318221630959 162259276829213445377107226775023 292s [9] 324518553658426808768685237063151 649037107316853535551841257639407 292s [11] 1298074214633706989118153298791919 292s > is.unsorted(rev(B))# TRUE but should be FALSE 292s [1] TRUE 292s > if(FALSE) ## not yet 292s + identical(sort(B), rev(B)) 292s > 292s > ## all.equal() 292s > stopifnot(exprs = { 292s + is.character(all.equal(as.bigz(7), rep(7, 3))) 292s + }) 292s > 292s > ##------------------ cbind(), rbind() ------------------------------- 292s > 292s > a <- as.bigz(123); a[2] <- a[1] ; a[4] <- -4 292s > stopifnot(all.equal(a, c(123, 123, NA, -4))) # bigz <--> numeric 292s > 292s > (caa <- cbind(a,a)) # ok 292s Big Integer ('bigz') 4 x 2 matrix: 292s [,1] [,2] 292s [1,] 123 123 292s [2,] 123 123 292s [3,] NA NA 292s [4,] -4 -4 292s > stopifnot(exprs = { 292s + identical(caa, cbind(a,a, deparse.level=1)) # did prepend a column of 1 292s + identical(t(caa), rbind(a,a, deparse.level=0)) # did prepend a row of 0 292s + identical(ca2 <- cbind(a/2, a, deparse.level=0), 292s + cbind(a, a/2)[, 2:1]) # wrongly remained bigz, just using numerator... 292s + identical(ra2 <- rbind(a/2, a, deparse.level=0), 292s + rbind(a, a/2)[2:1, ]) # wrongly remained bigz ... 292s + identical(dim(ca2), c(4L, 2L)) 292s + identical(dim(ra2), c(2L, 4L)) 292s + }) 292s > 292s > 292s BEGIN TEST gmp-test.R 292s 292s R version 4.4.3 (2025-02-28) -- "Trophy Case" 292s Copyright (C) 2025 The R Foundation for Statistical Computing 292s Platform: arm-unknown-linux-gnueabihf (32-bit) 292s 292s R is free software and comes with ABSOLUTELY NO WARRANTY. 292s You are welcome to redistribute it under certain conditions. 292s Type 'license()' or 'licence()' for distribution details. 292s 292s R is a collaborative project with many contributors. 292s Type 'contributors()' for more information and 292s 'citation()' on how to cite R or R packages in publications. 292s 292s Type 'demo()' for some demos, 'help()' for on-line help, or 292s 'help.start()' for an HTML browser interface to help. 292s Type 'q()' to quit R. 292s 292s > library(gmp) 292s 292s Attaching package: ‘gmp’ 292s 292s The following objects are masked from ‘package:base’: 292s 292s %*%, apply, crossprod, matrix, tcrossprod 292s 292s > 292s > ## 292s > ##' @title Test a unary (if unary=TRUE) or *binary* function 292s > ##' @param FUN a function, such as add.bigq() ... 292s > ##' @param x a list of "numbers" 292s > ##' @param out string determining output class; if "str", use characters, otherwise double 292s > ##' @return 292s > ##' @author Antoine Lucas (& Martin Maechler) 292s > ##' @examples test(as.bigq, 0) 292s > test <- function(FUN, x, xlabs, out = "str", unary = FALSE) 292s + { 292s + if(missing(xlabs)) 292s + xlabs <- if(is.character(names(x))) names(x) else sapply(x, formatN) 292s + stopifnot(is.function(FUN), is.list(x), 292s + (n <- length(x)) >= 1, length(xlabs) == n) 292s + if(out == "str") { 292s + sortie <- as.character 292s + res <- "" 292s + error <- "error" 292s + } else { 292s + sortie <- as.double 292s + res <- 0 292s + error <- NA 292s + } 292s + nr <- if(unary) 1 else n 292s + xlabs <- gsub(" ", "", xlabs) 292s + res <- matrix(res, nr, n, 292s + dimnames = list(if(!unary) abbreviate(xlabs, 11, named=FALSE), xlabs)) 292s + for(i in 1:nr){ 292s + classNameI = class(x[[i]]) 292s + for(j in 1:n) { 292s + classNameJ = class(x[[j]]) 292s + 292s + e <- if(unary) tryCatch(FUN(x[[j]]), error=identity) else 292s + tryCatch(FUN(x[[i]],x[[j]]), error=identity) 292s + if(inherits(e, "error")) 292s + e <- error 292s + else if(length(e) == 0) 292s + e <- numeric() 292s + ## we don't test standard R floating operations. 292s + if( (classNameI[1] == "numeric" || classNameI[1] == "integer") && ( classNameJ[1] == "numeric" || classNameJ[1] == "integer") && class(e)[1] == "numeric") e <- "-" 292s + 292s + ## ## now, for some functions also compute the corresponding numeric values 292s + if(length(e) > 0 && is.double(e[1]) && is.finite(e[1])) 292s + e <- format(signif(e[1], digits=14), digits=7) # signif(), not round() 292s + 292s + res[i,j] <- sortie(e)[1] 292s + } 292s + } 292s + res ## for printing, the user may prefer as.data.frame(.) 292s + }## end{test} 292s > 292s > 292s > allfunctionid <- c("as.bigz","+","-","*", 292s + "divq.bigz","/","%%","^", 292s + "inv.bigz", "gcd.bigz", "gcdex", "lcm.bigz", 292s + "as.bigq", 292s + "chooseZ", 292s + "max","min","|","&","xor","c","cbind","rbind") 292s > unaryfunctionid <- c("log","log2","log10","c", 292s + "isprime","nextprime", "factorialZ", 292s + "sizeinbase","fibnum","fibnum2","lucnum","lucnum2", 292s + "factorize","abs","!") 292s > numericFunName <- function(gmpName) { 292s + if(gmpName != (r <- sub("[ZQ]$","", gmpName)) && 292s + r!="as" && existsFunction(r)) # e.g. chooseZ 292s + return(r) 292s + if(gmpName != (r <- sub("\\.big[zq]$","", gmpName)) && 292s + r!="as" && r!="sub" && existsFunction(r)) 292s + return(r) 292s + ttt <- c("add" = "+", 292s + "sub" = "-", 292s + "mul" = "*", 292s + "pow" = "^", 292s + "div" = "/", 292s + "divq" = "%/%", 292s + "mod" = "%%") 292s + if(!is.na(t.r <- ttt[r])) 292s + t.r[[1L]] 292s + else ## return argument 292s + gmpName 292s + } 292s > 292s > 292s > options(width = 140, nwarnings = 10000) 292s > 292s > sapply(allfunctionid, numericFunName) 292s as.bigz + - * divq.bigz / %% ^ inv.bigz gcd.bigz gcdex lcm.bigz 292s "as.bigz" "+" "-" "*" "%/%" "/" "%%" "^" "inv.bigz" "gcd" "gcdex" "lcm" 292s as.bigq chooseZ max min | & xor c cbind rbind 292s "as.bigq" "choose" "max" "min" "|" "&" "xor" "c" "cbind" "rbind" 292s > sapply(unaryfunctionid, numericFunName) 292s log log2 log10 c isprime nextprime factorialZ sizeinbase fibnum fibnum2 292s "log" "log2" "log10" "c" "isprime" "nextprime" "factorial" "sizeinbase" "fibnum" "fibnum2" 292s lucnum lucnum2 factorize abs ! 292s "lucnum" "lucnum2" "factorize" "abs" "!" 292s > 292s > 292s > ex <- expression(23,as.bigz(23),as.bigq(23),c(3,23),as.bigz(c(3,23)),as.bigq(c(3,23)), "25", 2.3, -4, 4L, 0, as.bigz(34), 292s + as.bigq(32,7), as.bigz(31,45), NULL,NA, -3L)## TODO: as.bigz(3)^700 292s > x <- lapply(ex, eval) 292s > 292s > ## Those "numbers" in x for which arithmetic should also work in double precision: 292s > ## not modulo-arithmetic, not larger than double.prec 292s > useN <- sapply(x, function(u) is.null(u[1]) || is.na(u[1]) || 292s + (is.finite(as.numeric(u[1])) && (!inherits(u[1], "bigz") || is.null(modulus(u[1]))))) 292s > names(x) <- vapply(ex, format, "") 292s > if(FALSE)## shorter & easier {but *not* the original calls from 'ex'} 292s + names(x) <- sapply(x, formatN) 292s > str(x) 292s List of 17 292s $ 23 : num 23 292s $ as.bigz(23) : 'bigz' raw 23 292s $ as.bigq(23) : 'bigq' raw 23 292s ..- attr(*, "denominator")= raw [1:16] 01 00 00 00 ... 292s $ c(3, 23) : num [1:2] 3 23 292s $ as.bigz(c(3, 23)): 'bigz' raw [1:2] 3 23 292s $ as.bigq(c(3, 23)): 'bigq' raw [1:2] 3 23 292s ..- attr(*, "denominator")= raw [1:28] 02 00 00 00 ... 292s $ 25 : chr "25" 292s $ 2.3 : num 2.3 292s $ -4 : num -4 292s $ 4 : int 4 292s $ 0 : num 0 292s $ as.bigz(34) : 'bigz' raw 34 292s $ as.bigq(32, 7) : 'bigq' raw 32/7 292s ..- attr(*, "denominator")= raw [1:16] 01 00 00 00 ... 292s $ as.bigz(31, 45) : 'bigz' raw (31 %% 45) 292s ..- attr(*, "mod")= 'bigz' raw 45 292s $ NULL : NULL 292s $ NA : logi NA 292s $ -3L : int -3 292s > x. <- x[useN] 292s > nx <- lapply(x., as.numeric) 292s > gmp.NS <- asNamespace("gmp")# also get namespace *hidden* functions, i.e. methods: 292s > for(fid in allfunctionid) 292s + { 292s + cat ("------------------------------------------\n", fid," ", sep="") 292s + FUN <- get(fid, envir = gmp.NS, mode="function") 292s + rc <- test(FUN, x ) 292s + res <- test(FUN, x. , out = "numeric") 292s + if((nfid <- numericFunName(fid)) != fid || existsFunction(nfid, where=baseenv())) { 292s + FUN <- get(nfid, envir = gmp.NS, mode="function") 292s + if(nfid != fid) cat("-> num.fn.:", nfid) 292s + nres <- test(FUN, nx, out = "numeric") 292s + cat("\n-> all.equal(target = res, current = F()): ", 292s + all.equal(res, nres), "\n") 292s + } else cat("\n\n") 292s + print(as.data.frame(rc)); cat("\n") 292s + ## ^^^^^^^^^^^^^ (for now, to diminuish difference to last version ) 292s + } 292s ------------------------------------------ 292s as.bigz 292s -> all.equal(target = res, current = F()): 'is.NA' value mismatch: 60 in current 46 in target 292s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 -4 4 0 292s 23 (0 %% 23) (0 %% 23) (0 %% 23) (2 %% 3) (2 %% 3) (2 %% 3) (23 %% 25) (1 %% 2) (3 %% -4) (3 %% 4) error 292s as.bigz(23) (0 %% 23) (0 %% 23) (0 %% 23) (2 %% 3) (2 %% 3) (2 %% 3) (23 %% 25) (1 %% 2) (3 %% -4) (3 %% 4) error 292s as.bigq(23) (0 %% 23) (0 %% 23) (0 %% 23) (2 %% 3) (2 %% 3) (2 %% 3) (23 %% 25) (1 %% 2) (3 %% -4) (3 %% 4) error 292s c(3,23) (3 %% 23) (3 %% 23) (3 %% 23) (0 %% 3) (0 %% 3) (0 %% 3) (3 %% 25) (1 %% 2) (3 %% -4) (3 %% 4) error 292s as.bgz((3,23)) (3 %% 23) (3 %% 23) (3 %% 23) (0 %% 3) (0 %% 3) (0 %% 3) (3 %% 25) (1 %% 2) (3 %% -4) (3 %% 4) error 292s as.bgq((3,23)) (3 %% 23) (3 %% 23) (3 %% 23) (0 %% 3) (0 %% 3) (0 %% 3) (3 %% 25) (1 %% 2) (3 %% -4) (3 %% 4) error 292s 25 (2 %% 23) (2 %% 23) (2 %% 23) (1 %% 3) (1 %% 3) (1 %% 3) (0 %% 25) (1 %% 2) (1 %% -4) (1 %% 4) error 292s 2.3 (2 %% 23) (2 %% 23) (2 %% 23) (2 %% 3) (2 %% 3) (2 %% 3) (2 %% 25) (0 %% 2) (2 %% -4) (2 %% 4) error 292s -4 (19 %% 23) (19 %% 23) (19 %% 23) (2 %% 3) (2 %% 3) (2 %% 3) (21 %% 25) (0 %% 2) (0 %% -4) (0 %% 4) error 292s 4 (4 %% 23) (4 %% 23) (4 %% 23) (1 %% 3) (1 %% 3) (1 %% 3) (4 %% 25) (0 %% 2) (0 %% -4) (0 %% 4) error 292s 0 (0 %% 23) (0 %% 23) (0 %% 23) (0 %% 3) (0 %% 3) (0 %% 3) (0 %% 25) (0 %% 2) (0 %% -4) (0 %% 4) error 292s as.bigz(34) (11 %% 23) (11 %% 23) (11 %% 23) (1 %% 3) (1 %% 3) (1 %% 3) (9 %% 25) (0 %% 2) (2 %% -4) (2 %% 4) error 292s as.bg(32,7) (4 %% 23) (4 %% 23) (4 %% 23) (1 %% 3) (1 %% 3) (1 %% 3) (4 %% 25) (0 %% 2) (0 %% -4) (0 %% 4) error 292s as.b(31,45) (8 %% 23) (8 %% 23) (8 %% 23) (1 %% 3) (1 %% 3) (1 %% 3) (6 %% 25) (1 %% 2) (3 %% -4) (3 %% 4) error 292s NULL 292s NA NA NA NA NA NA NA NA NA NA NA error 292s -3L (20 %% 23) (20 %% 23) (20 %% 23) (0 %% 3) (0 %% 3) (0 %% 3) (22 %% 25) (1 %% 2) (1 %% -4) (1 %% 4) error 292s as.bigz(34) as.bigq(32,7) as.bigz(31,45) NULL NA -3L 292s 23 (23 %% 34) (23 %% 32) (23 %% 31) 23 23 (2 %% -3) 292s as.bigz(23) (23 %% 34) (23 %% 32) (23 %% 31) 23 23 (2 %% -3) 292s as.bigq(23) (23 %% 34) (23 %% 32) (23 %% 31) 23 23 (2 %% -3) 292s c(3,23) (3 %% 34) (3 %% 32) (3 %% 31) 3 3 (0 %% -3) 292s as.bgz((3,23)) (3 %% 34) (3 %% 32) (3 %% 31) 3 3 (0 %% -3) 292s as.bgq((3,23)) (3 %% 34) (3 %% 32) (3 %% 31) 3 3 (0 %% -3) 292s 25 (25 %% 34) (25 %% 32) (25 %% 31) 25 25 (1 %% -3) 292s 2.3 (2 %% 34) (2 %% 32) (2 %% 31) 2 2 (2 %% -3) 292s -4 (30 %% 34) (28 %% 32) (27 %% 31) -4 -4 (2 %% -3) 292s 4 (4 %% 34) (4 %% 32) (4 %% 31) 4 4 (1 %% -3) 292s 0 (0 %% 34) (0 %% 32) (0 %% 31) 0 0 (0 %% -3) 292s as.bigz(34) (0 %% 34) (2 %% 32) (3 %% 31) 34 34 (1 %% -3) 292s as.bg(32,7) (4 %% 34) (4 %% 32) (4 %% 31) 4 4 (1 %% -3) 292s as.b(31,45) (31 %% 34) (31 %% 32) (0 %% 31) 31 31 (1 %% -3) 292s NULL 292s NA NA NA NA NA NA NA 292s -3L (31 %% 34) (29 %% 32) (28 %% 31) -3 -3 (0 %% -3) 292s 292s ------------------------------------------ 292s + 292s -> all.equal(target = res, current = F()): 'is.NA' value mismatch: 256 in current 120 in target 292s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 292s 23 - 46 46 - 26 26 292s as.bigz(23) 46 46 46 26 26 26 292s as.bigq(23) 46 46 46 26 26 26 292s c(3,23) - 26 26 - 6 6 292s as.bgz((3,23)) 26 26 26 6 6 6 292s as.bgq((3,23)) 26 26 26 6 6 6 292s 25 error 48 48 error 28 28 292s 2.3 - 25 28485267643118387/1125899906842624 - 5 5967269506265907/1125899906842624 292s -4 - 19 19 - -1 -1 292s 4 - 27 27 - 7 7 292s 0 - 23 23 - 3 3 292s as.bigz(34) 57 57 57 37 37 37 292s as.bg(32,7) 193/7 193/7 193/7 53/7 53/7 53/7 292s as.b(31,45) (9 %% 45) (9 %% 45) 54 (34 %% 45) (34 %% 45) 34 292s NULL 292s NA NA NA NA NA 292s -3L - 20 20 - 0 0 292s 25 2.3 -4 4 0 as.bigz(34) 292s 23 error - - - - 57 292s as.bigz(23) 48 25 19 27 23 57 292s as.bigq(23) 48 28485267643118387/1125899906842624 19 27 23 57 292s c(3,23) error - - - - 37 292s as.bgz((3,23)) 28 5 -1 7 3 37 292s as.bgq((3,23)) 28 5967269506265907/1125899906842624 -1 7 3 37 292s 25 error error error error error 59 292s 2.3 error - - - - 36 292s -4 error - - - - 30 292s 4 error - - 8 - 38 292s 0 error - - - - 34 292s as.bigz(34) 59 36 30 38 34 68 292s as.bg(32,7) 207/7 54155785519130213/7881299347898368 4/7 60/7 32/7 270/7 292s as.b(31,45) (11 %% 45) (33 %% 45) (27 %% 45) (35 %% 45) (31 %% 45) (20 %% 45) 292s NULL error 292s NA error NA 292s -3L error - - 1 - 31 292s as.bigq(32,7) as.bigz(31,45) NULL NA -3L 292s 23 193/7 (9 %% 45) - 292s as.bigz(23) 193/7 (9 %% 45) NA 20 292s as.bigq(23) 193/7 54 NA 20 292s c(3,23) 53/7 (34 %% 45) - 292s as.bgz((3,23)) 53/7 (34 %% 45) NA 0 292s as.bgq((3,23)) 53/7 34 NA 0 292s 25 207/7 (11 %% 45) error error error 292s 2.3 54155785519130213/7881299347898368 (33 %% 45) - 292s -4 4/7 (27 %% 45) - 292s 4 60/7 (35 %% 45) 1 292s 0 32/7 (31 %% 45) - 292s as.bigz(34) 270/7 (20 %% 45) NA 31 292s as.bg(32,7) 64/7 249/7 NA 11/7 292s as.b(31,45) 249/7 (17 %% 45) NA (28 %% 45) 292s NULL 292s NA NA NA 292s -3L 11/7 (28 %% 45) -6 292s 292s ------------------------------------------ 292s - 292s -> all.equal(target = res, current = F()): 'is.NA' value mismatch: 256 in current 114 in target 292s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 292s 23 - 0 0 - 20 20 292s as.bigz(23) 0 0 0 20 20 20 292s as.bigq(23) 0 0 0 20 20 20 292s c(3,23) - -20 -20 - 0 0 292s as.bgz((3,23)) -20 -20 -20 0 0 0 292s as.bgq((3,23)) -20 -20 -20 0 0 0 292s 25 error 2 2 error 22 22 292s 2.3 - -21 -23306128071642317/1125899906842624 - -1 -788129934789837/1125899906842624 292s -4 - -27 -27 - -7 -7 292s 4 - -19 -19 - 1 1 292s 0 - -23 -23 - -3 -3 292s as.bigz(34) 11 11 11 31 31 31 292s as.bg(32,7) -129/7 -129/7 -129/7 11/7 11/7 11/7 292s as.b(31,45) (8 %% 45) (8 %% 45) 8 (28 %% 45) (28 %% 45) 28 292s NULL 292s NA NA NA NA NA 292s -3L - -26 -26 - -6 -6 292s 25 2.3 -4 4 0 as.bigz(34) 292s 23 error - - - - -11 292s as.bigz(23) -2 21 27 19 23 -11 292s as.bigq(23) -2 23306128071642317/1125899906842624 27 19 23 -11 292s c(3,23) error - - - - -31 292s as.bgz((3,23)) -22 1 7 -1 3 -31 292s as.bgq((3,23)) -22 788129934789837/1125899906842624 7 -1 3 -31 292s 25 error error error error error -9 292s 2.3 error - - - - -32 292s -4 error - - - - -38 292s 4 error - - 0 - -30 292s 0 error - - - - -34 292s as.bigz(34) 9 32 38 30 34 0 292s as.bg(32,7) -143/7 17901808518797723/7881299347898368 60/7 4/7 32/7 -206/7 292s as.b(31,45) (6 %% 45) (29 %% 45) (35 %% 45) (27 %% 45) (31 %% 45) (42 %% 45) 292s NULL error 292s NA error NA 292s -3L error - - -7 - -37 292s as.bigq(32,7) as.bigz(31,45) NULL NA -3L 292s 23 129/7 (37 %% 45) - 292s as.bigz(23) 129/7 (37 %% 45) -23 NA 26 292s as.bigq(23) 129/7 -8 -23 NA 26 292s c(3,23) -11/7 (17 %% 45) - 292s as.bgz((3,23)) -11/7 (17 %% 45) -3 NA 6 292s as.bgq((3,23)) -11/7 -28 -3 NA 6 292s 25 143/7 (39 %% 45) error error error 292s 2.3 -17901808518797723/7881299347898368 (16 %% 45) - 292s -4 -60/7 (10 %% 45) - 292s 4 -4/7 (18 %% 45) 7 292s 0 -32/7 (14 %% 45) - 292s as.bigz(34) 206/7 (3 %% 45) -34 NA 37 292s as.bg(32,7) 0 -185/7 -32/7 NA 53/7 292s as.b(31,45) 185/7 (0 %% 45) (14 %% 45) NA (34 %% 45) 292s NULL 292s NA NA NA 292s -3L -53/7 (11 %% 45) 0 292s 292s ------------------------------------------ 292s * 292s -> all.equal(target = res, current = F()): 'is.NA' value mismatch: 256 in current 120 in target 292s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 292s 23 - 529 529 - 69 69 292s as.bigz(23) 529 529 529 69 69 69 292s as.bigq(23) 529 529 529 69 69 69 292s c(3,23) - 69 69 - 9 9 292s as.bgz((3,23)) 69 69 69 9 9 9 292s as.bgq((3,23)) 69 69 69 9 9 9 292s 25 error 575 575 error 75 75 292s 2.3 - 46 59560105071974805/1125899906842624 - 6 7768709357214105/1125899906842624 292s -4 - -92 -92 - -12 -12 292s 4 - 92 92 - 12 12 292s 0 - 0 0 - 0 0 292s as.bigz(34) 782 782 782 102 102 102 292s as.bg(32,7) 736/7 736/7 736/7 96/7 96/7 96/7 292s as.b(31,45) (38 %% 45) (38 %% 45) 713 (3 %% 45) (3 %% 45) 93 292s NULL 292s NA NA NA NA NA 292s -3L - -69 -69 - -9 -9 292s 25 2.3 -4 4 0 as.bigz(34) as.bigq(32,7) 292s 23 error - - - - 782 736/7 292s as.bigz(23) 575 46 -92 92 0 782 736/7 292s as.bigq(23) 575 59560105071974805/1125899906842624 -92 92 0 782 736/7 292s c(3,23) error - - - - 102 96/7 292s as.bgz((3,23)) 75 6 -12 12 0 102 96/7 292s as.bgq((3,23)) 75 7768709357214105/1125899906842624 -12 12 0 102 96/7 292s 25 error error error error error 850 800/7 292s 2.3 error - - - - 68 2589569785738035/246290604621824 292s -4 error - - - - -136 -128/7 292s 4 error - - 16 - 136 128/7 292s 0 error - - - - 0 0 292s as.bigz(34) 850 68 -136 136 0 1156 1088/7 292s as.bg(32,7) 800/7 2589569785738035/246290604621824 -128/7 128/7 0 1088/7 1024/49 292s as.b(31,45) (10 %% 45) (17 %% 45) (11 %% 45) (34 %% 45) (0 %% 45) (19 %% 45) 992/7 292s NULL error 292s NA error NA NA 292s -3L error - - -12 - -102 -96/7 292s as.bigz(31,45) NULL NA -3L 292s 23 (38 %% 45) - 292s as.bigz(23) (38 %% 45) NA -69 292s as.bigq(23) 713 NA -69 292s c(3,23) (3 %% 45) - 292s as.bgz((3,23)) (3 %% 45) NA -9 292s as.bgq((3,23)) 93 NA -9 292s 25 (10 %% 45) error error error 292s 2.3 (17 %% 45) - 292s -4 (11 %% 45) - 292s 4 (34 %% 45) -12 292s 0 (0 %% 45) - 292s as.bigz(34) (19 %% 45) NA -102 292s as.bg(32,7) 992/7 NA -96/7 292s as.b(31,45) (16 %% 45) NA (42 %% 45) 292s NULL 292s NA NA 292s -3L (42 %% 45) 9 292s 292s ------------------------------------------ 292s divq.bigz -> num.fn.: %/% 292s -> all.equal(target = res, current = F()): 'is.NA' value mismatch: 256 in current 102 in target 292s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 -4 4 292s 23 1 1 error 7 7 error 0 11 -6 5 292s as.bigz(23) 1 1 error 7 7 error 0 11 -6 5 292s as.bigq(23) 1 1 error 7 7 error 0 11 -6 5 292s c(3,23) 0 0 error 1 1 error 0 1 -1 0 292s as.bgz((3,23)) 0 0 error 1 1 error 0 1 -1 0 292s as.bgq((3,23)) 0 0 error 1 1 error 0 1 -1 0 292s 25 1 1 error 8 8 error 1 12 -7 6 292s 2.3 0 0 error 0 0 error 0 1 -1 0 292s -4 -1 -1 error -2 -2 error -1 -2 1 -1 292s 4 0 0 error 1 1 error 0 2 -1 1 292s 0 0 0 error 0 0 error 0 0 0 0 292s as.bigz(34) 1 1 error 11 11 error 1 17 -9 8 292s as.bg(32,7) 1 1 error 10 10 error 1 16 -8 8 292s as.b(31,45) (1 %% 45) (1 %% 45) error (10 %% 45) (10 %% 45) error (1 %% 45) (15 %% 45) (37 %% 45) (7 %% 45) 292s NULL error error 292s NA NA NA error NA NA error NA NA NA NA 292s -3L -1 -1 error -1 -1 error -1 -2 0 -1 292s 0 as.bigz(34) as.bigq(32,7) as.bigz(31,45) NULL NA -3L 292s 23 NA 0 5 (0 %% 45) NA -8 292s as.bigz(23) NA 0 5 (0 %% 45) NA -8 292s as.bigq(23) NA 0 5 (0 %% 45) NA -8 292s c(3,23) NA 0 0 (0 %% 45) NA -1 292s as.bgz((3,23)) NA 0 0 (0 %% 45) NA -1 292s as.bgq((3,23)) NA 0 0 (0 %% 45) NA -1 292s 25 NA 0 6 (0 %% 45) NA -9 292s 2.3 NA 0 0 (0 %% 45) NA -1 292s -4 NA -1 -1 (44 %% 45) NA 1 292s 4 NA 0 1 (0 %% 45) NA -2 292s 0 NA 0 0 (0 %% 45) NA 0 292s as.bigz(34) NA 1 8 (1 %% 45) NA -12 292s as.bg(32,7) NA 0 8 (1 %% 45) NA -11 292s as.b(31,45) NA (0 %% 45) (7 %% 45) (1 %% 45) NA (34 %% 45) 292s NULL 292s NA NA NA NA NA NA NA 292s -3L NA -1 -1 (44 %% 45) NA 1 292s 292s ------------------------------------------ 292s / 292s -> all.equal(target = res, current = F()): 'is.NA' value mismatch: 256 in current 130 in target 292s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) 292s 23 - 1 1 - 23/3 292s as.bigz(23) 1 1 1 23/3 23/3 292s as.bigq(23) 1 1 1 23/3 23/3 292s c(3,23) - 3/23 3/23 - 1 292s as.bgz((3,23)) 3/23 3/23 3/23 1 1 292s as.bgq((3,23)) 3/23 3/23 3/23 1 1 292s 25 error 25/23 25/23 error 25/3 292s 2.3 - 2589569785738035/25895697857380352 2589569785738035/25895697857380352 - 863189928579345/1125899906842624 292s -4 - -4/23 -4/23 - -4/3 292s 4 - 4/23 4/23 - 4/3 292s 0 - 0 0 - 0 292s as.bigz(34) 34/23 34/23 34/23 34/3 34/3 292s as.bg(32,7) 32/161 32/161 32/161 32/21 32/21 292s as.b(31,45) (17 %% 45) (17 %% 45) 31/23 NA NA 292s NULL 292s NA NA NA NA 292s -3L - -3/23 -3/23 - -1 292s as.bigq(c(3,23)) 25 2.3 -4 4 0 292s 23 23/3 error - - - - 292s as.bigz(23) 23/3 23/25 25895697857380352/2589569785738035 -23/4 23/4 error 292s as.bigq(23) 23/3 23/25 25895697857380352/2589569785738035 -23/4 23/4 error 292s c(3,23) 1 error - - - - 292s as.bgz((3,23)) 1 3/25 1125899906842624/863189928579345 -3/4 3/4 error 292s as.bgq((3,23)) 1 3/25 1125899906842624/863189928579345 -3/4 3/4 error 292s 25 25/3 error error error error error 292s 2.3 863189928579345/1125899906842624 error - - - - 292s -4 -4/3 error - - - - 292s 4 4/3 error - - - - 292s 0 0 error - - - - 292s as.bigz(34) 34/3 34/25 38280596832649216/2589569785738035 -17/2 17/2 error 292s as.bg(32,7) 32/21 32/175 36028797018963968/18126988500166245 -8/7 8/7 error 292s as.b(31,45) 31/3 NA (38 %% 45) (26 %% 45) (19 %% 45) NA 292s NULL error 292s NA NA error 292s -3L -1 error - - - - 292s as.bigz(34) as.bigq(32,7) as.bigz(31,45) NULL NA -3L 292s 23 23/34 161/32 (8 %% 45) - 292s as.bigz(23) 23/34 161/32 (8 %% 45) NA -23/3 292s as.bigq(23) 23/34 161/32 23/31 NA -23/3 292s c(3,23) 3/34 21/32 (3 %% 45) - 292s as.bgz((3,23)) 3/34 21/32 (3 %% 45) NA -1 292s as.bgq((3,23)) 3/34 21/32 3/31 NA -1 292s 25 25/34 175/32 (40 %% 45) error error error 292s 2.3 2589569785738035/38280596832649216 18126988500166245/36028797018963968 (32 %% 45) - 292s -4 -2/17 -7/8 (26 %% 45) - 292s 4 2/17 7/8 (19 %% 45) - 292s 0 0 0 (0 %% 45) - 292s as.bigz(34) 1 119/16 (4 %% 45) NA -34/3 292s as.bg(32,7) 16/119 1 32/217 NA -32/21 292s as.b(31,45) (34 %% 45) 217/32 (1 %% 45) NA NA 292s NULL 292s NA NA NA NA 292s -3L -3/34 -21/32 (42 %% 45) - 292s 292s ------------------------------------------ 292s %% 292s -> all.equal(target = res, current = F()): 'is.NA' value mismatch: 256 in current 186 in target 292s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 -4 4 0 292s 23 - 0 error - 2 error error - - - - 292s as.bigz(23) 0 0 error 2 2 error 23 1 3 3 NA 292s as.bigq(23) error 0 error error 2 error error error error error error 292s c(3,23) - 3 error - 0 error error - - - - 292s as.bgz((3,23)) 3 3 error 0 0 error 3 1 3 3 NA 292s as.bgq((3,23)) error 3 error error 0 error error error error error error 292s 25 error 2 error error 1 error error error error error error 292s 2.3 - 2 error - 2 error error - - - - 292s -4 - 19 error - 2 error error - - - - 292s 4 - 4 error - 1 error error - - 0 - 292s 0 - 0 error - 0 error error - - - - 292s as.bigz(34) 11 11 error 1 1 error 9 0 2 2 NA 292s as.bg(32,7) error 9 error error 2 error error error error error error 292s as.b(31,45) (8 %% 23) (8 %% 23) error (1 %% 3) (1 %% 3) error (6 %% 25) (1 %% 2) (3 %% -4) (3 %% 4) NA 292s NULL error error error 292s NA NA error NA error error NaN 292s -3L - 20 error - 0 error error - - 1 - 292s as.bigz(34) as.bigq(32,7) as.bigz(31,45) NULL NA -3L 292s 23 23 error (23 %% 31) - 292s as.bigz(23) 23 3 (23 %% 31) NA 2 292s as.bigq(23) 23 error (23 %% 31) error error error 292s c(3,23) 3 error (3 %% 31) - 292s as.bgz((3,23)) 3 3 (3 %% 31) NA 0 292s as.bgq((3,23)) 3 error (3 %% 31) error error error 292s 25 25 error (25 %% 31) error error error 292s 2.3 2 error (2 %% 31) - 292s -4 30 error (27 %% 31) - 292s 4 4 error (4 %% 31) -2 292s 0 0 error (0 %% 31) - 292s as.bigz(34) 0 2 (3 %% 31) NA 1 292s as.bg(32,7) 32 error (1 %% 31) error error error 292s as.b(31,45) (31 %% 34) (3 %% 4) (0 %% 31) NA (1 %% -3) 292s NULL error 292s NA NA error NA 292s -3L 31 error (28 %% 31) 0 292s 292s ------------------------------------------ 292s ^ 292s -> all.equal(target = res, current = F()): 'is.NA' value mismatch: 256 in current 143 in target 292s 23 as.bigz(23) 292s 23 - 20880467999847912034355032910567 292s as.bigz(23) 20880467999847912034355032910567 20880467999847912034355032910567 292s as.bigq(23) 20880467999847912034355032910567 20880467999847912034355032910567 292s c(3,23) - 94143178827 292s as.bgz((3,23)) 94143178827 94143178827 292s as.bgq((3,23)) 94143178827 94143178827 292s 25 error 142108547152020037174224853515625 292s 2.3 - 8388608 292s -4 - -70368744177664 292s 4 - 70368744177664 292s 0 - 0 292s as.bigz(34) 167500108222301408246337399112597504 167500108222301408246337399112597504 292s as.bg(32,7) 41538374868278621028243970633760768/27368747340080916343 41538374868278621028243970633760768/27368747340080916343 292s as.b(31,45) (16 %% 45) (16 %% 45) 292s NULL 292s NA NA 292s -3L - -94143178827 292s as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 292s 23 20880467999847912034355032910567 - 12167 12167 292s as.bigz(23) 20880467999847912034355032910567 12167 12167 12167 292s as.bigq(23) 20880467999847912034355032910567 12167 12167 12167 292s c(3,23) 94143178827 - 27 27 292s as.bgz((3,23)) 94143178827 27 27 27 292s as.bgq((3,23)) 94143178827 27 27 27 292s 25 142108547152020037174224853515625 error 15625 15625 292s 2.3 8388608 - 8 8 292s -4 -70368744177664 - -64 -64 292s 4 70368744177664 - 64 64 292s 0 0 - 0 0 292s as.bigz(34) 167500108222301408246337399112597504 39304 39304 39304 292s as.bg(32,7) 41538374868278621028243970633760768/27368747340080916343 32768/343 32768/343 32768/343 292s as.b(31,45) (16 %% 45) (1 %% 45) (1 %% 45) (1 %% 45) 292s NULL 292s NA NA NA NA 292s -3L -94143178827 - -27 -27 292s 25 2.3 -4 4 0 292s 23 error - - - - 292s as.bigz(23) 11045767571919545466173812409689943 error 1/279841 279841 1 292s as.bigq(23) 11045767571919545466173812409689943 error 1/279841 279841 1 292s c(3,23) error - - - - 292s as.bgz((3,23)) 847288609443 error 1/81 81 1 292s as.bgq((3,23)) 847288609443 error 1/81 81 1 292s 25 error error error error error 292s 2.3 error - - - - 292s -4 error - - - - 292s 4 error - - - - 292s 0 error - - - - 292s as.bigz(34) 193630125104980427932766033374162714624 error 1/1336336 1336336 1 292s as.bg(32,7) 42535295865117307932921825928971026432/1341068619663964900807 error 2401/1048576 1048576/2401 1 292s as.b(31,45) (31 %% 45) error (16 %% 45) (31 %% 45) (1 %% 45) 292s NULL error 292s NA error 1 292s -3L error - - - - 292s as.bigz(34) as.bigq(32,7) 292s 23 19895113660064588580108197261066338165074766609 error 292s as.bigz(23) 19895113660064588580108197261066338165074766609 error 292s as.bigq(23) 19895113660064588580108197261066338165074766609 error 292s c(3,23) 16677181699666569 error 292s as.bgz((3,23)) 16677181699666569 error 292s as.bgq((3,23)) 16677181699666569 error 292s 25 338813178901720135627329000271856784820556640625 error 292s 2.3 17179869184 error 292s -4 295147905179352825856 error 292s 4 295147905179352825856 error 292s 0 0 error 292s as.bigz(34) 11756638905368616011414050501310355554617941909569536 error 292s as.bg(32,7) 1496577676626844588240573268701473812127674924007424/54116956037952111668959660849 error 292s as.b(31,45) (31 %% 45) error 292s NULL error 292s NA NA error 292s -3L 16677181699666569 error 292s as.bigz(31,45) NULL NA -3L 292s 23 (32 %% 45) - 292s as.bigz(23) (32 %% 45) NA 1/12167 292s as.bigq(23) 1635170022196481349560959748587682926364327 NA 1/12167 292s c(3,23) (27 %% 45) - 292s as.bgz((3,23)) (27 %% 45) NA 1/27 292s as.bgq((3,23)) 617673396283947 NA 1/27 292s 25 (25 %% 45) error error error 292s 2.3 (38 %% 45) - 292s -4 (41 %% 45) - 292s 4 (4 %% 45) - 292s 0 (0 %% 45) - 292s as.bigz(34) (34 %% 45) NA 1/39304 292s as.bg(32,7) 45671926166590716193865151022383844364247891968/157775382034845806615042743 NA 343/32768 292s as.b(31,45) (31 %% 45) NA (1 %% 45) 292s NULL 292s NA NA 292s -3L (18 %% 45) - 292s 292s ------------------------------------------ 292s inv.bigz 292s -> all.equal(target = res, current = F()): Mean relative difference: 0.6402439 292s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 -4 4 0 292s 23 NA NA NA 2 2 2 12 1 3 3 NA 292s as.bigz(23) NA NA NA 2 2 2 12 1 3 3 NA 292s as.bigq(23) NA NA NA 2 2 2 12 1 3 3 NA 292s c(3,23) 8 8 8 NA NA NA 17 1 3 3 NA 292s as.bgz((3,23)) 8 8 8 NA NA NA 17 1 3 3 NA 292s as.bgq((3,23)) 8 8 8 NA NA NA 17 1 3 3 NA 292s 25 12 12 12 1 1 1 NA 1 1 1 NA 292s 2.3 12 12 12 2 2 2 13 NA NA NA NA 292s -4 17 17 17 2 2 2 6 NA NA NA NA 292s 4 6 6 6 1 1 1 19 NA NA NA NA 292s 0 NA NA NA NA NA NA NA NA NA NA NA 292s as.bigz(34) 21 21 21 1 1 1 14 NA NA NA NA 292s as.bg(32,7) 18 18 18 2 2 2 18 NA NA NA NA 292s as.b(31,45) (3 %% 45) (3 %% 45) (3 %% 45) (1 %% 45) (1 %% 45) (1 %% 45) (21 %% 45) (1 %% 45) (3 %% 45) (3 %% 45) NA 292s NULL 292s NA NA NA NA NA NA NA NA NA NA NA NA 292s -3L 15 15 15 NA NA NA 8 1 1 1 NA 292s as.bigz(34) as.bigq(32,7) as.bigz(31,45) NULL NA -3L 292s 23 3 7 (27 %% 45) NA 2 292s as.bigz(23) 3 7 (27 %% 45) NA 2 292s as.bigq(23) 3 7 (27 %% 45) NA 2 292s c(3,23) 23 11 (21 %% 45) NA NA 292s as.bgz((3,23)) 23 11 (21 %% 45) NA NA 292s as.bgq((3,23)) 23 11 (21 %% 45) NA NA 292s 25 15 9 (5 %% 45) NA 1 292s 2.3 NA NA (16 %% 45) NA 2 292s -4 NA NA (23 %% 45) NA 2 292s 4 NA NA (8 %% 45) NA 1 292s 0 NA NA NA NA NA 292s as.bigz(34) NA NA (21 %% 45) NA 1 292s as.bg(32,7) NA NA (1 %% 45) NA 2 292s as.b(31,45) (11 %% 45) (31 %% 45) NA NA (1 %% 45) 292s NULL 292s NA NA NA NA NA NA 292s -3L 11 21 (10 %% 45) NA NA 292s 292s ------------------------------------------ 292s gcd.bigz -> num.fn.: gcd 292s -> all.equal(target = res, current = F()): Mean relative difference: 0.875 292s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 -4 4 292s 23 23 23 23 1 1 1 1 1 1 1 292s as.bigz(23) 23 23 23 1 1 1 1 1 1 1 292s as.bigq(23) 23 23 23 1 1 1 1 1 1 1 292s c(3,23) 1 1 1 3 3 3 1 1 1 1 292s as.bgz((3,23)) 1 1 1 3 3 3 1 1 1 1 292s as.bgq((3,23)) 1 1 1 3 3 3 1 1 1 1 292s 25 1 1 1 1 1 1 25 1 1 1 292s 2.3 1 1 1 1 1 1 1 2 2 2 292s -4 1 1 1 1 1 1 1 2 4 4 292s 4 1 1 1 1 1 1 1 2 4 4 292s 0 23 23 23 3 3 3 25 2 4 4 292s as.bigz(34) 1 1 1 1 1 1 1 2 2 2 292s as.bg(32,7) 1 1 1 1 1 1 1 2 4 4 292s as.b(31,45) (1 %% 45) (1 %% 45) (1 %% 45) (1 %% 45) (1 %% 45) (1 %% 45) (1 %% 45) (1 %% 45) (1 %% 45) (1 %% 45) 292s NULL 292s NA NA NA NA NA NA NA NA NA NA NA 292s -3L 1 1 1 3 3 3 1 1 1 1 292s 0 as.bigz(34) as.bigq(32,7) as.bigz(31,45) NULL NA -3L 292s 23 23 1 1 (1 %% 45) NA 1 292s as.bigz(23) 23 1 1 (1 %% 45) NA 1 292s as.bigq(23) 23 1 1 (1 %% 45) NA 1 292s c(3,23) 3 1 1 (1 %% 45) NA 3 292s as.bgz((3,23)) 3 1 1 (1 %% 45) NA 3 292s as.bgq((3,23)) 3 1 1 (1 %% 45) NA 3 292s 25 25 1 1 (1 %% 45) NA 1 292s 2.3 2 2 2 (1 %% 45) NA 1 292s -4 4 2 4 (1 %% 45) NA 1 292s 4 4 2 4 (1 %% 45) NA 1 292s 0 0 34 32 (31 %% 45) NA 3 292s as.bigz(34) 34 34 2 (1 %% 45) NA 1 292s as.bg(32,7) 32 2 32 (1 %% 45) NA 1 292s as.b(31,45) (31 %% 45) (1 %% 45) (1 %% 45) (31 %% 45) NA (1 %% 45) 292s NULL 292s NA NA NA NA NA NA NA 292s -3L 3 1 1 (1 %% 45) NA 3 292s 292s ------------------------------------------ 292s gcdex 292s -> all.equal(target = res, current = F()): Mean relative difference: 0.875 292s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 -4 4 0 as.bigz(34) as.bigq(32,7) 292s 23 23 23 23 - 1 1 1 1 23 1 1 292s as.bigz(23) 23 23 23 1 1 1 1 23 1 1 292s as.bigq(23) 23 23 23 1 1 1 1 23 1 1 292s c(3,23) - 3 3 3 - - - - 292s as.bgz((3,23)) 3 3 3 292s as.bgq((3,23)) 3 3 3 292s 25 1 1 1 25 1 1 1 25 1 1 292s 2.3 1 1 1 - 1 2 2 2 2 2 2 292s -4 1 1 1 - 1 2 4 4 4 2 4 292s 4 1 1 1 - 1 2 4 4 4 2 4 292s 0 23 23 23 - 25 2 4 4 0 34 32 292s as.bigz(34) 1 1 1 1 2 2 2 34 34 2 292s as.bg(32,7) 1 1 1 1 2 4 4 32 2 32 292s as.b(31,45) 1 1 1 1 1 1 1 31 1 1 292s NULL 292s NA 23 23 23 25 2 4 4 0 34 32 292s -3L 1 1 1 - 1 1 1 1 3 1 1 292s as.bigz(31,45) NULL NA -3L 292s 23 1 23 1 292s as.bigz(23) 1 23 1 292s as.bigq(23) 1 23 1 292s c(3,23) - 292s as.bgz((3,23)) 292s as.bgq((3,23)) 292s 25 1 25 1 292s 2.3 1 2 1 292s -4 1 4 1 292s 4 1 4 1 292s 0 31 0 3 292s as.bigz(34) 1 34 1 292s as.bg(32,7) 1 32 1 292s as.b(31,45) 31 31 1 292s NULL 292s NA 31 0 3 292s -3L 1 3 3 292s 292s ------------------------------------------ 292s lcm.bigz -> num.fn.: lcm 292s -> all.equal(target = res, current = F()): 'is.NA' value mismatch: 256 in current 60 in target 292s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 -4 4 292s 23 23 23 23 69 69 69 575 46 92 92 292s as.bigz(23) 23 23 23 69 69 69 575 46 92 92 292s as.bigq(23) 23 23 23 69 69 69 575 46 92 92 292s c(3,23) 69 69 69 3 3 3 75 6 12 12 292s as.bgz((3,23)) 69 69 69 3 3 3 75 6 12 12 292s as.bgq((3,23)) 69 69 69 3 3 3 75 6 12 12 292s 25 575 575 575 75 75 75 25 50 100 100 292s 2.3 46 46 46 6 6 6 50 2 4 4 292s -4 92 92 92 12 12 12 100 4 4 4 292s 4 92 92 92 12 12 12 100 4 4 4 292s 0 0 0 0 0 0 0 0 0 0 0 292s as.bigz(34) 782 782 782 102 102 102 850 34 68 68 292s as.bg(32,7) 736 736 736 96 96 96 800 32 32 32 292s as.b(31,45) (38 %% 45) (38 %% 45) (38 %% 45) (3 %% 45) (3 %% 45) (3 %% 45) (10 %% 45) (17 %% 45) (34 %% 45) (34 %% 45) 292s NULL 292s NA NA NA NA NA NA NA NA NA NA NA 292s -3L 69 69 69 3 3 3 75 6 12 12 292s 0 as.bigz(34) as.bigq(32,7) as.bigz(31,45) NULL NA -3L 292s 23 0 782 736 (38 %% 45) NA 69 292s as.bigz(23) 0 782 736 (38 %% 45) NA 69 292s as.bigq(23) 0 782 736 (38 %% 45) NA 69 292s c(3,23) 0 102 96 (3 %% 45) NA 3 292s as.bgz((3,23)) 0 102 96 (3 %% 45) NA 3 292s as.bgq((3,23)) 0 102 96 (3 %% 45) NA 3 292s 25 0 850 800 (10 %% 45) NA 75 292s 2.3 0 34 32 (17 %% 45) NA 6 292s -4 0 68 32 (34 %% 45) NA 12 292s 4 0 68 32 (34 %% 45) NA 12 292s 0 0 0 0 (0 %% 45) NA 0 292s as.bigz(34) 0 34 544 (19 %% 45) NA 102 292s as.bg(32,7) 0 544 32 (2 %% 45) NA 96 292s as.b(31,45) (0 %% 45) (19 %% 45) (2 %% 45) (31 %% 45) NA (3 %% 45) 292s NULL 292s NA NA NA NA NA NA NA 292s -3L 0 102 96 (3 %% 45) NA 3 292s 292s ------------------------------------------ 292s as.bigq 292s -> all.equal(target = res, current = F()): TRUE 292s 23 as.bigz(23) as.bigq(23) 292s 23 1 1 1 292s as.bigz(23) 1 1 1 292s as.bigq(23) 1 1 1 292s c(3,23) 3/23 3/23 3/23 292s as.bgz((3,23)) 3/23 3/23 3/23 292s as.bgq((3,23)) 3/23 3/23 3/23 292s 25 25/23 25/23 25/23 292s 2.3 2589569785738035/25895697857380352 2589569785738035/25895697857380352 2589569785738035/25895697857380352 292s -4 -4/23 -4/23 -4/23 292s 4 4/23 4/23 4/23 292s 0 0 0 0 292s as.bigz(34) 34/23 34/23 34/23 292s as.bg(32,7) 32/161 32/161 32/161 292s as.b(31,45) 31/23 31/23 31/23 292s NULL 292s NA NA NA NA 292s -3L -3/23 -3/23 -3/23 292s c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 292s 23 23/3 23/3 23/3 292s as.bigz(23) 23/3 23/3 23/3 292s as.bigq(23) 23/3 23/3 23/3 292s c(3,23) 1 1 1 292s as.bgz((3,23)) 1 1 1 292s as.bgq((3,23)) 1 1 1 292s 25 25/3 25/3 25/3 292s 2.3 863189928579345/1125899906842624 863189928579345/1125899906842624 863189928579345/1125899906842624 292s -4 -4/3 -4/3 -4/3 292s 4 4/3 4/3 4/3 292s 0 0 0 0 292s as.bigz(34) 34/3 34/3 34/3 292s as.bg(32,7) 32/21 32/21 32/21 292s as.b(31,45) 31/3 31/3 31/3 292s NULL 292s NA NA NA NA 292s -3L -1 -1 -1 292s 25 2.3 -4 292s 23 23/25 25895697857380352/2589569785738035 -23/4 292s as.bigz(23) 23/25 25895697857380352/2589569785738035 -23/4 292s as.bigq(23) 23/25 25895697857380352/2589569785738035 -23/4 292s c(3,23) 3/25 1125899906842624/863189928579345 -3/4 292s as.bgz((3,23)) 3/25 1125899906842624/863189928579345 -3/4 292s as.bgq((3,23)) 3/25 1125899906842624/863189928579345 -3/4 292s 25 1 5629499534213120/517913957147607 -25/4 292s 2.3 517913957147607/5629499534213120 1 -2589569785738035/4503599627370496 292s -4 -4/25 -4503599627370496/2589569785738035 1 292s 4 4/25 4503599627370496/2589569785738035 -1 292s 0 0 0 0 292s as.bigz(34) 34/25 38280596832649216/2589569785738035 -17/2 292s as.bg(32,7) 32/175 36028797018963968/18126988500166245 -8/7 292s as.b(31,45) 31/25 34902897112121344/2589569785738035 -31/4 292s NULL 292s NA NA NA NA 292s -3L -3/25 -1125899906842624/863189928579345 3/4 292s 4 0 as.bigz(34) as.bigq(32,7) 292s 23 23/4 error 23/34 161/32 292s as.bigz(23) 23/4 error 23/34 161/32 292s as.bigq(23) 23/4 error 23/34 161/32 292s c(3,23) 3/4 error 3/34 21/32 292s as.bgz((3,23)) 3/4 error 3/34 21/32 292s as.bgq((3,23)) 3/4 error 3/34 21/32 292s 25 25/4 error 25/34 175/32 292s 2.3 2589569785738035/4503599627370496 error 2589569785738035/38280596832649216 18126988500166245/36028797018963968 292s -4 -1 error -2/17 -7/8 292s 4 1 error 2/17 7/8 292s 0 0 error 0 0 292s as.bigz(34) 17/2 error 1 119/16 292s as.bg(32,7) 8/7 error 16/119 1 292s as.b(31,45) 31/4 error 31/34 217/32 292s NULL 292s NA NA NA NA NA 292s -3L -3/4 error -3/34 -21/32 292s as.bigz(31,45) NULL NA -3L 292s 23 23/31 NA -23/3 292s as.bigz(23) 23/31 NA -23/3 292s as.bigq(23) 23/31 NA -23/3 292s c(3,23) 3/31 NA -1 292s as.bgz((3,23)) 3/31 NA -1 292s as.bgq((3,23)) 3/31 NA -1 292s 25 25/31 NA -25/3 292s 2.3 2589569785738035/34902897112121344 NA -863189928579345/1125899906842624 292s -4 -4/31 NA 4/3 292s 4 4/31 NA -4/3 292s 0 0 NA 0 292s as.bigz(34) 34/31 NA -34/3 292s as.bg(32,7) 32/217 NA -32/21 292s as.b(31,45) 1 NA -31/3 292s NULL 292s NA NA NA NA 292s -3L -3/31 NA 1 292s 292s ------------------------------------------ 292s chooseZ -> num.fn.: choose 292s -> all.equal(target = res, current = F()): 'is.NA' value mismatch: 256 in current 31 in target 292s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 -4 4 0 as.bigz(34) 292s 23 1 1 1 1771 1771 1771 0 253 0 8855 1 0 292s as.bigz(23) 1 1 1 1771 1771 1771 0 253 0 8855 1 0 292s as.bigq(23) 1 1 1 1771 1771 1771 0 253 0 8855 1 0 292s c(3,23) 0 0 0 1 1 1 0 3 0 0 1 0 292s as.bgz((3,23)) 0 0 0 1 1 1 0 3 0 0 1 0 292s as.bgq((3,23)) 0 0 0 1 1 1 0 3 0 0 1 0 292s 25 300 300 300 2300 2300 2300 1 300 0 12650 1 0 292s 2.3 0 0 0 0 0 0 0 1 0 0 1 0 292s -4 -2600 -2600 -2600 -20 -20 -20 -3276 10 0 35 1 7770 292s 4 0 0 0 4 4 4 0 6 0 1 1 0 292s 0 0 0 0 0 0 0 0 0 0 0 1 0 292s as.bigz(34) 286097760 286097760 286097760 5984 5984 5984 52451256 561 0 46376 1 1 292s as.bg(32,7) 28048800 28048800 28048800 4960 4960 4960 3365856 496 0 35960 1 0 292s as.b(31,45) 7888725 7888725 7888725 4495 4495 4495 736281 465 0 31465 1 0 292s NULL 292s NA 0 0 0 0 0 0 0 0 0 0 1 0 292s -3L -300 -300 -300 -10 -10 -10 -351 6 0 15 1 630 292s as.bigq(32,7) as.bigz(31,45) NULL NA -3L 292s 23 8855 0 0 0 292s as.bigz(23) 8855 0 0 0 292s as.bigq(23) 8855 0 0 0 292s c(3,23) 0 0 0 0 292s as.bgz((3,23)) 0 0 0 0 292s as.bgq((3,23)) 0 0 0 0 292s 25 12650 0 0 0 292s 2.3 0 0 0 0 292s -4 35 -5984 0 0 292s 4 1 0 0 0 292s 0 0 0 0 0 292s as.bigz(34) 46376 5984 0 0 292s as.bg(32,7) 35960 32 0 0 292s as.b(31,45) 31465 1 0 0 292s NULL 292s NA 0 0 0 0 292s -3L 15 -528 0 0 292s 292s ------------------------------------------ 292s max 292s -> all.equal(target = res, current = F()): 'is.NA' value mismatch: 256 in current 130 in target 292s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 -4 4 292s 23 - error error - error error 25 - - - 292s as.bigz(23) 23 23 23 23 23 23 25 23 23 23 292s as.bigq(23) 23 23 23 23 23 23 25 23 23 23 292s c(3,23) - error error - error error 25 - - - 292s as.bgz((3,23)) 23 23 23 23 23 23 25 23 23 23 292s as.bgq((3,23)) 23 23 23 23 23 23 25 23 23 23 292s 25 25 error error 25 error error 25 25 25 4 292s 2.3 - error error - error error 25 - - - 292s -4 - error error - error error 25 - - - 292s 4 - error error - error error 4 - - 4 292s 0 - error error - error error 25 - - - 292s as.bigz(34) 34 34 34 34 34 34 34 34 34 34 292s as.bg(32,7) 23 23 23 23 23 23 25 32/7 32/7 32/7 292s as.b(31,45) (31 %% 45) (31 %% 45) 31 (31 %% 45) (31 %% 45) 31 (31 %% 45) (31 %% 45) (31 %% 45) (31 %% 45) 292s NULL 23 error error 23 error error 25 2.3 -4 4 292s NA error error error error 292s -3L - error error - error error 25 - - 4 292s 0 as.bigz(34) as.bigq(32,7) as.bigz(31,45) NULL NA -3L 292s 23 - error error error 23 - 292s as.bigz(23) 23 34 23 31 23 23 292s as.bigq(23) 23 34 23 31 23 23 292s c(3,23) - error error error 23 - 292s as.bgz((3,23)) 23 34 23 31 23 23 292s as.bgq((3,23)) 23 34 23 31 23 23 292s 25 25 error error error 25 25 292s 2.3 - error error error 2.3 - 292s -4 - error error error -4 - 292s 4 - error error error 4 4 292s 0 - error error error 0 - 292s as.bigz(34) 34 34 34 34 34 34 292s as.bg(32,7) 32/7 34 32/7 31 32/7 32/7 292s as.b(31,45) (31 %% 45) (34 %% 45) 31 (31 %% 45) (31 %% 45) (31 %% 45) 292s NULL 0 error error error -Inf -3 292s NA error error error 292s -3L - error error error -3 -3 292s 292s ------------------------------------------ 292s min 292s -> all.equal(target = res, current = F()): 'is.NA' value mismatch: 256 in current 130 in target 292s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 292s 23 - error error - error error 23 - 292s as.bigz(23) 23 23 23 3 3 3 23 2 292s as.bigq(23) 23 23 23 3 3 3 23 2589569785738035/1125899906842624 292s c(3,23) - error error - error error 25 - 292s as.bgz((3,23)) 3 3 3 3 3 3 3 2 292s as.bgq((3,23)) 3 3 3 3 3 3 3 2589569785738035/1125899906842624 292s 25 23 error error 25 error error 25 2.3 292s 2.3 - error error - error error 2.3 - 292s -4 - error error - error error -4 - 292s 4 - error error - error error 25 - 292s 0 - error error - error error 0 - 292s as.bigz(34) 23 23 23 3 3 3 25 2 292s as.bg(32,7) 32/7 32/7 32/7 3 3 3 32/7 2589569785738035/1125899906842624 292s as.b(31,45) (23 %% 45) (23 %% 45) 23 (3 %% 45) (3 %% 45) 3 (25 %% 45) (2 %% 45) 292s NULL 23 error error 3 error error 25 2.3 292s NA error error error error 292s -3L - error error - error error -3 - 292s -4 4 0 as.bigz(34) as.bigq(32,7) as.bigz(31,45) NULL NA -3L 292s 23 - - - error error error 23 - 292s as.bigz(23) -4 4 0 23 32/7 23 23 -3 292s as.bigq(23) -4 4 0 23 32/7 23 23 -3 292s c(3,23) - - - error error error 3 - 292s as.bgz((3,23)) -4 3 0 3 3 3 3 -3 292s as.bgq((3,23)) -4 3 0 3 3 3 3 -3 292s 25 -4 25 0 error error error 25 -3 292s 2.3 - - - error error error 2.3 - 292s -4 - - - error error error -4 - 292s 4 - 4 - error error error 4 -3 292s 0 - - - error error error 0 - 292s as.bigz(34) -4 4 0 34 32/7 31 34 -3 292s as.bg(32,7) -4 4 0 32/7 32/7 32/7 32/7 -3 292s as.b(31,45) (-4 %% 45) (4 %% 45) (0 %% 45) (31 %% 45) 32/7 (31 %% 45) (31 %% 45) (-3 %% 45) 292s NULL -4 4 0 error error error Inf -3 292s NA error error error 292s -3L - -3 - error error error -3 -3 292s 292s ------------------------------------------ 293s | 293s -> all.equal(target = res, current = F()): 'is.NA' value mismatch: 34 in current 51 in target 293s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 -4 4 0 as.bigz(34) 293s 23 TRUE TRUE TRUE TRUE TRUE TRUE error TRUE TRUE TRUE TRUE TRUE 293s as.bigz(23) TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE 293s as.bigq(23) TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE 293s c(3,23) TRUE TRUE TRUE TRUE TRUE TRUE error TRUE TRUE TRUE TRUE TRUE 293s as.bgz((3,23)) TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE 293s as.bgq((3,23)) TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE 293s 25 error TRUE TRUE error TRUE TRUE error error error error error TRUE 293s 2.3 TRUE TRUE TRUE TRUE TRUE TRUE error TRUE TRUE TRUE TRUE TRUE 293s -4 TRUE TRUE TRUE TRUE TRUE TRUE error TRUE TRUE TRUE TRUE TRUE 293s 4 TRUE TRUE TRUE TRUE TRUE TRUE error TRUE TRUE TRUE TRUE TRUE 293s 0 TRUE TRUE TRUE TRUE TRUE TRUE error TRUE TRUE TRUE FALSE TRUE 293s as.bigz(34) TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE 293s as.bg(32,7) TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE 293s as.b(31,45) TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE 293s NULL error 293s NA TRUE TRUE TRUE TRUE TRUE TRUE error TRUE TRUE TRUE TRUE 293s -3L TRUE TRUE TRUE TRUE TRUE TRUE error TRUE TRUE TRUE TRUE TRUE 293s as.bigq(32,7) as.bigz(31,45) NULL NA -3L 293s 23 TRUE TRUE TRUE TRUE 293s as.bigz(23) TRUE TRUE TRUE TRUE 293s as.bigq(23) TRUE TRUE TRUE TRUE 293s c(3,23) TRUE TRUE TRUE TRUE 293s as.bgz((3,23)) TRUE TRUE TRUE TRUE 293s as.bgq((3,23)) TRUE TRUE TRUE TRUE 293s 25 TRUE TRUE error error error 293s 2.3 TRUE TRUE TRUE TRUE 293s -4 TRUE TRUE TRUE TRUE 293s 4 TRUE TRUE TRUE TRUE 293s 0 TRUE TRUE TRUE 293s as.bigz(34) TRUE TRUE TRUE TRUE 293s as.bg(32,7) TRUE TRUE TRUE TRUE 293s as.b(31,45) TRUE TRUE TRUE TRUE 293s NULL 293s NA TRUE TRUE TRUE 293s -3L TRUE TRUE TRUE TRUE 293s 293s ------------------------------------------ 293s & 293s -> all.equal(target = res, current = F()): 'is.NA' value mismatch: 58 in current 73 in target 293s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 -4 4 0 as.bigz(34) 293s 23 TRUE TRUE TRUE TRUE TRUE TRUE error TRUE TRUE TRUE FALSE TRUE 293s as.bigz(23) TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE TRUE 293s as.bigq(23) TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE TRUE 293s c(3,23) TRUE TRUE TRUE TRUE TRUE TRUE error TRUE TRUE TRUE FALSE TRUE 293s as.bgz((3,23)) TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE TRUE 293s as.bgq((3,23)) TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE TRUE 293s 25 error TRUE TRUE error TRUE TRUE error error error error error TRUE 293s 2.3 TRUE TRUE TRUE TRUE TRUE TRUE error TRUE TRUE TRUE FALSE TRUE 293s -4 TRUE TRUE TRUE TRUE TRUE TRUE error TRUE TRUE TRUE FALSE TRUE 293s 4 TRUE TRUE TRUE TRUE TRUE TRUE error TRUE TRUE TRUE FALSE TRUE 293s 0 FALSE FALSE FALSE FALSE FALSE FALSE error FALSE FALSE FALSE FALSE FALSE 293s as.bigz(34) TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE TRUE 293s as.bg(32,7) TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE TRUE 293s as.b(31,45) TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE TRUE 293s NULL error 293s NA error FALSE 293s -3L TRUE TRUE TRUE TRUE TRUE TRUE error TRUE TRUE TRUE FALSE TRUE 293s as.bigq(32,7) as.bigz(31,45) NULL NA -3L 293s 23 TRUE TRUE TRUE 293s as.bigz(23) TRUE TRUE TRUE 293s as.bigq(23) TRUE TRUE TRUE 293s c(3,23) TRUE TRUE TRUE 293s as.bgz((3,23)) TRUE TRUE TRUE 293s as.bgq((3,23)) TRUE TRUE TRUE 293s 25 TRUE TRUE error error error 293s 2.3 TRUE TRUE TRUE 293s -4 TRUE TRUE TRUE 293s 4 TRUE TRUE TRUE 293s 0 FALSE FALSE FALSE FALSE 293s as.bigz(34) TRUE TRUE TRUE 293s as.bg(32,7) TRUE TRUE TRUE 293s as.b(31,45) TRUE TRUE TRUE 293s NULL 293s NA 293s -3L TRUE TRUE TRUE 293s 293s ------------------------------------------ 293s xor 293s -> all.equal(target = res, current = F()): 'is.NA' value mismatch: 60 in current 75 in target 293s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 -4 4 0 as.bigz(34) 293s 23 FALSE FALSE FALSE FALSE FALSE FALSE error FALSE FALSE FALSE TRUE FALSE 293s as.bigz(23) FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE 293s as.bigq(23) FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE 293s c(3,23) FALSE FALSE FALSE FALSE FALSE FALSE error FALSE FALSE FALSE TRUE FALSE 293s as.bgz((3,23)) FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE 293s as.bgq((3,23)) FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE 293s 25 error FALSE FALSE error FALSE FALSE error error error error error FALSE 293s 2.3 FALSE FALSE FALSE FALSE FALSE FALSE error FALSE FALSE FALSE TRUE FALSE 293s -4 FALSE FALSE FALSE FALSE FALSE FALSE error FALSE FALSE FALSE TRUE FALSE 293s 4 FALSE FALSE FALSE FALSE FALSE FALSE error FALSE FALSE FALSE TRUE FALSE 293s 0 TRUE TRUE TRUE TRUE TRUE TRUE error TRUE TRUE TRUE FALSE TRUE 293s as.bigz(34) FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE 293s as.bg(32,7) FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE 293s as.b(31,45) FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE 293s NULL error 293s NA error 293s -3L FALSE FALSE FALSE FALSE FALSE FALSE error FALSE FALSE FALSE TRUE FALSE 293s as.bigq(32,7) as.bigz(31,45) NULL NA -3L 293s 23 FALSE FALSE FALSE 293s as.bigz(23) FALSE FALSE FALSE 293s as.bigq(23) FALSE FALSE FALSE 293s c(3,23) FALSE FALSE FALSE 293s as.bgz((3,23)) FALSE FALSE FALSE 293s as.bgq((3,23)) FALSE FALSE FALSE 293s 25 FALSE FALSE error error error 293s 2.3 FALSE FALSE FALSE 293s -4 FALSE FALSE FALSE 293s 4 FALSE FALSE FALSE 293s 0 TRUE TRUE TRUE 293s as.bigz(34) FALSE FALSE FALSE 293s as.bg(32,7) FALSE FALSE FALSE 293s as.b(31,45) FALSE FALSE FALSE 293s NULL 293s NA 293s -3L FALSE FALSE FALSE 293s 293s ------------------------------------------ 293s c 293s -> all.equal(target = res, current = F()): 'is.NA' value mismatch: 256 in current 63 in target 293s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 -4 4 293s 23 - 23 23 - 23 23 23 - - - 293s as.bigz(23) 23 23 23 23 23 23 23 23 23 23 293s as.bigq(23) 23 23 23 23 23 23 23 23 23 23 293s c(3,23) - 3 3 - 3 3 3 - - - 293s as.bgz((3,23)) 3 3 3 3 3 3 3 3 3 3 293s as.bgq((3,23)) 3 3 3 3 3 3 3 3 3 3 293s 25 25 25 25 25 25 25 25 25 25 25 293s 2.3 - 2.3 2.3 - 2.3 2.3 2.3 - - - 293s -4 - -4 -4 - -4 -4 -4 - - - 293s 4 - 4 4 - 4 4 4 - - 4 293s 0 - 0 0 - 0 0 0 - - - 293s as.bigz(34) 34 34 34 34 34 34 34 34 34 34 293s as.bg(32,7) 32/7 32/7 32/7 32/7 32/7 32/7 32/7 32/7 32/7 32/7 293s as.b(31,45) (31 %% 45) (31 %% 45) 31 (31 %% 45) (31 %% 45) 31 (31 %% 45) (31 %% 45) (31 %% 45) (31 %% 45) 293s NULL 23 01 01 3 02 02 25 2.3 -4 4 293s NA 293s -3L - -3 -3 - -3 -3 -3 - - -3 293s 0 as.bigz(34) as.bigq(32,7) as.bigz(31,45) NULL NA -3L 293s 23 - 23 23 23 23 23 - 293s as.bigz(23) 23 23 23 23 23 23 23 293s as.bigq(23) 23 23 23 23 23 23 23 293s c(3,23) - 3 3 3 3 3 - 293s as.bgz((3,23)) 3 3 3 3 3 3 3 293s as.bgq((3,23)) 3 3 3 3 3 3 3 293s 25 25 25 25 25 25 25 25 293s 2.3 - 2.3 2.3 2.3 2.3 2.3 - 293s -4 - -4 -4 -4 -4 -4 - 293s 4 - 4 4 4 4 4 4 293s 0 - 0 0 0 0 0 - 293s as.bigz(34) 34 34 34 34 34 34 34 293s as.bg(32,7) 32/7 32/7 32/7 32/7 32/7 32/7 32/7 293s as.b(31,45) (31 %% 45) (31 %% 45) 31 (31 %% 45) (31 %% 45) (31 %% 45) (31 %% 45) 293s NULL 0 01 01 01 -3 293s NA 293s -3L - -3 -3 -3 -3 -3 -3 293s 293s ------------------------------------------ 293s cbind 293s -> all.equal(target = res, current = F()): Mean relative difference: 0.01075094 293s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 293s 23 23 23 23 23 23 23 293s as.bigz(23) 23 23 23 23 23 23 293s as.bigq(23) 23 23 23 23 23 23 293s c(3,23) 3 3 3 3 3 3 293s as.bgz((3,23)) 3 3 3 3 3 3 293s as.bgq((3,23)) 3 3 3 3 3 3 293s 25 25 25 25 25 25 25 293s 2.3 2.3 2 2589569785738035/1125899906842624 2.3 2 2589569785738035/1125899906842624 293s -4 -4 -4 -4 -4 -4 -4 293s 4 4 4 4 4 4 4 293s 0 0 0 0 0 0 0 293s as.bigz(34) 34 34 34 34 34 34 293s as.bg(32,7) 32/7 32/7 32/7 32/7 32/7 32/7 293s as.b(31,45) (31 %% 45) (31 %% 45) 31 (31 %% 45) (31 %% 45) 31 293s NULL 23 23 23 3 3 3 293s NA NA NA NA NA 293s -3L -3 -3 -3 -3 -3 -3 293s 25 2.3 -4 4 0 as.bigz(34) as.bigq(32,7) as.bigz(31,45) 293s 23 23 23 23 23 23 23 23 23 293s as.bigz(23) 23 23 23 23 23 23 23 23 293s as.bigq(23) 23 23 23 23 23 23 23 23 293s c(3,23) 3 3 3 3 3 3 3 3 293s as.bgz((3,23)) 3 3 3 3 3 3 3 3 293s as.bgq((3,23)) 3 3 3 3 3 3 3 3 293s 25 25 25 25 25 25 25 25 25 293s 2.3 2.3 2.3 2.3 2.3 2.3 2 2589569785738035/1125899906842624 2 293s -4 -4 -4 -4 -4 -4 -4 -4 -4 293s 4 4 4 4 4 4 4 4 4 293s 0 0 0 0 0 0 0 0 0 293s as.bigz(34) 34 34 34 34 34 34 34 34 293s as.bg(32,7) 32/7 32/7 32/7 32/7 32/7 32/7 32/7 32/7 293s as.b(31,45) (31 %% 45) (31 %% 45) (31 %% 45) (31 %% 45) (31 %% 45) (31 %% 45) 31 (31 %% 45) 293s NULL 25 2.3 -4 4 0 34 32/7 (31 %% 45) 293s NA NA NA NA 293s -3L -3 -3 -3 -3 -3 -3 -3 -3 293s NULL NA -3L 293s 23 23 23 23 293s as.bigz(23) 23 23 23 293s as.bigq(23) 23 23 23 293s c(3,23) 3 3 3 293s as.bgz((3,23)) 3 3 3 293s as.bgq((3,23)) 3 3 3 293s 25 25 25 25 293s 2.3 2.3 2.3 2.3 293s -4 -4 -4 -4 293s 4 4 4 4 293s 0 0 0 0 293s as.bigz(34) 34 34 34 293s as.bg(32,7) 32/7 32/7 32/7 293s as.b(31,45) (31 %% 45) (31 %% 45) (31 %% 45) 293s NULL -3 293s NA 293s -3L -3 -3 -3 293s 293s ------------------------------------------ 293s rbind 293s -> all.equal(target = res, current = F()): Mean relative difference: 0.01075094 293s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 293s 23 23 23 23 23 23 23 293s as.bigz(23) 23 23 23 23 23 23 293s as.bigq(23) 23 23 23 23 23 23 293s c(3,23) 3 3 3 3 3 3 293s as.bgz((3,23)) 3 3 3 3 3 3 293s as.bgq((3,23)) 3 3 3 3 3 3 293s 25 25 25 25 25 25 25 293s 2.3 2.3 2 2589569785738035/1125899906842624 2.3 2 2589569785738035/1125899906842624 293s -4 -4 -4 -4 -4 -4 -4 293s 4 4 4 4 4 4 4 293s 0 0 0 0 0 0 0 293s as.bigz(34) 34 34 34 34 34 34 293s as.bg(32,7) 32/7 32/7 32/7 32/7 32/7 32/7 293s as.b(31,45) (31 %% 45) (31 %% 45) 31 (31 %% 45) (31 %% 45) 31 293s NULL 23 23 23 3 3 3 293s NA NA NA NA NA 293s -3L -3 -3 -3 -3 -3 -3 293s 25 2.3 -4 4 0 as.bigz(34) as.bigq(32,7) as.bigz(31,45) 293s 23 23 23 23 23 23 23 23 23 293s as.bigz(23) 23 23 23 23 23 23 23 23 293s as.bigq(23) 23 23 23 23 23 23 23 23 293s c(3,23) 3 3 3 3 3 3 3 3 293s as.bgz((3,23)) 3 3 3 3 3 3 3 3 293s as.bgq((3,23)) 3 3 3 3 3 3 3 3 293s 25 25 25 25 25 25 25 25 25 293s 2.3 2.3 2.3 2.3 2.3 2.3 2 2589569785738035/1125899906842624 2 293s -4 -4 -4 -4 -4 -4 -4 -4 -4 293s 4 4 4 4 4 4 4 4 4 293s 0 0 0 0 0 0 0 0 0 293s as.bigz(34) 34 34 34 34 34 34 34 34 293s as.bg(32,7) 32/7 32/7 32/7 32/7 32/7 32/7 32/7 32/7 293s as.b(31,45) (31 %% 45) (31 %% 45) (31 %% 45) (31 %% 45) (31 %% 45) (31 %% 45) 31 (31 %% 45) 293s NULL 25 2.3 -4 4 0 34 32/7 (31 %% 45) 293s NA NA NA NA 293s -3L -3 -3 -3 -3 -3 -3 -3 -3 293s NULL NA -3L 293s 23 23 23 23 293s as.bigz(23) 23 23 23 293s as.bigq(23) 23 23 23 293s c(3,23) 3 3 3 293s as.bgz((3,23)) 3 3 3 293s as.bgq((3,23)) 3 3 3 293s 25 25 25 25 293s 2.3 2.3 2.3 2.3 293s -4 -4 -4 -4 293s 4 4 4 4 293s 0 0 0 0 293s as.bigz(34) 34 34 34 293s as.bg(32,7) 32/7 32/7 32/7 293s as.b(31,45) (31 %% 45) (31 %% 45) (31 %% 45) 293s NULL -3 293s NA 293s -3L -3 -3 -3 293s 293s > 293s > summary(warnings()) # ideally *not* platform dependent 293s There were 3988 warnings (use warnings() to see them) 293s Summary of (a total of 3988) warning messages: 293s 3563x : In sortie(e) : NAs introduced by coercion 293s 35x : In FUN(x[[i]], x[[j]]) : returning NA for (modulus) 0 in RHS 293s 5x : In `/.bigz`(x[[i]], x[[j]]) : 293s pow(x, -|n|) returning NA as x has no inverse wrt modulus 293s 9x : In `%%.bigz`(x[[i]], x[[j]]) : biginteger division by zero: returning NA 293s 284x : In FUN(x[[i]], x[[j]]) : 293s inv(x,m) returning NA as x has no inverse modulo m 293s 52x : In FUN(x[[i]], x[[j]]) : inv(0) returning NA 293s 17x : In FUN(x[[i]], x[[j]]) : 'k' (2.30) must be integer, rounded to 2 293s 17x : In FUN(x[[i]], x[[j]]) : 'k' (4.57) must be integer, rounded to 5 293s 3x : In FUN(x[[i]], x[[j]]) : no non-missing arguments to max; returning -Inf 293s 3x : In FUN(x[[i]], x[[j]]) : no non-missing arguments to min; returning Inf 293s > 293s > ##============================================================================== 293s > 293s > for(fid in unaryfunctionid) 293s + { 293s + cat ("------------------------------------------\n", fid, "\n\n", sep="") 293s + FUN <- get(fid, envir = gmp.NS, mode="function") 293s + print(as.data.frame(test(FUN, x, unary=TRUE))) 293s + } 293s ------------------------------------------ 293s log 293s 293s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 -4 4 0 as.bigz(34) as.bigq(32,7) as.bigz(31,45) NULL NA 293s 1 - 3.135494 error - 1.098612 error error - - - - 3.526361 error 3.433987 error 293s -3L 293s 1 - 293s ------------------------------------------ 293s log2 293s 293s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 -4 4 0 as.bigz(34) as.bigq(32,7) as.bigz(31,45) NULL NA 293s 1 - 4.523562 error - 1.584963 error error - - - - 5.087463 error 4.954196 error 293s -3L 293s 1 - 293s ------------------------------------------ 293s log10 293s 293s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 -4 4 0 as.bigz(34) as.bigq(32,7) as.bigz(31,45) NULL NA 293s 1 - 1.361728 error - 0.4771213 error error - - - - 1.531479 error 1.491362 error 293s -3L 293s 1 - 293s ------------------------------------------ 293s c 293s 293s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 -4 4 0 as.bigz(34) as.bigq(32,7) as.bigz(31,45) NULL NA -3L 293s 1 - 23 23 - 3 3 25 - - 4 - 34 32/7 (31 %% 45) -3 293s ------------------------------------------ 293s isprime 293s 293s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 -4 4 0 as.bigz(34) as.bigq(32,7) as.bigz(31,45) NULL NA -3L 293s 1 2 2 2 2 2 2 0 2 0 0 0 0 0 2 0 2 293s ------------------------------------------ 293s nextprime 293s 293s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 -4 4 0 as.bigz(34) as.bigq(32,7) as.bigz(31,45) NULL NA -3L 293s 1 29 29 29 5 5 5 29 3 2 5 2 37 37 37 2 2 293s ------------------------------------------ 293s factorialZ 293s 293s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 293s 1 25852016738884976640000 25852016738884976640000 25852016738884976640000 6 6 6 293s 25 2.3 -4 4 0 as.bigz(34) as.bigq(32,7) as.bigz(31,45) NULL NA 293s 1 15511210043330985984000000 2 0 24 1 295232799039604140847618609643520000000 24 8222838654177922817725562880000000 0 293s -3L 293s 1 0 293s ------------------------------------------ 293s sizeinbase 293s 293s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 -4 4 0 as.bigz(34) as.bigq(32,7) as.bigz(31,45) NULL NA -3L 293s 1 2 2 2 1 1 1 2 1 1 1 1 2 2 2 1 1 293s ------------------------------------------ 293s fibnum 293s 293s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 -4 4 0 as.bigz(34) as.bigq(32,7) as.bigz(31,45) NULL 293s 1 28657 28657 28657 2 2 2 75025 1 error 3 0 5702887 3 1346269 293s NA -3L 293s 1 error error 293s ------------------------------------------ 293s fibnum2 293s 293s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 -4 4 0 as.bigz(34) as.bigq(32,7) as.bigz(31,45) 293s 1 17711 17711 17711 1 1 1 46368 1 error 2 1 3524578 2 832040 293s NULL NA -3L 293s 1 error error error 293s ------------------------------------------ 293s lucnum 293s 293s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 -4 4 0 as.bigz(34) as.bigq(32,7) as.bigz(31,45) 293s 1 64079 64079 64079 4 4 4 167761 3 error 7 2 12752043 7 3010349 293s NULL NA -3L 293s 1 error error 293s ------------------------------------------ 293s lucnum2 293s 293s Warning messages: 293s 1: In FUN(x[[j]]) : NaNs produced 293s 2: In FUN(x[[j]]) : NaNs produced 293s 3: In FUN(x[[j]]) : NaNs produced 293s 4: In FUN(x[[j]]) : NaNs produced 293s 5: In FUN(x[[j]]) : NaNs produced 293s 6: In FUN(x[[j]]) : NaNs produced 293s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 -4 4 0 as.bigz(34) as.bigq(32,7) as.bigz(31,45) 293s 1 39603 39603 39603 3 3 3 103682 1 error 4 -1 7881196 4 1860498 293s NULL NA -3L 293s 1 error error error 293s ------------------------------------------ 293s factorize 293s 293s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 -4 4 0 as.bigz(34) as.bigq(32,7) as.bigz(31,45) NULL 293s 1 23 23 23 3 3 3 5 2 -1 2 error 2 2 31 293s NA -3L 293s 1 error -1 293s ------------------------------------------ 293s abs 293s 293s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 -4 4 0 as.bigz(34) as.bigq(32,7) as.bigz(31,45) NULL NA 293s 1 - 23 23 - 3 3 error - - 4 - 34 32/7 (31 %% 45) error 293s -3L 293s 1 3 293s ------------------------------------------ 293s ! 293s 293s 23 as.bigz(23) as.bigq(23) c(3,23) as.bigz(c(3,23)) as.bigq(c(3,23)) 25 2.3 -4 4 0 as.bigz(34) as.bigq(32,7) 293s 1 FALSE FALSE FALSE FALSE FALSE FALSE error FALSE FALSE FALSE TRUE FALSE FALSE 293s as.bigz(31,45) NULL NA -3L 293s 1 FALSE error FALSE 293s > 293s > ##============================================================================== 293s > 293s > ###----------- matrix ----------------------------- 293s > x <- matrix(1:6,3) 293s > stopifnot(identical(as.bigz(x), matrix(as.bigz(as.vector(x)), 3)), 293s + dim(x) == 3:2, 293s + dim(x) == dim(ym <- as.bigz(x, 6:1)), 293s + dim(x) == dim(ymr <- as.bigz(x, 4:6)), 293s + dim(x) == dim(ymc <- as.bigz(x, 4)), 293s + dim(x) == dim(ymq <- as.bigq(x)), 293s + dim(x) == dim(y <- as.bigq(x, 6:1)) 293s + , 293s + apply(ym,1,max) == 1:3, 293s + apply(ym,2,min) == c(1,0)) 293s > 293s > x %*% t(x) 293s [,1] [,2] [,3] 293s [1,] 17 22 27 293s [2,] 22 29 36 293s [3,] 27 36 45 293s > 293s > ym %*% t(ym) 293s Big Integer ('bigz') 3 x 3 matrix: 293s [,1] [,2] [,3] 293s [1,] 2 3 3 293s [2,] 3 5 6 293s [3,] 3 6 9 293s > ym %*% t(ymr) 293s Big Integer ('bigz') 3 x 3 matrix: 293s [,1] [,2] [,3] 293s [1,] 1 2 3 293s [2,] 2 4 6 293s [3,] 3 6 9 293s > ymc %*% t(ymc) 293s [,1] [,2] [,3] 293s [1,] (1 %% 4) (2 %% 4) (3 %% 4) 293s [2,] (2 %% 4) (1 %% 4) (0 %% 4) 293s [3,] (3 %% 4) (0 %% 4) (1 %% 4) 293s > ymq %*% t(ymq) 293s Big Rational ('bigq') 3 x 3 matrix: 293s [,1] [,2] [,3] 293s [1,] 17 22 27 293s [2,] 22 29 36 293s [3,] 27 36 45 293s > y %*% t(y) 293s Big Rational ('bigq') 3 x 3 matrix: 293s [,1] [,2] [,3] 293s [1,] 65/36 17/5 65/8 293s [2,] 17/5 641/100 153/10 293s [3,] 65/8 153/10 585/16 293s > 293s > dd <- dim(D <- diag(1:4)) 293s > stopifnot(dd == dim(Dmq <- as.bigq(D)), 293s + dd == dim(Dz <- as.bigz(D)), 293s + dd == dim(Dm <- as.bigz(D,6:1)), 293s + dd == dim(Dmr <- as.bigz(D,7)), 293s + dd == dim(Dmc <- as.bigz(D,4)), 293s + TRUE) 293s > solve(D) 293s [,1] [,2] [,3] [,4] 293s [1,] 1 0.0 0.0000000 0.00 293s [2,] 0 0.5 0.0000000 0.00 293s [3,] 0 0.0 0.3333333 0.00 293s [4,] 0 0.0 0.0000000 0.25 293s > solve(Dmq) 293s Big Rational ('bigq') 4 x 4 matrix: 293s [,1] [,2] [,3] [,4] 293s [1,] 1 0 0 0 293s [2,] 0 1/2 0 0 293s [3,] 0 0 1/3 0 293s [4,] 0 0 0 1/4 293s > solve(Dmr) 293s [,1] [,2] [,3] [,4] 293s [1,] (1 %% 7) (0 %% 7) (0 %% 7) (0 %% 7) 293s [2,] (0 %% 7) (4 %% 7) (0 %% 7) (0 %% 7) 293s [3,] (0 %% 7) (0 %% 7) (5 %% 7) (0 %% 7) 293s [4,] (0 %% 7) (0 %% 7) (0 %% 7) (2 %% 7) 293s > tools::assertError(solve(Dmc))# Error: argument has no inverse 293s > tools::assertError(solve(Dm)) # Error: System is singular 293s > 293s > (D.D <- D %*% t(Dm))# now [>= Jan.2012] works too 293s Big Integer ('bigz') 4 x 4 matrix: 293s [,1] [,2] [,3] [,4] 293s [1,] 1 0 0 0 293s [2,] 0 0 0 0 293s [3,] 0 0 3 0 293s [4,] 0 0 0 4 293s > vq <- as.bigq(1:4, 4) 293s > r41 <- cbind(as.bigq((1:4)^2, 4)) 293s > stopifnot(identical(D.D, tcrossprod(D,Dm)), 293s + dim(r41) == c(4,1), 293s + identical(r41, Dz %*% vq), ## bigz %*% bigq - used to fail 293s + identical(r41, crossprod(Dz, vq))## ditto 293s + ) 293s > 293s > ## 293s > ## some specific tests 293s > 293s > factorize("33162879029270137") 293s Big Integer ('bigz') object of length 5: 293s [1] 7 29 11867 75679 181903 293s > 293s > factorize(15959989) 293s Big Integer ('bigz') object of length 2: 293s [1] 3989 4001 293s > 293s > ## assignation 293s > x = as.bigz(1:8) 293s > x[3:2] = 9:10 293s > x 293s Big Integer ('bigz') object of length 8: 293s [1] 1 10 9 4 5 6 7 8 293s > 293s > x = as.bigz(matrix(1:12,3)) 293s > x[3:2,] = 1:8 293s > x 293s Big Integer ('bigz') 3 x 4 matrix: 293s [,1] [,2] [,3] [,4] 293s [1,] 1 4 7 10 293s [2,] 2 4 6 8 293s [3,] 1 3 5 7 293s > x[,2] = 0 293s > x 293s Big Integer ('bigz') 3 x 4 matrix: 293s [,1] [,2] [,3] [,4] 293s [1,] 1 0 7 10 293s [2,] 2 0 6 8 293s [3,] 1 0 5 7 293s > 293s > tools::assertError(x[,5]) 293s > 293s > 294s autopkgtest [16:16:30]: test run-unit-test: -----------------------] 298s run-unit-test PASS 298s autopkgtest [16:16:34]: test run-unit-test: - - - - - - - - - - results - - - - - - - - - - 301s autopkgtest [16:16:37]: test pkg-r-autopkgtest: preparing testbed 324s autopkgtest [16:17:00]: testbed dpkg architecture: armhf 326s autopkgtest [16:17:02]: testbed apt version: 2.9.33 330s autopkgtest [16:17:06]: @@@@@@@@@@@@@@@@@@@@ test bed setup 331s autopkgtest [16:17:07]: testbed release detected to be: plucky 339s autopkgtest [16:17:15]: updating testbed package index (apt update) 341s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [126 kB] 341s Get:2 http://ftpmaster.internal/ubuntu plucky InRelease [257 kB] 341s Get:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease [126 kB] 342s Get:4 http://ftpmaster.internal/ubuntu plucky-security InRelease [126 kB] 342s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [15.8 kB] 342s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [379 kB] 342s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [99.7 kB] 342s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf Packages [114 kB] 343s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf c-n-f Metadata [1832 B] 343s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/restricted armhf c-n-f Metadata [116 B] 343s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf Packages [312 kB] 343s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf c-n-f Metadata [11.1 kB] 343s Get:13 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse armhf Packages [3472 B] 343s Get:14 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse armhf c-n-f Metadata [240 B] 343s Get:15 http://ftpmaster.internal/ubuntu plucky/universe Sources [21.0 MB] 363s Get:16 http://ftpmaster.internal/ubuntu plucky/main Sources [1394 kB] 364s Get:17 http://ftpmaster.internal/ubuntu plucky/multiverse Sources [299 kB] 364s Get:18 http://ftpmaster.internal/ubuntu plucky/main armhf Packages [1378 kB] 365s Get:19 http://ftpmaster.internal/ubuntu plucky/main armhf c-n-f Metadata [29.4 kB] 365s Get:20 http://ftpmaster.internal/ubuntu plucky/restricted armhf c-n-f Metadata [108 B] 365s Get:21 http://ftpmaster.internal/ubuntu plucky/universe armhf Packages [15.1 MB] 379s Get:22 http://ftpmaster.internal/ubuntu plucky/multiverse armhf Packages [172 kB] 381s Fetched 41.0 MB in 40s (1031 kB/s) 383s Reading package lists... 389s autopkgtest [16:18:05]: upgrading testbed (apt dist-upgrade and autopurge) 390s Reading package lists... 391s Building dependency tree... 391s Reading state information... 391s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 391s Starting 2 pkgProblemResolver with broken count: 0 391s Done 392s Entering ResolveByKeep 392s 393s Calculating upgrade... 393s The following packages will be upgraded: 393s libc-bin libc6 locales pinentry-curses python3-jinja2 sos strace 393s 7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 393s Need to get 8683 kB of archives. 393s After this operation, 23.6 kB of additional disk space will be used. 393s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf libc6 armhf 2.41-1ubuntu2 [2932 kB] 396s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf libc-bin armhf 2.41-1ubuntu2 [545 kB] 397s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf locales all 2.41-1ubuntu2 [4246 kB] 400s Get:4 http://ftpmaster.internal/ubuntu plucky/main armhf strace armhf 6.13+ds-1ubuntu1 [445 kB] 401s Get:5 http://ftpmaster.internal/ubuntu plucky/main armhf pinentry-curses armhf 1.3.1-2ubuntu3 [40.6 kB] 401s Get:6 http://ftpmaster.internal/ubuntu plucky/main armhf python3-jinja2 all 3.1.5-2ubuntu1 [109 kB] 401s Get:7 http://ftpmaster.internal/ubuntu plucky/main armhf sos all 4.9.0-5 [365 kB] 402s Preconfiguring packages ... 402s Fetched 8683 kB in 8s (1092 kB/s) 402s (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 ... 64655 files and directories currently installed.) 402s Preparing to unpack .../libc6_2.41-1ubuntu2_armhf.deb ... 402s Unpacking libc6:armhf (2.41-1ubuntu2) over (2.41-1ubuntu1) ... 403s Setting up libc6:armhf (2.41-1ubuntu2) ... 403s (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 ... 64655 files and directories currently installed.) 403s Preparing to unpack .../libc-bin_2.41-1ubuntu2_armhf.deb ... 403s Unpacking libc-bin (2.41-1ubuntu2) over (2.41-1ubuntu1) ... 403s Setting up libc-bin (2.41-1ubuntu2) ... 403s (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 ... 64655 files and directories currently installed.) 403s Preparing to unpack .../locales_2.41-1ubuntu2_all.deb ... 403s Unpacking locales (2.41-1ubuntu2) over (2.41-1ubuntu1) ... 404s Preparing to unpack .../strace_6.13+ds-1ubuntu1_armhf.deb ... 404s Unpacking strace (6.13+ds-1ubuntu1) over (6.11-0ubuntu1) ... 404s Preparing to unpack .../pinentry-curses_1.3.1-2ubuntu3_armhf.deb ... 404s Unpacking pinentry-curses (1.3.1-2ubuntu3) over (1.3.1-2ubuntu2) ... 404s Preparing to unpack .../python3-jinja2_3.1.5-2ubuntu1_all.deb ... 404s Unpacking python3-jinja2 (3.1.5-2ubuntu1) over (3.1.5-2) ... 404s Preparing to unpack .../archives/sos_4.9.0-5_all.deb ... 404s Unpacking sos (4.9.0-5) over (4.9.0-4) ... 404s Setting up sos (4.9.0-5) ... 405s Setting up pinentry-curses (1.3.1-2ubuntu3) ... 405s Setting up locales (2.41-1ubuntu2) ... 406s Generating locales (this might take a while)... 408s en_US.UTF-8... done 408s Generation complete. 408s Setting up python3-jinja2 (3.1.5-2ubuntu1) ... 408s Setting up strace (6.13+ds-1ubuntu1) ... 408s Processing triggers for man-db (2.13.0-1) ... 409s Processing triggers for systemd (257.3-1ubuntu3) ... 412s Reading package lists... 413s Building dependency tree... 413s Reading state information... 413s Starting pkgProblemResolver with broken count: 0 413s Starting 2 pkgProblemResolver with broken count: 0 413s Done 414s Solving dependencies... 414s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 416s autopkgtest [16:18:32]: rebooting testbed after setup commands that affected boot 490s Reading package lists... 490s Building dependency tree... 490s Reading state information... 490s Starting pkgProblemResolver with broken count: 0 490s Starting 2 pkgProblemResolver with broken count: 0 490s Done 491s The following NEW packages will be installed: 491s build-essential cpp cpp-14 cpp-14-arm-linux-gnueabihf 491s cpp-arm-linux-gnueabihf dctrl-tools fontconfig fontconfig-config 491s fonts-dejavu-core fonts-dejavu-mono g++ g++-14 g++-14-arm-linux-gnueabihf 491s g++-arm-linux-gnueabihf gcc gcc-14 gcc-14-arm-linux-gnueabihf 491s gcc-arm-linux-gnueabihf gfortran gfortran-14 gfortran-14-arm-linux-gnueabihf 491s gfortran-arm-linux-gnueabihf icu-devtools libasan8 libblas-dev libblas3 491s libbz2-dev libc-dev-bin libc6-dev libcairo2 libcc1-0 libcrypt-dev libdatrie1 491s libdeflate-dev libdeflate0 libfontconfig1 libfreetype6 libgcc-14-dev 491s libgfortran-14-dev libgfortran5 libgomp1 libgraphite2-3 libharfbuzz0b 491s libice6 libicu-dev libisl23 libjbig0 libjpeg-dev libjpeg-turbo8 491s libjpeg-turbo8-dev libjpeg8 libjpeg8-dev liblapack-dev liblapack3 liblerc4 491s liblzma-dev libmpc3 libncurses-dev libpango-1.0-0 libpangocairo-1.0-0 491s libpangoft2-1.0-0 libpaper-utils libpaper2 libpcre2-16-0 libpcre2-32-0 491s libpcre2-dev libpcre2-posix3 libpixman-1-0 libpkgconf3 libpng-dev 491s libreadline-dev libsharpyuv0 libsm6 libstdc++-14-dev libtcl8.6 libthai-data 491s libthai0 libtiff6 libtirpc-dev libtk8.6 libubsan1 libwebp7 libxcb-render0 491s libxcb-shm0 libxft2 libxrender1 libxss1 libxt6t64 linux-libc-dev 491s pkg-r-autopkgtest pkgconf pkgconf-bin r-base-core r-base-dev r-cran-gmp 491s r-cran-mass rpcsvc-proto unzip x11-common xdg-utils zip zlib1g-dev 491s 0 upgraded, 102 newly installed, 0 to remove and 0 not upgraded. 491s Need to get 117 MB of archives. 491s After this operation, 315 MB of additional disk space will be used. 491s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf libc-dev-bin armhf 2.41-1ubuntu2 [23.0 kB] 491s Get:2 http://ftpmaster.internal/ubuntu plucky/main armhf linux-libc-dev armhf 6.14.0-10.10 [1683 kB] 493s Get:3 http://ftpmaster.internal/ubuntu plucky/main armhf libcrypt-dev armhf 1:4.4.38-1 [120 kB] 493s Get:4 http://ftpmaster.internal/ubuntu plucky/main armhf rpcsvc-proto armhf 1.4.2-0ubuntu7 [62.2 kB] 493s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf libc6-dev armhf 2.41-1ubuntu2 [1396 kB] 495s Get:6 http://ftpmaster.internal/ubuntu plucky/main armhf libisl23 armhf 0.27-1 [546 kB] 495s Get:7 http://ftpmaster.internal/ubuntu plucky/main armhf libmpc3 armhf 1.3.1-1build2 [47.1 kB] 495s Get:8 http://ftpmaster.internal/ubuntu plucky/main armhf cpp-14-arm-linux-gnueabihf armhf 14.2.0-17ubuntu3 [9220 kB] 504s Get:9 http://ftpmaster.internal/ubuntu plucky/main armhf cpp-14 armhf 14.2.0-17ubuntu3 [1030 B] 504s Get:10 http://ftpmaster.internal/ubuntu plucky/main armhf cpp-arm-linux-gnueabihf armhf 4:14.2.0-1ubuntu1 [5578 B] 504s Get:11 http://ftpmaster.internal/ubuntu plucky/main armhf cpp armhf 4:14.2.0-1ubuntu1 [22.4 kB] 504s Get:12 http://ftpmaster.internal/ubuntu plucky/main armhf libcc1-0 armhf 15-20250222-0ubuntu1 [38.9 kB] 504s Get:13 http://ftpmaster.internal/ubuntu plucky/main armhf libgomp1 armhf 15-20250222-0ubuntu1 [128 kB] 504s Get:14 http://ftpmaster.internal/ubuntu plucky/main armhf libasan8 armhf 15-20250222-0ubuntu1 [2955 kB] 507s Get:15 http://ftpmaster.internal/ubuntu plucky/main armhf libubsan1 armhf 15-20250222-0ubuntu1 [1191 kB] 509s Get:16 http://ftpmaster.internal/ubuntu plucky/main armhf libgcc-14-dev armhf 14.2.0-17ubuntu3 [897 kB] 510s Get:17 http://ftpmaster.internal/ubuntu plucky/main armhf gcc-14-arm-linux-gnueabihf armhf 14.2.0-17ubuntu3 [18.0 MB] 526s Get:18 http://ftpmaster.internal/ubuntu plucky/main armhf gcc-14 armhf 14.2.0-17ubuntu3 [506 kB] 526s Get:19 http://ftpmaster.internal/ubuntu plucky/main armhf gcc-arm-linux-gnueabihf armhf 4:14.2.0-1ubuntu1 [1218 B] 526s Get:20 http://ftpmaster.internal/ubuntu plucky/main armhf gcc armhf 4:14.2.0-1ubuntu1 [5004 B] 526s Get:21 http://ftpmaster.internal/ubuntu plucky/main armhf libstdc++-14-dev armhf 14.2.0-17ubuntu3 [2573 kB] 529s Get:22 http://ftpmaster.internal/ubuntu plucky/main armhf g++-14-arm-linux-gnueabihf armhf 14.2.0-17ubuntu3 [10.5 MB] 539s Get:23 http://ftpmaster.internal/ubuntu plucky/main armhf g++-14 armhf 14.2.0-17ubuntu3 [21.8 kB] 539s Get:24 http://ftpmaster.internal/ubuntu plucky/main armhf g++-arm-linux-gnueabihf armhf 4:14.2.0-1ubuntu1 [966 B] 539s Get:25 http://ftpmaster.internal/ubuntu plucky/main armhf g++ armhf 4:14.2.0-1ubuntu1 [1084 B] 539s Get:26 http://ftpmaster.internal/ubuntu plucky/main armhf build-essential armhf 12.10ubuntu1 [4928 B] 539s Get:27 http://ftpmaster.internal/ubuntu plucky/main armhf dctrl-tools armhf 2.24-3build3 [94.7 kB] 540s Get:28 http://ftpmaster.internal/ubuntu plucky/main armhf libfreetype6 armhf 2.13.3+dfsg-1 [330 kB] 540s Get:29 http://ftpmaster.internal/ubuntu plucky/main armhf fonts-dejavu-mono all 2.37-8 [502 kB] 540s Get:30 http://ftpmaster.internal/ubuntu plucky/main armhf fonts-dejavu-core all 2.37-8 [835 kB] 541s Get:31 http://ftpmaster.internal/ubuntu plucky/main armhf fontconfig-config armhf 2.15.0-2ubuntu1 [37.5 kB] 541s Get:32 http://ftpmaster.internal/ubuntu plucky/main armhf libfontconfig1 armhf 2.15.0-2ubuntu1 [114 kB] 541s Get:33 http://ftpmaster.internal/ubuntu plucky/main armhf fontconfig armhf 2.15.0-2ubuntu1 [190 kB] 542s Get:34 http://ftpmaster.internal/ubuntu plucky/main armhf libgfortran5 armhf 15-20250222-0ubuntu1 [330 kB] 542s Get:35 http://ftpmaster.internal/ubuntu plucky/main armhf libgfortran-14-dev armhf 14.2.0-17ubuntu3 [370 kB] 542s Get:36 http://ftpmaster.internal/ubuntu plucky/main armhf gfortran-14-arm-linux-gnueabihf armhf 14.2.0-17ubuntu3 [9763 kB] 553s Get:37 http://ftpmaster.internal/ubuntu plucky/main armhf gfortran-14 armhf 14.2.0-17ubuntu3 [13.6 kB] 553s Get:38 http://ftpmaster.internal/ubuntu plucky/main armhf gfortran-arm-linux-gnueabihf armhf 4:14.2.0-1ubuntu1 [1026 B] 553s Get:39 http://ftpmaster.internal/ubuntu plucky/main armhf gfortran armhf 4:14.2.0-1ubuntu1 [1166 B] 553s Get:40 http://ftpmaster.internal/ubuntu plucky/main armhf icu-devtools armhf 76.1-1ubuntu2 [206 kB] 553s Get:41 http://ftpmaster.internal/ubuntu plucky/main armhf libblas3 armhf 3.12.1-2 [132 kB] 554s Get:42 http://ftpmaster.internal/ubuntu plucky/main armhf libblas-dev armhf 3.12.1-2 [141 kB] 554s Get:43 http://ftpmaster.internal/ubuntu plucky/main armhf libbz2-dev armhf 1.0.8-6 [30.9 kB] 554s Get:44 http://ftpmaster.internal/ubuntu plucky/main armhf libpixman-1-0 armhf 0.44.0-3 [183 kB] 554s Get:45 http://ftpmaster.internal/ubuntu plucky/main armhf libxcb-render0 armhf 1.17.0-2 [15.3 kB] 554s Get:46 http://ftpmaster.internal/ubuntu plucky/main armhf libxcb-shm0 armhf 1.17.0-2 [5774 B] 554s Get:47 http://ftpmaster.internal/ubuntu plucky/main armhf libxrender1 armhf 1:0.9.10-1.1build1 [16.0 kB] 554s Get:48 http://ftpmaster.internal/ubuntu plucky/main armhf libcairo2 armhf 1.18.2-2 [484 kB] 555s Get:49 http://ftpmaster.internal/ubuntu plucky/main armhf libdatrie1 armhf 0.2.13-3build1 [15.7 kB] 555s Get:50 http://ftpmaster.internal/ubuntu plucky/main armhf libdeflate0 armhf 1.23-1 [38.5 kB] 555s Get:51 http://ftpmaster.internal/ubuntu plucky/main armhf libdeflate-dev armhf 1.23-1 [45.0 kB] 555s Get:52 http://ftpmaster.internal/ubuntu plucky/main armhf libgraphite2-3 armhf 1.3.14-2ubuntu1 [64.8 kB] 555s Get:53 http://ftpmaster.internal/ubuntu plucky/main armhf libharfbuzz0b armhf 10.2.0-1 [464 kB] 555s Get:54 http://ftpmaster.internal/ubuntu plucky/main armhf x11-common all 1:7.7+23ubuntu3 [21.7 kB] 555s Get:55 http://ftpmaster.internal/ubuntu plucky/main armhf libice6 armhf 2:1.1.1-1 [36.5 kB] 556s Get:56 http://ftpmaster.internal/ubuntu plucky/main armhf libicu-dev armhf 76.1-1ubuntu2 [12.0 MB] 570s Get:57 http://ftpmaster.internal/ubuntu plucky/main armhf libjpeg-turbo8 armhf 2.1.5-3ubuntu2 [127 kB] 570s Get:58 http://ftpmaster.internal/ubuntu plucky/main armhf libjpeg-turbo8-dev armhf 2.1.5-3ubuntu2 [265 kB] 570s Get:59 http://ftpmaster.internal/ubuntu plucky/main armhf libjpeg8 armhf 8c-2ubuntu11 [2148 B] 570s Get:60 http://ftpmaster.internal/ubuntu plucky/main armhf libjpeg8-dev armhf 8c-2ubuntu11 [1484 B] 570s Get:61 http://ftpmaster.internal/ubuntu plucky/main armhf libjpeg-dev armhf 8c-2ubuntu11 [1482 B] 570s Get:62 http://ftpmaster.internal/ubuntu plucky/main armhf liblapack3 armhf 3.12.1-2 [2091 kB] 573s Get:63 http://ftpmaster.internal/ubuntu plucky/main armhf liblapack-dev armhf 3.12.1-2 [2207 kB] 575s Get:64 http://ftpmaster.internal/ubuntu plucky/main armhf liblerc4 armhf 4.0.0+ds-5ubuntu1 [160 kB] 576s Get:65 http://ftpmaster.internal/ubuntu plucky/main armhf libncurses-dev armhf 6.5+20250216-2 [345 kB] 576s Get:66 http://ftpmaster.internal/ubuntu plucky/main armhf libthai-data all 0.1.29-2build1 [158 kB] 576s Get:67 http://ftpmaster.internal/ubuntu plucky/main armhf libthai0 armhf 0.1.29-2build1 [15.2 kB] 576s Get:68 http://ftpmaster.internal/ubuntu plucky/main armhf libpango-1.0-0 armhf 1.56.2-1 [216 kB] 577s Get:69 http://ftpmaster.internal/ubuntu plucky/main armhf libpangoft2-1.0-0 armhf 1.56.2-1 [43.6 kB] 577s Get:70 http://ftpmaster.internal/ubuntu plucky/main armhf libpangocairo-1.0-0 armhf 1.56.2-1 [25.1 kB] 577s Get:71 http://ftpmaster.internal/ubuntu plucky/main armhf libpaper2 armhf 2.2.5-0.3 [16.3 kB] 577s Get:72 http://ftpmaster.internal/ubuntu plucky/main armhf libpaper-utils armhf 2.2.5-0.3 [14.2 kB] 577s Get:73 http://ftpmaster.internal/ubuntu plucky/main armhf libpcre2-16-0 armhf 10.45-1 [207 kB] 577s Get:74 http://ftpmaster.internal/ubuntu plucky/main armhf libpcre2-32-0 armhf 10.45-1 [197 kB] 577s Get:75 http://ftpmaster.internal/ubuntu plucky/main armhf libpcre2-posix3 armhf 10.45-1 [6300 B] 577s Get:76 http://ftpmaster.internal/ubuntu plucky/main armhf libpcre2-dev armhf 10.45-1 [752 kB] 578s Get:77 http://ftpmaster.internal/ubuntu plucky/main armhf libpkgconf3 armhf 1.8.1-4 [26.6 kB] 578s Get:78 http://ftpmaster.internal/ubuntu plucky/main armhf zlib1g-dev armhf 1:1.3.dfsg+really1.3.1-1ubuntu1 [880 kB] 579s Get:79 http://ftpmaster.internal/ubuntu plucky/main armhf libpng-dev armhf 1.6.47-1 [251 kB] 580s Get:80 http://ftpmaster.internal/ubuntu plucky/main armhf libreadline-dev armhf 8.2-6 [153 kB] 580s Get:81 http://ftpmaster.internal/ubuntu plucky/main armhf libsharpyuv0 armhf 1.5.0-0.1 [16.4 kB] 580s Get:82 http://ftpmaster.internal/ubuntu plucky/main armhf libsm6 armhf 2:1.2.4-1 [15.1 kB] 580s Get:83 http://ftpmaster.internal/ubuntu plucky/main armhf libtcl8.6 armhf 8.6.16+dfsg-1 [909 kB] 581s Get:84 http://ftpmaster.internal/ubuntu plucky/main armhf libjbig0 armhf 2.1-6.1ubuntu2 [24.9 kB] 581s Get:85 http://ftpmaster.internal/ubuntu plucky/main armhf libwebp7 armhf 1.5.0-0.1 [188 kB] 581s Get:86 http://ftpmaster.internal/ubuntu plucky/main armhf libtiff6 armhf 4.5.1+git230720-4ubuntu4 [179 kB] 581s Get:87 http://ftpmaster.internal/ubuntu plucky/main armhf libxft2 armhf 2.3.6-1build1 [37.4 kB] 581s Get:88 http://ftpmaster.internal/ubuntu plucky/main armhf libxss1 armhf 1:1.2.3-1build3 [6500 B] 581s Get:89 http://ftpmaster.internal/ubuntu plucky/main armhf libtk8.6 armhf 8.6.16-1 [686 kB] 582s Get:90 http://ftpmaster.internal/ubuntu plucky/main armhf libxt6t64 armhf 1:1.2.1-1.2build1 [145 kB] 582s Get:91 http://ftpmaster.internal/ubuntu plucky/main armhf zip armhf 3.0-14ubuntu2 [164 kB] 583s Get:92 http://ftpmaster.internal/ubuntu plucky/main armhf unzip armhf 6.0-28ubuntu6 [167 kB] 583s Get:93 http://ftpmaster.internal/ubuntu plucky/main armhf xdg-utils all 1.2.1-2ubuntu1 [66.0 kB] 583s Get:94 http://ftpmaster.internal/ubuntu plucky/universe armhf r-base-core armhf 4.4.3-1 [28.2 MB] 616s Get:95 http://ftpmaster.internal/ubuntu plucky/main armhf liblzma-dev armhf 5.6.4-1 [166 kB] 616s Get:96 http://ftpmaster.internal/ubuntu plucky/main armhf pkgconf-bin armhf 1.8.1-4 [21.2 kB] 616s Get:97 http://ftpmaster.internal/ubuntu plucky/main armhf pkgconf armhf 1.8.1-4 [16.8 kB] 616s Get:98 http://ftpmaster.internal/ubuntu plucky/main armhf libtirpc-dev armhf 1.3.4+ds-1.3 [184 kB] 617s Get:99 http://ftpmaster.internal/ubuntu plucky/universe armhf r-base-dev all 4.4.3-1 [4176 B] 617s Get:100 http://ftpmaster.internal/ubuntu plucky/universe armhf pkg-r-autopkgtest all 20231212ubuntu1 [6448 B] 617s Get:101 http://ftpmaster.internal/ubuntu plucky/universe armhf r-cran-gmp armhf 0.7-5-1 [299 kB] 617s Get:102 http://ftpmaster.internal/ubuntu plucky/universe armhf r-cran-mass armhf 7.3-64-1 [1105 kB] 619s Preconfiguring packages ... 619s Fetched 117 MB in 2min 8s (918 kB/s) 619s Selecting previously unselected package libc-dev-bin. 619s (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 ... 64655 files and directories currently installed.) 619s Preparing to unpack .../000-libc-dev-bin_2.41-1ubuntu2_armhf.deb ... 619s Unpacking libc-dev-bin (2.41-1ubuntu2) ... 619s Selecting previously unselected package linux-libc-dev:armhf. 619s Preparing to unpack .../001-linux-libc-dev_6.14.0-10.10_armhf.deb ... 619s Unpacking linux-libc-dev:armhf (6.14.0-10.10) ... 619s Selecting previously unselected package libcrypt-dev:armhf. 619s Preparing to unpack .../002-libcrypt-dev_1%3a4.4.38-1_armhf.deb ... 619s Unpacking libcrypt-dev:armhf (1:4.4.38-1) ... 619s Selecting previously unselected package rpcsvc-proto. 619s Preparing to unpack .../003-rpcsvc-proto_1.4.2-0ubuntu7_armhf.deb ... 619s Unpacking rpcsvc-proto (1.4.2-0ubuntu7) ... 620s Selecting previously unselected package libc6-dev:armhf. 620s Preparing to unpack .../004-libc6-dev_2.41-1ubuntu2_armhf.deb ... 620s Unpacking libc6-dev:armhf (2.41-1ubuntu2) ... 620s Selecting previously unselected package libisl23:armhf. 620s Preparing to unpack .../005-libisl23_0.27-1_armhf.deb ... 620s Unpacking libisl23:armhf (0.27-1) ... 620s Selecting previously unselected package libmpc3:armhf. 620s Preparing to unpack .../006-libmpc3_1.3.1-1build2_armhf.deb ... 620s Unpacking libmpc3:armhf (1.3.1-1build2) ... 620s Selecting previously unselected package cpp-14-arm-linux-gnueabihf. 620s Preparing to unpack .../007-cpp-14-arm-linux-gnueabihf_14.2.0-17ubuntu3_armhf.deb ... 620s Unpacking cpp-14-arm-linux-gnueabihf (14.2.0-17ubuntu3) ... 620s Selecting previously unselected package cpp-14. 620s Preparing to unpack .../008-cpp-14_14.2.0-17ubuntu3_armhf.deb ... 620s Unpacking cpp-14 (14.2.0-17ubuntu3) ... 620s Selecting previously unselected package cpp-arm-linux-gnueabihf. 620s Preparing to unpack .../009-cpp-arm-linux-gnueabihf_4%3a14.2.0-1ubuntu1_armhf.deb ... 620s Unpacking cpp-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 620s Selecting previously unselected package cpp. 620s Preparing to unpack .../010-cpp_4%3a14.2.0-1ubuntu1_armhf.deb ... 620s Unpacking cpp (4:14.2.0-1ubuntu1) ... 620s Selecting previously unselected package libcc1-0:armhf. 620s Preparing to unpack .../011-libcc1-0_15-20250222-0ubuntu1_armhf.deb ... 620s Unpacking libcc1-0:armhf (15-20250222-0ubuntu1) ... 620s Selecting previously unselected package libgomp1:armhf. 620s Preparing to unpack .../012-libgomp1_15-20250222-0ubuntu1_armhf.deb ... 620s Unpacking libgomp1:armhf (15-20250222-0ubuntu1) ... 620s Selecting previously unselected package libasan8:armhf. 620s Preparing to unpack .../013-libasan8_15-20250222-0ubuntu1_armhf.deb ... 620s Unpacking libasan8:armhf (15-20250222-0ubuntu1) ... 620s Selecting previously unselected package libubsan1:armhf. 620s Preparing to unpack .../014-libubsan1_15-20250222-0ubuntu1_armhf.deb ... 620s Unpacking libubsan1:armhf (15-20250222-0ubuntu1) ... 621s Selecting previously unselected package libgcc-14-dev:armhf. 621s Preparing to unpack .../015-libgcc-14-dev_14.2.0-17ubuntu3_armhf.deb ... 621s Unpacking libgcc-14-dev:armhf (14.2.0-17ubuntu3) ... 621s Selecting previously unselected package gcc-14-arm-linux-gnueabihf. 621s Preparing to unpack .../016-gcc-14-arm-linux-gnueabihf_14.2.0-17ubuntu3_armhf.deb ... 621s Unpacking gcc-14-arm-linux-gnueabihf (14.2.0-17ubuntu3) ... 621s Selecting previously unselected package gcc-14. 621s Preparing to unpack .../017-gcc-14_14.2.0-17ubuntu3_armhf.deb ... 621s Unpacking gcc-14 (14.2.0-17ubuntu3) ... 621s Selecting previously unselected package gcc-arm-linux-gnueabihf. 621s Preparing to unpack .../018-gcc-arm-linux-gnueabihf_4%3a14.2.0-1ubuntu1_armhf.deb ... 621s Unpacking gcc-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 621s Selecting previously unselected package gcc. 621s Preparing to unpack .../019-gcc_4%3a14.2.0-1ubuntu1_armhf.deb ... 621s Unpacking gcc (4:14.2.0-1ubuntu1) ... 621s Selecting previously unselected package libstdc++-14-dev:armhf. 621s Preparing to unpack .../020-libstdc++-14-dev_14.2.0-17ubuntu3_armhf.deb ... 621s Unpacking libstdc++-14-dev:armhf (14.2.0-17ubuntu3) ... 622s Selecting previously unselected package g++-14-arm-linux-gnueabihf. 622s Preparing to unpack .../021-g++-14-arm-linux-gnueabihf_14.2.0-17ubuntu3_armhf.deb ... 622s Unpacking g++-14-arm-linux-gnueabihf (14.2.0-17ubuntu3) ... 622s Selecting previously unselected package g++-14. 622s Preparing to unpack .../022-g++-14_14.2.0-17ubuntu3_armhf.deb ... 622s Unpacking g++-14 (14.2.0-17ubuntu3) ... 622s Selecting previously unselected package g++-arm-linux-gnueabihf. 622s Preparing to unpack .../023-g++-arm-linux-gnueabihf_4%3a14.2.0-1ubuntu1_armhf.deb ... 622s Unpacking g++-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 622s Selecting previously unselected package g++. 622s Preparing to unpack .../024-g++_4%3a14.2.0-1ubuntu1_armhf.deb ... 622s Unpacking g++ (4:14.2.0-1ubuntu1) ... 622s Selecting previously unselected package build-essential. 622s Preparing to unpack .../025-build-essential_12.10ubuntu1_armhf.deb ... 622s Unpacking build-essential (12.10ubuntu1) ... 622s Selecting previously unselected package dctrl-tools. 622s Preparing to unpack .../026-dctrl-tools_2.24-3build3_armhf.deb ... 622s Unpacking dctrl-tools (2.24-3build3) ... 622s Selecting previously unselected package libfreetype6:armhf. 622s Preparing to unpack .../027-libfreetype6_2.13.3+dfsg-1_armhf.deb ... 622s Unpacking libfreetype6:armhf (2.13.3+dfsg-1) ... 622s Selecting previously unselected package fonts-dejavu-mono. 622s Preparing to unpack .../028-fonts-dejavu-mono_2.37-8_all.deb ... 622s Unpacking fonts-dejavu-mono (2.37-8) ... 622s Selecting previously unselected package fonts-dejavu-core. 622s Preparing to unpack .../029-fonts-dejavu-core_2.37-8_all.deb ... 622s Unpacking fonts-dejavu-core (2.37-8) ... 622s Selecting previously unselected package fontconfig-config. 622s Preparing to unpack .../030-fontconfig-config_2.15.0-2ubuntu1_armhf.deb ... 623s Unpacking fontconfig-config (2.15.0-2ubuntu1) ... 623s Selecting previously unselected package libfontconfig1:armhf. 623s Preparing to unpack .../031-libfontconfig1_2.15.0-2ubuntu1_armhf.deb ... 623s Unpacking libfontconfig1:armhf (2.15.0-2ubuntu1) ... 623s Selecting previously unselected package fontconfig. 623s Preparing to unpack .../032-fontconfig_2.15.0-2ubuntu1_armhf.deb ... 623s Unpacking fontconfig (2.15.0-2ubuntu1) ... 623s Selecting previously unselected package libgfortran5:armhf. 623s Preparing to unpack .../033-libgfortran5_15-20250222-0ubuntu1_armhf.deb ... 623s Unpacking libgfortran5:armhf (15-20250222-0ubuntu1) ... 623s Selecting previously unselected package libgfortran-14-dev:armhf. 623s Preparing to unpack .../034-libgfortran-14-dev_14.2.0-17ubuntu3_armhf.deb ... 623s Unpacking libgfortran-14-dev:armhf (14.2.0-17ubuntu3) ... 623s Selecting previously unselected package gfortran-14-arm-linux-gnueabihf. 623s Preparing to unpack .../035-gfortran-14-arm-linux-gnueabihf_14.2.0-17ubuntu3_armhf.deb ... 623s Unpacking gfortran-14-arm-linux-gnueabihf (14.2.0-17ubuntu3) ... 623s Selecting previously unselected package gfortran-14. 623s Preparing to unpack .../036-gfortran-14_14.2.0-17ubuntu3_armhf.deb ... 623s Unpacking gfortran-14 (14.2.0-17ubuntu3) ... 623s Selecting previously unselected package gfortran-arm-linux-gnueabihf. 623s Preparing to unpack .../037-gfortran-arm-linux-gnueabihf_4%3a14.2.0-1ubuntu1_armhf.deb ... 623s Unpacking gfortran-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 623s Selecting previously unselected package gfortran. 623s Preparing to unpack .../038-gfortran_4%3a14.2.0-1ubuntu1_armhf.deb ... 623s Unpacking gfortran (4:14.2.0-1ubuntu1) ... 623s Selecting previously unselected package icu-devtools. 623s Preparing to unpack .../039-icu-devtools_76.1-1ubuntu2_armhf.deb ... 623s Unpacking icu-devtools (76.1-1ubuntu2) ... 623s Selecting previously unselected package libblas3:armhf. 623s Preparing to unpack .../040-libblas3_3.12.1-2_armhf.deb ... 623s Unpacking libblas3:armhf (3.12.1-2) ... 623s Selecting previously unselected package libblas-dev:armhf. 623s Preparing to unpack .../041-libblas-dev_3.12.1-2_armhf.deb ... 623s Unpacking libblas-dev:armhf (3.12.1-2) ... 623s Selecting previously unselected package libbz2-dev:armhf. 623s Preparing to unpack .../042-libbz2-dev_1.0.8-6_armhf.deb ... 623s Unpacking libbz2-dev:armhf (1.0.8-6) ... 623s Selecting previously unselected package libpixman-1-0:armhf. 623s Preparing to unpack .../043-libpixman-1-0_0.44.0-3_armhf.deb ... 623s Unpacking libpixman-1-0:armhf (0.44.0-3) ... 623s Selecting previously unselected package libxcb-render0:armhf. 623s Preparing to unpack .../044-libxcb-render0_1.17.0-2_armhf.deb ... 623s Unpacking libxcb-render0:armhf (1.17.0-2) ... 623s Selecting previously unselected package libxcb-shm0:armhf. 624s Preparing to unpack .../045-libxcb-shm0_1.17.0-2_armhf.deb ... 624s Unpacking libxcb-shm0:armhf (1.17.0-2) ... 624s Selecting previously unselected package libxrender1:armhf. 624s Preparing to unpack .../046-libxrender1_1%3a0.9.10-1.1build1_armhf.deb ... 624s Unpacking libxrender1:armhf (1:0.9.10-1.1build1) ... 624s Selecting previously unselected package libcairo2:armhf. 624s Preparing to unpack .../047-libcairo2_1.18.2-2_armhf.deb ... 624s Unpacking libcairo2:armhf (1.18.2-2) ... 624s Selecting previously unselected package libdatrie1:armhf. 624s Preparing to unpack .../048-libdatrie1_0.2.13-3build1_armhf.deb ... 624s Unpacking libdatrie1:armhf (0.2.13-3build1) ... 624s Selecting previously unselected package libdeflate0:armhf. 624s Preparing to unpack .../049-libdeflate0_1.23-1_armhf.deb ... 624s Unpacking libdeflate0:armhf (1.23-1) ... 624s Selecting previously unselected package libdeflate-dev:armhf. 624s Preparing to unpack .../050-libdeflate-dev_1.23-1_armhf.deb ... 624s Unpacking libdeflate-dev:armhf (1.23-1) ... 624s Selecting previously unselected package libgraphite2-3:armhf. 624s Preparing to unpack .../051-libgraphite2-3_1.3.14-2ubuntu1_armhf.deb ... 624s Unpacking libgraphite2-3:armhf (1.3.14-2ubuntu1) ... 624s Selecting previously unselected package libharfbuzz0b:armhf. 624s Preparing to unpack .../052-libharfbuzz0b_10.2.0-1_armhf.deb ... 624s Unpacking libharfbuzz0b:armhf (10.2.0-1) ... 624s Selecting previously unselected package x11-common. 624s Preparing to unpack .../053-x11-common_1%3a7.7+23ubuntu3_all.deb ... 624s Unpacking x11-common (1:7.7+23ubuntu3) ... 624s Selecting previously unselected package libice6:armhf. 624s Preparing to unpack .../054-libice6_2%3a1.1.1-1_armhf.deb ... 624s Unpacking libice6:armhf (2:1.1.1-1) ... 624s Selecting previously unselected package libicu-dev:armhf. 624s Preparing to unpack .../055-libicu-dev_76.1-1ubuntu2_armhf.deb ... 624s Unpacking libicu-dev:armhf (76.1-1ubuntu2) ... 624s Selecting previously unselected package libjpeg-turbo8:armhf. 624s Preparing to unpack .../056-libjpeg-turbo8_2.1.5-3ubuntu2_armhf.deb ... 624s Unpacking libjpeg-turbo8:armhf (2.1.5-3ubuntu2) ... 625s Selecting previously unselected package libjpeg-turbo8-dev:armhf. 625s Preparing to unpack .../057-libjpeg-turbo8-dev_2.1.5-3ubuntu2_armhf.deb ... 625s Unpacking libjpeg-turbo8-dev:armhf (2.1.5-3ubuntu2) ... 625s Selecting previously unselected package libjpeg8:armhf. 625s Preparing to unpack .../058-libjpeg8_8c-2ubuntu11_armhf.deb ... 625s Unpacking libjpeg8:armhf (8c-2ubuntu11) ... 625s Selecting previously unselected package libjpeg8-dev:armhf. 625s Preparing to unpack .../059-libjpeg8-dev_8c-2ubuntu11_armhf.deb ... 625s Unpacking libjpeg8-dev:armhf (8c-2ubuntu11) ... 625s Selecting previously unselected package libjpeg-dev:armhf. 625s Preparing to unpack .../060-libjpeg-dev_8c-2ubuntu11_armhf.deb ... 625s Unpacking libjpeg-dev:armhf (8c-2ubuntu11) ... 625s Selecting previously unselected package liblapack3:armhf. 625s Preparing to unpack .../061-liblapack3_3.12.1-2_armhf.deb ... 625s Unpacking liblapack3:armhf (3.12.1-2) ... 625s Selecting previously unselected package liblapack-dev:armhf. 625s Preparing to unpack .../062-liblapack-dev_3.12.1-2_armhf.deb ... 625s Unpacking liblapack-dev:armhf (3.12.1-2) ... 625s Selecting previously unselected package liblerc4:armhf. 625s Preparing to unpack .../063-liblerc4_4.0.0+ds-5ubuntu1_armhf.deb ... 625s Unpacking liblerc4:armhf (4.0.0+ds-5ubuntu1) ... 625s Selecting previously unselected package libncurses-dev:armhf. 625s Preparing to unpack .../064-libncurses-dev_6.5+20250216-2_armhf.deb ... 625s Unpacking libncurses-dev:armhf (6.5+20250216-2) ... 625s Selecting previously unselected package libthai-data. 625s Preparing to unpack .../065-libthai-data_0.1.29-2build1_all.deb ... 625s Unpacking libthai-data (0.1.29-2build1) ... 625s Selecting previously unselected package libthai0:armhf. 625s Preparing to unpack .../066-libthai0_0.1.29-2build1_armhf.deb ... 625s Unpacking libthai0:armhf (0.1.29-2build1) ... 625s Selecting previously unselected package libpango-1.0-0:armhf. 625s Preparing to unpack .../067-libpango-1.0-0_1.56.2-1_armhf.deb ... 625s Unpacking libpango-1.0-0:armhf (1.56.2-1) ... 625s Selecting previously unselected package libpangoft2-1.0-0:armhf. 625s Preparing to unpack .../068-libpangoft2-1.0-0_1.56.2-1_armhf.deb ... 625s Unpacking libpangoft2-1.0-0:armhf (1.56.2-1) ... 625s Selecting previously unselected package libpangocairo-1.0-0:armhf. 625s Preparing to unpack .../069-libpangocairo-1.0-0_1.56.2-1_armhf.deb ... 625s Unpacking libpangocairo-1.0-0:armhf (1.56.2-1) ... 625s Selecting previously unselected package libpaper2:armhf. 625s Preparing to unpack .../070-libpaper2_2.2.5-0.3_armhf.deb ... 625s Unpacking libpaper2:armhf (2.2.5-0.3) ... 625s Selecting previously unselected package libpaper-utils. 625s Preparing to unpack .../071-libpaper-utils_2.2.5-0.3_armhf.deb ... 625s Unpacking libpaper-utils (2.2.5-0.3) ... 625s Selecting previously unselected package libpcre2-16-0:armhf. 625s Preparing to unpack .../072-libpcre2-16-0_10.45-1_armhf.deb ... 625s Unpacking libpcre2-16-0:armhf (10.45-1) ... 625s Selecting previously unselected package libpcre2-32-0:armhf. 625s Preparing to unpack .../073-libpcre2-32-0_10.45-1_armhf.deb ... 625s Unpacking libpcre2-32-0:armhf (10.45-1) ... 625s Selecting previously unselected package libpcre2-posix3:armhf. 625s Preparing to unpack .../074-libpcre2-posix3_10.45-1_armhf.deb ... 625s Unpacking libpcre2-posix3:armhf (10.45-1) ... 626s Selecting previously unselected package libpcre2-dev:armhf. 626s Preparing to unpack .../075-libpcre2-dev_10.45-1_armhf.deb ... 626s Unpacking libpcre2-dev:armhf (10.45-1) ... 626s Selecting previously unselected package libpkgconf3:armhf. 626s Preparing to unpack .../076-libpkgconf3_1.8.1-4_armhf.deb ... 626s Unpacking libpkgconf3:armhf (1.8.1-4) ... 626s Selecting previously unselected package zlib1g-dev:armhf. 626s Preparing to unpack .../077-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu1_armhf.deb ... 626s Unpacking zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 626s Selecting previously unselected package libpng-dev:armhf. 626s Preparing to unpack .../078-libpng-dev_1.6.47-1_armhf.deb ... 626s Unpacking libpng-dev:armhf (1.6.47-1) ... 626s Selecting previously unselected package libreadline-dev:armhf. 626s Preparing to unpack .../079-libreadline-dev_8.2-6_armhf.deb ... 626s Unpacking libreadline-dev:armhf (8.2-6) ... 626s Selecting previously unselected package libsharpyuv0:armhf. 626s Preparing to unpack .../080-libsharpyuv0_1.5.0-0.1_armhf.deb ... 626s Unpacking libsharpyuv0:armhf (1.5.0-0.1) ... 626s Selecting previously unselected package libsm6:armhf. 626s Preparing to unpack .../081-libsm6_2%3a1.2.4-1_armhf.deb ... 626s Unpacking libsm6:armhf (2:1.2.4-1) ... 626s Selecting previously unselected package libtcl8.6:armhf. 626s Preparing to unpack .../082-libtcl8.6_8.6.16+dfsg-1_armhf.deb ... 626s Unpacking libtcl8.6:armhf (8.6.16+dfsg-1) ... 626s Selecting previously unselected package libjbig0:armhf. 626s Preparing to unpack .../083-libjbig0_2.1-6.1ubuntu2_armhf.deb ... 626s Unpacking libjbig0:armhf (2.1-6.1ubuntu2) ... 626s Selecting previously unselected package libwebp7:armhf. 626s Preparing to unpack .../084-libwebp7_1.5.0-0.1_armhf.deb ... 626s Unpacking libwebp7:armhf (1.5.0-0.1) ... 626s Selecting previously unselected package libtiff6:armhf. 626s Preparing to unpack .../085-libtiff6_4.5.1+git230720-4ubuntu4_armhf.deb ... 626s Unpacking libtiff6:armhf (4.5.1+git230720-4ubuntu4) ... 626s Selecting previously unselected package libxft2:armhf. 626s Preparing to unpack .../086-libxft2_2.3.6-1build1_armhf.deb ... 626s Unpacking libxft2:armhf (2.3.6-1build1) ... 626s Selecting previously unselected package libxss1:armhf. 626s Preparing to unpack .../087-libxss1_1%3a1.2.3-1build3_armhf.deb ... 626s Unpacking libxss1:armhf (1:1.2.3-1build3) ... 626s Selecting previously unselected package libtk8.6:armhf. 626s Preparing to unpack .../088-libtk8.6_8.6.16-1_armhf.deb ... 626s Unpacking libtk8.6:armhf (8.6.16-1) ... 626s Selecting previously unselected package libxt6t64:armhf. 626s Preparing to unpack .../089-libxt6t64_1%3a1.2.1-1.2build1_armhf.deb ... 626s Unpacking libxt6t64:armhf (1:1.2.1-1.2build1) ... 626s Selecting previously unselected package zip. 626s Preparing to unpack .../090-zip_3.0-14ubuntu2_armhf.deb ... 626s Unpacking zip (3.0-14ubuntu2) ... 626s Selecting previously unselected package unzip. 626s Preparing to unpack .../091-unzip_6.0-28ubuntu6_armhf.deb ... 626s Unpacking unzip (6.0-28ubuntu6) ... 626s Selecting previously unselected package xdg-utils. 626s Preparing to unpack .../092-xdg-utils_1.2.1-2ubuntu1_all.deb ... 626s Unpacking xdg-utils (1.2.1-2ubuntu1) ... 627s Selecting previously unselected package r-base-core. 627s Preparing to unpack .../093-r-base-core_4.4.3-1_armhf.deb ... 627s Unpacking r-base-core (4.4.3-1) ... 627s Selecting previously unselected package liblzma-dev:armhf. 627s Preparing to unpack .../094-liblzma-dev_5.6.4-1_armhf.deb ... 627s Unpacking liblzma-dev:armhf (5.6.4-1) ... 627s Selecting previously unselected package pkgconf-bin. 627s Preparing to unpack .../095-pkgconf-bin_1.8.1-4_armhf.deb ... 627s Unpacking pkgconf-bin (1.8.1-4) ... 627s Selecting previously unselected package pkgconf:armhf. 627s Preparing to unpack .../096-pkgconf_1.8.1-4_armhf.deb ... 627s Unpacking pkgconf:armhf (1.8.1-4) ... 627s Selecting previously unselected package libtirpc-dev:armhf. 627s Preparing to unpack .../097-libtirpc-dev_1.3.4+ds-1.3_armhf.deb ... 627s Unpacking libtirpc-dev:armhf (1.3.4+ds-1.3) ... 627s Selecting previously unselected package r-base-dev. 627s Preparing to unpack .../098-r-base-dev_4.4.3-1_all.deb ... 627s Unpacking r-base-dev (4.4.3-1) ... 627s Selecting previously unselected package pkg-r-autopkgtest. 627s Preparing to unpack .../099-pkg-r-autopkgtest_20231212ubuntu1_all.deb ... 627s Unpacking pkg-r-autopkgtest (20231212ubuntu1) ... 627s Selecting previously unselected package r-cran-gmp. 627s Preparing to unpack .../100-r-cran-gmp_0.7-5-1_armhf.deb ... 627s Unpacking r-cran-gmp (0.7-5-1) ... 627s Selecting previously unselected package r-cran-mass. 627s Preparing to unpack .../101-r-cran-mass_7.3-64-1_armhf.deb ... 627s Unpacking r-cran-mass (7.3-64-1) ... 627s Setting up libgraphite2-3:armhf (1.3.14-2ubuntu1) ... 627s Setting up libpixman-1-0:armhf (0.44.0-3) ... 627s Setting up libsharpyuv0:armhf (1.5.0-0.1) ... 627s Setting up liblerc4:armhf (4.0.0+ds-5ubuntu1) ... 627s Setting up libxrender1:armhf (1:0.9.10-1.1build1) ... 628s Setting up libdatrie1:armhf (0.2.13-3build1) ... 628s Setting up libxcb-render0:armhf (1.17.0-2) ... 628s Setting up unzip (6.0-28ubuntu6) ... 628s Setting up x11-common (1:7.7+23ubuntu3) ... 628s Setting up libdeflate0:armhf (1.23-1) ... 628s Setting up linux-libc-dev:armhf (6.14.0-10.10) ... 628s Setting up libxcb-shm0:armhf (1.17.0-2) ... 628s Setting up libgomp1:armhf (15-20250222-0ubuntu1) ... 628s Setting up libjbig0:armhf (2.1-6.1ubuntu2) ... 628s Setting up libpcre2-16-0:armhf (10.45-1) ... 628s Setting up zip (3.0-14ubuntu2) ... 628s Setting up libpcre2-32-0:armhf (10.45-1) ... 628s Setting up libblas3:armhf (3.12.1-2) ... 628s update-alternatives: using /usr/lib/arm-linux-gnueabihf/blas/libblas.so.3 to provide /usr/lib/arm-linux-gnueabihf/libblas.so.3 (libblas.so.3-arm-linux-gnueabihf) in auto mode 628s Setting up libtirpc-dev:armhf (1.3.4+ds-1.3) ... 628s Setting up libpkgconf3:armhf (1.8.1-4) ... 628s Setting up rpcsvc-proto (1.4.2-0ubuntu7) ... 628s Setting up libfreetype6:armhf (2.13.3+dfsg-1) ... 628s Setting up fonts-dejavu-mono (2.37-8) ... 628s Setting up libmpc3:armhf (1.3.1-1build2) ... 628s Setting up libtcl8.6:armhf (8.6.16+dfsg-1) ... 628s Setting up icu-devtools (76.1-1ubuntu2) ... 628s Setting up fonts-dejavu-core (2.37-8) ... 628s Setting up pkgconf-bin (1.8.1-4) ... 628s Setting up libjpeg-turbo8:armhf (2.1.5-3ubuntu2) ... 628s Setting up libgfortran5:armhf (15-20250222-0ubuntu1) ... 628s Setting up libwebp7:armhf (1.5.0-0.1) ... 628s Setting up liblzma-dev:armhf (5.6.4-1) ... 628s Setting up libubsan1:armhf (15-20250222-0ubuntu1) ... 628s Setting up libpcre2-posix3:armhf (10.45-1) ... 628s Setting up libcrypt-dev:armhf (1:4.4.38-1) ... 628s Setting up libasan8:armhf (15-20250222-0ubuntu1) ... 628s Setting up libharfbuzz0b:armhf (10.2.0-1) ... 628s Setting up libthai-data (0.1.29-2build1) ... 628s Setting up libxss1:armhf (1:1.2.3-1build3) ... 628s Setting up libpaper2:armhf (2.2.5-0.3) ... 628s Setting up libgcc-14-dev:armhf (14.2.0-17ubuntu3) ... 628s Setting up libisl23:armhf (0.27-1) ... 628s Setting up libc-dev-bin (2.41-1ubuntu2) ... 628s Setting up libdeflate-dev:armhf (1.23-1) ... 628s Setting up xdg-utils (1.2.1-2ubuntu1) ... 628s update-alternatives: using /usr/bin/xdg-open to provide /usr/bin/open (open) in auto mode 628s Setting up libcc1-0:armhf (15-20250222-0ubuntu1) ... 628s Setting up libblas-dev:armhf (3.12.1-2) ... 628s update-alternatives: using /usr/lib/arm-linux-gnueabihf/blas/libblas.so to provide /usr/lib/arm-linux-gnueabihf/libblas.so (libblas.so-arm-linux-gnueabihf) in auto mode 628s Setting up dctrl-tools (2.24-3build3) ... 628s Setting up cpp-14-arm-linux-gnueabihf (14.2.0-17ubuntu3) ... 628s Setting up libjpeg8:armhf (8c-2ubuntu11) ... 628s Setting up libgfortran-14-dev:armhf (14.2.0-17ubuntu3) ... 628s Setting up libice6:armhf (2:1.1.1-1) ... 628s Setting up liblapack3:armhf (3.12.1-2) ... 628s update-alternatives: using /usr/lib/arm-linux-gnueabihf/lapack/liblapack.so.3 to provide /usr/lib/arm-linux-gnueabihf/liblapack.so.3 (liblapack.so.3-arm-linux-gnueabihf) in auto mode 628s Setting up fontconfig-config (2.15.0-2ubuntu1) ... 628s Setting up gcc-14-arm-linux-gnueabihf (14.2.0-17ubuntu3) ... 628s Setting up libpaper-utils (2.2.5-0.3) ... 628s Setting up pkgconf:armhf (1.8.1-4) ... 628s Setting up libthai0:armhf (0.1.29-2build1) ... 628s Setting up liblapack-dev:armhf (3.12.1-2) ... 628s update-alternatives: using /usr/lib/arm-linux-gnueabihf/lapack/liblapack.so to provide /usr/lib/arm-linux-gnueabihf/liblapack.so (liblapack.so-arm-linux-gnueabihf) in auto mode 628s Setting up cpp-14 (14.2.0-17ubuntu3) ... 628s Setting up libtiff6:armhf (4.5.1+git230720-4ubuntu4) ... 628s Setting up libc6-dev:armhf (2.41-1ubuntu2) ... 628s Setting up libfontconfig1:armhf (2.15.0-2ubuntu1) ... 628s Setting up libstdc++-14-dev:armhf (14.2.0-17ubuntu3) ... 628s Setting up libsm6:armhf (2:1.2.4-1) ... 628s Setting up libicu-dev:armhf (76.1-1ubuntu2) ... 628s Setting up cpp-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 628s Setting up gfortran-14-arm-linux-gnueabihf (14.2.0-17ubuntu3) ... 628s Setting up libbz2-dev:armhf (1.0.8-6) ... 628s Setting up gcc-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 628s Setting up g++-14-arm-linux-gnueabihf (14.2.0-17ubuntu3) ... 629s Setting up fontconfig (2.15.0-2ubuntu1) ... 631s Regenerating fonts cache... done. 631s Setting up libjpeg-turbo8-dev:armhf (2.1.5-3ubuntu2) ... 631s Setting up libxft2:armhf (2.3.6-1build1) ... 631s Setting up libncurses-dev:armhf (6.5+20250216-2) ... 631s Setting up libpcre2-dev:armhf (10.45-1) ... 631s Setting up libtk8.6:armhf (8.6.16-1) ... 631s Setting up libpango-1.0-0:armhf (1.56.2-1) ... 631s Setting up libreadline-dev:armhf (8.2-6) ... 631s Setting up libcairo2:armhf (1.18.2-2) ... 631s Setting up gcc-14 (14.2.0-17ubuntu3) ... 631s Setting up gfortran-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 631s Setting up libxt6t64:armhf (1:1.2.1-1.2build1) ... 631s Setting up zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 631s Setting up cpp (4:14.2.0-1ubuntu1) ... 631s Setting up g++-14 (14.2.0-17ubuntu3) ... 631s Setting up libpangoft2-1.0-0:armhf (1.56.2-1) ... 631s Setting up libjpeg8-dev:armhf (8c-2ubuntu11) ... 631s Setting up gfortran-14 (14.2.0-17ubuntu3) ... 631s Setting up libpangocairo-1.0-0:armhf (1.56.2-1) ... 631s Setting up g++-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 631s Setting up libpng-dev:armhf (1.6.47-1) ... 631s Setting up libjpeg-dev:armhf (8c-2ubuntu11) ... 631s Setting up gcc (4:14.2.0-1ubuntu1) ... 631s Setting up r-base-core (4.4.3-1) ... 631s Creating config file /etc/R/Renviron with new version 631s Setting up g++ (4:14.2.0-1ubuntu1) ... 631s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 631s Setting up build-essential (12.10ubuntu1) ... 631s Setting up r-cran-gmp (0.7-5-1) ... 631s Setting up r-cran-mass (7.3-64-1) ... 631s Setting up gfortran (4:14.2.0-1ubuntu1) ... 631s update-alternatives: using /usr/bin/gfortran to provide /usr/bin/f95 (f95) in auto mode 631s 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 631s update-alternatives: using /usr/bin/gfortran to provide /usr/bin/f77 (f77) in auto mode 631s 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 631s Setting up r-base-dev (4.4.3-1) ... 631s Setting up pkg-r-autopkgtest (20231212ubuntu1) ... 631s Processing triggers for libc-bin (2.41-1ubuntu2) ... 631s Processing triggers for man-db (2.13.0-1) ... 632s Processing triggers for install-info (7.1.1-1) ... 647s autopkgtest [16:22:23]: test pkg-r-autopkgtest: /usr/share/dh-r/pkg-r-autopkgtest 647s autopkgtest [16:22:23]: test pkg-r-autopkgtest: [----------------------- 649s Test: Try to load the R library gmp 649s 649s R version 4.4.3 (2025-02-28) -- "Trophy Case" 649s Copyright (C) 2025 The R Foundation for Statistical Computing 649s Platform: arm-unknown-linux-gnueabihf (32-bit) 649s 649s R is free software and comes with ABSOLUTELY NO WARRANTY. 649s You are welcome to redistribute it under certain conditions. 649s Type 'license()' or 'licence()' for distribution details. 649s 649s R is a collaborative project with many contributors. 649s Type 'contributors()' for more information and 649s 'citation()' on how to cite R or R packages in publications. 649s 649s Type 'demo()' for some demos, 'help()' for on-line help, or 649s 'help.start()' for an HTML browser interface to help. 649s Type 'q()' to quit R. 649s 649s > library('gmp') 649s 649s Attaching package: ‘gmp’ 649s 649s The following objects are masked from ‘package:base’: 649s 649s %*%, apply, crossprod, matrix, tcrossprod 649s 649s > 649s > 649s Other tests are currently unsupported! 649s They will be progressively added. 650s autopkgtest [16:22:26]: test pkg-r-autopkgtest: -----------------------] 653s autopkgtest [16:22:29]: test pkg-r-autopkgtest: - - - - - - - - - - results - - - - - - - - - - 653s pkg-r-autopkgtest PASS 657s autopkgtest [16:22:33]: @@@@@@@@@@@@@@@@@@@@ summary 657s run-unit-test PASS 657s pkg-r-autopkgtest PASS