Problem with unary operator and function

Issue #9 closed
Former user created an issue

Originally reported on Google Code with ID 9

What steps will reproduce the problem?
1. Open the program
2. Type in "1--COS(0)"
3. Press Enter

What is the expected output? What do you see instead?
Because COS(0) is 1, it should give 2 as the answer (i.e. evaluating 
1--1).
Instead, it gives -2.

Reported by ariya.hidayat on 2006-10-08 04:26:12

Comments (5)

  1. Former user Account Deleted

    ``` OK, I just fixed this. ```

    Reported by `ariya.hidayat` on 2006-10-08 05:48:32 - Status changed: `Fixed`

  2. Former user Account Deleted

    Reported by `ariya.hidayat` on 2006-10-12 09:28:47 - Labels added: Milestone-0.7

  3. Former user Account Deleted

    Reported by `helder.pereira.correia` on 2007-05-15 13:32:56 - Status changed: `Verified`

  4. Log in to comment