When a stone is dropped from a height, and in doing so, seeks the ground, is any major math inherently involved, other than natural physics? Is there any inherent intelligence within the stone, to guide its mass to the ground?
Same way, with electromagnetic radiation falling on structures on the organism, that causes electrical signals to arise from the energy interactions. The "math" acceptable is determined by repeated testing of survivability and utility.
How much "math" and complex calculus did you study at age 4 when you learned to catch that ball you used to play with?
It was built in to me by the mathematician. The calculus came from somewhere, didn't it? And do you really believe that "trillions raised to millions worth of dynamic interactions of atoms and molecules" is sufficient to do derivatives and integrals, which are obviously getting done in some manner somewhere in that four year old noggin? Why is the notion of a entity engineering itself completely absurd, unless it happens over a few billion years. Time must be sort of a god, I guess.