Visit ComfyUI Online for ready-to-use ComfyUI environment
Perform linear transformation on integers, generating original and transformed values for precise control in projects.
The IntMultipleAddLiteral
node is designed to perform a simple yet powerful mathematical operation on integers. It takes an integer input and applies a linear transformation to it, producing two outputs: the original integer and a transformed value based on a linear equation. This node is particularly useful for scenarios where you need to manipulate integer values in a straightforward manner, such as adjusting parameters or creating sequences. By providing a flexible and easy-to-use interface, this node helps you streamline your workflow and achieve precise control over numerical values in your projects.
The number
parameter is the primary integer input for the node. It represents the base value that will be used in the linear transformation. This parameter is required and has a default value of 0. The minimum value for number
is 0, and the maximum value is 1,000,000. Adjusting this parameter will directly affect the output values, making it a crucial component for controlling the node's behavior.
The a
parameter is a multiplier used in the linear transformation equation. It is an optional parameter with a default value of 1. This parameter allows you to scale the number
input, providing flexibility in how the transformation is applied. By adjusting the a
parameter, you can control the degree of scaling applied to the number
, which can be useful for various mathematical and procedural tasks.
The b
parameter is an offset added to the scaled number
input in the linear transformation equation. It is an optional parameter with a default value of 0. This parameter allows you to shift the transformed value by a specified amount, providing additional control over the final output. By adjusting the b
parameter, you can fine-tune the result of the transformation to meet your specific needs.
The x
output parameter represents the original integer input value. This output allows you to retain the base value for further use in your workflow, ensuring that you have access to both the original and transformed values.
The ax + b
output parameter represents the result of the linear transformation applied to the number
input. This value is calculated using the equation ax + b
, where a
is the multiplier and b
is the offset. This output provides the transformed value, which can be used in various mathematical operations or as an input for other nodes in your workflow.
number
parameter to set the base value for your transformation. Adjust this value to control the starting point of your calculations.a
and b
parameters to achieve the desired scaling and offset for your transformation. These parameters provide flexibility in how the number
input is manipulated, allowing you to fine-tune the output values.number
parameter is not an integer.number
parameter is set to an integer value within the specified range (0 to 1,000,000).a
parameter is not an integer.a
parameter is set to an integer value.b
parameter is not an integer.b
parameter is set to an integer value.© Copyright 2024 RunComfy. All Rights Reserved.