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

return or not return? Is it a bug? Explanation needed!

$
0
0

Can anybody explain why we get different result for the boolean comparison dependent on whether we use the return statement or not?

IMHO the second expression using the return (which I consider good style) is yielding a wrong result.

return_or_not.png

EDIT: A symbolic eval would not even simplify the result to a number (a second symbolic or numeric eval afterwards will do) - its weird!!

return_or_not2.png

 

EDIT2: The very same behaviour is shown in Prime 3, too


Viewing all articles
Browse latest Browse all 2936

Trending Articles



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