bc -l << EOF scale=10000 #amount to calculate to a(1)*4