[ Prev | Index | Next ]
Japanese English

Appendix - List of Built-in Functions/Variables

On the RINPn, some functions and variables are available by default. Among them, frequently used functions/variables are shown in the following list.

Most of following functions/variables are provided by Vnano Standard Plug-ins. For the full list of available functions/variables and more detailed specifications of them, see specification documents of Vnano Standard Plug-ins.

Built-in Functions

rad( degree )

The conversion function from degree to radian.

Example: rad( 180.0 )

deg( radian )

The conversion function from radian to degree.

Example: deg( 2.0 * PI )

sin( x )

The sine function. The unit of the argument "x" is radian.

Example: sin( PI / 2.0 )

cos( x )

The cosine function. The unit of the argument "x" is radian.

Example: cos( 2.0 * PI )

tan( x )

The tangent function. The unit of the argument ®x® is radian.

Example: tan( PI / 4.0 )

asin( x )

The inverse function of sine (arc-sine). The unit of the result is radian.

Example: asin( 1.0 )

acos( x )

The inverse function of cosine (arc-cosine). The unit of the result is radian.

Example: acos( 1.0 )

atan( x )

The inverse function of tangent (arc-tangent). The unit of the result is radian.

Example: atan( 1.0 )

sqrt( x )

The square-root function.

Example: sqrt( 4.0 )

ln( x )

The logarithm function with the base "e" (napier number).

Example: ln( 10.0 )

log10( x )

The logarithm function with the base "10".

Example: log10( 1000.0 )

pow( x, exponent )

The function which returns the value of "x" to "exponent"-power.

Example: pow( 2.0, 3.0 )

exp( exponent )

The function which returns the value of "e" (napier number) to "exponent"-power.

Example: exp( 1.2 )

abs( x )

The absolute-value function.

Example: abs( -1.23 )

sum( ... )

The summation function.

Example: sum( 1.23 ,   4.56 ,   7.89 )

mean( ... )

The mean-value (arithmetic mean) function.

Example: mean( 1.23 ,   4.56 ,   7.89 )

van( ... )

The variance function ( denominator : n ).

Example: van( 1.23 ,   4.56 ,   7.89 )

van1( ... )

The variance function ( denominator : n-1 ).

Example: van1( 1.23 ,   4.56 ,   7.89 )

sdn( ... )

The standard-deviation function ( denominator : n ).

Example: sdn( 1.23 ,   4.56 ,   7.89 )

sdn1( ... )

The standard-deviation function ( denominator : n-1 ).

Example: sdn1( 1.23 ,   4.56 ,   7.89 )

length( array, dim )

The function which returns length of the "dim"-th dimension of an "array".

Example: length( array, 0 )

output( value )

The function to display the calculated value of scripts. On GUI mode, the value will be displayed on "OUTPUT" text-field (so when this function is called multiple times, the displayed value will be overwritten). On CUI mode, the value will be outputted on the standard-output as a line.

Example: output( 1.23 )

print( value )

The function to display long and multiple-line texts in general purpose. This function can display contents of arbitrary number of any type values/arrays with delimitting tab-spaces. On GUI mode, the value will be appended to the content of a text-area on an independent window, without line-feedings. On CUI mode, the value will be outputted to the standard-output, without

Example: print( 1.2 , 3.4 , 5.6 )

println( value )

Almost the same with the above "print" function, but this function displays/outputs the content with line-feedings.

Example: println( 1.2 , 3.4 , 5.6 )

Built-in Variables

PI

The constant variable storing the value of the circle ratio π.

Value: 3.141592653589793



Sponsored Link



Japanese English
Index of this category
News

RINEARN Graph 3D Updated and Next Version (Ver.6) Development Has Begun!
2023/09/04 - We have released RINEARN Graph 3D Ver.5.6.34. In addition, we have initiated the development of the next major version, Ver.6! Introducing the details.

Commitment to Significantly Expand English Documentation with AI Assistance - Presenting a Behind-the-Scenes Look at the Actual Workflow
2023/05/28 - We have decided to expand our English documentation by leveraging AI technologies such as ChatGPT. We will provide a detailed explanation of our initiative.

Update to RINEARN Graph 3D: Enhanced API-related Features and More
2023/05/18 - We recently released the latest version of RINEARN Graph 3D, Ver.5.6.32. Explains the details of this update.

Code Archive
Circular Wave Animation

Draws the circular wave as 3D animation, under the specified wave parameters.
2022/12/14
Sine Wave Animation

Draws the sine wave as animation, under the specified wave parameters.
2022/11/26
Tool For Converting Units of Angles: Degrees and Radians

A GUI tool for converting the angle in degrees into radians, or radians into degrees.
2022/11/22
Fizz Buzz Program

A program printing the correct result of Fizz Buzz game.
2022/05/12
Vnano | Solve The Lorenz Equations Numerically

Solve the Lorenz equations, and output data to plot the solution curve (well-known as the "Lorenz Attractor") on a 3D graph.
2021/02/18
» More