Ask your own question, for FREE!
Physics 19 Online
OpenStudy (anonymous):

need help with all three boolean logic expressions

OpenStudy (anonymous):

OpenStudy (anonymous):

@terenzreignz

OpenStudy (anonymous):

i have the number 23 it says to assign it to the variable x so i did x:=23.

OpenStudy (anonymous):

my number is less than 30 so how would i create a single boolean expression that displays a 1?

OpenStudy (anonymous):

This makes little sense to me. Displays the number where? Are there more to this task? Is there a circuit that is given?

OpenStudy (anonymous):

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

OpenStudy (anonymous):

and i'm stuck on how to do it so i was just wondering if you had experience with that so you could help?

OpenStudy (anonymous):

@c0decracker are ya familiar with mathcad?

OpenStudy (anonymous):

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.

OpenStudy (anonymous):

alright i ill try that and see hat happens. Thanks for taking the time out of your day to help.

OpenStudy (anonymous):

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

OpenStudy (anonymous):

ok sorry for the late reply

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!