Maths

This section describes operators belonging to the Maths category.

This page discusses:

Abs

Returns the absolute value of a real number.

Inputs

Name Type Description
Value Real

Outputs

Name Type Description
Result Real

Acos

Returns the arccosine of a value, the reverse function of cosine.

Inputs

Name Type Description
Value Real

Outputs

Name Type Description
Result Real

Acosh

Returns the hyperbolic arccosine of a value, the reverse function of hyperbolic cosine.

Inputs

Name Type Description
Value Real

Outputs

Name Type Description
Result Real

And

Performs a boolean conjunction operation on 2 boolean values.

Inputs

Name Type Description
A Boolean First boolean operand
B Boolean Second boolean operand

Outputs

Name Type Description
Result Boolean Resulting boolean of the operation

Asin

Returns the arcsine of a value, the reverse function of sine.

Inputs

Name Type Description
Value Real

Outputs

Name Type Description
Result Real

Asinh

Returns the hyperbolic arcsin of a value, the reverse function of hyperbolic sine.

Inputs

Name Type Description
Value Real

Outputs

Name Type Description
Result Real

Atan

Returns the arctangent of a value, the reverse function of tangent.

Inputs

Name Type Description
Value Real

Outputs

Name Type Description
Result Real

Atanh

Returns the hyperbolic arctangent of a value, the reverse function of hyperbolic tangent.

Inputs

Name Type Description
Value Real

Outputs

Name Type Description
Result Real

Ceil

Returns the smallest integer value that is greater than or equal to the value specified in the input.

Inputs

Name Type Description
Value Real

Outputs

Name Type Description
Result Integer

Cos

Returns the cosine of an angle.

Inputs

Name Type Description
Angle Real

Outputs

Name Type Description
Result Real

Cosh

Returns the hyperbolic cosine of an angle.

Inputs

Name Type Description
Angle Real

Outputs

Name Type Description
Result Real

Create Function

Creates a function of one variable x from its expression given in input.

Inputs

Name Type Description
Expression String Expression that defines the function. for example: 3*cos(x)+2.

Outputs

Name Type Description
Function Function Represents the defined function. you might want to evaluate it afterwards using the 'eval' node for example.

Cross Product

Returns the cross product from 2 vectors.

Inputs

Name Type Description
Vector 1 Vector
Vector 2 Vector

Outputs

Name Type Description
Vector Vector

Cube

Returns the cube of a real number.

Inputs

Name Type Description
X Real Number to cube

Outputs

Name Type Description
Result Real

Cube Root

Returns the cube root of a real number.

Inputs

Name Type Description
X Real Real number to root

Outputs

Name Type Description
Result Real Cube root

Curve Evaluator

Creates a curve and evaluates it. input 'x' should be a real between 0 and 1. output will be y.

Inputs

Name Type Description
X Real Represents an abscissa. it should be a real between 0 and 1.
Minimum Real Represents the minimum value when scaling output.
Maximum Real Represents the maximum value when scaling output.

Outputs

Name Type Description
Y Real Represents (max-min) * f(x) + min.

Determinant

Computes matrix determinant.

Inputs

Name Type Description
Matrix Matrix Input matrix

Outputs

Name Type Description
Determinant Real Matrix determinant

Direction

Creates the direction defined by two points.

Inputs

Name Type Description
Point 1 Point
Point 2 Point

Outputs

Name Type Description
Direction Vector Created vector

Distribution

Returns a number of random draws following a discreet probability law. the result of each draw is an integer between 1 and nb indicating which item of the distribution list has been drawn.

Inputs

Name Type Description
Distribution List List of reals for the discreet probability law. each real should be comprised between 0 and 1. the sum of all the items of the list should be equal to 1.
Number Integer Number of wanted draws.

Outputs

Name Type Description
Result List List containing the result of each draw.

Divide

Returns the division between two real numbers.

Inputs

Name Type Description
A Real First number
B Real Second number

Outputs

Name Type Description
Result Real

E

Returns the value of euler constant.

Outputs

Name Type Description
e Real

Eval

