remove all declared variables

remove all declared variables - is there any function to remove all declared variables? similar to clear - Poruke

#21 Objavljeno: 11. 10. 2023. 16:06:47
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Wrote

Usually I prefer a binary output, since can be used...


Fair point, I withdraw my proposal.

#22 Objavljeno: 11. 10. 2023. 19:50:26
Oscar Campo

Oscar Campo

135 svidjanja u 309 postova.

Grupa: Moderator

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
#23 Objavljeno: 12. 10. 2023. 05:53:23
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: Moderator

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"
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 korisnika je svidelo ovu objavu
Oscar Campo 12. 10. 2023. 07:33:00
#24 Objavljeno: 12. 10. 2023. 08:33:54
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

algo style ... nothing to Clear(,) in there.

Stat Hypergeometric NATIVE.sm (26,88 KiB) preuzeto 1640 put(ova).
#25 Objavljeno: 12. 10. 2023. 10:42:18
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

In terms of readibility I'd prefer

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 korisnika je svidelo ovu objavu
Oscar Campo 12. 10. 2023. 23:31:00, ioan92 12. 10. 2023. 14:17:00, sergio 13. 10. 2023. 20:41:00
#26 Objavljeno: 2. 11. 2023. 00:08:07
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: Moderator

Wrote

In terms of readibility I'd prefer

ClearAll()
ClearVars()
ClearFunctions()

each returning 1 or 0.



updated

  • 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 korisnika je svidelo ovu objavu
Alvaro 2. 11. 2023. 00:23:00, Martin Kraska 2. 11. 2023. 04:36:00
#27 Objavljeno: 2. 11. 2023. 04:38:51
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

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.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#28 Objavljeno: 2. 11. 2023. 16:34:30
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: Moderator

Wrote

Can'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 korisnika je svidelo ovu objavu
Oscar Campo 2. 11. 2023. 16:37:00
#29 Objavljeno: 3. 11. 2023. 19:05:04
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: Moderator

updated (if the extensions gallery doesn't works, download the zip and drag&drop it into the canvas)

  • 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 korisnika je svidelo ovu objavu
sergio 3. 11. 2023. 23:27:00
#30 Objavljeno: 10. 12. 2023. 05:15:39
Eduardo Palma Zambrano

Eduardo Palma Zambrano

0 svidjanja u 7 postova.

Grupa: User

Wrote

CustomFunctions plugin

ClearAll.png

direct link: (removed)



Gracias
  • Novi postovi
  • Nema novih postova