The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Simulink evaluation of (a<b) ? (a*a/b) : b
Replies: 6   Last Post: Apr 17, 2012 4:35 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Jason S

Posts: 57
Registered: 2/23/05
Re: Simulink evaluation of (a<b) ? (a*a/b) : b
Posted: Apr 17, 2012 4:35 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On Tuesday, April 17, 2012 3:58:14 PM UTC-4, ke wrote:
> Jason S <> wrote in message <29625396.87.1334687997025.JavaMail.geo-discussion-forums@ynim12>...
> > without having a divide-by-zero error at b=0
> The following link gives a general approach for avoiding a divide by zero answer. Of course, if you need Inf for the case b=0, it will give the wrong answer.

thank you, that sounds like a promising solution.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.