dc Command Examples

An arbitrary precision calculator. Uses reverse polish notation (RPN). See also: bc, qalc. More information: https://www.gnu.org/software/bc/manual/dc-1.05/html_mono/dc.html.

dc

dc {{path/to/script.dc}}

dc --expression='{{10}} k {{5 3 /}} p'

dc --expression='4 5 * 17 - p'

dc --expression='7 k 5 _3 / p'

dc --expression='100 k 5 v 1 + 2 / p'