summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/brclc/testclc.tex
blob: 08b3ebc18ee336aa25b9a70c117a8ebfb14a5959 (plain)
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
%Testing the brclc package and program 08/1999
\documentclass[a4paper,12pt]{article}

\usepackage[latin1]{inputenc} %for UNIX/LINUX
\usepackage[]{brclc}

\pagestyle{plain}

\begin{document}
\begin{center}
\Large
Test of the \verb|brclc| package and the \verb|brclc| program\\
\normalsize
Bernd Radgen Version 0.1 08/1999
\end{center}


Calculating a tabular:

\clc{6:1.95583=} %Euro Faktor

\begin{center}
\begin{tabular}{|c|p{12em}|r|r|r|}
\hline
quantity & marking& single-price &\multicolumn{2}{c|}{all-price}\\
&& (DM)& (DM)& (Euro)\\
\hline
\clc{1:100>.} & nails &\clc{2:0.06>}
&\clc{1:*2:=3:>} \clc{4:+3:=4:}& \clc{3:/6:=>}  \\
\hline
\clc{1:10>.} & planks  &\clc{2:5.65>}
&\clc{1:*2:=3:>} \clc{4:+3:=4:}& \clc{3:/6:=>} \\
\hline
\clc{1:12>.} & small planks  &\clc{2:1.15>}
&\clc{1:*2:=3:>} \clc{4:+3:=4:}& \clc{3:/6:=>}  \\
\hline
\clc{1:3>.} & iron  &\clc{2:8.71>}
&\clc{1:*2:=3:>} \clc{4:+3:=4:}& \clc{3:/6:=>}  \\
\hline
\hline
\multicolumn{3}{|r|}{sum:}&\clc{4:>}  & \clc{4:/6:=>} \\
\hline
\multicolumn{3}{|r|}{15\% tax:}
&\clc{7:100=}\clc{4:/7:=5:}\clc{7:15=}\clc{5:*7:=5:>}
& \clc{5:/6:=>} \\
\hline
\hline
\multicolumn{3}{|r|}{\textbf{sum-total:}}
& \textbf{\clc{4:+5:=7:>}} & \textbf{\clc{7:/6:=>}} \\
\hline
\end{tabular}
\end{center}

Show the output formatting possibilitys:
\begin{center}
\begin{tabular}{|c|l|}
\hline
rounded:&output:\\
\hline
\verb|\clc{1:60.56416>.}|$\;\,$ &\clc{1:60.56416>.}\\
\verb|\clc{1:60.56416>.0}|&\clc{1:60.56416>.0}\\
\verb|\clc{1:60.56416>.1}|&\clc{1:60.56416>.1}\\
\verb|\clc{1:60.56416>.2}|&\clc{1:60.56416>.2}\\
\verb|\clc{1:60.56416>.3}|&\clc{1:60.56416>.3}\\
\verb|\clc{1:60.56416>.4}|&\clc{1:60.56416>.4}\\
$\vdots$&$\quad\vdots$\\
\verb|\clc{1:60.56416>.8}|&\clc{1:60.56416>.8}\\
\hline
\end{tabular}
\end{center}
\begin{center}
\begin{tabular}{|c|l|}
\hline
unrounded:&output:\\
\hline
\verb|\clc{1:60.56416>,}|$\;\,$ &\clc{1:60.56416>,}\\
\verb|\clc{1:60.56416>,0}|&\clc{1:60.56416>,0}\\
\verb|\clc{1:60.56416>,1}|&\clc{1:60.56416>,1}\\
\verb|\clc{1:60.56416>,2}|&\clc{1:60.56416>,2}\\
\verb|\clc{1:60.56416>,3}|&\clc{1:60.56416>,3}\\
\verb|\clc{1:60.56416>,4}|&\clc{1:60.56416>,4}\\
$\vdots$&$\quad\vdots$\\
\verb|\clc{1:60.56416>,8}|&\clc{1:60.56416>,8}\\
\hline
\end{tabular}
\end{center}


Show the implemented calculation posibilities:

\samepage
\begin{center}
\begin{tabular}{|l|l|}
\hline
command:&output:\\
\hline
addition:&\\
\verb|$\clc{1:3>}+\clc{2:2>}=\clc{1:+2:=>.4}$|
&$\clc{1:3>}+\clc{2:2>}=\clc{1:+2:=>}$\\
subtraction:&\\
\verb|$\clc{1:3>}-\clc{2:2>}=\clc{1:-2:=>.4}$|
&$\clc{1:3>}-\clc{2:2>}=\clc{1:-2:=>}$\\
multiplication:&\\
\verb|$\clc{1:3>}*\clc{2:2>}=\clc{1:*2:=>.4}$|
&$\clc{1:3>}*\clc{2:2>}=\clc{1:*2:=>.4}$\\
division:&\\
\verb|$\clc{1:3>}/\clc{2:2>}=\clc{1:/2:=>.4}$|
&$\clc{1:3>}/\clc{2:2>}=\clc{1:/2:=>.4}$\\
\hline
pow:&\\
\verb|$\clc{1:3>}^{\clc{2:2>}}=\clc{1:^2:=>.4}$|
&$\clc{1:3>}^{\clc{2:2>}}=\clc{1:^2:=>.4}$\\
sqrt$^{\ast}$:&\\
\verb|$\clc{1:3>}^{\clc{2:0.5>}}=\clc{1:^2:=>.4}$|
&$\clc{1:3>}^{\clc{2:0.5>}}=\clc{1:^2:=>.4}$\\
exp:&\\
\verb|$\exp\clc{1:3>}=\clc{1:exp=>.4}$|
&$\exp\clc{1:3>}=\clc{1:exp=>.4}$\\
ln:&\\
\verb|$\ln\clc{1:3>}=\clc{1:ln=>.4}$|
&$\ln\clc{1:3>}=\clc{1:ln=>.4}$\\
log:&\\
\verb|$\ln\clc{1:3>}=\clc{1:log=>.4}$|
&$\log\clc{1:3>}=\clc{1:log=>.4}$\\
\hline
sin$^{\ast\ast}$:&\\
\verb|$\sin\clc{1:3>}=\clc{1:sin=>.4}$|
&$\sin\clc{1:3>}=\clc{1:sin=>.4}$\\
cos$^{\ast\ast}$:&\\
\verb|$\cos\clc{1:3>}=\clc{1:cos=>.4}$|
&$\cos\clc{1:3>}=\clc{1:cos=>.4}$\\
tan$^{\ast\ast}$:&\\
\verb|$\tan\clc{1:3>}=\clc{1:tan=>.4}$|
&$\tan\clc{1:3>}=\clc{1:tan=>.4}$\\
asin$^{\ast\ast}$:&\\
\verb|$\arcsin\clc{1:0.3>}=\clc{1:asin=>.4}$|
&$\arcsin\clc{1:0.3>}=\clc{1:asin=>.4}$\\
acos$^{\ast\ast}$:&\\
\verb|$\arccos\clc{1:0.3>}=\clc{1:acos=>.4}$|
&$\arccos\clc{1:0.3>}=\clc{1:acos=>.4}$\\
atan$^{\ast\ast}$:&\\
\verb|$\arctan\clc{1:0.3>}=\clc{1:atan=>.4}$|
&$\arctan\clc{1:0.3>}=\clc{1:atan=>.4}$\\
\hline
\end{tabular}
\end{center}
$^{\ast\;\,}$-sqrt implemented over the pow-function.\\
$^{\ast\ast}$-trigonometric functions in radiant!\\



\end{document}