RINK(7)

๐Ÿ“ฆ
version 0.9.0 ยท 3 versions
, in arch rolling

โœจ rink(7) โ€” Rink Manual: Query language documentation โœจ

๐ŸŒธ NAME ๐ŸŒธ

rink โ€” the query language documentation, bestie. This is the Rink Manual page where we explain the whole vibe of the query language, no cap.

๐Ÿฆ‹ SYNPOSIS ๐Ÿฆ‹

Rinkโ€™s query language follows a somewhat natural language style for its syntax. Many expressions like 3.5 meters to feet will work without any modification. This manual is meant for those who want to get a deeper understanding of the query language. Itโ€™s giving โ€œcalculator but make it linguistics.โ€ ๐Ÿ’…

๐Ÿ’– DESCRIPTION ๐Ÿ’–

In order to understand Rink, an understanding of units themselves is required. Fundamentally, a unit is a way of assigning a concrete value to a specific quantity such as length, volume, energy, power, current, etc. Each quantity can be reduced into other quantities (for example, area is length ร— length), except for 7 base units.

The 7 base units (as well as the physical quantities they represent):

  • meter (length)
  • second (time)
  • kilogram (mass)
  • ampere (current)
  • kelvin (temperature)
  • mol (amount of substance)
  • candela (human-subjective luminous intensity)

In addition, Rink defines a few non-SI base units:

  • euro (money)
  • bit (information)
  • radian (angle)
  • steradian (solid angle)
  • wholenote (musical note length)
  • IU (biological activity)

Each of these quantities is treated as irreducible. The 7 base units are the foundations of SI, and customary systems as well. (Customary systems are defined in terms of SI.)

Every unit is composed of two parts: A numerical value, and its dimensionality. The dimensionality is how a unit relates itself to the base units. Each base unit is raised to a certain power to construct the dimensionality. For example, the dimensionality of the quantity of acceleration is length^1 ร— time^-2 and then the rest of the base units are to the 0th power, which is to say that they do not matter. Two units are considered conformable if they have matching dimensionalities, and they can then be used in conversions.

Because each unit has a numerical part, it is possible to do normal math on them*.

  • Adding two units produces a new unit with matching dimensionality.
  • Multiplying two units produces a new unit with its dimensionality as each base unit multiplied together, e.g. velocity (length time^-1) * hertz (time^-1) = acceleration (length time^-2).
  • Dividing two units is like multiplication, but taking away from the base units. A unit divided by itself is dimensionless, it has no quantity. Normal numbers are dimensionless.

Because of this, units are essentially a special type of number. As such, Rink is essentially a calculator which takes dimensionality into account. Literally the main character of unit-aware math. ๐Ÿ‘‘

โš–๏ธ Weight vs Mass โš–๏ธ

It is important to remember the differences between mass and weight when working with mass and force units. Here are some tips:

  • Mass doesnโ€™t change depending on the amount of gravity, and directly influences momentum.
  • Weight is the amount of downward force on an object due to gravity.
  • Mass is measured in kilograms or pounds.
  • Weight is measured in newtons, kilogram force (kgf), or pound force (lbf).
  • When someone says something weighs some amount of kg or lb, theyโ€™re saying it has a weight of that number of kgf or lbf. This includes things like weight on the moon. (Donโ€™t correct anyone using this common figure of speech.)
  • A scale displays an estimate of mass by measuring the force applied to it divided by its calibrated measurement of the acceleration of gravity. Its mass estimate would be incorrect on other planets unless it was recalibrated. You can also think of the displayed value as being weight in kgf or lbf.
  • You can compute weight by multiplying mass by gravity. Both kgf and lbf have earth gravity as part of their definition, so when you multiply kg or lb by gravity you get the same numerical values back, but with kgf or lbf units.

๐Ÿ”ข Numbers ๐Ÿ”ข

