Tk Library Source Code

View Ticket
Login
Ticket UUID: 1240910
Title: Error in math::interpolate::neville
Type: Bug Version: None
Submitter: nobody Created on: 2005-07-19 15:03:34
Subsystem: math Assigned To: arjenmarkus
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2005-10-04 13:34:26
Resolution: None Closed By: arjenmarkus
    Closed on: 2005-10-04 06:34:26
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
User Comments: arjenmarkus added on 2005-10-04 13:34:26:
Logged In: YES 
user_id=400048

Closed this bug - it was a usage error (see my comments)

arjenmarkus added on 2005-08-02 18:49:41:
Logged In: YES 
user_id=400048

I think you have interchanged the first two arguments: first
the x values then the y values.