Skip to main content
Filter by
Sorted by
Tagged with
4 votes
2 answers
116 views

I need to model a system of several boolean expressions in 512 variables. Due to the number of variables, I found the expressions are way too large to handle normally, which is why I need a way to ...
Noemi's user avatar
  • 41
5 votes
2 answers
189 views

This statement mimics a ternary operator in the Lua programing language: local result = condition and true_value or false_value But how does it work? Why does it give true_value if the condition is ...
0747's user avatar
  • 55
4 votes
2 answers
500 views

How can I check if all values of a polars DataFrame, containing only boolean columns, are True? Example df: df = pl.DataFrame({"a": [True, True, None], "b": [...
mouwsy's user avatar
  • 2,127
0 votes
1 answer
45 views

I am trying to set up an Excel conditional formula with both AND and OR criteria. However, the last 2 criteria OR(Table1[Col5]=$J$4,Table1[Col5]=$K$4) and OR(Table1[Col6]=Pivot!$J$5,Table1[Col6]=Pivot!...
sjedi's user avatar
  • 97
0 votes
0 answers
58 views

I am developing an Azure DevOps custom task. Part of the setting of the inputs is a VisibleRule which can contain a condition which will determine if the input will be visible, if the condition is ...
CodeMonkey's user avatar
  • 12.6k
9 votes
0 answers
321 views

I am given a Boolean expression of arbitrary depth, like (A or (B and (C or (~D and E) or F) or (G and H))). There can be any number of terms at each level. I want to limit the depth of the ...
Matt Timmermans's user avatar
0 votes
1 answer
67 views

I am making a Charity App project, and I am struggling to figure out how to have an anonymous button before someone submits their donation. I want the anonymous option to display before someone ...
beansaregood's user avatar
0 votes
6 answers
185 views

In the following (paraphrased) code, I am checking various conditions, updating them, and scheduling a single notification regardless of the number of changed conditions. If none of the conditions are ...
Roger's user avatar
  • 428
1 vote
1 answer
160 views

C++ has 'accumulator' operations for arithmetic (+,-,*,/) , and for bitwise operations AND and OR - but not for logical operations. Now, in our code, we sometimes need to conjunct many boolean values -...
einpoklum's user avatar
  • 137k
1 vote
2 answers
285 views

I'm doing some simplifications for a circuit and I ended up getting the following expression: A.C'.D' + A.B'.C' + B.C.D' + B'.C.D + A'.B'.D' which translates to the truth table where 0, 2, 3, 6, 8, 9, ...
Waffle_Runian's user avatar
-1 votes
1 answer
95 views

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
1 answer
152 views

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
49 views

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
104 views

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
127 views

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
60 views

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
0 votes
1 answer
48 views

I am trying to create a function that returns a different greeting depending on two variables: the country and time provided. If time is greater than or equal to 0 but less than 12 it will be morning. ...
Umar Hussain's user avatar
0 votes
0 answers
85 views

I have some pseudocode that is in the form: patch a: if b == "foo1" then a = "No" if c == "foo2" then if d == "foo3" || d == "foo4&...
mohammed ali's user avatar
1 vote
1 answer
322 views

I am working on a project that will take two 4-bit numbers between 0-9 and add/subtract them to be displayed in a seven segment display. Here is a big picture idea of what I am trying to create My ...
Andrew Desen's user avatar
-3 votes
1 answer
53 views

Which of the following will be fully evaluated that first option will be checked inclusive the second option, if the following variables represent the following boolean values a = True b = False ...
Kondwani Paul Kufeyani's user avatar
0 votes
0 answers
81 views

I was debugging a function and I have encountered a misterious thing: Given a PySpark dataframe with one column (name_id) I build another (is_number) one using a lambda function to see if name_id is a ...
Python Puzzle's user avatar
0 votes
1 answer
426 views

I recently downloaded Multisim to give it a try. I used it many years ago and recently have a need to design some circuits so it was my first go-to. However, I am run into issues where the ...
Dominick's user avatar
  • 496
2 votes
1 answer
106 views

The code below provides for testing the satisfiability of a 2-SAT boolean formula (a formula containing just clauses of the form X v Y). Although other algorithms exist (strongly connected components ...
scobiem's user avatar
  • 21
-2 votes
2 answers
63 views

I was wondering if those familiar with codingbat's problems might be able to help me with understanding the differences between these two solutions and why one doesn't work. The problem: Given a ...
AzureBoredom's user avatar
2 votes
1 answer
322 views

I have 2 switches that correspond to 2 lights and I would like to control them with logic gates. My problem starts when a switch is ON and the second one goes into ON as well. In this condition, I ...
Thanasis Valto Kourpetis's user avatar

1
2 3 4 5
39