/*--------------------------------------------------------------------------
ハイパーカオス写像のリアプノフスペクトラムの計算
calculating the Lyapunov spectrum of the Hyperchaos map
hyperchaos_map_lyap.h
--------------------------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define ITERATION 100000
#define SKIP 10000
// 初期値
// initial values
#define X0 0.18
#define Y0 0.10
#define Z0 0.35
// 変数の数
// number of variables
#define DIM 3
/*------------------------------------------------------*/
extern void hyperchaos_map_eqs( double (*x), double (*y), double (*z), double u[DIM][DIM] );
extern void gram_schmidt_orth( double u[DIM][DIM], double e[DIM][DIM] );
extern double calc_lyap_dim( double lambda[DIM] );
extern double log2( double x );