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

  1. Enter the starting value for the range in the Start Value field.
  2. Enter the ending value for the range in the End Value field.
  3. Enter the increment value in the Increment Value field.
  4. Click the Generate button to see the list of quantities within the specified range and increment.

Input Values

  1. Start Value: The starting value of the range.
  2. End Value: The ending value of the range.
  3. Increment Value: The value by which each quantity will increase.

Default unit is inch.

Output Values

  1. 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

  1. The function takes input values for the range start, range end, and increment.
  2. It calculates the valid range based on the input values.
  3. It generates a DataFrame with the list of quantities within the valid range.
  4. It rounds off the values based on the specified rounding off parameter.
  5. 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.






Calculator: qrange, Created by: super, V#0: , Variant owner: , Link