View Issue Details

IDProjectCategoryView StatusLast Update
0000508ascendcompilerpublic2012-04-11 06:18
Reporterujjavalverma10 
Assigned To 
PrioritynormalSeveritytrivialReproducibilityhave not tried
Status resolvedResolutionfixed 
PlatformLinuxOSUbuntuOS Version9.04
Product Version0.9.7 
Target Version0.9.8Fixed in Version0.9.8 
Summary0000508: Incorrect function call in safe.c
DescriptionI 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.
TagsNo tags attached.

Relationships

related to 0000509 feedback Second derivative of tan() function, ie : datan2() returns wrong expression 

Activities

ujjavalverma10

2011-04-14 19:08

reporter  

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)
ujjaval-bug508.patch (374 bytes)

ujjavalverma10

2011-04-14 19:09

reporter   ~0000734

I have attached the patch file to fix this issue.

Issue History

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