> 10.1e2
1010 (dimensionless)
> 10
10 (dimensionless)
> 0x10
16 (dimensionless)
> 0o10
8 (dimensionless)
> 0b10
2 (dimensionless)
> 9999999999999
approx. 9.99999e12 (dimensionless)
> 1.001
1.001 (dimensionless)
> 1e100
1.0e100 (dimensionless)

Decimal numbers can be written with an integer component, an after-decimal-point component, and an exponent. Numbers can optionally have either U+2009 THIN SPACE or an underscore (_) for digit place separators.

The decimal point is always written with a dot (.), not a comma or other marker. If the decimal point is provided, it must be followed by more digits. (1. is not allowed.)

The exponent starts with an e, followed by an integer with an optional sign. The exponent is shorthand for writing out * 10^exp. There can be no spaces within the number other than allowed digit separators. (10 e10 is not allowed.)

Hexadecimal, octal, and binary integers can be written using 0x, 0o, and 0b prefixes, respectively. These literals do not currently support decimal points or exponents.

Numbers can be written with a fraction, and can be written in scientific notation. 1e24 is short for 1 * 10^24.

โž• Arithmetic โž•

> 3 4 m 5 s
60 m s
> 3 * 4 m 5 s
60 m s

Multiplication can be either by juxtaposition (that is, without any symbol) or using an explicit * operator.

> 10 km / 5 m
2000 (dimensionless)
> 1|2 m
0.5 m (length)

There are two division operators, for separate purposes. / has lower precedence than multiplication, and is used mainly for separating two halves of an entire expression. | has higher precedence than multiplication, and is used mainly for fractions of integers.

> 1 * 2 + 1 * 2
4 (dimensionless)
> 12 meters + 5 feet
13.524 m (length)

Addition and subtraction have lower precedence than multiplication and division.

> 12 ft^2
435483/390625, approx. 1.114836 m^2 (area)

Powers have higher precedence than multiplication. Both ^ and ** can be used.

> 11 mod 3
2  (dimensionless)
> meter mod foot
85.6 millimeter (length)

The mod operator can be used to find the remainder of division. It has the same precedence as *. Requires both inputs to have the same dimensionality.

> 1 << 24
16777216  (dimensionless)
> 16 >> 2
4  (dimensionless)

Equivalent to multiplying or dividing by a power of two. The right side must be dimensionless.

> 0b1010 and 0b1100 to base 2
1000  (dimensionless)
> 0b1010 or 0b1100 to base 2
1110  (dimensionless)
> 0b1010 xor 0b1100 to base 2
110  (dimensionless)

Bitwise operators are supported. The inputs must be dimensionless, and also must be integers.

๐ŸŒก๏ธ Temperature ๐ŸŒก๏ธ

> 12 ยฐC
285.15 K (temperature)

Temperature scales are operators with higher precedence than addition, and lower than multiplication. See the Temperature conversion section for more detailed syntax.

โœ๏ธ Inline Definitions โœ๏ธ

> 2000 kcal -> potato = 164 kcal
500/41, approx. 12.19512 potato (energy)

An equals expression is one which simultaneously defines a new unit with the right-hand side, names it using the left-hand side, and then produces it as its result. This is useful for customizing the output of the right-hand side of a conversion or converting into things that donโ€™t currently have units such as the amount of calories in a potato. Potato units are so real. ๐Ÿฅ”

๐ŸŽ€ Custom base units ๐ŸŽ€

> 12 'core' hour / 3 'core' -> minutes
240 minutes (time)

A unit name which is wrapped in quotation marks will not be checked for whether it exists when it is evaluated. This means you can wrap anything in quotes to in effect produce a new base unit for the purposes of a single calculation. This can be useful for doing calculations in terms of things which are otherwise dimensionless.

โช Previous results โช

> 100 ohm + 50 ohm
150 ohm (resistance)
> ANS * 10 mA
1.5 volt (electrical_potential)

