Bug 79845

Summary: Package info (from rpmquery -i) incorrect
Product: [Retired] Red Hat Linux Reporter: Need Real Name <vader>
Component: unitsAssignee: Harald Hoyer <harald>
Status: CLOSED CURRENTRELEASE QA Contact: Ben Levenson <benl>
Severity: low Docs Contact:
Priority: low    
Version: 8.0CC: petrosyan
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-11-09 19:03:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Need Real Name 2002-12-17 14:19:10 UTC
Description of problem:
The 'units' package description states that the program "can only handle
multiplicative scale changes" whereas the man page states that that is not the
case, and even gives an example (which works) to contradict that.

Version-Release number of selected component (if applicable):

How reproducible:
rpmquery -i units
Actual results:
"Units can only handle multiplicative scale changes (i.e., it can not tell you
how to convert from Celsius to Fahrenheit, which requires an additive step in
addition to the multiplicative conversion)."

Expected results:
"The `units' program can handle multiplicative  scale  changes  as  well  as
nonlinear conversions such as Fahrenheit to Celsius."

Comment 1 Miloslav Trmac 2002-12-18 12:55:03 UTC
Farenheit to Celsius definitely _is_ linear. It's just y = Ax +B.

Comment 2 Need Real Name 2002-12-18 18:57:56 UTC
The point, in case it wasn't clear enough already, is that the two texts are
contradictory, and that the package description would lead one to believe that
it cannot be used for that type of conversion -- whereas it can.

Comment 3 Harald Hoyer 2003-01-07 16:01:35 UTC
fixed in 1.80-3

Comment 4 petrosyan 2003-05-24 19:25:52 UTC
A linear transformation T has the property that T(x+z)=T(x)+T(z).
(That's part of the definition of linear transformation.)  If you try
your form T(x)=ax+b you'll find that T(x)+T(z)=ax+b+az+b=a(x+z)+2b but
T(x+z)=a(x+z)+b.  So the property does NOT hold, and hence the form
T(x)=ax+b is NOT a linear transformation.  The Fahrenheit to Celsius
transformation y=ax+b is an affine transformation.


Comment 5 Harald Hoyer 2003-08-05 08:03:04 UTC
*** Bug 100404 has been marked as a duplicate of this bug. ***