1-- cuberoot-apd.decTest -- decimal cube root 2 3-- These tests are not part of the GDA test suite, but were written for 4-- apd. They are not as exhaustive as those tests, but do cover a number of 5-- useful results. 6 7extended: 0 8precision: 9 9rounding: half_up 10maxExponent: 999 11minExponent: -999 12 13-- basics 14cbtx001 cuberoot 1 -> 1 15cbtx002 cuberoot -1 -> -1 16cbtx003 cuberoot 1.00 -> 1.0 17cbtx004 cuberoot -1.00 -> -1.0 18cbtx005 cuberoot 0 -> 0 19cbtx006 cuberoot 00.0 -> 0 20cbtx007 cuberoot 0.00 -> 0 21cbtx008 cuberoot 00.00 -> 0 22cbtx009 cuberoot 00 -> 0 23 24cbtx010 cuberoot -2 -> -1.25992105 Inexact Rounded 25cbtx011 cuberoot 2 -> 1.25992105 Inexact Rounded 26cbtx012 cuberoot -2.00 -> -1.25992105 Inexact Rounded 27cbtx013 cuberoot 2.00 -> 1.25992105 Inexact Rounded 28cbtx014 cuberoot -0 -> -0 29cbtx015 cuberoot -0.00 -> -0.0 30cbtx016 cuberoot -00.0 -> -0.0 31cbtx017 cuberoot -0E+9 -> -0E+3 32cbtx018 cuberoot -0E+10 -> -0E+3 33cbtx019 cuberoot -0E+11 -> -0E+3 34cbtx020 cuberoot -0E+12 -> -0E+4 35cbtx021 cuberoot -00 -> -0 36cbtx022 cuberoot 0E+5 -> 0 37cbtx023 cuberoot 8.0 -> 2.0 38cbtx024 cuberoot 8.00 -> 2.0 39 40cbtx030 cuberoot +0.1 -> 0.464158883 Inexact Rounded 41cbtx031 cuberoot -0.1 -> -0.464158883 Inexact Rounded 42cbtx032 cuberoot +0.01 -> 0.215443469 Inexact Rounded 43cbtx033 cuberoot -0.01 -> -0.215443469 Inexact Rounded 44cbtx034 cuberoot +0.001 -> 0.1 45cbtx035 cuberoot -0.001 -> -0.1 46cbtx036 cuberoot +0.000001 -> 0.01 47cbtx037 cuberoot -0.000001 -> -0.01 48cbtx038 cuberoot +0.000000000001 -> 0.0001 49cbtx039 cuberoot -0.000000000001 -> -0.0001 50 51cbtx041 cuberoot 1.1 -> 1.03228012 Inexact Rounded 52cbtx042 cuberoot 1.10 -> 1.03228012 Inexact Rounded 53cbtx043 cuberoot 1.100 -> 1.03228012 Inexact Rounded 54cbtx044 cuberoot 1.110 -> 1.03539881 Inexact Rounded 55cbtx045 cuberoot -1.1 -> -1.03228012 Inexact Rounded 56cbtx046 cuberoot -1.10 -> -1.03228012 Inexact Rounded 57cbtx047 cuberoot -1.100 -> -1.03228012 Inexact Rounded 58cbtx048 cuberoot -1.110 -> -1.03539881 Inexact Rounded 59cbtx049 cuberoot 9.9 -> 2.14722917 Inexact Rounded 60cbtx050 cuberoot 9.90 -> 2.14722917 Inexact Rounded 61cbtx051 cuberoot 9.900 -> 2.14722917 Inexact Rounded 62cbtx052 cuberoot 9.990 -> 2.15371631 Inexact Rounded 63cbtx053 cuberoot -9.9 -> -2.14722917 Inexact Rounded 64cbtx054 cuberoot -9.90 -> -2.14722917 Inexact Rounded 65cbtx055 cuberoot -9.900 -> -2.14722917 Inexact Rounded 66cbtx056 cuberoot -9.990 -> -2.15371631 Inexact Rounded 67 68cbtx060 cuberoot 10.0 -> 2.15443469 Inexact Rounded 69cbtx061 cuberoot 10.00 -> 2.15443469 Inexact Rounded 70cbtx062 cuberoot 1000.0 -> 10.0 71cbtx063 cuberoot 1000.00 -> 10.0 72cbtx064 cuberoot 1.1000E+3 -> 10.3228012 Inexact Rounded 73cbtx065 cuberoot 1.10000E+3 -> 10.3228012 Inexact Rounded 74cbtx066 cuberoot -10.0 -> -2.15443469 Inexact Rounded 75cbtx067 cuberoot -10.00 -> -2.15443469 Inexact Rounded 76cbtx068 cuberoot -1000.0 -> -10.0 77cbtx069 cuberoot -1000.00 -> -10.0 78cbtx070 cuberoot -1.1000E+3 -> -10.3228012 Inexact Rounded 79cbtx071 cuberoot -1.10000E+3 -> -10.3228012 Inexact Rounded 80 81-- famous cubes 82cbtx080 cuberoot 1 -> 1 83cbtx081 cuberoot 8 -> 2 84cbtx082 cuberoot 27 -> 3 85cbtx083 cuberoot 64 -> 4 86cbtx084 cuberoot 125 -> 5 87cbtx085 cuberoot 216 -> 6 88cbtx086 cuberoot 343 -> 7 89cbtx087 cuberoot 512 -> 8 90cbtx088 cuberoot 729 -> 9 91cbtx089 cuberoot 1000 -> 10 92 93-- others 94precision: 5 95 96cbtx100 cuberoot 1.0001 -> 1.0000 Inexact Rounded 97