The result of the previous query can be accessed with _, ans or ANS, which can be convenient for breaking up calculations into multiple steps. Note that when rink returns an error, the previous result is kept. Also, currently only the results of mathematical expressions are stored, the results for conversions arenโ€™t. So keep that in mind, bestie.

๐Ÿงฌ Prefixes ๐Ÿงฌ

Units can be prefixed with SI prefixes as well as a number of non-SI prefixes, such as: quarter, double, kibi, mebi, โ…ž.

Rink will accept plural unit names as well.

๐Ÿ” Conversions ๐Ÿ”

> meter -> feet
3.280839 foot (length)
> 12 ยฐC -> ยฐF
53.6 ยฐF (temperature)

Conversions are done with the โ†’, to, in operators.

The left hand side of the conversion is an arbitrary expression, and the right hand side is one of:

  • An arbitrary expression
  • A temperature scale (celsius, fahrenheit, and several historical scales)
  • A unit list (e.g. hour;min;sec)
  • A timezone (e.g. "US/Pacific")

๐Ÿ“‹ Unit lists ๐Ÿ“‹

> 2^17 seconds -> hour;min;sec
36 hour, 24 minute, 32 s (time)
> 2 km -> mi;ft
1 mile, 1281.679 foot (length)
> liter -> cup;tbsp;tsp
4 uscup, 3 ustablespoon, 1.884136 usteaspoon (volume)

A unit list is a comma- or semicolon-delimited list of units with the same dimensionality, which can be used for breaking down numbers into more familiar quantities. This is the โ€œbreak it into human-friendly chunksโ€ button. โœจ

๐ŸŒก๏ธ Temperature conversion ๐ŸŒก๏ธ

> 12 ยฐC
285.15 K (temperature)
> 12 degC
285.15 K (temperature)
> 12 celsius
285.15 K (temperature)

Temperature scales in Rink are handled a little specially, because only Kelvin and Rankine (the absolute zero version of Fahrenheit) start at absolute zero. As such, they are operators, not units. These operators have looser binding precedence than multiplication, but tighter than addition.

Available temperature scales:

  • degC, ยฐC, celsius, โ„ƒ โ€” Celsius, the standard scale in most countries.
  • degF, ยฐF, fahrenheit, โ„‰ โ€” Fahrenheit, the scale used in households across the United States.
  • degRรฉ, ยฐRรฉ, degRe, ยฐRe, rรฉaumur, reaumur โ€” Rรฉaumur, A historical scale once used throughout Europe.
  • degRรธ, ยฐRรธ, degRo, ยฐRo, rรธmer, romer โ€” Romer, Another historical scale.
  • degN, ยฐN, degnewton โ€” Newton, A historical scale created by Isaac Newton.
  • degDe, ยฐDe, delisle โ€” Delisle, A historical scale which, alongside the original Celsius scale, is reversed from the scales we are used to today. Its zero point is boiling water, and the freezing point of water is 150ยฐDe.

Okay so, crucial note first: these temperature scale measurements are absolute measurements, not differences. If you wanna say something like โ€œa difference of 1ยฐC,โ€ then you must use the absolute scale for the scale youโ€™re using. These are:

  • For Celsius, itโ€™s kelvin K
  • For Fahrenheit, itโ€™s Rankine degR
  • For Rรฉaumur, itโ€™s reaumur_absolute (absolute as in the zero point is absolute zero)
  • For Rรธmer, itโ€™s romer_absolute
  • For Newton, itโ€™s newton_absolute
  • For Delisle, itโ€™s delisle_absolute

Numeric base conversion ๐Ÿ’…

Bestie, watch this:

> 1000 -> hex
3e8 (dimensionless)
> 10000 -> base 36
7ps (dimensionless)
> pi meter -> hex meter
approx. 3.243f6a meter (length)

Base modifiers are specified with base followed by a number, followed by the rest of your conversion. Allowed bases are currently 2 through 36. There are some special base names which are also recognized:

  • hex, hexadecimal, base16 โ€” Base 16.
  • oct, octal, base8 โ€” Base 8.
  • bin, binary, base2 โ€” Base 2.

