Support constants like π (pi) in "Evaluate Math Expression" feature
Hey :)
Problem
I use the Emmet "Evaluate Math Expression" all the time (in VSCode), but often my expressions include a constant like π, which does currently not work.
Suggestion
Support constants like π (pi) in "Evaluate Math Expression" feature.
I think pi would be the most useful constant and I personally would already be happy if that's the only one that gets added.
However there are some more options that would be useful, especially for people that don´t use emmet only for HTML/CSS/...
For example there are also formats like URDF or xacro that get used to represent a robotics model.
Here is a list of some constants that you could think about adding:
Mathematical Constants
π (Pi) ≈ 3.1415926535 – Ratio of a circle's circumference to its diameter. τ (Tau) ≈ 6.283185307 – Ratio of a circle's circumference to its radius (τ = 2π). e (Euler's Number) ≈ 2.7182818284 – Base of the natural logarithm. φ (Golden Ratio) ≈ 1.6180339887 – Occurs in many natural patterns and geometries.
Physical Constants
c ≈ 299,792,458 m/s – Speed of light in a vacuum. G ≈ 6.67430 × 10⁻¹¹ m³/kg/s² – Gravitational constant. ~h ≈ 6.62607015 × 10⁻³⁴ J·s – Planck’s constant.~ ~k_B ≈ 1.380649 × 10⁻²³ J/K – Boltzmann’s constant.~ ~q_e ≈ 1.602176634 × 10⁻¹⁹ C – Elementary charge (electron charge).~ ~m_e ≈ 9.10938356 × 10⁻³¹ kg – Mass of an electron.~ ~m_p ≈ 1.67262192369 × 10⁻²⁷ kg – Mass of a proton.~ ~N_A ≈ 6.02214076 × 10²³ mol⁻¹ – Avogadro’s number.~ ~R ≈ 8.314 J/(mol·K) – Universal gas constant.~ ~σ ≈ 5.670374419 × 10⁻⁸ W/(m²·K⁴) – Stefan-Boltzmann constant.~ (I don´t think the crossed out constants make sense to add)
Computational Constants
ln(2) ≈ 0.6931471806 – Natural logarithm of 2. ln(10) ≈ 2.302585093 – Natural logarithm of 10. log₂(e) ≈ 1.4426950409 – Log base 2 of Euler’s number. log₁₀(e) ≈ 0.4342944819 – Log base 10 of Euler’s number. √2 ≈ 1.4142135623 – Square root of 2. √3 ≈ 1.7320508076 – Square root of 3. √5 ≈ 2.2360679775 – Square root of 5.
Hi, looks interesting, will try to evaluate this feature