remove all declared variables - is there any function to remove all declared variables? similar to clear - 消息
WroteUsually I prefer a binary output, since can be used...
Fair point, I withdraw my proposal.
Wrote
Usually I prefer a binary output, since can be used inside if/else functions independently from localizations, future enhancements of descriptions, and string comparision issues.
I'll think about it.
Maybe the options could be:
arg == 1 --> "All cleared"
arg == 0 --> "Variables cleared"
arg == -1 --> "Functions cleared"
So it can be used easily in if/else functions.
Oscar
Wouldn't be easier to return the input number?
ClearAll(1) == 1 --> "All cleared"
ClearAll(2) == 2 --> "Variables cleared"
ClearAll(3) == 3 --> "Functions cleared"
ClearAll(x) == 0 --> "nothing done"
ClearAll(1) == 1 --> "All cleared"
ClearAll(2) == 2 --> "Variables cleared"
ClearAll(3) == 3 --> "Functions cleared"
ClearAll(x) == 0 --> "nothing done"
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1位用户喜欢此帖子
Oscar Campo 2023/10/12 07:33:00
In terms of readibility I'd prefer
ClearAll()
ClearVars()
ClearFunctions()
each returning 1 or 0.
ClearAll()
ClearVars()
ClearFunctions()
each returning 1 or 0.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
3位用户喜欢此帖子
WroteIn terms of readibility I'd prefer
ClearAll()
ClearVars()
ClearFunctions()
each returning 1 or 0.
- added ClearAllFunctions(1);
- added ClearAllVariables(1);
- removed options from ClearAll(1).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
2位用户喜欢此帖子
Can't find the update in the online gallery.
A suggested extension for Clear(): could you allow for any expression and clear all variables and functions in it (all user defined ones). In particular, a list or a matrix of variable names would be convenient.
A suggested extension for Clear(): could you allow for any expression and clear all variables and functions in it (all user defined ones). In particular, a list or a matrix of variable names would be convenient.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
WroteCan't find the update in the online gallery.
I know, the release manager it's not working as expected currently; that's why I've added a direct link (the zip containing the plugin must be downloaded and dragged into the canvas).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1位用户喜欢此帖子
Oscar Campo 2023/11/2 16:37:00
- added ListFunctions(1);
- added ListVariables(1);
- fixed preprocessing in Zeros() and Ones().
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1位用户喜欢此帖子
sergio 2023/11/3 23:27:00
- 有新帖
- 无新帖
