Artifacts Associated With Ticket 218243ffffffffff
Ticket change [c869f51a5a] (rid 122098) by nobody on 2000-10-26 00:54:59:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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 - foundin initialized to: "obsolete: 8.2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "expr operator precedence"
- type initialized to: "Bug"
Ticket change [a3b4cff537] (rid 110087) by welch on 2000-10-26 08:17:55:
- closedate changed to: "2000-10-26T01:17:55"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [e768948068] (rid 104449) by dgp on 2001-04-19 02:32:56:
- closedate changed to: "2001-04-18T19:32:56"
- closer changed to: "dgp"
- resolution changed to: "Invalid"
- subsystem changed to: "16. Commands A-H"