Good and easy mathematical logic book for computer science

Click For Summary
Mathematical logic is indeed related to computer science, though its application in programming is often limited to basic logical operators. Key operators include NOT (negation), AND (conjunction), OR (disjunction), and XOR (exclusive or), which are implemented differently across programming languages. For instance, C uses symbols like ~ for NOT and && for AND, while Fortran employs .NOT. and .AND. for similar functions. A recommendation for an accessible resource on mathematical logic in computer science is provided, aimed at those who may struggle with the subject due to language barriers or lack of formal education in mathematics.
Byeonggon Lee
Messages
14
Reaction score
2
Hello I recently noticed that mathematical logic is related to computer science.
I haven't studied math in university yet I'm not good at math and Since I'm not a native English speaker some English is hard to me.
Is there any good and easy book which describes mathematical logic used in computer science?
 
Technology news on Phys.org
Very little mathematical logic is used in computer science, in my experience. The logical operators that are most common are these:
Not - logical negation of a boolean expression
And - expr1 "and" expr2 is true if and only if both subexpressions are true
Or - expr1 "or" expr2 is true if expr1 is true, or if expr2 is true, or if both are true
Xor (AKA exclusive or) - expr1 "xor" expr2 is true if the two subexpressions have opposite truth values

Most programming languages have these concepts, but they use different symbols. For example, C and the languages based on C use ~ for NOT, && for logical AND, || for logical OR, and ^ for exclusive OR. Newer versions of Fortran use .NOT., .AND., .OR. I don't believe Fortran has an exclusive or operator, per se, but its .NEQV. operator works similarly.
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
Replies
2
Views
1K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
29
Views
5K
  • · Replies 25 ·
Replies
25
Views
679
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 43 ·
2
Replies
43
Views
7K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 20 ·
Replies
20
Views
2K