1 | Results of quaternion 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 19 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 | Testing cos for float. |
---|
16 | Testing cos for double. |
---|
17 | Testing cos for long double. |
---|
18 | Testing sin for float. |
---|
19 | Testing sin for double. |
---|
20 | Testing sin for long double. |
---|
21 | Testing cosh for float. |
---|
22 | Testing cosh for double. |
---|
23 | Testing cosh for long double. |
---|
24 | Testing sinh for float. |
---|
25 | Testing sinh for double. |
---|
26 | Testing sinh for long double. |
---|
27 | Please input a quaternion... |
---|
28 | You have entered the quaternion (1,2,3,4) . |
---|
29 | For this quaternion: |
---|
30 | the value of the real part is 1 |
---|
31 | the value of the unreal part is (0,2,3,4) |
---|
32 | the value of the sup norm is 4 |
---|
33 | the value of the l1 norm is 10 |
---|
34 | the value of the magnitude (euclidian norm) is 5.47723 |
---|
35 | the value of the (Cayley) norm is 30 |
---|
36 | the value of the conjugate is (1,-2,-3,-4) |
---|
37 | the value of the exponential is (1.69392,-0.78956,-1.18434,-1.57912) |
---|
38 | the value of the cube is (-86,-52,-78,-104) |
---|
39 | the value of the cosinus is (58.9336,-34.0862,-51.1293,-68.1724) |
---|
40 | the value of the sinus is (91.7837,21.8865,32.8297,43.773) |
---|
41 | the value of the tangent is (3.82105e-05,0.371397,0.557096,0.742794) |
---|
42 | the value of the hyperbolic cosinus is (0.961585,-0.341352,-0.512028,-0.682704) |
---|
43 | the value of the hyperbolic sinus is (0.732338,-0.448207,-0.672311,-0.896415) |
---|
44 | the value of the hyperbolic tangent is (1.02487,-0.102296,-0.153444,-0.204591) |
---|
45 | the value of the Sinus Cardinal (of index pi) is (13.6379,-5.38936,-8.08405,-10.7787) |
---|
46 | the value of the Hyperbolic Sinus Cardinal (of index pi) is (-0.192222,-0.0637628,-0.0956441,-0.127526) |
---|
47 | |
---|
48 | The value of the quaternion represented in spherical form by rho = 2.82843 , theta = 0.785398 , phi1 = 0.785398 , phi2 = 0.785398 is (1,1,1.41421,2) |
---|
49 | The value of the quaternion represented in semipolar form by rho = 2.82843 , alpha = 0.785398 , phi1 = 0.785398 , phi2 = 0.785398 is (1.41421,1.41421,1.41421,1.41421) |
---|
50 | The value of the quaternion represented in multipolar form by rho1 = 1 , theta1 = 0 , rho2 = 2 , theta2 = 1.5708 is (1,0,-8.74228e-08,2) |
---|
51 | The value of the quaternion represented in cylindrospherical form by t = 5 , radius = 1.41421 , longitude = 0.785398 , latitude = 1.0472 is (5,0.5,0.5,1.22474) |
---|
52 | The value of the quaternion represented in cylindrical form by r = 1.41421 , angle = 0.785398 , h1 = 3 , h2 = 4 is (1,1,3,4) |
---|
53 | |
---|
54 | Real 1: 1 ; Complex 1: (1,0) ; Quaternion 1: (1,0,0,0) . |
---|
55 | Complex i: (0,1) ; Quaternion i: (0,1,0,0) . |
---|
56 | Quaternion j: (0,0,1,0) . |
---|
57 | Quaternion k: (0,0,0,1) . |
---|
58 | |
---|
59 | i*i: (-1,0,0,0) ; j*j: (-1,0,0,0) ; k*k: (-1,0,0,0) . |
---|
60 | i*j: (0,0,0,1) ; j*i: (0,0,0,-1) . |
---|
61 | j*k: (0,1,0,0) ; k*j: (0,-1,0,0) . |
---|
62 | k*i: (0,0,1,0) ; i*k: (0,0,-1,0) . |
---|
63 | |
---|
64 | |
---|
65 | *** No errors detected |
---|
66 | |
---|