Giter Site home page Giter Site logo

bc's Introduction

some useful math functions for linux calculator bc

usage

Put bcrc somewhere such as ~/.bcrc, then start bc as follows:

# you may add an alias to your bashrc file:
#   alias bc='bc ~/.bcrc -l -q'
bc ~/.bcrc -l

supported functions

trigonometric functions

sin(x), cos(x), tan(x), cot(x), sec(x), csc(x)

inverse trigonometric functions

arcsin(x), arccos(x), arctan(x), arccot(x), arcsec(x), arccsc(x)

or asin(x), acos(x), atan(x), acot(x), asec(x), acsc(x)

logarithmic function

log(a, b)
ln(x)            # log(e, x)
lg(x), log10(x)  # log(10, x)
log2(x)          # log(2, x)

others

e(x), exp(x)     # exponentiation of e
pow(a, b)        # a ^ b
sqrt(x)          # x ^ 1/2
cbrt(x)          # x ^ 1/3
abs(x)           # absolute value of x
fac(n)           # factorial of n
c(n, k)          # n choose k, unordered
a(n, k)          # n choose k, ordered
deg(rad)         # Radians to degrees
rad(deg)         # Degrees to radians

bc's People

Contributors

idealvin avatar ivan-volnov avatar coolantleak avatar zacc23 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.