# GeometryNodeAttributeMath(GeometryNode)¶

class `bpy.types.``GeometryNodeAttributeMath`(GeometryNode)
`input_type_a`
Type

enum in [‘ATTRIBUTE’, ‘FLOAT’], default ‘ATTRIBUTE’

`input_type_b`
Type

enum in [‘ATTRIBUTE’, ‘FLOAT’], default ‘ATTRIBUTE’

`input_type_c`
Type

enum in [‘ATTRIBUTE’, ‘FLOAT’], default ‘ATTRIBUTE’

`operation`
• `ADD` Add, A + B.

• `SUBTRACT` Subtract, A - B.

• `MULTIPLY` Multiply, A * B.

• `DIVIDE` Divide, A / B.

• `MULTIPLY_ADD` Multiply Add, A * B + C.

• `POWER` Power, A power B.

• `LOGARITHM` Logarithm, Logarithm A base B.

• `SQRT` Square Root, Square root of A.

• `INVERSE_SQRT` Inverse Square Root, 1 / Square root of A.

• `ABSOLUTE` Absolute, Magnitude of A.

• `EXPONENT` Exponent, exp(A).

• `MINIMUM` Minimum, The minimum from A and B.

• `MAXIMUM` Maximum, The maximum from A and B.

• `LESS_THAN` Less Than, 1 if A < B else 0.

• `GREATER_THAN` Greater Than, 1 if A > B else 0.

• `SIGN` Sign, Returns the sign of A.

• `COMPARE` Compare, 1 if (A == B) within tolerance C else 0.

• `SMOOTH_MIN` Smooth Minimum, The minimum from A and B with smoothing C.

• `SMOOTH_MAX` Smooth Maximum, The maximum from A and B with smoothing C.

• `ROUND` Round, Round A to the nearest integer. Round upward if the fraction part is 0.5.

• `FLOOR` Floor, The largest integer smaller than or equal A.

• `CEIL` Ceil, The smallest integer greater than or equal A.

• `TRUNC` Truncate, The integer part of A, removing fractional digits.

• `FRACT` Fraction, The fraction part of A.

• `MODULO` Modulo, Modulo using fmod(A,B).

• `WRAP` Wrap, Wrap value to range, wrap(A,B).

• `SNAP` Snap, Snap to increment, snap(A,B).

• `PINGPONG` Ping-Pong, Wraps a value and reverses every other cycle (A,B).

• `SINE` Sine, sin(A).

• `COSINE` Cosine, cos(A).

• `TANGENT` Tangent, tan(A).

• `ARCSINE` Arcsine, arcsin(A).

• `ARCCOSINE` Arccosine, arccos(A).

• `ARCTANGENT` Arctangent, arctan(A).

• `ARCTAN2` Arctan2, The signed angle arctan(A / B).

• `SINH` Hyperbolic Sine, sinh(A).

• `COSH` Hyperbolic Cosine, cosh(A).

• `TANH` Hyperbolic Tangent, tanh(A).

• `RADIANS` To Radians, Convert from degrees to radians.

• `DEGREES` To Degrees, Convert from radians to degrees.

Type

enum in [‘ADD’, ‘SUBTRACT’, ‘MULTIPLY’, ‘DIVIDE’, ‘MULTIPLY_ADD’, ‘POWER’, ‘LOGARITHM’, ‘SQRT’, ‘INVERSE_SQRT’, ‘ABSOLUTE’, ‘EXPONENT’, ‘MINIMUM’, ‘MAXIMUM’, ‘LESS_THAN’, ‘GREATER_THAN’, ‘SIGN’, ‘COMPARE’, ‘SMOOTH_MIN’, ‘SMOOTH_MAX’, ‘ROUND’, ‘FLOOR’, ‘CEIL’, ‘TRUNC’, ‘FRACT’, ‘MODULO’, ‘WRAP’, ‘SNAP’, ‘PINGPONG’, ‘SINE’, ‘COSINE’, ‘TANGENT’, ‘ARCSINE’, ‘ARCCOSINE’, ‘ARCTANGENT’, ‘ARCTAN2’, ‘SINH’, ‘COSH’, ‘TANH’, ‘RADIANS’, ‘DEGREES’], default ‘ADD’

classmethod `is_registered_node_type`()

True if a registered node type

Returns

Result

Return type

boolean

classmethod `input_template`(index)

Input socket template

Parameters

index (int in [0, inf]) – Index

Returns

result

Return type

`NodeInternalSocketTemplate`

classmethod `output_template`(index)

Output socket template

Parameters

index (int in [0, inf]) – Index

Returns

result

Return type

`NodeInternalSocketTemplate`

classmethod `bl_rna_get_subclass`(id, default=None)
Parameters

id (string) – The RNA type identifier.

Returns

Return type

`bpy.types.Struct` subclass

classmethod `bl_rna_get_subclass_py`(id, default=None)
Parameters

id (string) – The RNA type identifier.

Returns