# The countless powers of the calculator.

Sure, you can do basic calculations in your Tripetto forms and surveys with the calculator. But it’s actually cut out for far more advanced purposes, too. See what it can do.

• ## Equal

### Inputs

#### Static number

Supplies a static number to the calculator.

#### Recall value

Supplies the value of another question block (for example from a number block, rating block or scale block) to the calculator.

#### Subcalculation

Performs a (sub) calculation for multistep formulas and supplies the result to the calculator.

### Blocks

#### Recall value

Supplies the value of another question block (for example from a number block, rating block or scale block) to the calculator.

#### Score options

Scores all options of question blocks where the respondent can choose from a list of options, for example a dropdown block, radio buttons block or a picture choice block (single and multiple selection).

#### Check selected option

Checks if a certain option is checked, for example from a multiple choice block (multiple selection) or picture choice block (multiple selection) and outputs a value based on the result of the comparison.

#### Count selected options

Counts the selected options, for example from a checkboxes block, or a picture choice block (multiple selection).

#### Compare value

Compares the supplied value of another question block and outputs a value based on the result of the comparison.

#### Age date

Calculates the age based on the input of a date block, for example a date of birth that your respondent supplies.

#### Get date related values

Gets date related values (day of week, day of month, month, year) from a date that your respondent supplies.

#### Count text values

Count text related values (amount of characters, amount of words, amount of lines) from a text that your respondent supplies.

#### Analyse text values

Analyse text related values (amount of occurrences of certain text or character) from a text that your respondent supplies.

### Comparisons

#### Compare value

Compares the recalled value of another block and outputs a value based on the result of the comparison.

#### Compare last outcome (ANS)

Compares the last outcome (ANS) of a calculator operation and outputs a value based on the result of the comparison.

#### Compare number

Compares a static number and outputs a value based on the result of the comparison.

#### Compare date/time

Compares the current date (and time) and outputs a value based on the result of the comparison.

#### Check selected option

Checks if a certain option is checked (for example from a multiple choice block) and outputs a value based on the result of the comparison.

### Functions

#### min

Returns the input with the lowest number.

#### max

Returns the input with the highest number.

#### clamp

Clamps (restricts) the input between the specified minimum and maximum value (learn more).

#### round

Rounds a floating point number (learn more).

#### floor

Rounds a floating point number down (learn more).

#### ceil

Rounds a floating point number up (learn more).

#### trunc

Removes decimals from a floating point number.

#### x²

Multiplies the given input by itself (learn more).

#### √

Finds the principal square root for the given input (learn more).

#### pow

Calculates the base to the power of the given exponent (learn more).

#### exp

Calculates `e` to the power of the given exponent (learn more).

#### ln

Calculates the natural logarithm of the input (learn more).

#### log

Calculates the base 10 logarithm of the input (learn more).

#### sin

Calculates the sine of the given angle (learn more).

#### cos

Calculates the cosine of the given angle (learn more).

#### tan

Calculates the tangent of the given angle (learn more).

#### sin⁻¹

Calculates the inverse sine (arcsine) of the given number (learn more).

#### cos⁻¹

Calculates the inverse cosine (arccosine) of the given number (learn more).

#### tan⁻¹

Calculates the inverse tangent (arctangent) of the given number (learn more).

#### sinh

Calculates the hyperbolic sine of the given hyperbolic angle (learn more).

#### cosh

Calculates the hyperbolic cosine of the given hyperbolic angle (learn more).

#### tanh

Calculates the hyperbolic tangent of the given hyperbolic angle (learn more).

#### sinh⁻¹

Calculates the inverse hyperbolic sine (arcsine) of the given number (learn more).

#### cosh⁻¹

Calculates the inverse hyperbolic cosine (arccosine) of the given number (learn more).

#### tanh⁻¹

Calculates the inverse hyperbolic tangent (arctangent) of the given number (learn more).

#### n!

Calculates the factorial of a positive number (learn more).

#### gamma

Calculates the gamma of a positive number (learn more).

#### abs

Retrieves the absolute value (or modulus) of a number (learn more).

#### sgn

Extracts the sign of a number (learn more).

#### mod

Calculates the remainder of a division (learn more).

#### Percentage (%)

Calculates a percentage of the input (learn more).

### Constants

#### Constant π (pi)

Supplies the constant value of `π (pi ≈ 3.14159)` to the calculator (learn more).

#### Constant e (Euler's constant)

Supplies the constant value of `e (Euler's constant ≈ 2.71828)` to the calculator (learn more).

#### Constant γ (Euler–Mascheroni constant)

Supplies the constant value of `γ (Euler–Mascheroni constant ≈ 0.57722)` to the calculator (learn more).

#### Constant c (speed of light)

Supplies the constant value of `c (speed of light = 299792458 m/s)` to the calculator (learn more).

#### Random value

Supplies a random value (0 to less than 1) to the calculator.

#### UNIX time

Supplies the current UNIX time (seconds since Unix Epoch) of the respondent to the calculator (learn more).

#### Year

Supplies the current year of the respondent to the calculator.

#### Month

Supplies the current month (January = 1) of the respondent to the calculator.

#### Day of month

Supplies the current day of month (1-31) of the respondent to the calculator.

#### Day of week

Supplies the current day of week (Sunday = 0) of the respondent to the calculator.

#### Hour

Supplies the current hour (0-23) of the respondent to the calculator.

#### Minute

Supplies the current minute (0-59) of the respondent to the calculator.

#### Second

Supplies the current second (0-59) of the respondent to the calculator.

#### Millisecond

Supplies the current millisecond (0-999) of the respondent to the calculator.

#### Timezone

Supplies the current timezone (in milliseconds) of the respondent to the calculator.

#### Branch number

Supplies the number of the branch that the respondent is in. Especially handy in iterating branches.

### Subcalculation

#### Subcalculation

Performs a (sub) calculation for multistep formulas (with full calculator features) and supplies the result to the calculator.

## Plain calculations

A calculator can be inserted anywhere inside a form and supports straightforward operations for pretty much any purpose from counting inputs to scoring a test, for instance.

## Multiple calculators

Forms and surveys can handle as many calculations as you need, anywhere you need them. In fact, you can set up one calculator to use the outcome of another.

## Subcalculations

Now here’s the magic part... The calculator can also handle calculations within calculations. Like formulas. Handy for calculating a shopping cart’s subtotal and VAT in a single calculator.

Every single calculation and subcalculation outcome is available as a reusable value throughout the form.
Imagine your powers when you put Tripetto’s mind to it ;)

## Respondent driven

It almost goes without saying that you can select any respondent input for calculations. Actually, you may include as many inputs as you like in a single calculation.

## Mathematics

Beyond operations like adding, subtracting, multiplying and dividing, the calculator also supports advanced operations for more mathematically challenging use cases.

• ### More

And much more for logarithms, advanced comparisons etc. to take your calculations into another dimension.

## Logic just loves calculations

Mindblowing things happen when logic and calculators come together.

Funnel respondents into any desired flow based on age, score, probability, height, BMI etc. or any combination of factors. The possibilities are endless.