⚠️ Warning: This is a draft ⚠️

This means it might contain formatting issues, incorrect code, conceptual problems, or other severe issues.

If you want to help to improve and eventually enable this page, please fork RosettaGit's repository and open a merge request on GitHub.

{{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:

{| class="wikitable" || 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.

  • Reference: [http://www.openbsd.org/cgi-bin/man.cgi?query=bc&apropos=0&sektion=1&manpath=OpenBSD+Current&arch=i386&format=html OpenBSD bc(1)]