Skip to main content

Miscellaneous functions in Template Editor

Tekla Structures 2022
2022
Tekla Structures

Miscellaneous functions are a selection of additional mathematical functions.

You can access them in the Formula Contents dialog box and in the Rule Contents dialog box. Select functions from the Math list in the Operators area of the dialog box.

fabs

This function calculates the absolute value of a number.

Parameter: number

The following formula calculates the local center of gravity from the start point with fabs giving the absolute number. For example, the absolute value of -3.54 is 3.54.

exp

This function calculates the involution of e, to a specified power. e is Euler’s number.

Parameter: power

The following formula calculates the involution of e to the power of two, which equals 7.389056 in a report.

ln

This function returns the natural logarithm of the parameter (base number e).

Parameter: number

The following formula calculates the natural logarithm of 5, which prints 1,60944 in a report.

log

This function returns the logarithm of the parameter (base number 10)

Parameter: number

The following formula calculates the logarithm of the number in the brackets. The report prints the final calculation of 0,698970. The length of the printed number (with decimals) is determined in the Value Field Properties dialog box in the Length field.

sqrt

This function calculates the square root of a number.

Parameter: number

The following formula acts as a filter to calculate the distance between the start and end points, where sqrt calculates the square root and pow calculates the involution.

mod

This function calculates modulo, the remainder after division.

Parameters: dividend, divider

The following formula calculates modulo and prints 3 in a report.

pow

This function calculates the involution of a value.

Parameters: base number, power

This formula calculates the distance between the start and end points, where sqrt calculates the square root and pow calculates the involution.

hypot

This function calculates the hypotenuse of a triangle.

Parameters: side, side

The following formula calculates the hypotenuse and prints 5 in a report.

n!

This function calculates the factorial of a number.

Parameter: number

The following formula calculates the factorial of 4. This translates to 4x3x2x1 and a report would display the result, 24.

round

This function rounds off a number according to given accuracy.

Parameters: number, accuracy

This formula rounds the number to two decimals, which is specified in the formula (0.01). The report prints 13.65.

and

This is a binary operation (and similar to & in the C language).

Parameters: parameter 1, parameter 2

The following example prints 1 in the report.

or

This is a binary operation (and similar to | in the C language).

Parameters: parameter 1, parameter 2

The following example prints 7 in the report.

Submit

Table of Contents