Bug 330597 - wrong calculation of indeterminate form pow(0,0)
Summary: wrong calculation of indeterminate form pow(0,0)
Status: RESOLVED FIXED
Alias: None
Product: kcalc
Classification: Applications
Component: general (show other bugs)
Version: 2.13
Platform: Mint (Ubuntu based) Linux
: NOR normal
Target Milestone: ---
Assignee: Evan Teran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-30 21:48 UTC by Raushan Kumar
Modified: 2014-02-03 21:35 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
it is the solution for above bug or bugfix (492 bytes, patch)
2014-01-30 21:48 UTC, Raushan Kumar
Details
this patch will fix the above bug as I have added one more condition in power function for 0^0 (492 bytes, patch)
2014-01-31 04:05 UTC, Raushan Kumar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raushan Kumar 2014-01-30 21:48:25 UTC
Created attachment 84910 [details]
it is the solution for above bug or bugfix

pow(0,0) = 1 but it should be nan as it is one of the indeterminate form
Comment 1 Raushan Kumar 2014-01-30 21:50:17 UTC
respected sir,
Please this time first check my attachment patch , if it is correct please fix bug using it
Comment 2 Christoph Feck 2014-01-30 22:22:20 UTC
See http://lists.kde.org/?l=kde-commits&m=139111555209070&w=2
Comment 3 Raushan Kumar 2014-01-30 22:30:13 UTC
sir what was wrong with patch i had attached
Comment 4 Raushan Kumar 2014-01-31 04:05:15 UTC
Created attachment 84916 [details]
this patch will fix the above bug as I have added one more condition in power function for 0^0

this patch will fix the above bug as I have added one more condition in power function for 0^0
Comment 5 kumar gaurav 2014-02-03 04:13:18 UTC
patch attached by Raushan is working fine ,then till now why it has not been applied
Comment 6 kumar gaurav 2014-02-03 04:15:16 UTC
still its showing value of pow(0,0)=1,patch has not been applied .But I have checked patch attached by Raushan is working fine
Comment 7 Raushan Kumar 2014-02-03 04:24:51 UTC
I dont know why they have not applied it yet , there must be something wrong with that patch .
Comment 8 Raushan Kumar 2014-02-03 04:36:52 UTC
just now I have redownloaded source of kcalc from git clone git://anongit.kde.org/kcalc.and installed it ,its now also giving wrong answer for power(0,0). Then why not you apply the patch attached by me.
Comment 9 Evan Teran 2014-02-03 13:02:44 UTC
Raushan & Kumar,

Be patient. I am out of town on a business trip. I will take a look at the patch when I return.
Comment 10 Evan Teran 2014-02-03 21:35:09 UTC
Patch (with some minor cosmetic alterations) applied. Thanks!