Number representation modifiers โœจ

> 2^128 -> digits
340282366920938463463374607431768211456 (dimensionless)
> 1/3937 -> digits
0.[000254000508001016002032004064008128016256032512065024130048260096520193040386080772161544323088646177292354584709169418338836677673355346710693421386842773685547371094742189484378968757937515875031750063500127, period 210]...  (dimensionless)
> googol -> digits
10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 (dimensionless)
> mass of electron -> eng
approx. 910.9383e-33 kilogram (mass)
> 3 foot -> frac
1143/1250 meter (length)

Digits modifiers are specified with digits optionally followed by a number, before the base modifier and before the rest of the conversion. Any number of digits are allowed, but large amounts may not succeed.

The function of this modifier is that it forces the entire integer part to be printed (i.e., scientific notation will not be used), and then it prints an additional n digits, using the default if not specified.

Transcendental numbers currently cannot be precisely represented, so asking for many digits of pi or e will produce unsatisfying results. ๐Ÿ˜ญ

Rink makes an attempt to find recurring decimals. If you ask it to print enough digits, it will find them. Slay.

Trigonometric and logarithmic functions are currently implemented using a machine-float fallback, because their results cannot be precisely represented as finite rationals. Because of this, asking for many digits of such numbers will also produce unsatisfying results. ๐Ÿ’€

frac, fraction, ratio are all equivalent. They will print the rational fraction that Rink internally represents the number using.

sci, scientific will force the use of scientific notation, even for small numbers.

eng, engineering are similar to the default format, where it uses scientific notation only for large numbers. However, when it does use scientific notation, it rounds down to every third power.

Units for ๐Ÿ‘‘

> units for power
Units for kg m^2 / s^3 (power): VA, airwatt, boilerhorsepower, brhorsepower,
donkeypower, electrichorsepower, horsepower, lusec, mbh, metrichorsepower,
poncelet, sccm, sccs, scfh, scfm, slph, slpm, solarluminosity,
tonrefrigeration, waterhorsepower, watt

The units for, units of, and units commands will find more units which match the dimensionality of the one specified. Iconic behavior, honestly.

Factorization ๐Ÿงš

> factorize velocity
Factorizations: velocity;  frequency length;  area viscosity;
acceleration time;  length^2 viscosity
> factorize power
Factorizations: power;  force velocity;  radiant_intensity solid_angle;
area radiosity;  length spectral_flux_wavelength;  radiation_dose spectral_exposure_frequency;
spectral_irradiance_wavelength volume;  temperature thermal_conductance;
energy frequency;  current^2 resistance;  ...

Unit factorization is what Rink names the process of finding quantities which can be multiplied together to produce the original quantity. This can be useful for discovering new ways to construct a unit. Itโ€™s giving โ€œmath but make it detective work.โ€ ๐Ÿ•ต๏ธโ€โ™€๏ธ

> search milk
Search results: milk (substance), mil (length), mile (length), mill (dimensionless), mi (length)

Allows you to search for units based on their names, returning up to 5 results and showing the associated physical quantity of the unit.

Date and time ๐ŸŒธ

> #jan 01, 1970#
1970-01-01 00:00:00 +00:00 (46 years ago)
> now - #jan 01, 1970# -> gigaseconds
1.472083 gigaseconds (time)
> #2016-08-24# + 500 weeks
2026-03-25 00:00:00 +00:00 (in 9 years)

In addition to handling units, Rink is also capable of doing some calculations with dates and times.

Converting to a timezone:

> now
2022-08-08 21:19:56.990897100 -07:00 (now)
> now -> "Europe/London"
2022-08-09 05:20:03.656075600 BST (now)

Converting to a fixed offset:

> now -> +01:00
2022-08-09 05:20:30.080703900 +01:00 (now)

Inputting a time with an offset:

> #apr 1, 2016 12:00:00 +01:00#
2016-04-01 12:00:00 +01:00 (6 years ago)

