[ 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 list of this page.

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

Software Updates: Command Expansion in RINEARN Graph, and English Support in VCSSL
2024/02/05 - We updated our apps. This updates include "Enhancing the Command-Line Features of RINEARN Graph" and "Adding English Support to VCSSL." Delves into each of them!

Inside the Repetitive Execution Speedup Impremented in Vnano Ver.1.1
2024/01/17 - Delves into the update in Vnano 1.1 from a developer's viewpoint, providing detailed insights into the specific improvements made to the internal structure of the script engine.

Scripting Engine Vnano Ver.1.1 Released: Dramatic Speed Improvement for Repetitive Executions of the Same Content
2023/12/22 - Released the Vnano script engine Ver.1.1. In this version, we've made significant enhancements in processing speed by reducing the overhead of handling requests. Explains the details.

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