Skip to main content
1-Visitor
November 14, 2011
Question

Divide by zero only in a range variable

  • November 14, 2011
  • 1 reply
  • 5442 views

I'm attaching a Prime 1.0 worksheet that demonstrates a problem I'm having. I'm defining a function with a program which tests for a zero input. This works fine when you invoke the function with a constant or a simple variable of zero, but not when the argument is a range variable including a zero value. Am I doing something wrong, or is there a workaround to this?

Thanks,

Gerrit

1 reply

1-Visitor
November 14, 2011

Have a look at the attached if you can open it. There does seem to be a problem when units are involved.

Mike

1-Visitor
November 14, 2011

Just incase you can't open the above file I save included an image for you to follow. Sorry, my Mathcad Prime 1.0 is off at the moment.

Clipboard01.jpg

Mike

1-Visitor
November 14, 2011

If I vectorize my call to H(f) like you've done it works fine too, even with units. Thank you, Mike! Are you with PTC? Can I consider that this little insect has been reported?