Line | |
---|
1 | % Test code for the inverse quaternion hyperbolic functions. |
---|
2 | |
---|
3 | % Copyright © 2006 Stephen J. Sangwine and Nicolas Le Bihan. |
---|
4 | % See the file : Copyright.m for further details. |
---|
5 | |
---|
6 | T = 1e-14; |
---|
7 | |
---|
8 | % Test 1. Real quaternion data. |
---|
9 | |
---|
10 | q = quaternion(randn(100,100), randn(100,100), randn(100,100), randn(100,100)); |
---|
11 | |
---|
12 | compare(sinh(asinh(q)), q, T,... |
---|
13 | 'quaternion/asin failed test 1.'); |
---|
14 | compare(cosh(acosh(q)), q, T,... |
---|
15 | 'quaternion/acos failed test 1.'); |
---|
16 | compare(tanh(atanh(q)), q, T,... |
---|
17 | 'quaternion/atan failed test 1.'); |
---|
18 | |
---|
19 | clear q |
---|
20 | |
---|
21 | % Test 2. Complex quaternion data. |
---|
22 | |
---|
23 | % The functions do not support this at present so there is no test. |
---|
Note: See
TracBrowser
for help on using the repository browser.