RINPn provides several built-in functions and variables -- this page lists the most frequently used ones.
RINPn comes equipped with a variety of built-in functions and variables. Below is a list of some of the most frequently used ones, provided primarily through Vnano Standard Plugins.
Converts degrees to radians.
Example: rad( 180.0 )
Converts radians to degrees.
Example: deg( 2.0 * PI )
Calculates the sine of x, where x is in radians.
Example: sin( PI / 2.0 )
Calculates the cosine of x, where x is in radians.
Example: cos( 2.0 * PI )
Calculates the tangent of x, where x is in radians.
Example: tan( PI / 4.0 )
Returns the arc-sine of x in radians.
Example: asin( 1.0 )
Returns the arc-cosine of x in radians.
Example: acos( 1.0 )
Returns the arc-tangent of x in radians.
Example: atan( 1.0 )
Calculates the square root of x.
Example: sqrt( 4.0 )
Calculates the natural logarithm (base e) of x.
Example: ln( 10.0 )
Calculates the logarithm (base 10) of x.
Example: log10( 1000.0 )
Returns x raised to the power of "exponent".
Example: pow( 2.0, 3.0 )
Returns e raised to the power of "exponent". The function which returns the value of "e" (napier number) to "exponent"-power.
Example: exp( 1.2 )
Returns the absolute value of x.
Example: abs( -1.23 )
Calculates the sum of all given arguments
Example: sum( 1.23 , 4.56 , 7.89 )
Calculates the arithmetic mean of all given arguments.
Example: mean( 1.23 , 4.56 , 7.89 )
Calculates the variance (denominator n) of given arguments.
Example: van( 1.23 , 4.56 , 7.89 )
Calculates the variance (denominator n-1) of given arguments.
Example: van1( 1.23 , 4.56 , 7.89 )
Calculates the standard deviation (denominator n) of given arguments.
Example: sdn( 1.23 , 4.56 , 7.89 )
Calculates the standard deviation (denominator n-1) of given arguments.
Example: sdn1( 1.23 , 4.56 , 7.89 )
Returns the length of the specified ("dim"-th) dimension of an array.
Example: length( array, 0 )
This function displays the calculated value from scripts. In GUI mode, the value is displayed in the "OUTPUT" text field and will be overwritten if the function is called multiple times. In CUI mode, the value is output to the standard output as a single line each time it is called.
Example: output( 1.23 )
This function is designed to display long texts and multiple lines for general purposes. It can display content consisting of any number of values or arrays, separated by tab spaces. In GUI mode, the content is appended to a text area in an independent window without line breaks. In CUI mode, the content is output to the standard output without line breaks.
Example: print( 1.2 , 3.4 , 5.6 )
Similar to print, but includes line feedings.
Example: println( 1.2 , 3.4 , 5.6 )
Stores the value of π.
Value: 3.141592653589793