need help with all three boolean logic expressions
@terenzreignz
i have the number 23 it says to assign it to the variable x so i did x:=23.
my number is less than 30 so how would i create a single boolean expression that displays a 1?
This makes little sense to me. Displays the number where? Are there more to this task? Is there a circuit that is given?
i'm not for sure if you know how to use mathcad but i am using mathcad and this program does all the problem solving for me. All i have to do is set it up so that it makes sense
and i'm stuck on how to do it so i was just wondering if you had experience with that so you could help?
@c0decracker are ya familiar with mathcad?
Sorry @Ash90 the last time I used it it was like 14 years ago, I don't remember a thing about it. At the high level though, 30 is binary 11110. Everything that's above 30 are either all first 5 bits on -- 11111 have 6ths bit on i.e 100000 and up. So compare you variable X to either have 6th bit on OR have all first 5 bits on. if one of these conditions are true, then your number is more then 30. If both of these false then your number is less then 30.
alright i ill try that and see hat happens. Thanks for taking the time out of your day to help.
On the other hand if you have < or > operators available to you (i just don't know whether you logic for pure binary or actually logical solutino) you can just use those. then it's very simple: f(x) = 1 + (x > 30) & 1
ok sorry for the late reply
Join our real-time social learning platform and learn together with your friends!