File: bruch.doc

package info (click to toggle)
symmetrica 2.0+ds-6
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 9,456 kB
  • sloc: ansic: 97,289; makefile: 170; sh: 70
file content (155 lines) | stat: -rw-r--r-- 2,797 bytes parent folder | download | duplicates (3)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
COMMENT:
	BRUCH
	-----

	This is an object which corresponds to fractions (german: Bruch).
	There a two parts, the nominator (called oben) and the denominator
	(called unten).

NAME:
	s_b_o
SYNOPSIS:
	INT s_b_o()
MACRO:
	S_B_O
DESCRIPTION:
	see comment

NAME:
	s_b_u
SYNOPSIS:
	INT s_b_u()
MACRO:
	S_B_U
DESCRIPTION:
	see comment

NAME:
	s_b_oi
SYNOPSIS:
	INT s_b_oi()
MACRO:
	S_B_OI
DESCRIPTION:
	see comment

NAME:
	s_b_ui
SYNOPSIS:
	INT s_b_ui()
MACRO:
	S_B_UI
DESCRIPTION:
	see comment

NAME:
	c_b_o
SYNOPSIS:
	INT c_b_o()
MACRO:
	C_B_O
DESCRIPTION:
	see comment

NAME:
	c_b_u
SYNOPSIS:
	INT c_b_u()
MACRO:
	C_B_U
DESCRIPTION:
	see comment

NAME:
	b_ou_b
SYNOPSIS:
	INT b_ou_b()
DESCRIPTION:
	see comment

NAME:
	m_ou_b
SYNOPSIS:
	INT m_ou_b()
DESCRIPTION:
	see comment

NAME:
	m_ioiu_b
SYNOPSIS:
	INT m_ioiu_b()
DESCRIPTION:
	see comment

COMMENT:
	To select these parts, to change these parts or to build new 
	BRUCH objects out of these parts there are the following routines 
	or macros

	routine               macro                description
	---------------------------------------------------------------------
	s_b_o                 S_B_O                select_bruch_oben
	s_b_u                 S_B_U                select_bruch_unten
	s_b_oi                S_B_OI               select_bruch_oben_integer
	s_b_ui                S_B_UI               select_bruch_unten_integer
	c_b_o                 C_B_O                change_bruch_oben
	c_b_u                 C_B_U                change_bruch_unten
	b_ou_b                                     build_oben_unten_bruch
	m_ou_b                                     make_oben_unten_bruch
	m_ioiu_b                                   make_integeroben_
						      integerunten_bruch

	A special routine for BRUCHobjects is

NAME:        
	kuerzen
SYNOPSIS:    
	INT kuerzen(OP a)
DESCRIPTION: 
	computes the greatest common divisor of nominator and
       denominator and
       tries to divide nominator and denominator of the BRUCHobject a
       by this object. 
RETURN:      
	OK or ERROR
       


NAME:        
	test_bruch
SYNOPSIS:    
	INT test_bruch()
DESCRIPTION:
	For testing of the implementation


COMMENT:
	GENERAL ROUTINES:
	-------------------------------------------------------------------
	absolute()
	add()
	add_apply()
	addinvers()
	addinvers_apply()
	comp()
	copy()
	div()
	einsp()                                   test on unity
	fprint()
	fprintln()
	freeall()
	freeself()
	hoch()
	invers()
	mult()
	mult_apply()
	negeinsp()                                test on minus unity
	negp()                                    test on negative
	nullp()                                   test on null
	objectread()
	objectwrite()
	posp()                                    test on positive
	print()
	println()
	scan()
	tex()