Quantcast
Channel: Different behavior of Clear in different versions of Mathematica - Mathematica Stack Exchange
Viewing all articles
Browse latest Browse all 3

Different behavior of Clear in different versions of Mathematica

$
0
0

Consider the following code:

list1 = {1, 2, 3};m = 17;{list1, m} // Clear

In Mathematica 13.2, this syntax with Clear works without problems. In Mathematica 13.1, it returns error:

Clear::ssym: {list1, m} is not a symbol or a string.

What is an alternative of the syntax that allows to apply Clear to all the elements of some list of variables?

I have already tried Clear[##] & @@ {list1, m} to convert it to the standard form Clear[list1,m], but it did not help.


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images