Code: Select all
for %sys {%system_list_3f}
svector equations = {%sys}.@svectornb 'The lines of the system are here
'Create a temporary system for safety reasons
system tempsys
for !x=1 to (@rows(equations))
%equation = equations(!x)
for !y=1 to (@wcount(%eq_3f_or))
'replace the wrong parts of the equations
%equation = @replace(%equation, @word(%eq_3f_or, !y), @word(%eq_3f_re, !y))
next
'append the corrected to tempsys
tempsys.append {%equation}
next
{%sys}.@svectornb = tempsys.@svectornb
nextbest regards,
