Converting English to Boolean Algebra

In summary, the irrigation system should open the sprinkler's water valve when the system is enabled and neither raining nor freezing temperatures are detected. This can be represented by the equation Z = A(B'+C'), using Demorgan's law to simplify the statement.
  • #1
Nyasha
127
0

Homework Statement



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

Homework Equations



[tex]S\rightarrow[/tex] system enabled

[tex]R'\rightarrow[/tex] not raining

[tex]F'\rightarrow[/tex] freezing temperatures not detected

The Attempt at a Solution



F=S+R'F'

F=S+(RF)'

Guys l do not know if my Boolean equation is correct.
 
Last edited:
Physics news on Phys.org
  • #2
What are V and N?

Note there are 3 conditions (S, R', and F'), all of which must be true.
 
  • #3
Redbelly98 said:
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 ?
 
  • #4
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
 
  • #5
LeeroyJenkins said:
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') ?
 
Last edited:
  • #6
Nyasha said:
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'.
 
  • #7
Redbelly98 said:
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
 
  • #8
"neither raining nor freezing" means:
(Not raining) AND (Not freezing)​
which is equivalent to
Not (raining or freezing)​
 
  • #9
Redbelly98 said:
"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
 

1. What is Boolean Algebra?

Boolean Algebra is a mathematical system based on logic and set theory. It is used to represent and manipulate logical statements and is often used in computer science and engineering.

2. How is English converted into Boolean Algebra?

To convert English to Boolean Algebra, we use a process called symbolic logic, where words and phrases in English are replaced with symbols and operators in Boolean Algebra. These symbols and operators represent logical relationships between statements.

3. What are the common operators used in Boolean Algebra?

The most commonly used operators in Boolean Algebra are AND, OR, and NOT. The AND operator represents the logical conjunction of two statements, the OR operator represents the logical disjunction, and the NOT operator represents the logical negation of a statement.

4. How do I convert a sentence into Boolean Algebra?

To convert a sentence into Boolean Algebra, we first identify the logical operators and their corresponding symbols. Then, we replace the words and phrases in the sentence with these symbols and operators, keeping in mind the logical relationships between the statements.

5. What are some common mistakes to avoid when converting English to Boolean Algebra?

Some common mistakes to avoid when converting English to Boolean Algebra include using incorrect symbols for operators, not considering the correct order of operations, and not understanding the logical relationships between statements. It is important to carefully translate each word and phrase in the English sentence to its corresponding symbol in Boolean Algebra to ensure an accurate conversion.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
2
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
6
Views
16K
  • Mechanical Engineering
Replies
8
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
2K
  • Introductory Physics Homework Help
Replies
1
Views
794
  • Math Proof Training and Practice
3
Replies
102
Views
7K
  • Biology and Chemistry Homework Help
Replies
4
Views
20K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
3K
  • Introductory Physics Homework Help
Replies
2
Views
3K
Replies
16
Views
2K
Back
Top