1 | Results of octonion test. |
---|
2 | |
---|
3 | (C) Copyright Hubert Holin 2003-2005. |
---|
4 | Distributed under the Boost Software License, Version 1.0. |
---|
5 | (See accompanying file LICENSE_1_0.txt or copy at |
---|
6 | http://www.boost.org/LICENSE_1_0.txt) |
---|
7 | |
---|
8 | Running 7 test cases... |
---|
9 | Testing multiplication for float. |
---|
10 | Testing multiplication for double. |
---|
11 | Testing multiplication for long double. |
---|
12 | Testing exp for float. |
---|
13 | Testing exp for double. |
---|
14 | Testing exp for long double. |
---|
15 | Please input an octonion... |
---|
16 | You have entered the octonion (1,2,3,4,5,6,7,8) . |
---|
17 | For this octonion: |
---|
18 | the value of the real part is 1 |
---|
19 | the value of the unreal part is (0,2,3,4,5,6,7,8) |
---|
20 | the value of the sup norm is 8 |
---|
21 | the value of the l1 norm is 36 |
---|
22 | the value of the magnitude (euclidian norm) is 14.2829 |
---|
23 | the value of the (Cayley) norm is 204 |
---|
24 | the value of the conjugate is (1,-2,-3,-4,-5,-6,-7,-8) |
---|
25 | the value of the exponential is (-0.300136,0.379239,0.568858,0.758478,0.948097,1.13772,1.32734,1.51696) |
---|
26 | the value of the cube is (-608,-400,-600,-800,-1000,-1200,-1400,-1600) |
---|
27 | the value of the cosinus is (416246,-90998.6,-136498,-181997,-227497,-272996,-318495,-363995) |
---|
28 | the value of the sinus is (648266,58429.6,87644.3,116859,146074,175289,204503,233718) |
---|
29 | the value of the tangent is (3.28749e-08,0.140372,0.210559,0.280745,0.350931,0.421118,0.491304,0.56149) |
---|
30 | the value of the hyperbolic cosinus is (-0.170378,0.163957,0.245936,0.327915,0.819786,0.983744,1.1477,1.31166) |
---|
31 | the value of the hyperbolic sinus is (-0.129759,0.215282,0.322922,0.430563,1.07641,1.29169,1.50697,1.72225) |
---|
32 | the value of the hyperbolic tangent is (1.30977,-0.00314284,-0.00471435,-0.00628569,-0.0157142,-0.0188571,-0.022,-0.0251428) |
---|
33 | the value of the Sinus Cardinal (of index pi) is (32249.3,-6069.12,-9103.69,-12138.2,-15172.8,-18207.4,-21241.9,-24276.5) |
---|
34 | the value of the Hyperbolic Sinus Cardinal (of index pi) is (0.198288,0.00232745,0.00349117,0.0046549,-0.0258405,0.0175354,0.0155332,0.0261946) |
---|
35 | |
---|
36 | The value of the octonion represented in spherical form by rho = 64 , theta = 0.785398 , phi1 = 0.785398 , phi2 = 0.785398 , phi3 = 0.785398 , phi4 = 0.785398 , phi5 = 0.785398 , phi6 = 0.785398 is (5.65685,5.65685,8,11.3137,16,22.6274,32,45.2548) |
---|
37 | The value of the octonion represented in multipolar form by rho1 = 1 , theta1 = 0 , rho2 = 2 , theta2 = 1.5708rho3 = 1.41421 , theta3 = 0.785398 , rho4 = 2.82843 , theta4 = 1.0472 is (1,0,-8.74228e-08,2,1,1,1.41421,2.44949) |
---|
38 | The value of the octonion represented in cylindrical form by r = 1.41421 , angle = 0.785398 , h1 = 3 , h2 = 4 , h3 = 5 , h4 = 6 , h5 = 7 , h6 = 8 is (1,1,3,4,5,6,7,8) |
---|
39 | |
---|
40 | Real 1: 1 ; Complex 1: (1,0) ; Quaternion 1: (1,0,0,0) ; Octonion 1: (1,0,0,0,0,0,0,0) . |
---|
41 | Complex i: (0,1) ; Quaternion i: (0,1,0,0) ; Octonion i : (0,1,0,0,0,0,0,0) . |
---|
42 | Quaternion j: (0,0,1,0) ; Octonion j: (0,0,1,0,0,0,0,0) . |
---|
43 | Quaternion k: (0,0,0,1) ; Octonion k: (0,0,0,1,0,0,0,0) . |
---|
44 | Quaternion e': (0,0,0,0,1,0,0,0) . |
---|
45 | Quaternion i': (0,0,0,0,0,1,0,0) . |
---|
46 | Quaternion j': (0,0,0,0,0,0,1,0) . |
---|
47 | Quaternion k': (0,0,0,0,0,0,0,1) . |
---|
48 | |
---|
49 | (1,0,0,0,0,0,0,0) ; (0,1,0,0,0,0,0,0) ; (0,0,1,0,0,0,0,0) ; (0,0,0,1,0,0,0,0) ; (0,0,0,0,1,0,0,0) ; (0,0,0,0,0,1,0,0) ;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---|
56 | (0,0,0,0,0,0,0,1) ; (0,0,0,0,0,0,-1,0) ; (0,0,0,0,0,1,0,0) ; (0,0,0,0,1,0,0,0) ; (0,0,0,-1,0,0,0,0) ; (0,0,-1,0,0,0,0,0) ; (0,1,0,0,0,0,0,0) ; (-1,0,0,0,0,0,0,0) ; |
---|
57 | |
---|
58 | i'*(e'*j) : (0,0,0,1,0,0,0,0) ; |
---|
59 | (i'*e')*j : (0,0,0,-1,0,0,0,0) ; |
---|
60 | |
---|
61 | |
---|
62 | *** No errors detected |
---|
63 | |
---|