Description of problem: relatively simple units result in Unit reduction error (bad unit definition) Version-Release number of selected component (if applicable): units-2.02-3.fc20.x86_64 How reproducible: Every time Steps to Reproduce: 1. run units on the commandline 2. type input : sigma^3 Actual results: error message: Unit reduction error (bad unit definition) Expected results: no error Additional info: This probably results from underflow in floating point calculations. sigma is defined as pi^2 k^4 / 60 hbar^3 c^2 and even small powers result in unfortunate under/overflows.
Sorry for the delay, I have been on vacation. The error no longer occurs with units-2.11-3.fc22. Is the following a correct response? $ units Currency exchange rates from www.timegenie.com on 2014-04-02 2866 units, 109 prefixes, 79 nonlinear units You have: sigma^3 You want: Definition: 1.8232019e-22 kg^3 / K^12 s^9
I believe that is correct.
Thanks for the confirmation! I will submit an update of units for Fedora 20.
AFAIK, the upstream of units provides no SCM repository to pick the fix from, and there were too many changes between units-2.02 and units-2.11 (fixes, enhancements, indentation changes, ...): $ diff -up ./units-2.02/units.c ./units-2.11/units.c | diffstat units.c | 3639 ++++++++++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 2415 insertions(+), 1224 deletions(-) So I will just rebase units in Fedora 20 to the version we have in Fedora 21...
units-2.11-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/units-2.11-1.fc20
Package units-2.11-1.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing units-2.11-1.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-12629/units-2.11-1.fc20 then log in and leave karma (feedback).
units-2.11-2.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/units-2.11-2.fc20
units-2.11-4.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/units-2.11-4.fc21
units-2.11-2.fc20 works
units-2.11-2.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
units-2.11-4.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.