Tk Library Source Code

View Ticket
Login
Ticket UUID: 1241395
Title: Error in math::interpolate::neville
Type: Bug Version: None
Submitter: nobody Created on: 2005-07-20 07:44:22
Subsystem: math Assigned To: nobody
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2005-07-20 17:35:28
Resolution: Duplicate Closed By: mic42
    Closed on: 2005-07-20 10:35:28
Description:
Dear

I have found out a situation where this function
generates an error.

The arguments that I let it pass through this function is :

set arg1 "45 45 63 81 99 135 135 135 135 135 135 297
324 351 369 396 423 450 477 504 531 558 585 603 630 657
684 711 738 765 792 819 846 864 891 918 945 972 990
1017 1044"

set arg2 "2 6 10 14 18 22 26 30 34 38 42 46 50 54 58 62
66 70 74 78 82 86 90 94 98 102 106 110 114 118 122 126
130 134 138 142 146 150 154 158 162"

set arg3 268

In calling:
math::interpolate::neville $arg1 $arg2 $arg3

it generates the error:
*********************************************************
divide by zero
divide by zero
while executing
"expr { $w / ( $ho - $hp ) }"
(procedure "math::interpolate::neville" line 42)
invoked from within
"math::interpolate::neville [lindex $ipt 0] [lindex
$ipt 1] $width"
(procedure "adjustFont" line 3)
invoked from within
"adjustFont $font $width $ipt"
(procedure "configureBinding" line 2)
invoked from within
"configureBinding title {{45 45 63 81 99 135 135 135
135 135 135 297 324 351 369 396 423 450 477 504 531 558
585 603 630 657 684 711 738 765 792 819 84..."
(command bound to event) error :
********************************************************

Has anyone an idea

Best regards
SaigonKid