Try using the single precision sinf() and sqrtf() rather than the double precision functions.Also, you should probably try using single precision constants, such as 1.23f rather than double precision 1.23.hths.