Evaluates a function of variable x and returns y.

Inputs

Name Type Description
Function Function Function of one variable x to be evaluated.
x Value Real Variable x value.

Outputs

Name Type Description
y Value Real Result of evaluation of the function

Exp

Returns the exponential of a real number.

Inputs

Name Type Description
Value Real

Outputs

Name Type Description
Result Real

Factorial

Returns the factorial of an integer.

Inputs

Name Type Description
Number Integer

Outputs

Name Type Description
Result Integer Factorial of n

Floor

Returns the largest integer value that is less than or equal to the value specified in the input.

Inputs

Name Type Description
Value Real

Outputs

Name Type Description
Result Integer

Function Editor

Creates a curve and a bezier function. input 'x' should be a real between 0 and 1. output is a bezier function which is equivalent to the drawn shape.

Inputs

Name Type Description
Minimum Real Represents the minimum value when scaling output.
Maximum Real Represents the maximum value when scaling output.

Outputs

Name Type Description
Function Function Represents the defined bezier function. you might want to evaluate it afterwards using the 'eval' node for example.

Integer Div

Returns the integer division of a by b.

Inputs

Name Type Description
A Real
B Real

Outputs

Name Type Description
Result Real Integer division result

Invert Vector

Returns the same input vector but in the opposite direction.

Inputs

Name Type Description
Vector Vector

Outputs

Name Type Description
Inverted Vector Vector

Ln

Returns the logarithm of a real number.

Inputs

Name Type Description
Value Real

Outputs

Name Type Description
Result Real

Log

Returns the base 10 logratithm of a real number.

Inputs

Name Type Description
Value Real

Outputs

Name Type Description
Result Real

Matrix

Creates a matrix object from a list of list of values.

Inputs

Name Type Description
Table Real List of list of values to set the matrix
Orientation Boolean Orientation of the matrix

Outputs

Name Type Description
Matrix Matrix

Matrix Column

Extracts a column vector of a given matrix.

Inputs

Name Type Description
Matrix Matrix Input matrix
Column Index Integer Index of the column vector to extract

Outputs

Name Type Description
Vector Vector Extracted column vector

Matrix Get

Returns the value of the specified matrix coefficient.

Inputs

Name Type Description
Matrix Matrix
X Integer
Y Integer

Outputs

Name Type Description
Value Real

Matrix Row

Extracts a row of a matrix.

Inputs

Name Type Description
Matrix Matrix Matrix to extract a row from
Row Integer Index of the row to extract

Outputs

Name Type Description
Vector Vector Extracted row vector

Matrix Set

Sets the value of the specified matrix coefficient in the input matrix.

Inputs

Name Type Description
Matrix Matrix
X Integer
Y Integer
Value Real

Outputs

Name Type Description
Matrix Matrix Updated matrix

Matrix Set Column

Replaces the values of a given matrix column.

Inputs

Name Type Description
Matrix Matrix Matrix to modify
Column Index Integer Index of the column to set
Vector Vector Column vector to set

Outputs

Name Type Description
Modified Matrix Matrix

Matrix Set Row

Sets a matrix row values using a vector.

Inputs

Name Type Description
Matrix Matrix Input matrix
Row Integer Index of the row to set
Vector Vector Vector to set

Outputs

Name Type Description
Output Matrix Matrix Matrix with the replaced row.

Matrix To List

Converts a matrix object to a list of list containing the matrix values.

Inputs

Name Type Description
Matrix Matrix Matrix to convert
Orientation Boolean Orientation of the resulting structure

Outputs

Name Type Description
List List

Matrix Transpose

Transposes a matrix.

Inputs

Name Type Description
Matrix Matrix Matrix to transpose

Outputs

Name Type Description
Transposed Matrix Matrix

Max

Returns the largest value among a list of values.

Inputs

Name Type Description
List List List of values

Outputs

Name Type Description
Maximum Real Largest value
Index Integer First index in the list matching with the maximum.

Min

Returns the smallest value among a list of values.

Inputs

Name Type Description
List List List of values

Outputs

Name Type Description
Minimum Real Smallest value
Index Integer First index in the list matching with the minimum.

