[plt-scheme] Thoughts on number-snip.ss
Robby Findler said:
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
> 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.
>
Indeed, I've done that in part. I've also implemented some
numeric transformation rules that would return 1/3 given 0.(3)
for example.
> Once you've done that, you might be able to convince me to draw
> you a
> little sqrt thingy. :)
>
I would prefer to do it myself if you don't mind. I'd just like
to know where to start to do that? For example, if you could
please tell me where's the code that draws the line between the
denominator and numerator in fractions, I'd be most grateful.
:)
If you want I can send you the code I have but I'm modifying it
to use the class.ss library since it is all implemented in
swindle now. This change is due to the fact that stuff using
class.ss seem to integrate better with existing drscheme code
and swindle seems stalled (sorry, Eli). :)
Cheers,
Paulo Matos
> Robby
>
> 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
>
--
Paulo Jorge Matos - pocm at sat inesc-id pt
Web: http://sat.inesc-id.pt/~pocm
Computer and Software Engineering
INESC-ID - SAT Group