Quantities within a Given Range and Increment (qrange)
Generate quantities within a specified range and increment, with flexible units and rounding options. Display results in a table and chart.
Quantities within a Given Range and Increment
Purpose
The purpose of this function is to generate a list of quantities within a specified range and increment. This can be useful for users who need to quickly generate a series of values for analysis or comparison.
Use Cases
- Calculating a series of values for a specific project or task
- Generating data points for a graph or chart
- Creating a list of measurements for a report
How to Use
- Enter the starting value for the range in the Start Value field.
- Enter the ending value for the range in the End Value field.
- Enter the increment value in the Increment Value field.
- Click the Generate button to see the list of quantities within the specified range and increment.
Input Values
- Start Value: The starting value of the range.
- End Value: The ending value of the range.
- Increment Value: The value by which each quantity will increase.
Default unit is inch.
Output Values
- Return Value: A table displaying the list of quantities within the specified range and increment.
Any other Instruction
- The output table can be used for further analysis or visualization.
- Make sure to review the generated list to ensure it meets your requirements.
Code Analysis
- The function takes input values for the range start, range end, and increment.
- It calculates the valid range based on the input values.
- It generates a DataFrame with the list of quantities within the valid range.
- It rounds off the values based on the specified rounding off parameter.
- It generates a chart based on the data for visualization.
Technical Parameters
- variation_start, variation_stop, variation_unit, variation_step, step_unit, step_round_off
Return Values
- table, chart
Example Expressions
You can use the following expressions to directly evaluate in a non-interactive manner using eva()
.
eva(qrange(10.0, 50.0, 'inch', 5.0, 'cm', 1))
eva(qrange(100.0, 200.0, 'm', 20.0, 'ft', 2))
Click on Help icon to open the help page on a separate window.