Load the math library with bc -l
; the cosine function is named c
in this library:
echo "c(1)" | bc -l
This library only supports sine, cosine, artangent, the natural logarithm, the exponential function, and (strangely enough) the n-th order Bessel function.