-----macrakis at gmail.com wrote: -----
>On Fri, Jun 20, 2008 at 8:46 AM, Raymond Toy (RT/EUS)
><raymond.toy at ericsson.com> wrote:
>> This doesn't quite seem to fit plan B, since you can't compare complex
>> numbers. What are you going to do for %i .. 2+2*%i?
That was an extension to plan B:
Define a .. b = [a + k | k in Z, 0 <= k <= (b - a)], where Z is the set
of integers.
Notice that makelist does the same thing:
(%i3) makelist(k,k, %i, %i + 2);
(%o3) [%i,%i+1,%i+2]
Maxima doesn't do a terrific job in detecting expressions that aren't real.
I could put a little check for complex endpoints, but I'd get
%i .. %i + 1 --> nounform or error
asin(1 + x^2) .. 1 + asin(1 + x^2) --> [asin(1 + x^2), asin(1 + x^2) + 1]
I thought that was chaotic, so I deleted my (csign) check for complex
endpoints.
Barton