PDA

View Full Version : Converting English to Boolean Algebra


Nyasha
Mar31-09, 04:38 PM
1. The problem statement, all variables and given/known data

An irrigation system should open sprinkler's water valve when if the system is enabled and neither raining nor freezing temperatures are detected.



2. Relevant equations

S\rightarrow system enabled

R'\rightarrow not raining

F'\rightarrow freezing temperatures not detected




3. The attempt at a solution

F=S+R'F'

F=S+(RF)'

Guys l do not know if my Boolean equation is correct.

Redbelly98
Mar31-09, 08:41 PM
What are V and N?

Note there are 3 conditions (S, R', and F'), all of which must be true.

Nyasha
Mar31-09, 09:01 PM
What are V and N?

Note there are 3 conditions (S, R', and F'), all of which must be true.


It was actually supposed to be :


F=S+R'F'

F=S+(RF)'


So is this the correct equation ?

LeeroyJenkins
Mar31-09, 10:22 PM
An irrigation system should open sprinkler's water valve = Z
when if
the system is enabled = A
and
neither raining = B'
nor freezing temperatures are detected. (same as or not freeze...) = C'
Z = AB' + C'
as defined above the and is multiplication, the or is addition
if it says not, neither or something like that its the compliment

Nyasha
Mar31-09, 11:33 PM
An irrigation system should open sprinkler's water valve = Z
when if
the system is enabled = A
and
neither raining = B'
nor freezing temperatures are detected. (same as or not freeze...) = C'
Z = AB' + C'
as defined above the and is multiplication, the or is addition
if it says not, neither or something like that its the compliment

So does "nor" mean that l should add the addition operation ? Would this be correct:

Z=A(B'+C') ?

Redbelly98
Apr1-09, 08:33 AM
So does "nor" mean that l should add the addition operation ? Would this be correct:

Z=A(B'+C') ?

I'm not sure if "+" means "and" or "or", so I'll just say it should be all and's, and no or's, in the statement.

I.e., there are 3 conditions A, B' and C', all of which must be true: A and B' and C'.

Nyasha
Apr1-09, 11:34 AM
I'm not sure if "+" means "and" or "or", so I'll just say it should be all and's, and no or's, in the statement.

I.e., there are 3 conditions A, B' and C', all of which must be true: A and B' and C'.



Isn't the sprinkler's water valve supposed to open when system enabled and not raining or when the system is enabled and not freezing temperatures ?

F=A(B'+C')

F=AB'+AC'

"+" means or

"*" means and

' means NOT

Redbelly98
Apr1-09, 01:37 PM
"neither raining nor freezing" means:
(Not raining) AND (Not freezing)
which is equivalent to
Not (raining or freezing)

Nyasha
Apr1-09, 05:14 PM
"neither raining nor freezing" means:
(Not raining) AND (Not freezing)
which is equivalent to
Not (raining or freezing)


I know understand. You used Demorgan's law


B'C'=(B+C)'


Thanks very much for the help