how is
C = (5/9)(F-32)
not linear?how is
C = (5/9)(F-32)
not linear?This follows from the constraint that for a linear map f, f(a + b) = f(a) + f(b), which is not true for the farenheit-celsius example.
EDIT: See https://en.wikipedia.org/wiki/Linear_function#As_a_linear_ma...
Reference: https://mathworld.wolfram.com/AffineFunction.html
f(c*(a+b)) = c*f(a) + c*f(b)
Where c is a scalar. A and b are abstract objects. Examples include vectors, real numbers, and functions themselves.Somewhat counterintuitive, but that's how it's defined.
> In mathematics, the term linear function refers to two distinct but related notions (...) [proceeds to specify them using incomprehensible math words]
GNU Units documentation uses the second notion, common with linear algebra (and thus arguably more common in any computing) - the notion that calls y=ax a linear function, and y=ax+b an affine function.
> But Fahrenheit to Celsius is linear, you insist. Not so. A transformation T is linear if T(x+y)=T(x)+T(y) and this fails for T(x)=ax+b . This transformation is affine, but not linear.
https://www.gnu.org/software/units/manual/html_node/Overview...
"Units only does multiplicative scale changes. Thus it can convert Kelvin to Rankine, but not Centigrade to Fahrenheit."