Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 444 results for
logical-operators
- Page 1
Re: 💻 What’s the First App You Install on a Fresh Windows Machine?
Hardware and Software
Microsoft Windows
15 Hours Ago
by Reverend Jim
… you type, and you can create complex search terms with
logical
operators
, as opposed to the lame wildcarding Windows offers. I should…
Logical operators to perform Operations in SAP HANA
Programming
Databases
6 Years Ago
by karansingh
I am facing issues using
logical
operators
to perform operations in SAP HANA. Can anyone help me?
Re: difference between bitwise and logical operators
Programming
Software Development
12 Years Ago
by CPT
someone correct me if I'm wrong: both bitwise and
logical
operators
are the representation of the boolean function with the same …, 100|1 = 101 and so on), where as the
logical
operators
operate on
logical
atoms( the whole atom is considered as a bit…
Diff b/w logical operators and bitwise operators...?
Programming
Software Development
17 Years Ago
by web_master
i know how we can use
logical
operators
.....but how do we use bitwise
operators
.....
Re: difference between bitwise and logical operators
Programming
Software Development
12 Years Ago
by GeekTool
…;>hello everyone, Whats the difference when your using bitwise
operators
and
logical
operators
in a conditional statements? Bitwise Example: if ((val==1…("%d\n",val); else printf("False");
Logical
Example: if ((val==1)||(val==2)) printf("%d\n…
Shift-Add vs Multiplication // Bit-Wise vs. Logical Operators
Programming
Software Development
14 Years Ago
by ceatkin2
… mates the run time difference in using bit-wise and
logical
operators
. I chose to do this by writing a simple (I… console, and multiplies them two separate times, one using the
logical
multiply (a * b) and one using a shift-add algorithm…
Re: difference between bitwise and logical operators
Programming
Software Development
12 Years Ago
by JamesCherrill
^ basically right, except that nowhere does Java define any mapping between 0 and 1s vs the boolean values false/true. Bitwize
operators
work on each bit of an int value, the
logical
operators
work on individual boolean true/false values, but there's no connection between these two versions.
difference between bitwise and logical operators
Programming
Software Development
12 Years Ago
by GeekTool
>> I googled the dinference between bitwise and
logical
operators
, but i could not understand exactl what it is. Can you simply explain ?
Re: Bitwise and Logical Operators
Programming
Software Development
12 Years Ago
by TrustyTony
… is allways increased by one. But here with shortcutting kind
logical
operators
, the value of age would only happen if birthday is…
Re: Bitwise and Logical Operators
Programming
Software Development
12 Years Ago
by GeekTool
… is allways increased by one. But here with shortcutting kind
logical
operators
, the value of age would only happen if birthday is…
Logical Operator Confusion
Programming
Software Development
11 Years Ago
by DeadH34d
… to me. That is, until I reached a section on
Logical
Operators
. I don't completely understand what I just typed in… were returned. Here's what I read: Python provides three
logical
operators
: and, or, and not. Both and and or use short…
Logical Operator help
Programming
Software Development
19 Years Ago
by asatrujesus
Im reading about
logical
operators
(yes noob here) and Im sort of confused as to …
Re: Logical Operator help
Programming
Software Development
19 Years Ago
by freesoft_2000
Hi everyone, See the below two links [url]http://www.cafeaulait.org/course/week2/45.html[/url] [url]http://www.sap-img.com/java/java-boolean-
logical
-
operators
.htm[/url] I hoped that helped you Yours Sincerely Richard West
Re: Diff b/w logical operators and bitwise operators...?
Programming
Software Development
17 Years Ago
by Prabakar
Search the forum first, many threads are there on bitwise
operators
Re: difference between bitwise and logical operators
Programming
Software Development
12 Years Ago
by NormR1
Where are the definitions of the two types of
operators
you were asking about?
Re: difference between bitwise and logical operators
Programming
Software Development
12 Years Ago
by NormR1
Can you post what you have found and your questions about what you don't understand? The
logical
operator returns a true/false value like == or < bitwise changes the value of a variable like a + or * operator
Re: Logical operators to perform Operations in SAP HANA
Programming
Databases
6 Years Ago
by rproffitt
That's an overly broad question. But if it was true, tell me without spamming what courses you completed on this product. It's strange to be thrown into SAP without training so let's here more about what happened to land you this job.
Re: logical operators applied to a double
Programming
Mobile Development
9 Years Ago
by deceptikon
…. One thing to note is that these are not comparable
operators
. `And` and `Or` are not short circuiting in VB, yet…
Beginner's Tutorial on Operators
Programming
Software Development
11 Years Ago
by Learner010
…Operator Relational Operator
Logical
Operator Bitwise Operator Miscellaneous Operator(i added Assignment
Operators
in this categeory) **Arithmatic
operators
:-** There are …gt;=B FALSE A==B FALSE A!=B TRUE **
Logical
Operators
:-**
Logical
operator are used to combine more than one expression …
need some help in java operators.
Programming
Software Development
13 Years Ago
by Johnstep
… are the given problems. A. Create a program using arithmetic
operators
. Use JOptionPane for input of any four variables. B. Create… input of any three variables. C.Create a program using
Logical
operators
. Use Scanner and for input of any three variables and…
Bitwise operators/ undefined and implementation-defined?
Programming
Software Development
18 Years Ago
by JoBe
…: 1) Exc_6_4) Wrote a table of values for the bitwise
logical
operators
and was wondering if any of you could check them…
How to add data (logical operator) recursively in a binary tree
Programming
Software Development
13 Years Ago
by jkembo
… binary tree. The user needs to enter a formula with
logical
operators
. If the user presses to a button e.g NOT…
Bitwise and Logical Operators
Programming
Software Development
12 Years Ago
by GeekTool
… i could not totally understand the diffefence between bitwise and
logical
operands. According to the book i am using to learn…
Re: Bitwise and Logical Operators
Programming
Software Development
12 Years Ago
by GeekTool
… to 65. Right? ) Also, we cannot change any value with
logical
operands, can we ?
Re: Shift-Add vs Multiplication // Bit-Wise vs. Logical Operators
Programming
Software Development
14 Years Ago
by N1GHTS
Let me get this straight. So you want to prove to your peers that one technique is faster than the other, yet you are having trouble making the technique you are bragging about function correctly? Maybe its because the technique is flawed. You see, multiplication in C using the multiplication operator '*' gets converted to something like this: [b…
Re: Shift-Add vs Multiplication // Bit-Wise vs. Logical Operators
Programming
Software Development
14 Years Ago
by N1GHTS
I just want to add that there are add-shift's that you can do with specific kinds of numbers which have less clock cycles than [COLOR="Red"]MUL[/COLOR] (like mulitplying by 2 is faster just doing [COLOR="Red"]SHL[/COLOR]) and on some processors, [COLOR="Red"]MUL[/COLOR] is very slow compared to alternative ASM code, …
Re: Shift-Add vs Multiplication // Bit-Wise vs. Logical Operators
Programming
Software Development
14 Years Ago
by ceatkin2
I wouldn't say I was bragging about the idea as much as my professor gave my the assignment to write a program that demonstrates the run-time of each method. I agree it's trivial, but I would still like to know the logic. So, just to be clear, I'm looking for a way to multiply any two ints just using shifts and adds. It shouldn't be more than 1 or …
Re: Shift-Add vs Multiplication // Bit-Wise vs. Logical Operators
Programming
Software Development
14 Years Ago
by N1GHTS
[code] int mul(int x, int y) { int r = 0; for (;y!=0;y>>=1,x<<=1) if (y&1) r+=x; return r; } [/code] I would love to know if you or someone else could recode this so that it does less work.
Re: Shift-Add vs Multiplication // Bit-Wise vs. Logical Operators
Programming
Software Development
14 Years Ago
by ceatkin2
Nights, thanks for your help, I truly appreciate it. However, I ran the code you supplied and it doesn't multiply the two numbers to get the correct result. I've fiddled around with the numbers and it seems that the answer it throws is half off from the actual answer.
Re: Shift-Add vs Multiplication // Bit-Wise vs. Logical Operators
Programming
Software Development
14 Years Ago
by N1GHTS
I replaced the variables [b]a[/b] and [b]b[/b] with a whole mess of random numbers and can't find a combination which will cause the terminal to show "failed". Tell me which numbers you are using and i'll plug it into my test program. [code] int main(int argc, char** argv) { int a = 2453, b = 354; int x = mul(a,b); int y …
1
2
3
8
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC