Open MisterE123 opened 1 month ago
In this table, alot of room would have been saved by using ΔT for
and ΔVol for
and for
but as you can see it gives a syntax error.
Thanks for the suggestion. This is related to #283. Variable names need to be able to map one-to-one to Python variable names and Python doesn't support the dotted letter names. However, Python does support international unicode alphabets, so that would address the missing delta symbol since it's part of the Greek alphabet. I eventually plan to support the same international characters that Python supports in variable names.
could there be a single special character sequence, legal in python, which is invalid input syntax for EPxyz, which denotes a "spelled-out" special character?
Then, if we say the special character sequence is 00___xx___00_
then M-dot will be displayed properly in EPxyz, and in python map to the var 00___xx___00_m_dot
. The sequence would have to be long enough to never be desired for a variable name by itself, but short enough to produce readable python code
It's technically possible to do, it just introduces quite a bit of complexity and overhead for the conversion to and from Python.
I've been unable to use characters such as ṁ for mass flow rate, or vdot for volumetric flow rate, or DeltaV for change in velocity, or t_1/2 for the halflife. It would be nice to be able to use these characters as variables.