Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Hi all. I have a model that calculates heat transfer coefficient. It is supposed to and does most of the time, return a numerical value (an integer) for the heat transfer coefficient. However, sometimes it will return a complex number, e.g. 20 + 5i, instead of an integer. What does i stand for in Mathcad and how can I get the model to return an integer?
Solved! Go to Solution.
Delali Dei wrote:
Hi all. I have a model that calculates heat transfer coefficient. It is supposed to and does most of the time, return a numerical value (an integer) for the heat transfer coefficient. However, sometimes it will return a complex number, e.g. 20 + 5i, instead of an integer. What does i stand for in Mathcad and how can I get the model to return an integer?
As you have surmised, i is the square root of -1, your result is complex.
Two questions:
Hello!
Please, attach your Mathcad worksheet.
Sorry I can't attach the Mathcad worksheet as it contains confidential information but is there any information I can give you which will help?
Need a screenshot showing the problem.
Delali Dei wrote:
Hi all. I have a model that calculates heat transfer coefficient. It is supposed to and does most of the time, return a numerical value (an integer) for the heat transfer coefficient. However, sometimes it will return a complex number, e.g. 20 + 5i, instead of an integer. What does i stand for in Mathcad and how can I get the model to return an integer?
As you have surmised, i is the square root of -1, your result is complex.
Two questions:
Delali Dei wrote:
Hi all. I have a model that calculates heat transfer coefficient. It is supposed to and does most of the time, return a numerical value (an integer) for the heat transfer coefficient.
Why integer!?
It is a real value - see http://en.wikipedia.org/wiki/Heat_transfer_coefficient
I agree it should be real. But it shouldn't have to be an integer!
Fred Kohlhepp wrote:
I agree it should be real. But it shouldn't have to be an integer!
Somtime it can by integer, by the rounding for example
In Mathcad MM we can switch off the calculation with complex numbers.
In this case we get not a complex number but an erroe message and can trace this error
I've found the source of the problem thanks