1 страниц (6 вхождений)
renaming parameter - revising a parameter's name in whole page - Сообщения
#1 Опубликовано: 14.12.2018 09:14:37
Hi! I'm new here.
I've defined a parameter n at the beginning of the file and now I have decided to rename it. The problem here is there are many parameters that are expecting the n to be renamed as well in their own formulas. It will be tedious to revise them one-by-one. I wonder if there is a way to rename every n parameter easily. Thank you for your answers in advance.
I've defined a parameter n at the beginning of the file and now I have decided to rename it. The problem here is there are many parameters that are expecting the n to be renamed as well in their own formulas. It will be tedious to revise them one-by-one. I wonder if there is a way to rename every n parameter easily. Thank you for your answers in advance.
#2 Опубликовано: 14.12.2018 10:21:58
WroteI've defined a parameter n at the beginning of the file and now I have decided to rename it. The problem here is there are many parameters that are expecting the n to be renamed as well in their own formulas. It will be tedious to revise them one-by-one. I wonder if there is a way to rename every n parameter easily. Thank you for your answers in advance.
Parameters in formulas are just wild arguments. You just assign at the point of use.
Welcome to Smath Community ... Jean
Stat Treasury EDU.sm (159 КиБ) скачан 41 раз(а).
#3 Опубликовано: 14.12.2018 10:32:15
You can edit the .sm file with a text editor and try some smart search/replace. Probably you need regular expressions as otherwise e.g. search string "n" will have lots of spurious matches.
Within SMath, there is at least a search function (no replace yet).
Within a particular region, press F8 when cursor is on a name in order to edit all instances of that name in the given region.
Within SMath, there is at least a search function (no replace yet).
Within a particular region, press F8 when cursor is on a name in order to edit all instances of that name in the given region.
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#4 Опубликовано: 14.12.2018 10:58:07
In a region, you can use the F8 key an you'll be able to rename all local variables/functions at once.
Globally, you can do it with the Text Region Utilities plugin.
![2018-01-20 08_36_27-SMath Studio - [Page1_].png](/ru-RU/file/K5qcmY/2018-01-20-08_36_27-SMath-Studio---_Page1___png)
![2018-01-20 08_36_54-SMath Studio - [Page1_].png](/ru-RU/file/U6xvwH/2018-01-20-08_36_54-SMath-Studio---_Page1___png)
Globally, you can do it with the Text Region Utilities plugin.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
sergio 14.12.2018 11:09:00
#5 Опубликовано: 14.12.2018 11:54:42
Thank you all for smart solutions.
#6 Опубликовано: 14.12.2018 12:48:31
WroteIn a region, you can use the F8 key an you'll be able to rename all local variables/functions at once.
F8 key does not support Some instances: example in multiple plot argument.
In that case you have to rename all plot arguments.
1 страниц (6 вхождений)
-
Новые сообщения
-
Нет новых сообщений