Post-Star Trek TOS, William Shatner guest starred on The Six Million Dollar Man as Steve Austin's friend and a fellow astronaut Josh.
Instead of getting into an accident and getting $6 mil worth of bionics, Josh instead passed through some kind of weird energy field in space and came back with the ability to understand dolphin math (and hear weird computer sounds in the process)!
Yes, apparently Flipper and his buds use sine, cosine and fractions just as much as they gulp down fish treats.
io9 has a terrific clip of these proceedings. Just wait til you get to the end for the wacked out math stuff.