Skip to main content

Questions tagged [boolean-logic]

An algebraic system developed by George Boole. Uses operations such as "And", "Or" and "Not" on Binary True/False values. It may be used to accomplish complex tasks.

0 votes
0 answers
58 views

Convert undefined state (x) to high impendance state (z)

I have this set and reset test bench: module sr_tb; reg s = 0; reg r = 0; wire p; wire q; wire y; or or1(y, s, p); not not1(q, r); and ...
Muhammad Ikhwan Perwira's user avatar
-1 votes
1 answer
73 views

Is there any better way to write this piece of code? [duplicate]

I am a beginner in this, I was curious if i can write the below code more efficiently. I can't use loops or conditional statements, just logical operators. double a = Double.parseDouble(args[0]...
CowardPeasant's user avatar
1 vote
0 answers
46 views

Unity project: I'm having error regarding a code

I'm currently working in a Unity project where I need to create an AR project. Also I need to give guidance to the user. In my case, the working of multimeter is working.. but when I try to implement ...
Katherin Jose's user avatar
2 votes
1 answer
81 views

Generate as short as possible boolean formula from a given truth table [closed]

Given a truth table, maybe 3-vars, 5-vars or even 10-vars, i can write its formula in DNF or CNF, and simplify it using K-Map or Quine-McCluskey algorithm. But it is based on {NOT, AND, OR}. Now the ...
tangsongxiaoba's user avatar
0 votes
1 answer
55 views

Compare 3 CASE expressions for an overall value

I have a Postgres database with a table named servers containing these columns: compliance status operating system version reference ID - if a server is not compliant or the os is not the latest ...
Patrick Teng's user avatar
0 votes
1 answer
38 views

Invalid Qualifier - For two sets of Boolean Conditions

Hi I'm new to Excel VBA trying to tell the VBA to autocalculate should my autocalculate checkbox be selected. And if the autocalculate checkbox is selected, to check if the RectanglePerp checkbox is ...
Patrick's user avatar
0 votes
1 answer
123 views

Is there an algorithm trick to solve bracket placement permutations in boolean expressions?

The problem (original found here) is to be given a random string of t's and f's (standing for boolean true/false) separated by one of & | ^ e.g. "T&F|F^T&T^F" and write a ...
johnnywz00's user avatar
0 votes
1 answer
55 views

How to simplify these clauses into implications for an implication graph?

For a uni project I have to create an implication graph from clauses. For example, from the clause (a or b), I can determine these implication : ¬a -> b ¬b -> a but I really can't find the ...
Henri Clamageran's user avatar
0 votes
0 answers
16 views

Wrong values with Sigmoid function on Tiffiles and multi-classes - I don't generate a 3 channel output file?

I have 3 target masks (each 1 channel tifs) with values between 0 and 1. My goal is to achive an output layer with 3 channels (each is a mask) to use this later for machine learning segmentation in ...
Rica_99's user avatar
1 vote
2 answers
117 views

OR-Tools CP-SAT conditional constraint

In the problem I am trying to solve, I have a list of length n of boolean variables called x. Given an integer m where m < n, I need to define these two constraints: if LinearExpr.Sum(x[m:]) > ...
Zufra's user avatar
  • 646
0 votes
0 answers
8 views

How do you suppress "Reference isn't Valid" display when hyperlink points to worksheet named with boolean title "true" or "false"

`I have a worksheet with all the hidden sheets listed as hyperlinks. All of them work flawlessly except if the name is "true" or "false"... then the "Reference Isn't Valid&...
Scott Lippert's user avatar
0 votes
0 answers
41 views

LC-3 Assembly OR operation

Displays a newline followed by "Enter First Number (4 binary digits): " as a prompt for the user to input a four-digit binary number. Accepts user input for the first number, echoing each ...
Christian Mihalik's user avatar
0 votes
0 answers
41 views

How do I modify this .hdl chip to fulfill the question's requirements? (boolean logic / nand2tetris)

CHIP FALL { IN A, B, C, D, f0, f1; OUT E, F, G; PARTS: // Implement FZero FZero(A=A, B=B, C=C, D=D, F=zF, G=zG); // Implement FOne FOne(A=A, B=B, C=C, D=D, F=oF, G=oG); ...
Gabe Saban's user avatar
0 votes
0 answers
44 views

How the logical operators works in java? [duplicate]

I executed the below java code in IDE. the first sysout prints false. where as second sysout prints true. Some websites says because of operator precedence this occurs. System.out.println(false &&...
nullr4pt0r's user avatar
0 votes
0 answers
52 views

My TempArray always has the wrong values and therefore doesnt evaluate properly and I am confused why

I am writing a program to evaluate a boolean algebra equation such as A'B + C' Ive tried changing how the temparray is read or created and im not sure what im missing Im relativey new to this so it ...
Fanshiko's user avatar

15 30 50 per page
1
2 3 4 5
120