Unicode: a bad idea, in general

Unicode: a great idea, if used prudently!

Just finished implementing some small package

  1. The calculations therein are based mostly on one paper. It was immensely helpful for me to be able to use the same notation as in the paper, with all these α, β, ϕ, Rₛ, Rₚ etc. I was even able to copy some formulas from the paper’s pdf into the code and just edit it slightly.
  2. In physics, μ₀ is unambiguous, at least in the context of electromagnetism, and formulas using it are better readable IMO.
  3. One of the problems which cost me half a day a night of debugging was that elliptic integrals in SpecialFunctions are defined using m as argument, not k, with k²=m. I haven’t RTFM, only checked quickly the function help, and didn’t pay attention to having m here and k in Wikipedia. Had the function help used , which is just as valid identifier, instead of m, it could save me a lot of time.
4 Likes