News for hackers. Stuff that matters.
Re:GNU Units by amelius on Wednesday January 06, 2021 @09:09AM (#25657855)
Linear does not mean "graph is a line". It means "graph is a line through origin" (in the 2d case).

Somewhat counterintuitive, but that's how it's defined.

Re:GNU Units by diarrhea on Wednesday January 06, 2021 @09:26AM (#25658001)
The Wikipedia article someone else posted already seems to disagree: https://en.wikipedia.org/wiki/Linear_function. This confuses me.
Re:GNU Units by TeMPOraL on Wednesday January 06, 2021 @09:34AM (#25658072)
The article actually agrees.

> 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.

Re:GNU Units by tait on Wednesday January 06, 2021 @09:57AM (#25658272)
So, rather than calling it non-linear, which is clearly somewhat confusing, perhaps it would be more clear to state that it handles affine functions like F to C...?
Re:GNU Units by zeroimpl on Wednesday January 06, 2021 @05:51PM (#25663800)
Agreed. Why they wasting our time pointing out it’s “non-linear” when this statement is only true for some definitions of linear? Just pick a non-ambiguous word, or add an asterisk and footnote.
Re:GNU Units by TeMPOraL on Wednesday January 06, 2021 @10:18AM (#25658447)
Perhaps. That's what I myself did when adding handling for affine unit conversions in a project I worked on.