Overview:
Graphing cubert(x) using any applet or WCMGrapher produces a discontinuous graph around its center. Although values are still able to be calculated and displayed within this area
Steps To Reproduce:
1) Start SimpleGraph Applet (eg using eclipse)
2) Change input expression to "cubert(x-1)" (so not hidden by axis)
3) Change display Limits to:
xmin = 0.5
xmax = 1.5
ymin = -0.5
ymax = 0.5
Results:
The graph of cubert(x-1) is graphed and has discontinuity around x = 1
Expected Results:
The graph of cubert(x-1) should be a continuous graph (should be equivalent to the input expression "(x-1)^(1/3)" which is continuous)
Build Date and Platform:
Built on 24/11/07 with Windows XP Home Edition (SP2)(version 5.1.2600), eclipse 3.2.1, JRE 1.6.0_03
Additional Builds and Platforms:
occurs also on build 24/11/07 with Ubuntu 7.10 (Gusty Gibbon), eclipse 3.2.2, JRE 1.6.0_03
Possible Cause:
Definition of the function cubert(x) within ExpressionProgram (net.sourceforge.webcompmaths.data), since its equivalent function, using powers, graphs as expected.
Possible Fix:
Commenting out the addcase line within cubert(x) definition in method eval(...). Graphs cubert(x) as expected, this may affect something else since it has obviously been added for a reason though.