I thought somebody might come up with that (or a similar) objection. But, no, it's not the same thing. Nor is it like using the word "bomb" in an airline terminal.
It is virtually the same as the Italian mathematician example ... namely, no harm, no foul. And it screws over the stupid and ignorant.
No harm???
The difference is
INTENT. Admittedly the lady who was frightened by a mathematical formula demonstrated her ignorance, but ignorance is not a crime and neither she nor the mathematician intended to create an incident
which is what you are proposing. I suspect the airline, TSA, and airport security police would take a very dim view of your little practical
joke and at best you could end up being asked to leave the airplane and take a bus. You could even end up with a fine or even jail time.