We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Mutzerium/STL

From Esolang
Jump to navigation Jump to search

← Back to Mutzerium

Mutzerium also has standard libraries.

Math library

The Math standard library mainly supports some mathematical operations. Its module name is "math".

Trigonometric function

sin          | Get the sine value of a number. Measured in radian.
cos          | Get the cosine value of a number. Measured in radian.
tan          | Get the tangent value of a number. Measured in radian.
cot          | Get the cotangent value of a number. Measured in radian.
sec          | Get the secant value of a number. Measured in radian.
csc          | Get the cosecant value of a number. Measured in radian.
degree       | Convert to degree mode.
radian       | Convert to radian mode.
gradient     | Convert to gradient mode.

Inverse trigonometric functions

asin         | Get the arc-sine value of a number. Measured in radian. Value range: [-1, 1]
acos         | Get the arc-cosine value of a number. Measured in radian. Value range: [-1, 1]
atan         | Get the arc-tangent value of a number. Measured in radian. Value range: [-inf, inf]
acot         | Get the arc-cotangent value of a number. Measured in radian. Value range: [-inf, inf]
asec         | Get the arc-secant value of a number. Measured in radian. Value range: [-inf, -1]∪[1, inf]
acsc         | Get the arc-cosecant value of a number. Measured in radian. Value range: [-inf, -1]∪[1, inf]

Hyperbolic trigonometric functions

sinh         | Get the hyperbolic sine value of a number. Measured in radian.
cosh         | Get the hyperbolic cosine value of a number. Measured in radian.
tanh         | Get the hyperbolic tangent value of a number. Measured in radian.
coth         | Get the hyperbolic cotangent value of a number. Measured in radian.
sech         | Get the hyperbolic secant value of a number. Measured in radian.
csch         | Get the hyperbolic cosecant value of a number. Measured in radian.

Inversed hyperbolic trigonometric functions

asinh        | Get the arc hyperbolic sine value of a number. Measured in radian.
acosh        | Get the arc hyperbolic cosine value of a number. Measured in radian.
atanh        | Get the arc hyperbolic tangent value of a number. Measured in radian.
acoth        | Get the arc hyperbolic cotangent value of a number. Measured in radian.
asech        | Get the arc hyperbolic secant value of a number. Measured in radian.
acsch        | Get the arc hyperbolic cosecant value of a number. Measured in radian.

Arithmetical stuff

gcd          | Get the greatest common divisor of x and y.
lcm          | Get x×y/gcd(x, y).
gamma        | Get the gamma function at x.
factorial    | Get the factorial of x.
sgn          | Get the sign of x. Returns 1, 0, or -1.
abs          | Get the absolute value of x. If x is complex, then return its mod, 
             | that is, the distance of point (Re(x), Im(x)) and point (0, 0).
arrangement  | Return n!/(n-m)!.
combination  | Return n!/m!(n-m)!.

System control

Its module name is "sys".

Terminal

cmd          | Run the following commands as Windows CMD commands.
powershell   | Run the following commands as Windows Powershell commands.
bash         | Run the following commands as Posix BASH commands.
errexit      | Exit the program with specified error code.

Constants

argV0        | The source code of program.
name         | The type of your system. If it is NT then you're using Windows, 
             | MAC is MacOS or iOS, POSIX is other Unix-like systems. HW is Huawei.

Internet

Its module name is "internet".

This section is still a work in progress. It may be changed in the future.

Access Internet

access       | Establish the connection of Internet and your device.