numath: matlab compatability
tmp