Make calc.m and calc.py use single precision