Visit ComfyUI Online for ready-to-use ComfyUI environment
Perform complex mathematical expressions with integer and floating-point variables dynamically for AI artists to automate and streamline calculations.
The Calculation [Dream] node is designed to perform complex mathematical expressions involving both integer and floating-point variables. This node allows you to input a custom mathematical expression and evaluate it dynamically using provided variables. It is particularly useful for AI artists who need to perform calculations on-the-fly within their creative workflows, enabling more sophisticated and precise control over various parameters. By leveraging this node, you can automate and streamline mathematical operations, reducing manual calculations and potential errors, thus enhancing your creative process.
This is the mathematical expression you want to evaluate. It is a string input that can include variables and standard mathematical operators. The default expression is ``a + b + c
This is an optional integer variable that can be used within your expression. It defaults to 0 and does not support multiline input. This variable can be used to represent any integer value you need in your calculation.
This is another optional integer variable for use in your expression. It also defaults to 0 and does not support multiline input. Like a_int
, it can be used to represent any integer value required for your calculations.
This optional integer variable defaults to 0 and does not support multiline input. It can be used in your expression to represent any additional integer value needed for your calculations.
This is an optional floating-point variable that can be used within your expression. It defaults to 0.0 and does not support multiline input. This variable is useful for representing any floating-point value in your calculations.
This optional floating-point variable defaults to 0.0 and does not support multiline input. It can be used in your expression to represent any additional floating-point value needed for your calculations.
This is another optional floating-point variable for use in your expression. It defaults to 0.0 and does not support multiline input. Like r_float
and s_float
, it can be used to represent any floating-point value required for your calculations.
This output parameter returns the result of the evaluated expression as a floating-point number. It provides a precise representation of the calculation, which is particularly useful for operations requiring decimal accuracy.
This output parameter returns the result of the evaluated expression as an integer. The floating-point result is rounded to the nearest integer, making it suitable for operations where whole numbers are required.
© Copyright 2024 RunComfy. All Rights Reserved.