07-Jan-2022 23:16:02 ncm_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 Test ncm(). bslashtx_test bslashtx solves a linear system. Matrix A: 1 2 3 4 5 6 7 8 0 Right hand side b: 14 32 23 x = bslashtx ( A, b ): 1.0000 2.0000 3.0000 crypto_test Test crypto code: "The Magic Words are Squeamish Ossifrage" crypto(code): "UDQI;BN#$Ev>Iyie:?QI j^80©.idO+59;zI$D<" crypto(crypto(code)): "The Magic Words are Squeamish Ossifrage" digraph_ncm_test Test digraph_ncm Graphics saved as "digraph_ncm.png" encrypt_test Test encrypt Plaintext file gettysburg.txt: Fourscore and seven years ago our fathers brought forth on this continent a new nation, conceived in liberty and dedicated to the proposition that all men are created equal. Now we are engaged in a great civil war, testing whether that nation or any nation so conceived and so dedicated can long endure. We are met on a great battle field of that war. We have come to dedicate a portion of that field, as a final resting place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this. But, in a larger sense, we can not dedicate - we can not consecrate - we can not hallow - this ground. The brave men, living and dead, who struggled here, have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember, what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great task remaining before us - that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion - that we here highly resolve that these dead shall not have died in vain - that this nation, under God, shall have a new birth of freedom - and that government of the people, by the people, for the people, shall not perish from the earth. Encrypted file gettysburg2.txt: K}xg-aR[QI28kG14D:)[W@:?ie$Dp]XH"cXt~#3Gie AXHLjOgt\i4dOJTgR4%. aVp,$H+@OgXAR*bmJ#®=JTl8aVNW!®D:kG$HWDm33G?YAIPqG6x_oM>sx_gRp]~#< 8]N'Tu0"&b)[~#>sAI3{Y^+@AIK2E}K2>sx_IP$L.es =,bm*s&b)[EvE}JTMu4Vx_AIPqe8p]3w;~Enx6kGEn)[9hV^IPPqxgm1-hQI:?< l(OgJTAIM#K2>sCc>s%*QIh!'mkG:FgR$xOg"5>K-hQI$xD:E}H:QI+xG6x_oM>sQI@ 2pi4&b)[:FgR$xOgh!'m"\AIieXAh!J#]WK2O6$H~M,"}=QIt\"c~#TuQI0)p],©K2 >vD:gR,©,OWD4V5agR$xOg~#>s[x>s&b)[t/LjOg--D:8sQIR:*s< R:*sx_QWg|Kj:?AI{TD:]1xg_KLn"c2p*<"c+x ©WkGR[G67{C+kw8~Y&kG2C3{WD0"%*QIflx6l8fl"c9hV^c©)&)&gs:xm?$x- *s,©:xgRp]gsG6x_oM>sx_O=3GQI+xgR,©ilTD$H.i,©kG>~Wm 0)oMdO~#A;m?@`KjXHLjOg,©K2O=BFQI~#z Kj:?e8p]flug.q©W<3NWx_8sx_gRp]~#QI`KrrOgp/=oc©)&(xZ1V^ gst\K2ilieR:~#>sKj_tCY~#5aQI@`flK2kG3w©Wm?QIp/?$QWNWK2sm?QI,©K2O=wT:s.qK2EvG\QI~#>sgR,©14G6rrkG7!.e]WflOg$xD:G6s kG$H <3$H:OgR$xOg~#.i[x>s&bApilPq3GnL6sl87!.e]W$xD:AI[x=hCc,O~#]1; zIzyGXCYR:28kG~#>sM#Zb3Gb8+@Og:FgR,©_K-Z,"i^Cc.q~#QI©.N'%&l8t\"c~#< ©.N'%&l87!.e]WflOg©.S97!Kj_tCY~#QIrri4®7 Decrypted file gettysburg3.txt: Fourscore and seven years ago our fathers brought forth on this continent a new nation, conceived in liberty and dedicated to the proposition that all men are created equal. Now we are engaged in a great civil war, testing whether that nation or any nation so conceived and so dedicated can long endure. We are met on a great battle field of that war. We have come to dedicate a portion of that field, as a final resting place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this. But, in a larger sense, we can not dedicate - we can not consecrate - we can not hallow - this ground. The brave men, living and dead, who struggled here, have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember, what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great task remaining before us - that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion - that we here highly resolve that these dead shall not have died in vain - that this nation, under God, shall have a new birth of freedom - and that government of the people, by the people, for the people, shall not perish from the earth. ffttx_test ffttx computes the Fourier transform of a vector. Complex vector x: 0.8147 + 0.1576i 0.9058 + 0.9706i 0.1270 + 0.9572i 0.9134 + 0.4854i 0.6324 + 0.8003i 0.0975 + 0.1419i 0.2785 + 0.4218i 0.5469 + 0.9157i 0.9575 + 0.7922i 0.9649 + 0.9595i y=ffttx(x): 6.2386 + 6.6021i 1.3542 + 0.9642i -0.2865 - 0.1789i 1.2511 - 1.0379i -1.3338 - 2.1728i -0.6184 - 0.3441i 0.2305 - 0.3814i 0.1980 + 0.0683i -0.2874 - 2.3716i 1.4010 + 0.4281i z=ffttx(y')/n: 0.8147 - 0.1576i 0.9058 - 0.9706i 0.1270 - 0.9572i 0.9134 - 0.4854i 0.6324 - 0.8003i 0.0975 - 0.1419i 0.2785 - 0.4218i 0.5469 - 0.9157i 0.9575 - 0.7922i 0.9649 - 0.9595i fibnum_test fibnum computes the n-th Fibonacci number. 0 1 1 1 2 2 3 3 4 5 5 8 6 13 7 21 8 34 9 55 10 89 fibonacci_test fibonacci computes the first n Fibonacci numbers. 1 2 3 5 8 13 21 34 55 89 finitefern_test finitefern draws the fractal fern. Graphics saved as "finitefern_test.png" fmintx_test fmintx finds a minimizer of a function. Seek the minimizer of cos(x) between 3 and 4 cos(3.14159) = -1 fzerotx_test fzerotx finds a zero of a function. Seek the zero of sin(x) between 1 and 4 sin(3.14159) = 1.22465e-16 goldfract_test goldfract prints the continued fraction form of the golden ratio. Carry this out to 10 terms p = '1+1/(1+1/(1+1/(1+1/(1+1/(1+1/(1+1/(1+1/(1+1/(1+1/(1))))))))))' p = '144/89' p = 1.617977528089888 err = 5.6461e-05 goldrect_test Plot the golden rectangle. Graphics saved as "goldrect_test.png" golub_test golub returns a badly conditioned matrix. Matrix A: 1 7 0 3 8 10 71 -5 23 97 -23 -153 -39 -118 -47 -7 -51 6 -34 -82 -4 -31 20 45 -65 Condition number = 5.2438e+08 Matrix A: 1 -7 -6 6 -10 6 -41 -45 29 -47 10 -72 -41 79 -133 -5 35 26 -49 73 -2 18 -9 29 -2 Condition number = 3.97129e+07 Matrix A: 1 1 -8 13 4 -13 -12 113 -166 -38 10 4 -133 132 -35 3 -4 -76 239 18 -3 -10 -51 -294 -187 Condition number = 4.23774e+09 humps_test Test humps. Graphics saved as "humps_test.png" inregion_test Test inregion. Graphics saved as "inregion_test.png" lutx_test lutx Lu-factors a linear system. Matrix A: 1 2 3 4 5 6 7 8 0 L factor: 1.0000 0 0 0.1429 1.0000 0 0.5714 0.5000 1.0000 U factor: 7.0000 8.0000 0 0 0.8571 3.0000 0 0 4.5000 P factor: 0 0 1 1 0 0 0 1 0 P'*L*U: 1 2 3 4 5 6 7 8 0 ncmlogo_test Test ncmlogo. Test CANCELLED. facealpha property no longer available. ode23tx_test Test ode23tx. Graphics saved as "ode23tx_test.png" pagerankpow_test Test pagerankpow. 13 power method iterations were used. Page Ranking 1 0.082528 2 0.004415 3 0.007518 4 0.004779 5 0.004614 6 0.005786 7 0.006651 8 0.006059 9 0.011275 10 0.016132 11 0.005409 12 0.005768 13 0.008462 14 0.003438 15 0.012905 16 0.006810 17 0.010958 18 0.013545 19 0.008045 20 0.003248 21 0.003248 22 0.003925 23 0.003763 24 0.003248 25 0.003248 26 0.006256 27 0.006256 28 0.001763 29 0.001763 30 0.001763 31 0.001315 32 0.001300 33 0.001157 34 0.001157 35 0.001157 36 0.001157 37 0.001157 38 0.001157 39 0.001670 40 0.001760 41 0.001081 42 0.016109 43 0.001756 44 0.003424 45 0.001354 46 0.009671 47 0.001306 48 0.000952 49 0.000952 50 0.000952 51 0.000952 52 0.007538 53 0.000952 54 0.000952 55 0.000952 56 0.000952 57 0.000952 58 0.000952 59 0.000952 60 0.001063 61 0.001642 62 0.002690 63 0.001236 64 0.001063 65 0.001063 66 0.001063 67 0.000903 68 0.000903 69 0.000903 70 0.000903 71 0.000903 72 0.000903 73 0.001473 74 0.000903 75 0.000987 76 0.001767 77 0.001539 78 0.000987 79 0.000987 80 0.000987 81 0.000903 82 0.000987 83 0.000987 84 0.001650 85 0.005600 86 0.000987 87 0.002011 88 0.001423 89 0.000987 90 0.000903 91 0.000987 92 0.001863 93 0.001310 94 0.001310 95 0.002355 96 0.002459 97 0.001747 98 0.001310 99 0.001310 100 0.001310 101 0.006899 102 0.006899 103 0.001798 104 0.001968 105 0.001798 106 0.004636 107 0.003774 108 0.001798 109 0.001310 110 0.001315 111 0.001315 112 0.001315 113 0.001315 114 0.001315 115 0.001249 116 0.001249 117 0.001249 118 0.001249 119 0.001249 120 0.002400 121 0.007742 122 0.002010 123 0.003314 124 0.000772 125 0.000772 126 0.004301 127 0.000974 128 0.000772 129 0.001905 130 0.015998 131 0.001193 132 0.005999 133 0.002526 134 0.000772 135 0.000772 136 0.001057 137 0.000772 138 0.002690 139 0.001064 140 0.001021 141 0.001013 142 0.000962 143 0.001064 144 0.001329 145 0.000962 146 0.001013 147 0.000822 148 0.002601 149 0.000772 150 0.002657 151 0.000772 152 0.000772 153 0.001385 154 0.000772 155 0.000837 156 0.000772 157 0.000772 158 0.000772 159 0.000837 160 0.001057 161 0.005177 162 0.000772 163 0.000837 164 0.001323 165 0.000772 166 0.000772 167 0.000772 168 0.000772 169 0.002889 170 0.002898 171 0.002889 172 0.002889 173 0.002898 174 0.002889 175 0.001025 176 0.002889 177 0.002898 178 0.002889 179 0.002889 180 0.000993 181 0.002101 182 0.002258 183 0.002258 184 0.002101 185 0.001691 186 0.000928 187 0.001673 188 0.000798 189 0.001187 190 0.001705 191 0.001953 192 0.001461 193 0.000798 194 0.002388 195 0.000981 196 0.000981 197 0.000981 198 0.000981 199 0.000798 200 0.003734 201 0.002496 202 0.001629 203 0.000981 204 0.000981 205 0.000798 206 0.001082 207 0.001181 208 0.002040 209 0.000798 210 0.001922 211 0.001441 212 0.001441 213 0.000981 214 0.006910 215 0.000798 216 0.000798 217 0.000798 218 0.000798 219 0.000981 220 0.000981 221 0.001380 222 0.007519 223 0.007519 224 0.000798 225 0.001754 226 0.001364 227 0.000913 228 0.001312 229 0.004372 230 0.004009 231 0.004372 232 0.004372 233 0.004009 234 0.004372 235 0.004009 236 0.004372 237 0.004372 238 0.004372 239 0.004372 240 0.004372 241 0.004108 242 0.001236 243 0.000873 244 0.000873 245 0.000873 246 0.000873 247 0.000873 248 0.000873 249 0.005330 250 0.001019 251 0.001019 252 0.001019 253 0.001019 254 0.001019 255 0.001019 256 0.001019 257 0.000732 258 0.003555 259 0.003555 260 0.008340 261 0.005121 262 0.007151 263 0.002792 264 0.002792 265 0.001106 266 0.002792 267 0.002792 268 0.001106 269 0.001106 270 0.001106 271 0.001106 272 0.001106 273 0.001106 274 0.002792 275 0.002792 276 0.002792 277 0.002792 278 0.002792 279 0.002792 280 0.002792 281 0.005121 282 0.003209 283 0.001297 284 0.001195 285 0.001108 286 0.000670 287 0.000670 288 0.001021 289 0.000679 290 0.000670 291 0.000670 292 0.000679 293 0.001474 294 0.001040 295 0.000876 296 0.000876 297 0.000876 298 0.001696 299 0.001040 300 0.002307 301 0.000876 302 0.001532 303 0.001206 304 0.001206 305 0.000832 306 0.000832 307 0.001206 308 0.000922 309 0.000624 310 0.000912 311 0.000960 312 0.001540 313 0.000912 314 0.001180 315 0.002899 316 0.002899 317 0.003226 318 0.003061 319 0.003061 320 0.003061 321 0.003061 322 0.003061 323 0.002899 324 0.003061 325 0.003061 326 0.003061 327 0.003061 328 0.003061 329 0.005519 330 0.003061 331 0.003061 332 0.001069 333 0.001069 334 0.001069 335 0.005494 336 0.001438 337 0.001438 338 0.000629 339 0.000629 340 0.000629 341 0.000677 342 0.000629 343 0.000629 344 0.004694 345 0.000605 346 0.000556 347 0.000556 348 0.000648 349 0.000556 350 0.000556 351 0.000556 352 0.000556 353 0.000720 354 0.000747 355 0.000556 356 0.000556 357 0.000556 358 0.003982 359 0.000556 360 0.001029 361 0.001554 362 0.000556 363 0.000688 364 0.000556 365 0.000714 366 0.000793 367 0.000556 368 0.000556 369 0.000556 370 0.000556 371 0.000564 372 0.000556 373 0.000720 374 0.000746 375 0.000556 376 0.000564 377 0.000556 378 0.000556 379 0.001306 380 0.000884 381 0.000556 382 0.000884 383 0.001060 384 0.000556 385 0.001690 386 0.000564 387 0.000589 388 0.000672 389 0.000601 390 0.000556 391 0.000968 392 0.000556 393 0.000556 394 0.001029 395 0.000556 396 0.000556 397 0.000601 398 0.000556 399 0.000556 400 0.000556 401 0.000679 402 0.000556 403 0.000556 404 0.000556 405 0.000556 406 0.000556 407 0.000756 408 0.000564 409 0.000556 410 0.000556 411 0.000556 412 0.000556 413 0.000564 414 0.000746 415 0.000556 416 0.000556 417 0.000719 418 0.000556 419 0.000589 420 0.000556 421 0.000968 422 0.000556 423 0.000588 424 0.000639 425 0.000556 426 0.000556 427 0.000556 428 0.000556 429 0.000624 430 0.000556 431 0.000556 432 0.000556 433 0.000556 434 0.000556 435 0.000687 436 0.000556 437 0.000556 438 0.000556 439 0.000556 440 0.000556 441 0.000647 442 0.000556 443 0.000556 444 0.001239 445 0.000556 446 0.000592 447 0.000556 448 0.000556 449 0.000556 450 0.000556 451 0.000556 452 0.000592 453 0.000556 454 0.000556 455 0.000556 456 0.000840 457 0.000556 458 0.000827 459 0.000556 460 0.000826 461 0.000556 462 0.000556 463 0.002248 464 0.000556 465 0.000647 466 0.000588 467 0.000556 468 0.000556 469 0.000556 470 0.000556 471 0.000556 472 0.000556 473 0.000556 474 0.000556 475 0.000556 476 0.000556 477 0.000656 478 0.000647 479 0.000556 480 0.000556 481 0.000556 482 0.000556 483 0.000868 484 0.000647 485 0.000556 486 0.000592 487 0.000792 488 0.000556 489 0.000556 490 0.000556 491 0.000588 492 0.000868 493 0.000556 494 0.000556 495 0.000556 496 0.000556 497 0.000556 498 0.000738 499 0.000556 500 0.002248 pchiptx_test Test pchiptx. 1 2 3 4 5 6 16 18 21 17 15 12 Graphics saved as "pchiptx_test.png" piecelin_test Test piecelin. 1 2 3 4 5 6 16 18 21 17 15 12 Graphics saved as "piecelin_test.png" polyinterp_test Test polyinterp. 1 2 3 4 5 6 16 18 21 17 15 12 Graphics saved as "polyinterp_test.png" primespiral_test Test primespiral. Test CANCELLED Plotting of uicontrols not supported on this machine. quadtx_test quadtx estimates integral (a<=x<=b) f(x) dx. Estimate integral of sin(x) between 0 and 1 Integral estimate = 0.927037 randmcg_test randmcg computes random numbers using a multiplicative congruential generator. 1 7.826369e-06 2 1.315378e-01 3 7.556053e-01 4 4.586501e-01 5 5.327672e-01 6 2.189592e-01 7 4.704462e-02 8 6.788647e-01 9 6.792964e-01 10 9.346929e-01 randntx_test randntx computes normal random numbers. 1 4.379256e-01 2 -1.490635e+00 3 5.675190e-01 4 7.071173e-01 5 -3.430897e-02 6 -1.468989e+00 7 6.835886e-01 8 -6.007293e-01 9 1.713638e+00 10 4.472869e-01 splinetx_test Test splinetx. 1 2 3 4 5 6 16 18 21 17 15 12 Graphics saved as "splinetx_test.png" Graphics saved as "sunspotstx_test1.png" Graphics saved as "sunspotstx_test2.png" Graphics saved as "sunspotstx_test3.png" tridisolve_test tridisolve solves a tridiagonal linear system. subdiagonal, diagonal, superdiagonal: 2.0000 -1.0000 -1.0000 2.0000 -1.0000 -1.0000 2.0000 -1.0000 -1.0000 2.0000 -1.0000 -1.0000 2.0000 Right hand side d: 0 0 0 0 6 x = tridisolve ( a, b, c, d ): 1.0000 2.0000 3.0000 4.0000 5.0000 vandal_test Test vandal. Test CANCELLED vandal() requires Symbolic Toolbox. ncm_test(): Normal end of execution. 07-Jan-2022 23:16:09