invalid command name



Hi All,

I have followed the example in the this link:

http://www.flightlab.com/~joe/gutter/doc/tcllib-1.8/interpolate.html


the script is as follows:

package require Tcl
package require struct
package require math::interpolate
set coeffs [::math::interpolate::prepare_cubic_splines {0.1 0.3 0.4
0.8 1.0} {1.0 2.1 2.2 4.11 4.12}]
foreach x {0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0} {
puts "$x: [::math::interpolate::interp_cubic_splines $coeffs
$x]"
}


but when i try to run it, i receive an error message that
the ::math::interpolate::prepare_cubic_splines and
the ::math::interpolate::interp_cubic_splines are invalid command
names.

why does that happen?
.



Relevant Pages

  • Re: Good debugger?
    ... The debugger is a Tcl script. ... need to add the package require for that extension. ... that the tcl that Tuba is using doesn't find a definition for an Expect ...
    (comp.lang.tcl)
  • Re: Cant access TCLLib when TCL is embedded in my application
    ... >> user does not use TCL interactively but just runs tcl files. ... > any broken installations. ... > That's really a bug in that package, but bugs happen, and so long as ... > all parts of the Tcl script library you will need. ...
    (comp.lang.tcl)
  • Re: Converting Iwidgets to Source
    ... > The problem I am facing is that I can't get my script to run ... My Linux Distrubutiondon't. ... has better support for Tcl packages. ... and I think debian has a good package ...
    (comp.lang.tcl)
  • Installation of software, and security. . .
    ... installation in Windows and various package managers. ... A setup.exe program coded by some third party such as Real Networks ... A .msi Microsoft Installer package is unpacked, and a script coded by ...
    (Bugtraq)
  • Re: goto &Package::func destroying @_?!
    ... >>script, but maybe the description will trigger something from someone.... ... code the 'Core' package uses another package as a base that has a custom ... package Foo; ... if it really is a problem with goto&. ...
    (comp.lang.perl.misc)