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
HASHNO
#define HASHNO
Definition:
arith.h:23
line::face
int face[MAXRANK]
Definition:
arith.h:37
line::plane
unsigned int plane
Definition:
arith.h:38
line::index
int index
Definition:
arith.h:34
line::s
REAL s[MAXRANK]
Definition:
arith.h:39
LOGICAL
int LOGICAL
Definition:
arith.h:31
line::last
int last
Definition:
arith.h:36
line
Definition:
arith.h:33
REAL
double REAL
Definition:
arith.h:25
MATRIX
VECTOR MATRIX[MAX]
Definition:
arith.h:27
MAX
#define MAX
Definition:
arith.h:12
line::next
int next
Definition:
arith.h:35
LINE
struct line LINE
MAXRANK
#define MAXRANK
Definition:
arith.h:13
VECTOR
REAL VECTOR[MAX]
Definition:
arith.h:26
TABLE
int TABLE[HASHNO]
Definition:
arith.h:29
euslisp
Author(s): Toshihiro Matsui
autogenerated on Thu Jun 15 2023 02:06:42