Regexp
Brought to you by:
albertoeaf
Add support in the file syntax to build formulas and error formulas for groups of variables.
For instance, if you have :
R22kV, ...
R24kV, ...
R26kV, ...
...
N22, ...
N24, ...
N26, ...
...
t22, ...
t24, ...
t26, ...
...
and all N's are have the same type of formula,
instead of doing manually:
N22 \<R22kV*t22> +-\<sqrt(N22)>, ...
N24 \<R24kV*t24> +-\<sqrt(N24)>, ...
...
you should be able to define a macro expansion:
N# \<R#kV * t#> +-\<t#>
that preparses the file and adds the proper formulas to each N
Anonymous