[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #33537] lower function returns incorect result
From: |
Michael Godfrey |
Subject: |
[Octave-bug-tracker] [bug #33537] lower function returns incorect result on numerical values |
Date: |
Sun, 12 Jun 2011 16:35:20 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 |
Follow-up Comment #3, bug #33537 (project octave):
I do not think that anyone would say that Matlab
is "right" in this case:
Matlab says, for more examples:
lower([ 90 100])
ans =
90 100
>>
but also:
>> lower([ 90 100 'ABC'])
ans =
zdabc
>>
This matches Octave!
Other experiments may be a good idea, but this is not
worth much time, I think. A simple solution for the
case above would be isnumeric() applied to the argument
and then do as Matlab seems to do.
Regardless of Matlab, I do not think that Octave doing:
octave:35> lower(64)
ans = @
octave:36> lower(65)
ans = a
octave:37>
is very helpful. Probably, Matlab choice would be better.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?33537>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #33537] lower function returns incorect result on numerical values, Arnaud Delorme, 2011/06/11
- [Octave-bug-tracker] [bug #33537] lower function returns incorect result on numerical values, Philip Nienhuis, 2011/06/11
- [Octave-bug-tracker] [bug #33537] lower function returns incorect result on numerical values, Arnaud Delorme, 2011/06/12
- [Octave-bug-tracker] [bug #33537] lower function returns incorect result on numerical values,
Michael Godfrey <=
- [Octave-bug-tracker] [bug #33537] lower function returns incorect result on numerical values, Arnaud Delorme, 2011/06/12
- [Octave-bug-tracker] [bug #33537] lower function returns incorect result on numerical values, John W. Eaton, 2011/06/12
- [Octave-bug-tracker] [bug #33537] lower function returns incorect result on numerical values, Michael Godfrey, 2011/06/12
- [Octave-bug-tracker] [bug #33537] lower function returns incorect result on numerical values, John W. Eaton, 2011/06/12
- [Octave-bug-tracker] [bug #33537] lower function returns incorect result on numerical values, Philip Nienhuis, 2011/06/12