3 bc \- arbitrary-precision arithmetic language
14 is an interactive processor for a language that resembles
15 C but provides arithmetic on numbers of arbitrary length with up
16 to 100 digits right of the decimal point.
17 It takes input from any files given, then reads
22 option enables debugging output.
25 option stands for the name
26 of an arbitrary precision math library.
29 option suppresses the automatic display
30 of calculation results; all output is via the
34 The following syntax for
36 programs is like that of C;
49 comments are enclosed in
52 newlines end statements
71 arbitrarily long numbers with optional sign and decimal point.
79 number of significant decimal digits
82 number of digits right of decimal point
84 .IB L ( E , ... ,\fIE\fP)
101 .B "= += -= *= /= %= ^="
206 All function arguments are passed by value.
209 The value of an expression at the top level is printed
210 unless the main operator is an assignment or the
212 command line argument is given.
213 Text in quotes, which may include newlines, is always printed.
214 Either semicolons or newlines may separate statements.
217 influences the number of digits to be retained on arithmetic
218 operations in the manner of
224 set the input and output number radix respectively.
226 The same letter may be used as an array, a function,
227 and a simple variable simultaneously.
228 All variables are global to the program.
229 Automatic variables are pushed down during function calls.
230 In a declaration of an array as a function argument
231 or automatic variable
232 empty square brackets must follow the array name.
235 is actually a preprocessor for
237 which it invokes automatically, unless the
243 input is sent to the standard output instead.
245 Define a function to compute an approximate value of
247 Use it to print 10 values.
248 (The exponential function in the library gives better answers.)
265 for(i=1; i<=10; i++) print e(i)
285 statement must have all three
290 is interpreted when read, not when executed.