MathGroup Archive 2006

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

Search the Archive

Re: Division by Zero (Error Handling)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg66975] Re: Division by Zero (Error Handling)
  • From: "Jeremy Watts" <jwatts1970 at hotmail.com>
  • Date: Tue, 6 Jun 2006 06:26:58 -0400 (EDT)
  • References: <e60nu2$g4p$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

"Bruce Colletti" <vze269bv at verizon.net> wrote in message
news:e60nu2$g4p$1 at smc.vnet.net...
> 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?

assumedly with a simple 'if...then..else' statement, or am i missing
something?

>
> Thanks.
>
> Bruce
>


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