How can I use complex numbers and non-finite number in PLC Coder?
Most of the functions that I am working on are polynomial solvers for a specific case of a problem. As such, ‘inf’ and ‘nan’ are possible outputs of these functions when there is no solution. Are there any typical workarounds for projection of that sort of thing?
I’m supposing that I can detect the case and the return a value that is impossible (in my case a negative number) or something like that, but I do wonder. I have to work with complex numbers as potential solutions, so I’m counting on the PLC coder to create the complex number structure in Structured Text, etc.
I am also using a Beckhoff PLC.Most of the functions that I am working on are polynomial solvers for a specific case of a problem. As such, ‘inf’ and ‘nan’ are possible outputs of these functions when there is no solution. Are there any typical workarounds for projection of that sort of thing?
I’m supposing that I can detect the case and the return a value that is impossible (in my case a negative number) or something like that, but I do wonder. I have to work with complex numbers as potential solutions, so I’m counting on the PLC coder to create the complex number structure in Structured Text, etc.
I am also using a Beckhoff PLC. Most of the functions that I am working on are polynomial solvers for a specific case of a problem. As such, ‘inf’ and ‘nan’ are possible outputs of these functions when there is no solution. Are there any typical workarounds for projection of that sort of thing?
I’m supposing that I can detect the case and the return a value that is impossible (in my case a negative number) or something like that, but I do wonder. I have to work with complex numbers as potential solutions, so I’m counting on the PLC coder to create the complex number structure in Structured Text, etc.
I am also using a Beckhoff PLC. nonfinitenumber, infinity, inf, nan, beckhoff, plc, complexnumbers, polynomialsolutions MATLAB Answers — New Questions