Calendar-aware relative dates:

> #today#
2025-08-16 00:00:00 [US/Pacific] (23 hours ago)
> #today+1mon#
2025-09-16 00:00:00 [US/Pacific] (in 30 days)

Substances ๐Ÿซถ

> milk
milk: density = 242 gram -> approx. 236588.2 millimeter^3
> gallon milk
milk: volume = approx. 3785411.7 millimeter^3; mass = 3.872 kilogram
> egg
egg: USA large egg. mass_shelled = 50 gram; mass_white = 30 gram;
mass_yolk = 18.6 gram; volume = approx. 46824.75 millimeter^3;
volume_white = approx. 29573.52 millimeter^3;
volume_yolk = approx. 17251.22 millimeter^3
> egg_shelled of kg egg
20 (dimensionless)
> gallon gasoline -> btu
gasoline: volume = approx. 3785411.7 millimeter^3; energy_HHV = 125000 btu; energy_LHV = 115000 btu

Substances are how Rink organizes the physical properties of materials, objects, both countable and uncountable. Each substance has a name, an associated amount (defaulting to dimensionless 1), and a set of associated properties.

Each property maps a named input into a named output and vice versa, and has a name itself. Countable objects often have properties with an input being dimensionless, so that you do not need to specify an amount to extract the property.

The properties of a substance are accessed with the of operator (<_property_> of <_substance_>), which reads a multiplication expression following it, so you may have to wrap it in parentheses.

Substances can be used in conversions, and can be added and multiplied to transform them. Multiplication will change the amount of the substance you have, so that you can write kg egg to specify one kilogram of eggs. Addition will combine certain properties (currently only molar_mass) to create a new substance entirely. Conversions of substances allow you to get multiple results simultaneously, for example if there are multiple different measurements of some property of the substance available.

If the result of a calculation results in a substance, Rink will show all of the properties applicable for the given amount.

๐ŸŒˆ REFERENCE ๐ŸŒˆ

Okay bestie, the actual full list of units lives in definitions.units (peep rink-defs(5)), but hereโ€™s a cute little greatest-hits list of the most helpful ones. The whole idea is that most units should be easy to guess the names of โ€” iykyk โœจ

โœจ SI derived โœจ

  • Newton โ€” N (force) ๐Ÿ’ช
  • Pascal โ€” Pa (pressure) ๐ŸŒฌ๏ธ
  • Joule โ€” J (energy) ๐Ÿ”ฅ
  • Watt โ€” W (power) โšก
  • Coulomb โ€” C (charge) ๐Ÿ”‹
  • Volt โ€” V (electrical potential) โšก
  • Ohm โ€” (electrical resistance) ๐Ÿงฑ
  • Siemens โ€” S (electrical conductance) ๐Ÿ”Œ
  • Farad โ€” F (capacitance) ๐Ÿซง
  • Weber โ€” Wb (magnetic flux) ๐Ÿงฒ
  • Henry โ€” H (inductance) ๐ŸŒ€
  • Tesla โ€” T (magnetic flux density) ๐Ÿงฒโœจ
  • Hertz โ€” Hz (frequency) ๐ŸŽต
  • Lumen โ€” lm (luminous flux) ๐Ÿ’ก
  • Lux โ€” lx (illuminance) ๐ŸŒŸ
  • Gray โ€” Gy (radiation dose) โ˜ข๏ธ
  • Katal โ€” kat (catalytic activity) ๐Ÿงช

๐Ÿงช Substances ๐Ÿงช

