Useful math expressions in particle scripts

I am making a set of math expression buttons and I was wondering which math expressions people found they use the most when making particle scripts. In my experience I use square and square root most often, but I wanted to see what else tends to get used.


Heya. I find sin() always useful but everyone knows that. My new favourite is modulo which can be used for doing operations on every nth point, vertice or particle. E.g.

if (pointNumber%2 == 0){ //Do stuff on every other point; }

I’m not sure if that’s the exact logic/maths but you get the picture.