08-Jan-2022 09:32:24 sftpack_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 Test sftpack() C8MAT_SFT_TEST C8MAT_SFTF computes the forward slow Fourier transform. C8MAT_SFTB computes the backward slow Fourier transform. The data has dimension N1 = 10 by N2 = 4 The data X: Col: 1 2 3 4 Row --- 1: 0.749055 -0.503627 0.789478 0.180180 -0.487269 0.448679 -0.027743 0.866313 2: 0.304860 -0.184519 0.843363 -0.371307 0.245155 -0.839890 -0.223727 -0.675206 3: 0.650485 0.457415 0.040050 -0.822880 -0.431394 0.027782 0.913169 -0.238800 4: -0.504999 -0.153212 -0.671846 0.540144 -0.404764 -0.530803 0.476437 0.565883 5: 0.954807 -0.214127 0.384735 0.712360 0.024798 -0.841873 -0.018221 0.385956 6: 0.390247 -0.072938 0.823514 0.166945 -0.224584 -0.474960 -0.024667 0.916574 7: -0.974222 0.089772 0.504246 0.150530 0.422416 0.690408 0.036702 0.901631 8: 0.562020 0.695999 0.138793 -0.279049 -0.344942 0.003546 -0.566536 0.779937 9: 0.560515 -0.328001 -0.341111 0.760574 -0.526934 0.825884 -0.003020 0.443380 10: 0.861387 -0.224097 0.952051 0.209332 0.125314 0.754695 -0.773857 0.131111 The Fourier coefficients Y: Col: 1 2 3 4 Row --- 1: 5.203763 4.949738 7.986308 3.173934 -1.299861 -5.697476 2.326412 -4.175539 2: 7.228890 -0.825076 0.902729 -1.790107 1.984279 1.552650 -2.553243 -2.581033 3: 5.466597 -0.375991 -1.811023 2.894053 -4.831985 -5.121926 -2.102118 -9.271846 4: 0.692179 2.757422 -2.716263 1.205066 2.094129 -0.013436 -2.979188 3.535745 5: -1.870619 -1.225449 7.493791 -6.070180 1.551940 -2.927655 0.649156 0.227299 6: 1.237322 3.033372 0.647169 -5.519807 -1.372197 0.323615 0.796205 -0.076380 7: -0.371826 4.886202 1.153227 2.043576 -4.500892 0.580446 0.721905 2.984471 8: -4.715179 0.858902 2.669240 -0.800874 -2.116577 -4.492699 -0.457707 -3.117506 9: 1.512241 -0.598677 1.612291 3.534208 3.415133 -0.497678 0.481611 -0.842820 10: -4.148161 -3.545002 1.287104 -0.020715 0.076537 5.279757 8.618884 -4.377667 The recovered data: Col: 1 2 3 4 Row --- 1: 0.749055 -0.503627 0.789478 0.180180 -0.487269 0.448679 -0.027743 0.866313 2: 0.304860 -0.184519 0.843363 -0.371307 0.245155 -0.839890 -0.223727 -0.675206 3: 0.650485 0.457415 0.040050 -0.822880 -0.431394 0.027782 0.913169 -0.238800 4: -0.504999 -0.153212 -0.671846 0.540144 -0.404764 -0.530803 0.476437 0.565883 5: 0.954807 -0.214127 0.384735 0.712360 0.024798 -0.841873 -0.018221 0.385956 6: 0.390247 -0.072938 0.823514 0.166945 -0.224584 -0.474960 -0.024667 0.916574 7: -0.974222 0.089772 0.504246 0.150530 0.422416 0.690408 0.036702 0.901631 8: 0.562020 0.695999 0.138793 -0.279049 -0.344942 0.003546 -0.566536 0.779937 9: 0.560515 -0.328001 -0.341111 0.760574 -0.526934 0.825884 -0.003020 0.443380 10: 0.861387 -0.224097 0.952051 0.209332 0.125314 0.754695 -0.773857 0.131111 C8VEC_SFT_TEST C8VEC_SFTF computes the forward slow Fourier transform. C8VEC_SFTB computes the backward slow Fourier transform. The number of data values, N = 36 The original data: 1 0.28839-0.51816i 2 -0.72799-0.23514i 3 -0.21384+0.93352i 4 0.020387-0.86993i 5 -0.56164-0.25496i 6 0.25974+0.091583i 7 0.13277-0.71636i 8 0.66199+0.70412i ...... .............. .............. 36 0.61478+0.19828i The Fourier coefficients: 1 1.2081-2.8385i 2 -0.7782+0.92494i 3 3.1688+0.63691i 4 1.0221-2.0951i 5 1.9291-2.6054i 6 0.66719-1.5131i 7 -2.0187-3.3353i 8 -0.10886-1.2524i ...... .............. .............. 36 -3.1145+3.4442i The retrieved data: 1 0.28839-0.51816i 2 -0.72799-0.23514i 3 -0.21384+0.93352i 4 0.020387-0.86993i 5 -0.56164-0.25496i 6 0.25974+0.091583i 7 0.13277-0.71636i 8 0.66199+0.70412i ...... .............. .............. 36 0.61478+0.19828i R8VEC_SCT_TEST R8VEC_SCT does a forward or backward slow cosine transform. The number of data items is N = 256 The original data: 1 4.513581 2 4.723936 3 2.454320 4 2.446263 5 1.688597 6 4.500269 7 1.846234 8 0.556014 ...... .............. 256 0.168019 The cosine coefficients: 1 1254.612756 2 3.429840 3 -19.216769 4 7.073462 5 11.039112 6 2.945631 7 -49.486193 8 -19.290792 ...... .............. 256 42.136110 The retrieved data: 1 4.513581 2 4.723936 3 2.454320 4 2.446263 5 1.688597 6 4.500269 7 1.846234 8 0.556014 ...... .............. 256 0.168019 R8VEC_SFT_TEST R8VEC_SFTF computes the forward slow Fourier transform. R8VEC_SFTB computes the backward slow Fourier transform. The number of data values, N = 36 The original data: 1 0.344030 2 1.597999 3 2.654321 4 3.272229 5 2.038096 6 4.099906 7 3.591795 8 4.843247 ...... .............. 36 4.221961 A (cosine) coefficients: 0 2.506194 1 0.039357 2 -0.384212 3 0.089623 4 -0.264623 5 0.147057 6 0.530988 7 -0.396472 8 -0.662454 9 -0.118969 10 -0.132150 11 -0.303029 12 0.144014 13 -0.237044 14 -0.231319 15 -0.277543 16 0.164568 17 0.128822 18 -0.398777 B (sine) coefficients: 1 -0.145182 2 0.882420 3 -0.217856 4 -0.034936 5 -0.459320 6 -0.226886 7 -0.075034 8 -0.379549 9 -0.183805 10 0.059063 11 -0.126460 12 -0.209608 13 -0.229549 14 -0.158372 15 0.177786 16 0.490509 17 -0.101149 18 0.000000 The retrieved data: 1 0.344030 2 1.597999 3 2.654321 4 3.272229 5 2.038096 6 4.099906 7 3.591795 8 4.843247 ...... .............. 36 4.221961 R8VEC_SHT_TEST R8VEC_SHT does a forward or backward slow Hartley transform. The number of data items is N = 17 The original data: 1 1.722312 2 3.902598 3 3.376660 4 0.033577 5 3.010852 6 1.933856 7 4.579956 8 0.005755 ...... .............. 17 0.879372 The Hartley coefficients: 1 9.242054 2 -0.457394 3 0.360680 4 2.136836 5 2.259928 6 -0.085005 7 -0.470809 8 -2.444128 ...... .............. 17 -0.444696 The retrieved data: 1 1.722312 2 3.902598 3 3.376660 4 0.033577 5 3.010852 6 1.933856 7 4.579956 8 0.005755 ...... .............. 17 0.879372 R8VEC_SQCT_TEST R8VEC_SQCTF does a forward slow quarter wave cosine transform; R8VEC_SQCTB does a backward slow quarter wave cosine transform. The number of data items is N = 256 The original data: 1 3.608790 2 2.367430 3 0.763606 4 1.705623 5 3.036946 6 0.958726 7 3.692134 8 1.214248 ...... .............. 256 2.324200 The cosine coefficients: 1 2.553698 2 0.027880 3 -0.061992 4 0.007556 5 0.080623 6 -0.107586 7 -0.017838 8 0.006523 ...... .............. 256 -0.034423 The retrieved data: 1 3.608790 2 2.367430 3 0.763606 4 1.705623 5 3.036946 6 0.958726 7 3.692134 8 1.214248 ...... .............. 256 2.324200 R8VEC_SQST_TEST R8VEC_SQSTF does a forward slow quarter wave sine transform; R8VEC_SQSTB does a backward slow quarter wave sine transform. The number of data items is N = 256 The original data: 1 3.819785 2 4.091020 3 0.501108 4 0.890585 5 1.798175 6 0.283523 7 2.609428 8 1.679245 ...... .............. 256 3.268499 The sine coefficients: 1 -1.426215 2 -0.011975 3 -0.511708 4 0.147069 5 -0.263839 6 0.030764 7 -0.155972 8 -0.026719 ...... .............. 256 0.184911 The retrieved data: 1 3.819785 2 4.091020 3 0.501108 4 0.890585 5 1.798175 6 0.283523 7 2.609428 8 1.679245 ...... .............. 256 3.268499 R8VEC_SST_TEST R8VEC_SST does a forward or backward slow sine transform. The number of data items is N = 256 The original data: 1 4.663068 2 0.817562 3 4.605486 4 3.973289 5 2.886971 6 2.200178 7 1.288069 8 3.759732 ...... .............. 256 4.420765 The sine coefficients: 1 853.578031 2 -6.789343 3 291.524813 4 -16.841753 5 148.782329 6 73.906866 7 121.503463 8 -6.935134 ...... .............. 256 51.736306 The retrieved data: 1 4.663068 2 0.817562 3 4.605486 4 3.973289 5 2.886971 6 2.200178 7 1.288069 8 3.759732 ...... .............. 256 4.420765 R8VEC_SWT_TEST R8VEC_SWTF computes the forward slow wavelet transform. R8VEC_SWTB computes the backward slow wavelet transform. The number of data values, N = 36 The original data: 1 0.471392 2 4.650203 3 1.995100 4 0.237007 5 1.711868 6 3.679831 7 3.973411 8 2.724529 ...... .............. 36 2.377865 I S(I) D(I) 1 4.534154 2.474294 2 1.069319 -0.451151 3 4.443043 0.656525 4 4.388964 -0.961633 5 5.259717 0.412655 6 1.327685 1.949645 7 1.269237 0.654612 8 5.364763 -1.020289 9 4.037953 -0.990134 10 4.742115 3.153336 11 3.100843 -1.577239 12 5.690974 0.942481 13 5.418335 0.488008 14 3.468957 0.727651 15 2.992916 -0.887645 16 4.442058 -1.251651 17 2.696849 -0.912818 18 1.827996 1.331606 The retrieved data: 1 0.471392 2 4.650203 3 1.995100 4 0.237007 5 1.711868 6 3.679831 7 3.973411 8 2.724529 ...... .............. 36 2.377865 sftpack_test(): Normal end of execution. 08-Jan-2022 09:32:24