Re: Advice required BigNums in calculation - TCL
This is a discussion on Re: Advice required BigNums in calculation - TCL ; Jeannot wrote:
> Hi @ll,
> I recently ran into the well known problem (I guess from my short look
> around) with BigNum for calculating several factorials. Like 32! gives
> an output equal to -2147483648. I have the ...
-
Re: Advice required BigNums in calculation
Jeannot wrote:
> Hi @ll,
> I recently ran into the well known problem (I guess from my short look
> around) with BigNum for calculating several factorials. Like 32! gives
> an output equal to -2147483648. I have the feeling that this is going
> to be fixed in 8.5?!
% package provide Tcl
8.5b3
% expr
32*31*30*29*28*27*26*25*24*23*22*21*20*19*18*17*16*15*14*13*12*11*10*9*8*7*6*5*4*3*2
263130836933693530167218012160000000
> What is the release plan for 8.5, pretty soon no?
Current estimated release date is Dec. 14.
Or is there any
> other solution?
There are other solutions, but if you're open to using Tcl 8.5,
I think that's the best.
> My gut feeling is that I will try the beta from 8.5...
http://sf.net/project/showfiles.php?...ease_id=555294
--
| Don Porter Mathematical and Computational Sciences Division |
| donald.porter@nist.gov Information Technology Laboratory |
| http://math.nist.gov/~DPorter/ NIST |
|______________________________________________________________________|
-
Re: Advice required BigNums in calculation
> Current estimated release date is Dec. 14.
Yipikae!!!! Great I'm downloading the latest beta version from
Activestate, any differences with the own in sourceforge?
and try all my program written since my PhD...
Thanks Don.
Jeannot
>
> Or is there any
>
> > other solution?
>
> There are other solutions, but if you're open to using Tcl 8.5,
> I think that's the best.
>
> > My gut feeling is that I will try the beta from 8.5...
>
> http://sf.net/project/showfiles.php?...age_id=10452&r...
>
> --
> | Don Porter Mathematical and Computational Sciences Division |
> | donald.por...@nist.gov Information Technology Laboratory |
> |http://math.nist.gov/~DPorter/ NIST |
> |______________________________________________________________________|
-
Re: Advice required BigNums in calculation
On Dec 4, 11:37 am, Jeannot <jean.mul...@igbmc.u-strasbg.fr> wrote:
> > Or is there any
>
> > > other solution?
http://wiki.tcl.tk/factorial has a variety of solutions, several of
which were written before the tcl 8.5 large number support was
available.
-
Re: Advice required BigNums in calculation
Yes I have seen that too. That is I guess the lazy part of me knowing
how the group is active and willing to have expert and up to date
advice :-)
Thanks again I am using tcl/tk since 5 years and still have to learn a
lot but that's good!! I am trying to survive surrounded by other perl/
python bioinformaticians ;-)
Jeannot
On 4 déc, 17:47, "Larry W. Virden" <lvir...@gmail.com> wrote:
> On Dec 4, 11:37 am, Jeannot <jean.mul...@igbmc.u-strasbg.fr> wrote:
>
> > > Or is there any
>
> > > > other solution?
>
> http://wiki.tcl.tk/factorialhas a variety of solutions, several of
> which were written before the tcl 8.5 large number support was
> available.
Similar Threads
-
By Application Development in forum TCL
Replies: 11
Last Post: 12-05-2007, 10:37 AM
-
By Application Development in forum labview
Replies: 3
Last Post: 09-12-2007, 07:10 AM
-
By Application Development in forum Python
Replies: 0
Last Post: 07-13-2007, 09:18 AM
-
By Application Development in forum verilog
Replies: 1
Last Post: 04-17-2007, 08:33 AM
-
By Application Development in forum Pegasus
Replies: 3
Last Post: 02-09-2006, 04:33 AM