Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,9 @@ public class HexActions {
public static final ActionRegistryEntry CONST$E = make("const/double/e",
new ActionRegistryEntry(HexPattern.fromAngles("aaq",
HexDir.EAST), Action.makeConstantOp(new DoubleIota(Math.E))));
public static final ActionRegistryEntry CONST$PHI = make("const/double/phi",
new ActionRegistryEntry(HexPattern.fromAngles("wdded",
HexDir.NORTH_EAST), Action.makeConstantOp(new DoubleIota(1.618033988749895))));

// == Entities ==

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,7 @@
pi: "Arc's Reflection",
tau: "Circle's Reflection",
"e": "Euler's Reflection",
phi: "Harmony Reflection",
},
},

Expand Down Expand Up @@ -1859,6 +1860,7 @@
tau: "Adds τ, the radial representation of a complete circle, to the stack.",
pi: "Adds π, the radial representation of half a circle, to the stack.",
"e": "Adds $(italic)e/$, the base of natural logarithms, to the stack.",
phi: "Adds φ, the golden ratio, to the stack. This is the ratio between two values such that (A+B)/A = A/B.",
},
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@
"input": "",
"output": "num",
"text": "hexcasting.page.consts.const/double/e"
},
{
"type": "hexcasting:pattern",
"op_id": "hexcasting:const/double/phi",
"anchor": "hexcasting:const/double/phi",
"input": "",
"output": "num",
"text": "hexcasting.page.consts.const/double/phi"
}
]
}
Loading