Bug 330711

Summary: wrong calculation of pow(0,-ve numbers).Even kcalc is crashing repeatedly several times on input 0^-5.I am attaching solution patch along with it.
Product: [Applications] kcalc Reporter: Raushan Kumar <kraushanp>
Component: generalAssignee: Evan Teran <evan.teran>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: 2.13   
Target Milestone: ---   
Platform: Mint (Ubuntu based)   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Just added one check condition for 0^0 and 0^(-ve number) .Its working fine
patch
patch . adding just one condition in power function

Description Raushan Kumar 2014-02-03 18:29:24 UTC
wrong calculation of pow(0,-ve numbers). Even kcalc is crashing repeatedly several times on input 0^-5. I am attaching solution patch along with it.
Comment 1 Raushan Kumar 2014-02-03 18:32:57 UTC
Created attachment 84970 [details]
Just added one check condition for 0^0 and 0^(-ve number) .Its working fine
Comment 2 Raushan Kumar 2014-02-03 18:42:37 UTC
Created attachment 84971 [details]
patch
Comment 3 Raushan Kumar 2014-02-03 18:47:18 UTC
Created attachment 84972 [details]
patch . adding just one condition in power function

Its working fine after building it.No further crashes.
Comment 4 Evan Teran 2014-02-03 21:34:59 UTC
Patch (with some minor cosmetic alterations) applied. Thanks!
Comment 5 Raushan Kumar 2014-02-04 02:54:00 UTC
thank you very much!!! :D