help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is this a numerical problem?


From: julien javaloyes
Subject: Re: Is this a numerical problem?
Date: Thu, 19 Aug 2010 11:45:53 +0100

Hi Lukas,

I have been meditating on Jaroslav comment.
Let me contribute. Consider the following 

clear

octave:26> a=4
a =  4
octave:27> a>3.99999999
ans =  1
octave:28> a>3.9999999999999
ans =  1
octave:29> a>3.9999999999999999
ans = 0

clear
a=-4

octave:45> a<-3.99999999
ans =  1
octave:46> a<-3.99999999999999
ans =  1
octave:47> a<-3.9999999999999999999
ans = 0


Best Regards,

Julien.


***************************************************
Julien Javaloyes
Optoelectronics Research Group
University of Glasgow,
Department of Electronics & Electrical Engineering,
Rankine Building, Oakfield Avenue,
Glasgow, G12 8LT, Scotland, UK. 
Email: address@hidden
Tel: +44 (0)141 330 3662, Fax: +44 (0)141 330 4907
Office: Room 305-70, 70 University Avenue
The University of Glasgow, charity number SC004401
***************************************************



reply via email to

[Prev in Thread] Current Thread [Next in Thread]