๐Ÿงฑ Compounds and materials ๐Ÿงฑ

  • Water โ€” water ๐Ÿ’ง
  • Ammonia โ€” ammonia ๐Ÿงผ
  • Freon โ€” freon โ„๏ธ
  • Tissue โ€” tissue ๐Ÿซถ
  • Diamond โ€” diamond ๐Ÿ’Ž
  • Graphite โ€” graphite โœ๏ธ
  • Water ice โ€” ice ๐ŸงŠ
  • Asphalt โ€” asphalt ๐Ÿ›ฃ๏ธ
  • Brick โ€” brick ๐Ÿงฑ
  • Concrete โ€” cocnrete (yes, spelled exactly like that in the source) ๐Ÿ—๏ธ
  • Silica glass โ€” glass_silica ๐ŸชŸ
  • Flint glass โ€” glass_flint ๐ŸชŸโœจ
  • Pyrex glass โ€” glass_pyrex ๐Ÿงช
  • Gypsum โ€” gypsum ๐Ÿชจ
  • Marble โ€” marble ๐Ÿ›๏ธ
  • Sand โ€” sand ๐Ÿ–๏ธ
  • Soil โ€” soil ๐ŸŒฑ
  • Air โ€” air ๐ŸŒฌ๏ธ

โš›๏ธ Particles โš›๏ธ

  • Electron โ€” electron โšก
  • Proton โ€” proton โž•
  • Neutron โ€” neutron โšช
  • Deuterium nucleus โ€” deuteron ๐Ÿ”ฌ
  • Muon โ€” muon ๐ŸŒ€
  • Helium nucleus โ€” helion ๐ŸŽˆ
  • Tau โ€” tauparticle โœจ
  • Alpha โ€” alphaparticle ๐Ÿ…ฐ๏ธ
  • Tritium nucleus โ€” triton ๐Ÿ”ฌโœจ

๐ŸŒ Celestial bodies ๐ŸŒ

  • Sun โ€” sun โ˜€๏ธ
  • Mercury โ€” mercury_planet ๐Ÿช
  • Venus โ€” venus ๐Ÿ’›
  • Earth โ€” earth ๐ŸŒŽ
  • Earthโ€™s moon โ€” moon ๐ŸŒ™
  • Mars โ€” mars ๐Ÿ”ด
  • Jupiter โ€” jupiter ๐Ÿช
  • Saturn โ€” saturn ๐Ÿช๐Ÿ’ซ
  • Uranus โ€” uranus ๐Ÿฉต
  • Neptune โ€” neptune ๐Ÿ”ต
  • Pluto โ€” pluto ๐Ÿซถ

โ›ฝ Fuels โ›ฝ

  • Crude oil โ€” oil ๐Ÿ›ข๏ธ
  • Coal โ€” coal ๐Ÿชจ
  • Natural gas โ€” naturalgas ๐Ÿ”ฅ
  • Charcoal โ€” charcoal โšซ
  • Wood โ€” wood ๐Ÿชต
  • Ethanol โ€” ethanol ๐ŸŒฝ
  • Diesel โ€” diesel ๐Ÿšš
  • Gasoline โ€” gasoline โ›ฝ
  • Heating oil โ€” heating_oil ๐Ÿ”ฅ
  • Fuel oil โ€” fueloil ๐Ÿ›ข๏ธ
  • Propane โ€” propane ๐Ÿ”ฅ
  • Butane โ€” butane ๐Ÿ”ฅโœจ

๐Ÿ“ Foods ๐Ÿ“

  • Butter โ€” butter ๐Ÿงˆ
  • Clarified butter โ€” butter_clarified ๐Ÿงˆโœจ
  • Cocoa butter โ€” cocoa_butter ๐Ÿซ
  • Vegetable shortening โ€” shortening ๐Ÿฅ„
  • Vegetable oil โ€” vegetable_oil ๐Ÿซ’
  • Olive oil โ€” olive_oil ๐Ÿซ’โœจ
  • Flour โ€” cakeflour, flour, breadflour ๐ŸŒพ
  • Corn starch โ€” cornstarch ๐ŸŒฝ
  • Cocoa โ€” dutchcocoa, cocoa ๐Ÿซ
  • Heavy cream โ€” heavycream ๐Ÿฅ›
  • Milk โ€” milk ๐Ÿฅ›
  • Sour cream โ€” sourcream ๐Ÿฅ›
  • Molasses โ€” molasses ๐Ÿฏ
  • Corn syrup โ€” corrnsyrup (again, source spelling, no cap) ๐ŸŒฝ
  • Honey โ€” honey ๐Ÿฏ๐Ÿ
  • Sugar โ€” sugar ๐Ÿฌ
  • Powdered sugar โ€” powdered_sugar ๐Ÿฌโœจ
  • Brown sugar โ€” brownsugar_light, brownsugar_dark ๐Ÿฌ
  • Baking powder โ€” baking_powder ๐Ÿฅ„
  • Salt โ€” salt, koshersalt ๐Ÿง‚
  • Egg โ€” egg ๐Ÿฅš

