Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2005-05-17
16:30 • Ticket [1203389fff] "divide by zero" in ::math::statistics::linear-mod... artifact: d8973806d7 user: tenolohi
16:08 • Closed ticket [1203389fff]. artifact: 55a4a9ed12 user: dkf
08:34 • New ticket [1203389fff]. artifact: bb245ca932 user: tenolohi

"divide by zero" in ::math::statistics::linear-model

Closed / Invalid1203389fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2005-05-17 08:34:52
In version 0.1.2 of math::statistics library, function linear-
model crashes with "divide by zero" error message if all 
independent data are the same. There is a check in the 
code like this:

if { $sumx2 == 0.0 } {
      return -code error -errorcode 
ARG "$TOOFEWDATA: independent values are all the 
same"
}

, but this is not correct. Instead the condition should 
probably be if { $sx == 0.0 } which is calculated on the 
next line after the check.
dkfplain2005-05-17 16:08:37
Logged In: YES 
user_id=79902

I think you've submitted this to the wrong project. It looks
like a tcllib bug, not a tcl bug. :^)
tenolohiplain2005-05-17 16:30:32
Logged In: YES 
user_id=1280029

Oops! :)

I'll submit it to the right project, so you can delete this one...
Log in (anonymous is fine) to add a comment.