Skip to content
Tcl Source Code History Of Ticket 218243ffffffffff
Login

History Of Ticket 218243ffffffffff

Artifacts Associated With Ticket 218243ffffffffff

  1. Ticket change [c869f51a5a] (rid 122098) by nobody on 2000-10-26 00:54:59:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 2813 Bug
      Version: 8.2
      SubmitDate: '1999-09-16'
      LastModified: '1999-09-16'
      Severity: MED
      Status: Closed
      Submitter: techsupp
      ChangedBy: hobbs
      OS: Linux-Red Hat
      Machine: Other
      FixedDate: '2000-10-25'
      ClosedDate: '1999-09-16'
      
      
      Name:
      John Ellson
      
      ReproducibleScript:
      expr -2^2
          expr -2^2+2^2
          expr 2^2-2^2
          expr 2^-2^2
      
      ObservedBehavior:
      according to tcl:
          
            -2^2 = -4
            -2^2+2^2 = -8
             2^2-2^2 = 0
             2^-2^2 = -2
      
      DesiredBehavior:
      according to matlab
          
            -2^2 = -4
            -2^2+2^2 = 0
             2^2-2^2 = 0
             2^-2^2 = 0.0625
          
          according to perl:
          
            bash>> perl -e '$x=-2**2;print "$x\n";'
            -4
            bash>> perl -e '$x=-2**2+2**2;print "$x\n";'
            0
            bash>> perl -e '$x=+2**2-2**2;print "$x\n";'
            0
            bash>> perl -e '$x=+2**-2**2;print "$x\n";'
            0.0625
      
      
      
      The user was confusing the Tcl bitwise XOR (^) with the power
      function (expr pow(base,exp)). 
      -- 09/16/1999 hobbs
      
    4. foundin initialized to: "obsolete: 8.2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "expr operator precedence"
    11. type initialized to: "Bug"
  2. Ticket change [a3b4cff537] (rid 110087) by welch on 2000-10-26 08:17:55:

    1. closedate changed to: "2000-10-26T01:17:55"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [e768948068] (rid 104449) by dgp on 2001-04-19 02:32:56:

    1. closedate changed to: "2001-04-18T19:32:56"
    2. closer changed to: "dgp"
    3. resolution changed to: "Invalid"
    4. subsystem changed to: "16. Commands A-H"