09-30-2023, 08:04 PM
Hello,
I've been playing around in CAS and ran into this:
rowSwap([[1,2],[3,4]],1,2)
→ [[3,4],[1,2]]
SWAPROW([[1,2],[3,4]],1,2)
→ [[3,4],[1,2]]
Now let's introduce a variable
rowSwap([[1,2],[3,x]],1,2)
→ [[3,x],[1,2]]
So far so good, but then
SWAPROW([[1,2],[3,x]],1,2)
→ "Error: Invalid input"
I thought that rowSwap is just an alias of SWAPROW (or the other way around), but that doesn't seem to be the case.
Is this expected behavior? Is SWAPROW supposed to give me this error message in this case?
I've been playing around in CAS and ran into this:
rowSwap([[1,2],[3,4]],1,2)
→ [[3,4],[1,2]]
SWAPROW([[1,2],[3,4]],1,2)
→ [[3,4],[1,2]]
Now let's introduce a variable
rowSwap([[1,2],[3,x]],1,2)
→ [[3,x],[1,2]]
So far so good, but then
SWAPROW([[1,2],[3,x]],1,2)
→ "Error: Invalid input"
I thought that rowSwap is just an alias of SWAPROW (or the other way around), but that doesn't seem to be the case.
Is this expected behavior? Is SWAPROW supposed to give me this error message in this case?