/
HIPLWRITE.c,v
58 lines (46 loc) · 923 Bytes
/
HIPLWRITE.c,v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
head 1.1;
access;
symbols;
locks
saclib:1.1; strict;
comment @ * @;
1.1
date 98.04.23.20.27.12; author George; state new;
branches;
next ;
desc
@*
Hardware interval polynomial logarithmic write.
@
1.1
log
@Initial revision
@
text
@/*======================================================================
HIPLWRITE(n,A)
Hardware interval polynomial logarithmic write.
Inputs
n : a positive BETA-digit.
A : in HI[x], deg(A) = n.
Effect
The coefficients of A are written as logarithmic binary
rational intervals, one per line, beginning with the leading
coefficient.
======================================================================*/
#include "saclib.h"
void HIPLWRITE(n,A)
BDigit n;
interval *A;
{
BDigit i;
Word I;
Step1: /* Convert and write coefficients. */
for (i = n; i >= 0; i--) {
I = HILBRI(A[i]);
LBRIWRITE(I);
SWRITE("\n"); }
Return: /* Return. */
return;
}
@