Temperature conversion: Difference between revisions

m
→‎{{header|J}}: typo in note
m (→‎{{header|J}}: update examples)
m (→‎{{header|J}}: typo in note)
Line 125:
</lang>
 
'''Notes''': The approach is founded on polynomials, one for each conversion (e.g. <tt>Fahrenheit = 1.8*x - 459.67</tt> where <tt>x</tt> is measured in degrees Kelvin), and all polynomials are evaluated simultaneously using the built-in <tt>p.</tt>. Through some code decorations (specifically the <tt>/</tt> in <tt>p./</tt> the <tt>"0 1"_1</tt> and the <tt>0 _1 |:</tt>), thewe functionpermit isour function willto convert arrays of temperatures of arbitrarily high dimension (a single temp, lists of temps, tables of temps, cubes of temps, etc).
 
=={{header|Python}}==
Anonymous user