[Maxima] a .. b
Raymond Toy (RT/EUS)
raymond.toy at ericsson.com
Wed Jun 18 10:35:40 CDT 2008
Barton Willis wrote:
> -----maxima-bounces at math.utexas.edu wrote: -----
>>>>> Use floor and ceiling on non-integer endpoints
>>>>> (%i11) sqrt(2) .. sqrt(15);
>>>>> (%o11) [2,3]
>>>> I think this should be a noun expression.
>> Commercial Macsyma leaves this as a noun expression.
>> I prefer that it be a noun.
> Thanks to everybody for the input. I'll delete the auto ceiling / floor
> code. What about float and big float endpoints?
> 1.0 .. 42.0 --> noun?
What's wrong with that returning [1.0, 2.0, ..., 42.0]? (Well, barring
round-off error. The result might be 41.99999 or 41.0000...1)
How hard would it be add an optional step size? That's a nice feature
from matlab that I've used a bit, and you often see stuff like 0(.1).9
in various tables and such.
More information about the Maxima