Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Error message "This expression is divided by zero.It cannot be computed"
Thanks very much
Regards,
Kitkaseam
Solved! Go to Solution.
Still not sure what kind of help you need. See attached filed.
But I think for the basics of Mathcad you should go into the documentation, look at the program help and you may find some useful tutorials on the PTC website.
What kind of help do you expect?
The definition of qd cycles through j (0..5) and tries to evaluate for every j. Beginning from j=1 both c[j and b[j are zero, so the difference of both is zero, too, and therefore is no valid denominator.
BTW, I don't think you wantqb etc. be nested vectors, so you should omit the index j in the definition.
But even if you omit the index j in the expression which throws the error it will fail. There is no such thing as a vector division an dtherefore Mathcad will treat an expression where a fraction has a vector as nominator and denominator as if it woul be vectorized - it will devide each element of the one vector to the corresponding element of the other. So the vector in te denominator would not be allowed to contain a single zero.
Werner Exinger wrote:
What kind of help do you expect?
The definition of qd cycles through j (0..5) and tries to evaluate for every j. Beginning from j=1 both c[j and b[j are zero, so the difference of both is zero, too, and therefore is no valid denominator.
BTW, I don't think you wantqb etc. be nested vectors, so you should omit the index j in the definition.
But even if you omit the index j in the expression which throws the error it will fail. There is no such thing as a vector division an dtherefore Mathcad will treat an expression where a fraction has a vector as nominator and denominator as if it woul be vectorized - it will devide each element of the one vector to the corresponding element of the other. So the vector in te denominator would not be allowed to contain a single zero.
Can you explain in work sheet,Please?
Thank you very much
Regards,
Kitkaseam
Still not sure what kind of help you need. See attached filed.
But I think for the basics of Mathcad you should go into the documentation, look at the program help and you may find some useful tutorials on the PTC website.
Werner Exinger wrote:
Still not sure what kind of help you need. See attached filed.
But I think for the basics of Mathcad you should go into the documentation, look at the program help and you may find some useful tutorials on the PTC website.
Thank you very much so much for suggests and work sheet
Regards,
Kitkaseam