Minus

Returns the substraction between two real numbers.

Inputs

Name Type Description
A Real First number
B Real Second number

Outputs

Name Type Description
Result Real

Minus X

Returns the negative value of a real number.

Inputs

Name Type Description
X Real Number to negate

Outputs

Name Type Description
Result Real Negative value

Mod

Returns the modulo, ie the remainder of a division operation between two real numbers.

Inputs

Name Type Description
A Integer First operand
B Integer Second operand

Outputs

Name Type Description
Result Integer

Multiply

Returns the multiplication of two real numbers.

Inputs

Name Type Description
A Real First number
B Real Second number

Outputs

Name Type Description
Result Real

Nand

Performs a negative boolean conjunction operation on 2 boolean values.

Inputs

Name Type Description
A Boolean First boolean operand
B Boolean Second boolean operand

Outputs

Name Type Description
Result Boolean Resulting boolean of the operation

Noise

Computes a noise for a list of coordinates (1d, 2d or 3d depending of y and z value). it uses perlin noise algorithm. you can control the frequency in different direction and set the number of octaves: octaves are ways to cumulate noise at different scales.

Inputs

Name Type Description
x Real List of x coordinates
y Real List of y coordinates
z Real List of z coordinates
Octaves Integer Number of noises computed and cumulated for a given coordinate at different scale. each noise scale is two times smaller that then previous one
Frequency in x Real Number of oscillations of noise for the coordinates set in x direction
Frequency in y Real Number of oscillations of noise for the coordinates set in y direction
Frequency in z Real Number of oscillations of noise for the coordinates set in z direction
Minimum Noise Real Minimum noise value
Maximum Noise Real Maximum noise value
Seed Integer
Use Seed Boolean

Outputs

Name Type Description
List List List of noise values for the provided set of coordinates

Nor

Performs a negative boolean disjunction operation on 2 boolean values.

Inputs

Name Type Description
A Boolean First boolean operand
B Boolean Second boolean operand

Outputs

Name Type Description
Result Boolean Resulting boolean of the operation

Norm Vector

Returns the norm of a vector.

Inputs

Name Type Description
Vector Vector

Outputs

Name Type Description
Norm Real

Normal Random

Generates random numbers following a normal distribution. the result can be stable using the seed.

Inputs

Name Type Description
Number Integer Number of values to generate.
Mean Real Mean of the distribution. which coincides with the location of its peak. this can be any type of number (integer, real, length, angle) and influences the type of result.
Standard Deviation Real The square root of variance, representing the dispersion of values from the distribution mean.
Seed Integer A seeding value to control the random generation.
Use Seed Boolean Use the seed number for random generation. this enables a stable sequences of results.

Outputs

Name Type Description
Numbers List List of generated numbers

Normalize Vector

Creates a unit vector with the same direction as a given vector.

Inputs

Name Type Description
Vector Vector Vector to normalize

Outputs

Name Type Description
Normalized Vector Vector Corresponding unit vector

Not

Returns the logical inverse of a boolean value.

Inputs

Name Type Description
B Boolean

Outputs

Name Type Description
Result Boolean

One Minus X

Returns one minus the specified value. useful for complentary ratio.

Inputs

Name Type Description
X Real Real value to substract from 1

Outputs

Name Type Description
Result Real

One Over X

Returns the inverse of the specified value.

Inputs

Name Type Description
X Real Real value to inverse

Outputs

Name Type Description
Result Real

Or

Performs a boolean disjunction operation on 2 boolean values.

Inputs

Name Type Description
A Boolean First boolean operand
B Boolean Second boolean operand

Outputs

Name Type Description
Result Boolean Resulting boolean of the operation

Phi

Returns the value of the golden number phi.

Outputs

Name Type Description
PHI Real

Pi

Returns the value of pi.

Outputs

Name Type Description
PI Real

Plus

Returns the addition of two real numbers.

Inputs

Name Type Description
A Real First number
B Real Second number

Outputs

Name Type Description
Result Real

Power

Returns the power of a real number by another one.

