ConstantKind
it.grypho.scala.leonardo.core.ConstantKind
enum ConstantKind(val keyword: String, val glyph: Option[String], val value: Double) extends Keyworded
The named mathematical constants (F_0289).
pi and e were folded to numbers by the parser until F_0289; eulergamma and goldenratio are new. gamma and phi stay free variable names (phi is the spherical coordinate, and a released name cannot be reclaimed without breaking saved scripts), so the two new constants are spelled out, with the Greek glyphs accepted as aliases — the ASCII name is what is printed and saved.
Value parameters
- glyph
-
a Greek alias the grammar also reads, if any
- keyword
-
the word the grammar reads and
toStringwrites - value
-
the constant as a
Double
Attributes
- Graph
-
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalstrait Keywordedclass Objecttrait Matchableclass Any
Members list
In this article