Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bb245ca9322a005c2ab3515d71b25928f5b3b20a
Ticket: 1203389fffffffffffffffffffffffffffffffff
"divide by zero" in ::math::statistics::linear-model
User & Date: tenolohi on 2005-05-17 08:34:52
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    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.
    
  4. foundin changed to: "obsolete: 8.4.9"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "tenolohi"
  9. subsystem changed to: "17. Commands I-L"
  10. title changed to:
    "divide by zero" in ::math::statistics::linear-model 
    
  11. type changed to: "Bug"