flat assembler
Message board for the users of flat assembler.

Index > Heap > Numerical oddities

Goto page Previous  1, 2, 3 ... 17, 18, 19 ... 24, 25, 26  Next
Author
Thread Post new topic Reply to topic
idle



Joined: 06 Jan 2011
Posts: 359
Location: Ukraine
idle
edit: wrong

Code:
    c
  b)    b*c
(a   = a

sqrt(
  sqrt(
    sqrt(
      sqrt(
        sqrt(
          sqrt(2) ;^1/02
            )     ;^1/04
          )       ;^1/08
        )         ;^1/16
      )           ;^1/32
    ) = 2^-64     ;^1/64
    
Post 23 Jun 2011, 19:37
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
How long is 3 years, 11 months and 30 days?
Post 21 Dec 2011, 05:00
View user's profile Send private message Visit poster's website Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
revolution wrote:
How long is 3 years, 11 months and 30 days?


4 years ?

Did I win a star ?
Post 21 Dec 2011, 06:39
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
typedef wrote:
4 years ?

Did I win a star ?
Partial answers don't win stars.
Post 21 Dec 2011, 06:45
View user's profile Send private message Visit poster's website Reply with quote
malpolud



Joined: 18 Jul 2011
Posts: 344
Location: Broken hippocampus
malpolud
1460 days Wink
Post 21 Dec 2011, 08:56
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
malpolud wrote:
1460 days Wink
And ... ?
Post 21 Dec 2011, 09:07
View user's profile Send private message Visit poster's website Reply with quote
malpolud



Joined: 18 Jul 2011
Posts: 344
Location: Broken hippocampus
malpolud
Well actually:

1460 days and about 12 minutes Wink

E: wrong, confused myself - 1 minute!

Guess I'm wrong anyway, thanks for You Revolution I'll be late for my training Wink I'll count it one more time later.
Post 21 Dec 2011, 09:32
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
malpolud wrote:
... thanks for You Revolution I'll be late for my training ...
You're welcome. I'm glad to be of service.

And, yes, BTW, your answer is not correct.
Post 21 Dec 2011, 09:55
View user's profile Send private message Visit poster's website Reply with quote
malpolud



Joined: 18 Jul 2011
Posts: 344
Location: Broken hippocampus
malpolud
One more time. A day lasts for 23hrs 56min and 4 sec. 3 years 11 months and 30 days so there must be a leap-year during this time. one year is 365 days. 11 months and 30 days normally lasts for 364days. but one of the years is a leap-tyear so we add one extra day. So we have 1460 days.

'real day' 24 *3600 = 86400

23hrs = 3600 * 23 = 82800 sec
56min= 60 * 56 = 3360 sec
so a day lasts 86164 seconds. 86164 * 1460 = 125799440 seconds per 4 years
125799440 / 86400 = 1456, 012037037 days

0, 012037037..... * 24 = 0,28( 8 ) hours ~ 17 minutes

Dude, I feel so stupid now - it's just the simplest maths could ever be. 1456 days and 17 minutes is quite impossible - leap-year is suposed to even the real day and the actual.
Post 21 Dec 2011, 12:16
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
malpolud wrote:
A day lasts for 23hrs 56min and 4 sec.
That would be a sidereal day. I am asking about "normal" days, you know, 24 hours 0 minutes 0 seconds.
Post 21 Dec 2011, 12:22
View user's profile Send private message Visit poster's website Reply with quote
asmhack



Joined: 01 Feb 2008
Posts: 431
asmhack
revolution wrote:
How long is 3 years, 11 months and 30 days?


This long:

|-----------------------------------------------------------------------------|
Post 21 Dec 2011, 13:18
View user's profile Send private message Reply with quote
malpolud



Joined: 18 Jul 2011
Posts: 344
Location: Broken hippocampus
malpolud
revolution wrote:
malpolud wrote:
A day lasts for 23hrs 56min and 4 sec.
That would be a sidereal day. I am asking about "normal" days, you know, 24 hours 0 minutes 0 seconds.


You've just confused me so much...
Post 21 Dec 2011, 13:28
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
asmhack wrote:
This long:

|-----------------------------------------------------------------------------|
How long is a piece of string?
Post 21 Dec 2011, 13:41
View user's profile Send private message Visit poster's website Reply with quote
Enko



Joined: 03 Apr 2007
Posts: 678
Location: Mar del Plata
Enko
revolution wrote:
asmhack wrote:
This long:

|-----------------------------------------------------------------------------|
How long is a piece of string?


103mm on my 17" monitor. 1280x1024 resolution.
Post 21 Dec 2011, 14:50
View user's profile Send private message Reply with quote
malpolud



Joined: 18 Jul 2011
Posts: 344
Location: Broken hippocampus
malpolud
Ok I have no idea whats the clue so here comes the only solid answer I came to.

revolution wrote:
malpolud wrote:
1460 days Wink
And ... ?

And if our final count is a 30days month 1461days. If the final month is non-leap February its 1643 days. If it's leap-year February it's 1462days Wink

I might have confused the exact counts, but did you mean sth. like this?

E: continued. If our 3years 11 months and 30 days contain a year that is divisible by 100 and not by 400 we should subtract from previous results one day.
Post 21 Dec 2011, 20:29
View user's profile Send private message Visit poster's website Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
but from which year / month do we start counting from ? Because out of those 3 years, 1 could be a leap.


So, I was right. I demand a star


Last edited by typedef on 21 Dec 2011, 22:32; edited 1 time in total
Post 21 Dec 2011, 21:42
View user's profile Send private message Reply with quote
MHajduk



Joined: 30 Mar 2006
Posts: 6034
Location: Poland
MHajduk
revolution wrote:
How long is 3 years, 11 months and 30 days?
The answer is: "it depends on many factors".

Whoever will visit this thread and left his answer will be right, doesn't matter whether his/her answer is partial or not. Why? Because aforementioned question allows thousands of interpretations due to its uncertain formulation.

We don't know what kind of "year" we should consider here. What kind of calendar is given: Julian, Gregorian, ancient Egyptian [360 days, 12 months each 30 days long] or maybe other.

Another thing - most of the people reading this question will assume that we ask about continuous time interval. I don't see such an assumption in the question, so I can pick arbitrarily 3 leap Gregorian years, 11 leap Februaries (11*29 days) or 11 Decembers (11*31 days) and add 30 days to get the correct answer.
Post 21 Dec 2011, 21:59
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
MHajduk wrote:
The answer is: "it depends on many factors".
Part of the answer is that.
MHajduk wrote:
Whoever will visit this thread and left his answer will be right, doesn't matter whether his/her answer is partial or not. Why? Because aforementioned question allows thousands of interpretations due to its uncertain formulation.

We don't know what kind of "year" we should consider here. What kind of calendar is given: Julian, Gregorian, ancient Egyptian [360 days, 12 months each 30 days long] or maybe other.
Hmm, well I suppose you are technically correct. I didn't specify properly. But I was only meaning the Gregorian calendar. The standard normal one that most countries use or acknowledge.
MHajduk wrote:
Another thing - most of the people reading this question will assume that we ask about continuous time interval. I don't see such an assumption in the question, so I can pick arbitrarily 3 leap Gregorian years, 11 leap Februaries (11*29 days) or 11 Decembers (11*31 days) and add 30 days to get the correct answer.
That is just cruel. I would never do that to people here. For sure I meant a contiguous time span.
malpolud wrote:
And if our final count is a 30days month 1461days. If the final month is non-leap February its 1643 days. If it's leap-year February it's 1462days Wink

I might have confused the exact counts, but did you mean sth. like this?
Yeah. This is what I meant. And since I didn't define this well, and caused some confusion, then I think I should stop this one and declare that everyone is correct (but with malpolud giving the most correct answer Wink).

My intention was to show that time spans using the most commonly used calendar can be very ambiguous. It was only meant to be for fun so I hope no one was suffering stressful sleepless night wondering which of the gajillion possibilities I was asking for.

And indeed I had even more examples of time spans than the 1460-1463 as shown by malpolud. Did you know about the 1582 missing days? And other countries had their own schedule for switching that create even more possibilities for alternative time span values.
Post 22 Dec 2011, 01:56
View user's profile Send private message Visit poster's website Reply with quote
MHajduk



Joined: 30 Mar 2006
Posts: 6034
Location: Poland
MHajduk
revolution wrote:
Did you know about the 1582 missing days? And other countries had their own schedule for switching that create even more possibilities for alternative time span values.
Yes I know about it. Smile Those missing ten days were "omitted" because of necessary correction that had to be made to re-synchronize the new Gregorian calendar with solar year (especially such events as vernal equinox). Difference between Julian and Gregorian dates still grows and now it is equal to 13 days. Some of Eastern Orthodox churches still use Julian calendar so there Christmas day would be celebrated on 7th January 2012.
Post 22 Dec 2011, 22:58
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
This one is for fun also, don't take it too seriously:
  1. I have a particular amount of thing X.
  2. A thief comes along and steals some of the amount.
  3. Now I have more of thing X than I had before the thief came along.
  4. How many of thing X did I start with and how many of thing X do I have now?
Post 09 May 2012, 16:21
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2, 3 ... 17, 18, 19 ... 24, 25, 26  Next

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.