Closed lambdafu closed 7 years ago
In previous proposals for super/subscripts in Unicode, the objection was that people should just use HTML or some other formatting language for formatting, and hence there was no need to support this in Unicode.
I want to focus on programming (including computational physics, of course), because in programming languages using an external formatting system (like HTML or a word processor) is not possible.
Sorry to comment on a closed thread, but was redirected here after a comment by @jiahao on Julia slack.
I think there is a case to put forth with Unicode's impact on programming in computational physics in at least one respect: fully fledged Einstein Notation for tensors.
https://en.wikipedia.org/wiki/Einstein_notation
Infuriatingly, superscript and subscript for the same letter is needed. For starters, not all greek letters are availabe, which are used to denote 0:3, and latin letters are used to index 1:3. For example, in this link one can see that the greek letters delta
, theta
, iota
have no subscript counterpart, whilst rho
has no superscript counterpart. A crucial aspect of using indices in Einstein notation is "lowering" or "raising" them from super/subscripts to the other.
This proposal could at least homogenize such a capability, if not outright allow one to implement it in general.
In particular, heavy duty relativistic codes have run on legacy languages and have simply given up on usability. I think having super and subscripts available would be a great boon to the development, maintainability and, readability of gravitational codes specifically, and physics code in general as well.
Yes, that falls under programming for computational science. Einstein notation is one of many, many notations where both greek and latin subscripts and superscripts are used extensively.
I thought we could use some more (prepared) used cases, hopefully I can keep adding/editing this comment as evidence piles.
Physics:
\mu
and \tau
subscripts [2, p.12]Chemistry
P_x + P_y -> P_{x+y}
[1, p. 72]w_{c,h}
Mathematics:
\Sigma
, supremum, infimum, Unions, Intersections, and Multiplication notation have subscripts to delimit the set under consideration, or process.can be annotated as \delta_xx
, and second partial derivatives may have a subscripted index number, as well as an exponent of 2.B_\epsilon
References. [1]. Compendium of Polymer Terminology and Nomenclature IUPAC 2008 [2]. Symbols, Units, Nomenclature and Fundamental Constants in Physics, IUPAP - Commission C2 SUNAMCO 2010 reprint [3]. Stochastic Differential Equations, Bernt Oksendal, Sixth Edition, Springer. [5]. Mathematical Physics - A Modern Introduction to its Foundations, Sadri Hassani, 2013. [4] A Comprehensive introduction to Differential Geometry, Michael Spivak, Vol.1, p. 478, 3rd edition.
*: I attempted to find notation that would fit for CS, but my Knuth Vol. 1 on AOCP and CSLR couldn't give more examples than the standard maths notation.
As usual, critiques welcome.
It might be worth mentioning physics, too. Close enough to math and programming, and obvious application. In fact, I found this github project because I was going to write my own proposal so I can type the name of elementary particles in Unicode (from the Standard Model, in particular the two other neutrinos \nu\mu and \nu\tau as well as the W^\plus and W^\minus boson). Do you think including physics would water down the proposal?