w-calc

Advanced calculator with support for complex expressions and functions

brewmacoslinux
Try with needOr install directly
Source

About

Very capable calculator

Commands

wcalc

Examples

Perform basic arithmetic calculation$ wcalc '2 + 2 * 3'
Calculate using trigonometric functions$ wcalc 'sin(3.14159/2)'
Convert between number bases$ wcalc '0xff + 0b1010'