unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Bug in Guile
       [not found]     ` <87k7g6g5no.fsf@blarg.net>
@ 2003-02-11 18:18       ` Dr William Bland
  2003-04-12  0:55         ` Rob Browning
  0 siblings, 1 reply; 2+ messages in thread
From: Dr William Bland @ 2003-02-11 18:18 UTC (permalink / raw)


I have found what appears to be a bug in Guile's reading of large
integers.  If I try the expression in the email included below in Guile
1.4, I get +#.#.  This has also been tried on Guile 1.6.2 and that gives
an error (see the email below).

Best wishes,
		Bill.


On Tue, Feb 11, 2003 at 08:10:03AM -0800, Eric Hanchrow wrote:
> 
> You, sir, have found a bug.  Please report it!
> 
> Here's what I see with guile 1.6.2:
> 
>     guile> (sqrt 20740119327258723760276023509063017138455993606274883526731955113241109007354362374128996096291046353572306742110305456946824862203867115042369878729703475765112280167498189046437794602966168812419423365196979669431929588951126804648743029387833666031765734337165949634731375592471670294246180877815104812674626967450097045005117546657068700545263064105024888769118032059917845867653040419404003684559882509195398630922824050405379620513589699993980205694266973236095772153476388267418476533663512746243310317853861946430053072890502949319703765023792161144942611323629444409600173894963797156859916567288947565058003)
>     standard input:104:1: In expression (sqrt 2074011932725872376027602350906301713845599360627488352673195511324110900735436237412899609629104635357230674211030545694682486220386711504236987872970347576511228016749818904643779460296616881241942336519697966943192958895112680464874302938783366603176573433716594963473137559247167029424618087781510481267462696745009704500511754665706870054526306410502488876911803205991784586765304041940400368455988250919539863092282405040537962051358969999398020569426697323609577215347638826741847653366351274624 3310317853861946430053072890502949319703765023792161144942611323629444409600173894963797156859916567288947565058003):
>     standard input:104:1: Wrong number of arguments to #<procedure sqrt (z)>
>     ABORT: (wrong-number-of-args)
> 
> Note that it's broken the big number into two pieces by inserting a
> space.
> 

-- 
Dr. William Bland.                          Computer Programmer, UK.
www.abstractnonsense.com


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug in Guile
  2003-02-11 18:18       ` Bug in Guile Dr William Bland
@ 2003-04-12  0:55         ` Rob Browning
  0 siblings, 0 replies; 2+ messages in thread
From: Rob Browning @ 2003-04-12  0:55 UTC (permalink / raw)
  Cc: guile-devel

Dr William Bland <wjb@abstractnonsense.com> writes:

> I have found what appears to be a bug in Guile's reading of large
> integers.  If I try the expression in the email included below in Guile
> 1.4, I get +#.#.  This has also been tried on Guile 1.6.2 and that gives
> an error (see the email below).

Hmm.  And 1.7 gives us:

guile> (sqrt 20740119327258723760276023509063017138455993606274883526731955113241109007354362374128996096291046353572306742110305456946824862203867115042369878729703475765112280167498189046437794602966168812419423365196979669431929588951126804648743029387833666031765734337165949634731375592471670294246180877815104812674626967450097045005117546657068700545263064105024888769118032059917845867653040419404003684559882509195398630922824050405379620513589699993980205694266973236095772153476388267418476533663512746243310317853861946430053072890502949319703765023792161144942611323629444409600173894963797156859916567288947565058003)
+inf.0
guile>

I'll add it to my list of things to look in to.  Now with GMP, we can
do a lot better than that.

-- 
Rob Browning
rlb @defaultvalue.org, @linuxdevel.com, and @debian.org
Previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592  F9A0 25C8 D377 8C7E 73A4


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-12  0:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <pan.2003.02.10.18.44.40.803361@abstractnonsense.com>
     [not found] ` <87hebbonef.fsf@blarg.net>
     [not found]   ` <20030211102013.A28633@ns.jfreebies.com>
     [not found]     ` <87k7g6g5no.fsf@blarg.net>
2003-02-11 18:18       ` Bug in Guile Dr William Bland
2003-04-12  0:55         ` Rob Browning

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).