Category:Bc -l

From Rosetta Code
Library
This is an example of a library. You may see a list of other libraries used on Rosetta Code at Category:Solutions by Library.

The command 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:

s(x) sine of x radians
c(x) cosine
e(x) exponential
l(x) natural logarithm
a(x) arctangent, range -π/2 to π/2
j(n,x) Bessel function

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.

Pages in category "Bc -l"

The following 3 pages are in this category, out of 3 total.