unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* real numbers and integer-expt.
@ 2002-03-13  8:36 Rob Browning
  2002-03-13 19:23 ` Marius Vollmer
  0 siblings, 1 reply; 7+ messages in thread
From: Rob Browning @ 2002-03-13  8:36 UTC (permalink / raw)



integer-expt says:

  SCM_DEFINE (scm_integer_expt, "integer-expt", 2, 0, 0,
              (SCM n, SCM k),
	      "Return @var{n} raised to the non-negative integer exponent\n"
	      "@var{k}.\n"
	      "\n"

but in the code we check to see if k satisfies SCM_REALP and if it
does, we coerce it to an int and see if we get any lossage.  If we
don't then we decide it's OK to use it.  Is that what we want, or
should callers be required to use inexact->exact when appropriate?

Thanks

-- 
Rob Browning
rlb @defaultvalue.org, @linuxdevel.com, and @debian.org
Previously @cs.utexas.edu
GPG=1C58 8B2C FB5E 3F64 EA5C  64AE 78FE E5FE F0CB A0AD

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


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

end of thread, other threads:[~2002-03-20 22:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-13  8:36 real numbers and integer-expt Rob Browning
2002-03-13 19:23 ` Marius Vollmer
2002-03-13 21:23   ` Rob Browning
2002-03-13 21:32   ` Rob Browning
2002-03-13 21:48   ` Rob Browning
2002-03-20 22:32     ` Marius Vollmer
2002-03-20 22:54       ` 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).