It doesn't have the same satisfaction of just writing down the numbers and operations on them, but "python3 -c 'import decimal; decimal.getcontext().prec=130; print(decimal.Decimal(2).sqrt())'" will give you any desired precision (130 here) and I imagine roughly the same gamut of mathematics operations as Javascript.
Comments
It doesn't have the same satisfaction of just writing down the numbers and operations on them, but "python3 -c 'import decimal; decimal.getcontext().prec=130; print(decimal.Decimal(2).sqrt())'" will give you any desired precision (130 here) and I imagine roughly the same gamut of mathematics operations as Javascript.