AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox

01.01.2013 Views

I� �� I J

BC ( l ) BC ( l ) NAME be - arbitrary-precision arithmetic language SYNOPSIS be [ -c ] [ - 1 ] [ file ... ] DESCRIPTION Be is an interactive processor for a language that resembles C but provides unlimited precision arithmetic. It takes input from any files given, then reads the standard input. The -1 argument stands for the name of an arbitrary precision math library. The syntax for be programs is as follows; L means Jetter a-z, E means expression, S means statement. Comments Names are enclosed in I • and • f. simple variables: L array elements: L [ E ] The words "ibase", "obase", and "scale" Other operands arbitrarily long numbers with optional sign and decimal point. (E) sqrt (E) length ( E) scale ( E) L(E, ... ,E) number of significant decimal digits number of digits right of decimal point Operators + - • I % A (% is remainder; A is power) ++ -- (prefix and postfix; apply to names) == < = > = I= ==+ =- =• =I =% = Statements E { s ; ... ; s } if ( E) S while (E) S for ( E ; E ; E ) S null statement break quit Function definitions define L ( L , ... , L ) { auto L, ... , L S; ... S return ( E) } Functions in -1 math library s(x) sine c(x) cosine e(x) exponential - 1-

I�<br />

��<br />

I<br />

J

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!