View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000508 | ascend | compiler | public | 2011-04-14 19:00 | 2012-04-11 06:18 |
Reporter | ujjavalverma10 | ||||
Assigned To | |||||
Priority | normal | Severity | trivial | Reproducibility | have not tried |
Status | resolved | Resolution | fixed | ||
Platform | Linux | OS | Ubuntu | OS Version | 9.04 |
Product Version | 0.9.7 | ||||
Target Version | 0.9.8 | Fixed in Version | 0.9.8 | ||
Summary | 0000508: Incorrect function call in safe.c | ||||
Description | I came across this piece of code in ascend/compiler/safe.c : safe.c, Line - 527 : double safe_cube_D0(double x,enum safe_err *safe) { (void)safe; return( cbrt(x) ); } Instead of returning cbrt(x), cube(x) must be returned here. | ||||
Tags | No tags attached. | ||||
related to | 0000509 | feedback | Second derivative of tan() function, ie : datan2() returns wrong expression |
|
ujjaval-bug508.patch (374 bytes)
Index: ascend/compiler/safe.c =================================================================== --- ascend/compiler/safe.c (revision 3372) +++ ascend/compiler/safe.c (working copy) @@ -510,7 +510,7 @@ double safe_cube_D0(double x,enum safe_err *safe) { (void)safe; - return( cbrt(x) ); + return( cube(x) ); } double safe_cbrt_D0(double x,enum safe_err *safe) |
|
I have attached the patch file to fix this issue. |
Date Modified | Username | Field | Change |
---|---|---|---|
2011-04-14 19:00 | ujjavalverma10 | New Issue | |
2011-04-14 19:08 | ujjavalverma10 | File Added: ujjaval-bug508.patch | |
2011-04-14 19:09 | ujjavalverma10 | Note Added: 0000734 | |
2011-08-17 19:27 | svn | ||
2011-08-17 19:27 | svn | Status | new => resolved |
2011-08-17 19:27 | svn | Resolution | open => fixed |
2011-08-17 19:28 | john | Fixed in Version | => 0.9.8 |
2011-08-17 19:28 | john | Target Version | => 0.9.8 |
2012-04-11 06:18 | john | Relationship added | related to 0000509 |