octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #37535] "cos 1" vs "cos (1)"


From: anonymous
Subject: [Octave-bug-tracker] [bug #37535] "cos 1" vs "cos (1)"
Date: Wed, 10 Oct 2012 13:30:39 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20100101 Firefox/15.0.1

URL:
  <http://savannah.gnu.org/bugs/?37535>

                 Summary: "cos 1" vs "cos (1)" 
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Wed 10 Oct 2012 13:30:38 UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: sawatts
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.2
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

This is odd behaviour which I would not expect from the interpretor:

Missing parentheses after (buildin) function call are not an error:

1> cos (1)
ans = 0.54030
2> cos 1
ans = 0.30059

In line 2, the return is the cosine of the ASCII value of '1', or 49.

I would have expected line 2 to generate an error at least.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37535>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]