Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

some useful math functions for linux calculator bc

NotificationsYou must be signed in to change notification settings

idealvin/bc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

usage

Putbcrc 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 epow(a, b)# a ^ bsqrt(x)# x ^ 1/2cbrt(x)# x ^ 1/3abs(x)# absolute value of xfac(n)# factorial of nc(n, k)# n choose k, unordereda(n, k)# n choose k, ordereddeg(rad)# Radians to degreesrad(deg)# Degrees to radians

About

some useful math functions for linux calculator bc

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp