Coding for Hair

I was wondering what I need to learn to code Blender, or any other 3d program to recreate hair. For example, the mathematics I need to know, would it be Fluid mechanics, or Rheology.

Thank you so much:)

Fluid mechanics. Rheology is going too deep.

Do you know of any books, or websites where I can learn more about it? Is it mainly creating a line that flows through 3d space like a fluid would?

Just google “fluid mechanics”.