This is an example of a library. You may see a list of other libraries used on Rosetta Code at Category:Solutions by Library.
bc -l loads the bc standard library. One must use
bc -l to run the programs in this category. The standard library defines six functions:
||sine of x radians|
||arctangent, range -π/2 to π/2|
The standard library also sets
scale = 20, so by default, the sines and other calculations go to 20 digits after the decimal point. The programmer can still change the scale. The standard library has no other purpose, except to define the six functions and change the default scale.
- Reference: OpenBSD bc(1)