Skip to main content
1-Visitor
March 21, 2013
Solved

Help me please, Divided by zero

  • March 21, 2013
  • 4 replies
  • 2717 views

Error message "This expression is divided by zero.It cannot be computed"

Thanks very much

Regards,

Kitkaseam

Best answer by Werner_E

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.

4 replies

Werner_E
25-Diamond I
March 21, 2013

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.

kkhaikrut1-VisitorAuthor
1-Visitor
March 21, 2013

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

Werner_E
Werner_E25-Diamond IAnswer
25-Diamond I
March 21, 2013

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.