Inputs

Name Type Description
X Real
Power Integer

Outputs

Name Type Description
Result Real

Power of 10

Returns the power of 10 with the specified number as exponent.

Inputs

Name Type Description
X Real

Outputs

Name Type Description
Result Real Power of 10

Power of 2

Returns the power of 2 with the specified number as exponent.

Inputs

Name Type Description
X Real

Outputs

Name Type Description
Result Real Power of 2

Product

Returns the product of the list of input real numbers.

Inputs

Name Type Description
List of Values Real List of real numbers to multiply

Outputs

Name Type Description
Product Real Result of the multiplication

Random

Generates a list of random numbers.

Inputs

Name Type Description
Number Integer Size of the list the user wants to create
Minimum Real
Maximum Real
Seed Integer

Outputs

Name Type Description
Values List Created list

Round

Returns the approximation of a real number with a fixed specified number of decimals.

Inputs

Name Type Description
Value Real
Unit String
Number of Decimals Integer

Outputs

Name Type Description
Result Real

Sampling

Generates a 2d or 3d sampling of the space. this sampling is random but ensures that all created points are at a distance greater than a provided radius. one can define a box where the sample has to be located in (the box is used if length, width and height are different to zero). in that case, when the algorithm doesn't succeed in creating new samples because of radius distance constraint, it stops.

Inputs

Name Type Description
Number of Points Integer Maximum number of points to create
Radius Length Minimum distance between two points in the sampling
Length Length Length of the limit box
Width Length Width of the limit box
Height Length Height of the limit box
Seed Integer
Support Matrix Reference object that defines the final positioning
Mode Integer

Outputs

Name Type Description
X List
Y List
Z List

Scalar Product

Returns the scalar product of two vectors.

Inputs

Name Type Description
Vector 1 Vector
Vector 2 Vector

Outputs

Name Type Description
Scalar Product Real

Sin

Returns the sine of an angle.

Inputs

Name Type Description
Angle Real

Outputs

Name Type Description
Result Real

Sinh

Returns the hyperbolic sine of an angle.

Inputs

Name Type Description
Angle Real

Outputs

Name Type Description
Result Real

Sqrt

Returns the square root of a real number.

Inputs

Name Type Description
Value Real

Outputs

Name Type Description
Square Root Real

Square

Returns the square of a real number.

Inputs

Name Type Description
X Real Number to square

Outputs

Name Type Description
Result Real

Stats

Returns some characteristics of a list of values : min, max, index, mean, norm, norm minus one.

Inputs

Name Type Description
List List

Outputs

Name Type Description
Minimum Real
Index of Minimum Integer
Maximum Real
Index of Maximum Integer
Mean Real
Norm List
One Minus Norm List

Sum

Returns the sum of the list of input real numbers.

Inputs

Name Type Description
List of Values Real

Outputs

Name Type Description
Sum Real

SumVectors

Returns the sum of input vector list.

Inputs

Name Type Description
Vectors Vector

Outputs

Name Type Description
Sum Vector

Tan

Returns the tangent of an angle.

Inputs

Name Type Description
Angle Real

Outputs

Name Type Description
Result Real

Tanh

Returns the hyperbolic tangent of an angle.

Inputs

Name Type Description
Angle Real

Outputs

Name Type Description
Result Real

Threshold

Applies thresholds on a list of value.

Inputs

Name Type Description
List List
Minimum Threshold Real
Maximum Threshold Real

Outputs

Name Type Description
List 2 List

Vector To List

Converts a vector to a list.

Inputs

Name Type Description
Vector Vector

Outputs

Name Type Description
List List

Xnor

Performs boolean biconditional operation on 2 boolean values.

Inputs

Name Type Description
A Boolean First boolean operand
B Boolean Second boolean operand

Outputs

Name Type Description
Result Boolean Resulting boolean of the operation

Xor

Performs boolean exclusive disjunction operation on 2 boolean values.

Inputs

Name Type Description
A Boolean First boolean operand
B Boolean Second boolean operand

Outputs

Name Type Description
Result Boolean Resulting boolean of the operation