Quantcast
Channel: PTC Community : Discussion List - PTC Mathcad
Viewing all articles
Browse latest Browse all 2936

Error Operator Help - If/Then statements

$
0
0

Hello,

 

I seem to be having an issue regarding if/then statements in regards to Mathcad not recognizing my the initial "if" statement due to an error in my "else if" statement.

 

When x does not equal 0, I get an answer.

1.JPG

However, when x does equal 0, I get "can't divide by zero" error, and the program does not recognize that the first statement is true an should report the respective value.

2.JPG

Is there anyway to get around the zero in the denominator error? I know it's probably an easy fix, but I can't figure it out. Anyone have any ideas?

 

Thanks,

C


Viewing all articles
Browse latest Browse all 2936

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>