Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Why is infs equals to each other in matlab?

Subject: Why is infs equals to each other in matlab?

From: Yuheng

Date: 12 Mar, 2012 10:58:11

Message: 1 of 3

>> inf == inf

ans =

     1

I think, mathematically, the answer should be false.

Subject: Why is infs equals to each other in matlab?

From: Bruno Luong

Date: 12 Mar, 2012 11:56:12

Message: 2 of 3

"Yuheng" wrote in message <jjkks3$ssj$1@newscl01ah.mathworks.com>...
> >> inf == inf
>
> ans =
>
> 1
>
> I think, mathematically, the answer should be false.

The comparison result follows IEEE/Intel standard.

Bruno

Subject: Why is infs equals to each other in matlab?

From: Yuheng

Date: 12 Mar, 2012 13:11:11

Message: 3 of 3

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <jjko8s$9ol$1@newscl01ah.mathworks.com>...
> "Yuheng" wrote in message <jjkks3$ssj$1@newscl01ah.mathworks.com>...
> > >> inf == inf
> >
> > ans =
> >
> > 1
> >
> > I think, mathematically, the answer should be false.
>
> The comparison result follows IEEE/Intel standard.
>
> Bruno

Get it, thank you!

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us