๐Ÿงช Elements 1 through 118, by name (e.g. helium) ๐Ÿงช

Yup, elements 1 through 118 are all in there by name, like helium โœจ๐Ÿงช

๐ŸŒŸ Constants ๐ŸŒŸ

  • Pi โ€” pi ๐Ÿฅง
  • Speed of light โ€” c ๐ŸŒŸ
  • Planck Constant โ€” planck_constant ๐Ÿ”ฌ
  • Gravitational Constant โ€” G ๐ŸŒŒ
  • Avogadroโ€™s number โ€” avogadro ๐Ÿ”ข
  • Gas Constant โ€” gasconstant ๐ŸŒฌ๏ธ
  • Boltzmann Constant โ€” boltzmann ๐Ÿ”ฅ
  • Earth Gravity โ€” gravity, force ๐ŸŒ
  • Earth Atmosphere Density โ€” atm ๐ŸŒฌ๏ธ

๐Ÿ’ธ Currencies ๐Ÿ’ธ

These are only available if live currency fetching is enabled. (See rink(5).)

  • EU Euro โ€” EUR, โ‚ฌ ๐Ÿ‡ช๐Ÿ‡บ
  • US dollar โ€” USD, $, dollar ๐Ÿ‡บ๐Ÿ‡ธ
  • Japan yen โ€” JPY, ยฅ, yen ๐Ÿ‡ฏ๐Ÿ‡ต
  • Bulgaria lev โ€” BGN ๐Ÿ‡ง๐Ÿ‡ฌ
  • Czech koruna โ€” CZK ๐Ÿ‡จ๐Ÿ‡ฟ
  • Denmark kroner โ€” DKK ๐Ÿ‡ฉ๐Ÿ‡ฐ
  • UK pound โ€” GBP, ยฃ ๐Ÿ‡ฌ๐Ÿ‡ง
  • Hungary forint โ€” HUF ๐Ÿ‡ญ๐Ÿ‡บ
  • Poland zล‚oty โ€” PLN ๐Ÿ‡ต๐Ÿ‡ฑ
  • Romania lei โ€” RON ๐Ÿ‡ท๐Ÿ‡ด
  • Sweden krona โ€” SEK ๐Ÿ‡ธ๐Ÿ‡ช
  • Switzerland franc โ€” CHF ๐Ÿ‡จ๐Ÿ‡ญ
  • Norway krone โ€” NOK ๐Ÿ‡ณ๐Ÿ‡ด
  • Croatia kuna โ€” HRK ๐Ÿ‡ญ๐Ÿ‡ท
  • Russia ruble โ€” RUB, โ‚ฝ ๐Ÿ‡ท๐Ÿ‡บ
  • Turkey lira โ€” TRY, โ‚บ ๐Ÿ‡น๐Ÿ‡ท
  • Australia dollar โ€” AUD, A$ ๐Ÿ‡ฆ๐Ÿ‡บ
  • Brazil real โ€” BRL, R$ ๐Ÿ‡ง๐Ÿ‡ท
  • Canada dollar โ€” CAD, C$ ๐Ÿ‡จ๐Ÿ‡ฆ
  • PRC yuan โ€” CNY ๐Ÿ‡จ๐Ÿ‡ณ
  • Hong Kong dollar โ€” HKD, H$ ๐Ÿ‡ญ๐Ÿ‡ฐ
  • Indonesia rupiah โ€” IDR ๐Ÿ‡ฎ๐Ÿ‡ฉ
  • Israel shekel โ€” ILS, โ‚ช ๐Ÿ‡ฎ๐Ÿ‡ฑ
  • India rupee โ€” INR, โ‚น ๐Ÿ‡ฎ๐Ÿ‡ณ
  • South Korea won โ€” โ‚ฉ ๐Ÿ‡ฐ๐Ÿ‡ท
  • Mexico peso โ€” MXN, mex$ ๐Ÿ‡ฒ๐Ÿ‡ฝ
  • Malaysia ringgit โ€” MYR ๐Ÿ‡ฒ๐Ÿ‡พ
  • New Zealand dollar โ€” NZD, NZ$ ๐Ÿ‡ณ๐Ÿ‡ฟ
  • Phillipines piso โ€” PHP, โ‚ฑ ๐Ÿ‡ต๐Ÿ‡ญ
  • Singapore dollar โ€” SGD, S$ ๐Ÿ‡ธ๐Ÿ‡ฌ
  • Thailand baht โ€” THB, เธฟ ๐Ÿ‡น๐Ÿ‡ญ
  • South Africa rand โ€” ZAR ๐Ÿ‡ฟ๐Ÿ‡ฆ

