Ursa standard library
See also:
Ursa comes with some built-in definitions:
Information
versionis a string giving the current version of Ursa.
Output
printprints the given value to the output.debugdumps debugging information about the given value to the output.
Math
The following basic constants and functions are available:
sqrt(x)the square root functionpithe value of π, 3.14159…exp(x)the exponential functionlog(x)the natural logarithm functionsin(x)the sine functioncos(x)the cosine functiontan(x)the tangent function
Utilities
The iterator range is provided. range(n) generates the integers from 0 to n.
File system access
The function fs provides basic access to the file system. Calling it with the path of a directory returns an object whose keys are files and subdirectories in that directory, and whose values are the contents of the respective files and directories. Setting the values of keys allows you to write the contents of files. Setting a value to null deletes the corresponding file or directory.