Meaningless Drivel is fun!*
The moose likes Meaningless Drivel and the fly likes Think Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Other » Meaningless Drivel
Bookmark "Think" Watch "Think" New topic
Author

Think

John Valiant
Greenhorn

Joined: Mar 01, 2012
Posts: 26
Suppose A is equal to 10
and B is equal to 5.
Then if B is equal to A,
what is B?
Ryan McGuire
Ranch Hand

Joined: Feb 18, 2005
Posts: 1007
    
    3
John Valiant wrote:Suppose A is equal to 10
and B is equal to 5.
Then if B is equal to A,
what is B?


B is the Queen Sonja of Norway.

Let's evaluate...

(A == B) --> (B == Queen Sonja of Norway)
(10 == 5) --> (5 == Queen Sonja of Norway)
F --> F
T

So my answer appears to be correct.
Mike Simmons
Ranch Hand

Joined: Mar 05, 2008
Posts: 3018
    
  10
Tina Smith
Ranch Hand

Joined: Jul 21, 2011
Posts: 171
    
    5

Suppose A is equal to 10
and B is equal to 5.
Then if B is equal to A,
what is B?

Java syntax:

Therefore, B is 10.
A little liberty on the interpretation between assignment and equality.....


Everything is theoretically impossible, until it is done. ~Robert A. Heinlein
Steve Fahlbusch
Bartender

Joined: Sep 18, 2000
Posts: 563
    
    7

either

B is B

or

B is equal to A

Depending on the intent.
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11356
    
  16

Tina Smith wrote:
Java syntax:

Therefore, B is 10.
A little liberty on the interpretation between assignment and equality.....

you missed the if:


B would therefor equal 5.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Mike Simmons
Ranch Hand

Joined: Mar 05, 2008
Posts: 3018
    
  10
Well it's easy enough to add an if to that code and make it work. Not in Java, of course - but this is MD. And this would be perfectly valid C code:
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18876
    
  40

John Valiant wrote:Suppose A is equal to 10
and B is equal to 5.
Then if B is equal to A,
what is B?


If we are allowed to assume a base, then can we say that A equals 10 in base 5. B is equal to 5 in any base greater than 5. This, of course, means that A is equal to B, as 10 in base 5 is equal to 5 in any base greater than 5.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1527
B should be equal to A.

Further, if A is not equal to B then this should be introduction to modern algebra.


Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10426
    
    8

B is 42


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Frank Silbermann
Ranch Hand

Joined: Jun 06, 2002
Posts: 1387
What mathematical notation and theory is this written in?
Ryan McGuire
Ranch Hand

Joined: Feb 18, 2005
Posts: 1007
    
    3
Frank Silbermann wrote:What mathematical notation and theory is this written in?


I bet that there is some system where the notation is such that 5 and 10 map to the same thing. Our objective to know which one the OP is thinking of.

For instance...
If we're talking a major pentatonic scale, such as one with notes CDEGA(C), then the "fifth" is a C one octave above the starting note and a "tenth" is a C two octaves above the starting note.

Maybe it has to do tenths of of something circular with a two-ended pointer. For instance, tenths of a circle around a compass. 5 is South and 10 is North. When the needle is pointing North, the other end is pointing South, so North and South and "equal".

I just hope that there isn't some mathematical "proof" that 5 equals 10 involving a division by zero or some other invalid step. That would be disappointing.
Ryan McGuire
Ranch Hand

Joined: Feb 18, 2005
Posts: 1007
    
    3
Wait... I know...

When Mr. Valiant is summoning the dark forces from the underworld using mystical symbols drawn in blood on his living room floor, he has to walk around the pentagram twice starting at the corner pointing south. If A is his position after ten "legs" of his trip and B is his position after five, both A and B would have him back at the southern-most point. So... B is "the southern-most point of a pentagram".

Frank Silbermann
Ranch Hand

Joined: Jun 06, 2002
Posts: 1387
Or, maybe it's clock arithmetic, with a period of five. That is, you count 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, ....

Thus A = B = 5 = 10 = 0.
Steve Fahlbusch
Bartender

Joined: Sep 18, 2000
Posts: 563
    
    7

5
 
GeeCON Prague 2014
 
subject: Think