Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Division by Zero (Error Handling)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg66950] Division by Zero (Error Handling)
  • From: Bruce Colletti <vze269bv at verizon.net>
  • Date: Mon, 5 Jun 2006 03:47:51 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

When dividing (elementwise) two matrices of similar dimension (e.g., A/B), zero-elements in B cause a "division by zero" error message.  In such a case, regardless of numerator, I want the pair's ratio to be zero.

Without building a module that defines modified matrix division, how can I establish that whenever (throughout the notebook) division by zero occurs (regardless of numerator), that the result can be zero?

Thanks.

Bruce


  • Prev by Date: How to generate sections, subsections, etc. automatically?
  • Next by Date: Function argument
  • Previous by thread: Re: How to generate sections, subsections, etc. automatically?
  • Next by thread: Re: Division by Zero (Error Handling)