[plt-scheme] Thoughts on number-snip.ss

From: Robby Findler (robby at cs.uchicago.edu)
Date: Tue Apr 12 10:27:04 EDT 2005

The number snip doesn't add any new kinds of values to Scheme -- it's
just changing the way that existing numbers are printed. So, if you
wanted a new kind of number where the sqrt of 2 could be represented
precisely, the first step would be working out what all the numeric
primitives do on those new kinds of numbers and implementing that.

Once you've done that, you might be able to convince me to draw you a
little sqrt thingy. :)


At Tue, 12 Apr 2005 14:47:29 +0100 (WEST), "Paulo Jorge de Oliveira Cantante de Matos" wrote:
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> Hi all,
> I've been checking number-snip.ss and I'd like to know if there
> would be a lot of work involved if I wished to use the same
> idea behind number-snip.ss to return a snip with the
> mathematical representation of (sqrt 2) instead of the decimal.
> One thing at least strikes me, which is how could I draw the
> mathematical representation of the square root? The fraction is
> easier to do since it is just a line (oh, if someone knows
> where's the line of code that prints the fraction line in
> number-snip.ss please tell me so) but the sqrt symbol is much
> more awkward.
> Any ideas would be welcome.
> Cheers,
> -- 
> Paulo Jorge Matos - pocm at sat inesc-id pt
> Web: http://sat.inesc-id.pt/~pocm
> Computer and Software Engineering
> INESC-ID - SAT Group

Posted on the users mailing list.