๐Ÿงฎ Functions ๐Ÿงฎ

Currently, all of these result in machine float fallback, because their results are real numbers that cannot be precisely represented as rationals.

  • sqrt(x) โ€” square root, โˆšx โœจ
  • exp(x) โ€” the exponential function, e^x ๐Ÿ”ฅ
  • ln(x) โ€” the natural logarithm, log_e(x) ๐ŸŒฑ
  • log(x,y) โ€” logarithm in base y, log_y(x) ๐Ÿ”ข
  • log2(x) โ€” logarithm in base 2, log_2(x) โœŒ๏ธ
  • log10(x) โ€” logarithm in base 10, log_10(x) ๐Ÿ”Ÿ
  • hypot(x,y) โ€” the length of the hypotenuse of a right-angle triangle given adjacent edges of length x and y ๐Ÿ“
  • sin(x) โ€” the sine function ๐ŸŒŠ
  • cos(x) โ€” the cosine function ๐ŸŒŠ
  • tan(x) โ€” the tangent function ๐Ÿ“
  • asin(x) โ€” inverse sine, or arcsine โ†ฉ๏ธ
  • acos(x) โ€” inverse cosine, or arccosine โ†ฉ๏ธ
  • atan(x) โ€” inverse tangent, or arctangent โ†ฉ๏ธ
  • atan2(x, y) โ€” four-quadrant arctangent, which can be used to reverse sine+cosine back into an angle ๐Ÿงญ
  • sinh(x) โ€” hyperbolic sine ๐ŸŒŠ
  • cosh(x) โ€” hyperbolic cosine ๐ŸŒŠ
  • tanh(x) โ€” hyperbolic tangent ๐Ÿ“
  • asinh(x) โ€” inverse hyperbolic sine function โ†ฉ๏ธ
  • acosh(x) โ€” inverse hyperbolic cosine function โ†ฉ๏ธ
  • atanh(x) โ€” inverse hyperbolic tangent function โ†ฉ๏ธ
  • fac(x) โ€” factorial, x!. Will coerce any input number to an integer ๐Ÿ”ข

๐Ÿ‘€ SEE ALSO ๐Ÿ‘€

rink(1), rink(5), rink-defs(5), rink-dates(5) ๐Ÿซถ


Served fresh by the Rink Manual, dated 2026-08-30, page RINK(7) ๐Ÿ’–โœจ

๐Ÿ“ฆ where this page comes from
  • arch rolling: rink 0.9.0-1 ยท GPL-3.0-or-later AND MPL-2.0
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms