help-octave
[Top][All Lists]
Advanced

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

Re: Approximate equality in Octave


From: James Sherman Jr.
Subject: Re: Approximate equality in Octave
Date: Wed, 22 Apr 2020 19:45:59 -0400



On Wed, Apr 22, 2020 at 6:21 PM GK19 <address@hidden> wrote:
So i have two values
A = 1.69 and B = 1.8
A = 2.1 and B = 2.4
How do I show it that they are approximately equal without using round
are there any relational operators that I can use?



--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



Hi GK19,

Depends on what your definition of approximately equal is.  All the usual relational operators are available in Octave( <, >, <=, >=).  After you have your definition of what approximate means, then you can use those to code that in Octave.

To be honest, this sounds a lot like a homework problem.

James Sherman

reply via email to

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