Pd Vanilla math helpers