Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

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 <jmsachs@gmail.com> 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.
> http://www.mathworks.com/support/solutions/en/data/1-F5WMK3/index.html?product=ML&solution=1-F5WMK3


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]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.