| Arc as it exists today appears to have support for the full Scheme numeric tower, doubtless inherited from MzScheme. Unfortunately, it seems that beyond basic arithmetic, there is little support for manipulations involving the other numeric types. One important sign of that is the following: arc> (type 1)
int
arc> (type 2.0)
num
arc> (type 2+3i)
num
arc> (type 3/4)
num
I would have hoped that the type function would distinguish between all of these different types on the numerical tower, but it seems that it's either integers and everything else. There don't seem to be any functions available to say, obtain the denominator of a rational number, or the imaginary part of a complex. The abs function unexpectedly doesn't work with complex numbers.Is any work being done to resolve this situation? |