Você está na página 1de 3

>> c8lib_test

10-Jun-2010 15:09:23
C8LIB_TEST
MATLAB version
Test the routines in the C8LIB library.
TEST0061
C8_ARGUMENT computes the argument of a C8.
C1=random
-0.287314
-0.567465
0.038567
0.007082
0.594470
0.193014
0.351515
0.258528
-0.632219
-0.607431

0.367424
-0.797059
-0.525981
-0.188614
-0.537153
-0.675087
-0.201470
0.892305
0.014884
-0.407965

ARG=C8_ARGUMENT(C1)
2.234446
-2.189497
-1.497603
-1.533265
-0.734792
-1.292315
-0.520441
1.288788
3.118054
-2.550166

TEST0062
C8_CUBE_ROOT computes the principal cube root of a C8.
C1=random
-0.287314
-0.567465
0.038567
0.007082
0.594470
0.193014
0.351515
0.258528
-0.632219
-0.607431

0.367424
-0.797059
-0.525981
-0.188614
-0.537153
-0.675087
-0.201470
0.892305
0.014884
-0.407965

C2=C8_CUBE_ROOT(C1)
0.570173
0.739888
0.709342
0.500321
0.901063
0.807609
0.728853
0.887088
0.434993
0.594684

0.525675
-0.661915
-0.386780
-0.280574
-0.225220
-0.371141
-0.127726
0.406404
0.739960
-0.677024

TEST0063
C8_MAGNITUDE computes the magnitude of a C8.
C1=random
-0.287314
-0.567465
0.038567
0.007082
0.594470
0.193014
0.351515
0.258528
-0.632219
-0.607431

0.367424
-0.797059
-0.525981
-0.188614
-0.537153
-0.675087
-0.201470
0.892305
0.014884
-0.407965

MAG=C8_MAGNITUDE(C1)
0.466422
0.978427
0.527393
0.188747
0.801204
0.702137
0.405158
0.929002
0.632394
0.731715

TEST0064
C8_NORMAL_01 generates unit pseudonormal
complex values.
Using initial random number seed = 123456789

C3=C2*C2*C2
0.092645
0.898802
-0.031952
-0.000755
-0.304492
-0.256704
0.000630
-0.600248
-0.252278
0.079169

0.041390
-0.263624
0.143169
0.006682
-0.414494
0.232215
-0.066505
-0.531545
0.017845
-0.383683

1.679040
-0.566060
1.212934
1.269381
-1.666087
-2.242464
0.039675
0.673068
-0.275127
2.164005
0.297785
2.044536
1.398819
-1.242985
-0.067084
-0.794396
-0.523768
-0.350567
0.131700
0.537380

-0.472769
-0.231124
0.535037
1.049543
-1.865228
0.735809
-1.350736
0.007775
0.374940
0.185600
-0.463758
0.096577
-0.857394
1.674516
0.620783
-0.324163
0.156483
-0.247757
-1.820756
1.248567

TEST0065
C8_SQRT computes the principal square root of a C8.
C1=random
-0.287314
-0.567465
0.038567
0.007082
0.594470
0.193014
0.351515
0.258528
-0.632219
-0.607431

C2=C8_SQRT(C1)

0.367424
-0.797059
-0.525981
-0.188614
-0.537153
-0.675087
-0.201470
0.892305
0.014884
-0.407965

0.299256
0.453300
0.531959
0.312913
0.835366
0.669011
0.615091
0.770562
0.009359
0.249284

C3=C2*C2

0.613896
-0.879173
-0.494382
-0.301384
-0.321508
-0.504541
-0.163773
0.578997
0.795177
-0.818274

-0.052451
-0.313286
-0.275169
-0.035525
0.064860
-0.418487
0.082973
-0.729372
0.399479
0.202536

-0.211132
0.904605
-0.040571
-0.002672
-0.638643
-0.260603
-0.141639
0.461372
-0.018821
0.495621

TEST0066
C8MAT_UNIFORM_01 computes a "random" complex matrix.
The matrix:
Col:

Row
--0.449860
-0.843197
0.589627
0.391140
-0.139466

-0.126667
-0.344280
0.260090
0.323400
-0.156136

-0.236066
0.018599
0.892850
-0.560465
0.306357

0.077459
-0.633214
0.010314
0.763795
0.026275

0.500804
0.350471
0.434989
-0.200947
-0.097460

TEST0067
C8VEC_INDICATOR sets A = (1-1i,2-2i,...,N-Ni)
The "indicator" vector:
1: 1-1i

-0.779931
0.016555
-0.266623
0.270711
0.901881

-0.770245
-0.889181
-0.779871
0.031360
0.249089

-0.314307
0.265655
-0.551160
-0.433556
0.578743

2:
3:
4:
5:
6:
7:
8:
9:
10:

2-2i
3-3i
4-4i
5-5i
6-6i
7-7i
8-8i
9-9i
10-10i

C8LIB_TEST
Normal end of execution.
10-Jun-2010 15:09:23
>>

Você também pode gostar