Skip to content

← elementwise_math package

MathConstant

Returns the value of a named mathematical constant.

Version 1.0.0

Ports/Properties

data

Value to emit.

verbose name
Data
default value
None
port type
DataPort
value type
float (can be None)
data direction
OUT

constant

Mathematical constant. pi/π is the ratio of a circle's circumference to its diameter, and tau/τ is the ratio of a circle's circumference to its radius; e is the base of the natural logarithm (Euler's number), gamma/γ is the Euler-Mascheroni constant, phi/φ is the golden ratio, i/j is the imaginary unit in complex numbers, ln2 and ln10 are the natural logarithms of 2 and 10, respectively, and √2, √3, and √5 are the square roots of 2 and 3, 5, respectively. inf represents positive infinity, nan is not-a-number (an undefined or unrepresentable value in floating-point math), and eps is the smallest representable positive number such that 1 + eps > 1.

verbose name
Constant
default value
pi
port type
EnumPort
value type
str (can be None)

set_breakpoint

Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.

verbose name
Set Breakpoint (Debug Only)
default value
False
port type
BoolPort
value type
bool (can be None)

metadata

User-definable meta-data associated with the node. Usually reserved for technical purposes.

verbose name
Metadata
default value
{}
port type
DictPort
value type
dict (can be None)