Main Page
Namespaces
Classes
Files
File List
File Members
contrib
contact
clib
arith.h
Go to the documentation of this file.
1
/* */
2
/* Arithmetic Calculation Header */
3
/* */
4
/* Ver.1.0, Apr. 5,1988. for ssvdc() */
5
/* Ver.1.1, Jul.16,1988. for cone() */
6
/* Ver.1.2, Jul.22,1988. for cone() with face pointer */
7
8
#include <stdio.h>
9
#include <math.h>
10
#include <varargs.h>
11
12
#define MAX 50
13
#define MAXRANK 6
14
#define MAXEDGE 2000
15
#define EPS 1.0e-4
16
/* NSPACE is used for the threshold under which the singular value is zero. */
17
#define NSPACE 1.0e-4
18
#define UNIT 1.0e-4
19
#define TRUE 1
20
#define FALSE 0
21
#define EMPTY -1
22
#define COLLISION -2
23
#define HASHNO 15625
24
25
typedef
double
REAL
;
26
typedef
REAL
VECTOR
[
MAX
];
27
typedef
VECTOR
MATRIX
[
MAX
];
28
29
typedef
int
TABLE
[
HASHNO
];
30
31
typedef
int
LOGICAL
;
32
33
typedef
struct
line
{
34
int
index
;
35
int
next
;
36
int
last
;
37
int
face
[
MAXRANK
];
38
unsigned
int
plane
;
39
REAL
s
[
MAXRANK
];
40
}
LINE
;
41
42
43
44
45
VECTOR
REAL VECTOR[MAX]
Definition:
arith.h:26
LINE
struct line LINE
line::plane
unsigned int plane
Definition:
arith.h:38
REAL
double REAL
Definition:
arith.h:25
MAX
#define MAX
Definition:
arith.h:12
line::index
int index
Definition:
arith.h:34
line::face
int face[MAXRANK]
Definition:
arith.h:37
line
Definition:
arith.h:33
LOGICAL
int LOGICAL
Definition:
arith.h:31
line::last
int last
Definition:
arith.h:36
TABLE
int TABLE[HASHNO]
Definition:
arith.h:29
MAXRANK
#define MAXRANK
Definition:
arith.h:13
line::s
REAL s[MAXRANK]
Definition:
arith.h:39
HASHNO
#define HASHNO
Definition:
arith.h:23
MATRIX
VECTOR MATRIX[MAX]
Definition:
arith.h:27
line::next
int next
Definition:
arith.h:35
euslisp
Author(s): Toshihiro Matsui
autogenerated on Fri Feb 21 2020 03:20:54