However, you don't tune a piano to those calculated pitches, for a couple of reasons. One is that our ears don't perceive in a linear fashion across the whole range of a piano keyboard. So in some ranges our ears want a pitch higher or lower than the calculated. Stretch. Another and more important is that the piano string pitch is not one frequency, but a whole series of frequencies. The overtones don't line up neatly (integer ratios) like they do on some wind instruments. And this is slightly different on every piano. So if you have a chord where the fundamental frequencies are correct but the overtones clash, your piano sounds bad. Piano strings are steel and they have the same stiffness as a crescent wrench. So - and I'm not a tuner, so I might have something wrong - you don't really tune a piano to equal temperament, you tune a piano so it sounds as close to equal temperament to the human ear as you can get it.
I'm not sure I follow this. If the fundamental frequencies are correct (according to equal temperament) then the overtones have no choice but to clash. Tuners who tune by ear know that there will be beats in a fifth or a tenth exactly because the overtones clash, and they learn how to time/count the beats so that the amount of clash is the right amount of clash for equal temperament.
Okay, let me try again. You are quite right, my explanation was confusing and mixed a couple of concepts.Yes, equal temperament will not produce a completely clash-less chord. A really pure chord would have each note at a ratio of simple integers. An octave would be 2:1. A fifth would be 3:2. Etc. As you pointed out, with equal temperament we can't get those really pure integer ratios. We get pretty close, but it's a compromise that gives the least bad combinations, and our ears are accustomed to it. There are other compromises possible, and some tuners will use them. They will make a few chords better and a few worse. My understanding is that historically harpischordists tuned their own instruments, and just selected or wrote music that didn't have the bad chords for that key signature. But that wasn't what I intended to convey. There are no sine waves on a piano. Every note has a fundamental and a set of overtones. On a wind instrument like flute or trombone, that set of overtones will be simple interval ratios. There will be a fundamental, and a higher overtone 2 x fundamental, and one 3 times, and one 4 times, etc.; this is forced by the physics. Some of those overtones will be louder than others, that's why timbre varies. Our ear hears the collection as one discrete pitch, usually the fundamental, but it isn't one pitch. (you can filter out the fundamental but keep the overtones, and the ear will still hear the fundamental) The piano is the same in that there will be a set of overtones above every pitch. It is different in that those overtones will never have a simple integer relationship. The set of frequencies at which an object vibrates is determined by the stiffness and the mass. A piano string is steel and has roughly the same stiffness as a wrench. Drop a wrench on concrete and you won't hear anything like a sine wave. The variation from integer ratios is called inharmonicity. The software tuning programs measure inharmonicity for that particular piano and provide a curve of recommended tuning frequencies for each note. Aural tuners do basically the same thing by ear. This takes a lot of skill, plus you still have to set the string so it is stable.