For a symbolic maths problem;
FX=myfun(formula, given_matrix,my_values,my_variables); X1=[3 -1 0 5 0];return=subs(FX,my_variables,X1);
The problem is that my FX might have X1(3) or X1(5) or any possible combination in denominator causing "Devide by ZERO".
QUESTION: Though it is easy to avoid it mathematically, but in the programming, this type of situation may arise in any loop as FX and X1 are updated in every loop. IS THERE A WAY TO IDENTIFY NUMERATORS AND DENOMINATORS OF SUCH INTERMEDIATE FUNCTIONS?? Thanks a lot for reading.
Best Answer