Daniel Duffy
C++ author, trainer
- Joined
- 10/4/07
- Messages
- 10,436
- Points
- 648
My conjecture is the value is 262537412640768743 + 1.
I am working on it, I will post my output in a couple of minutes, seems that I found the problemMy conjecture is the value is 262537412640768743 + 1.
My C++ Boost code givesView attachment 34588
I got this
BOOST y = e ^ (pi * sqrt(163)) = 262537412640768183.98118196127384561629
the difference 183.98118196127384561629
all values expressed in terms of the boost library
Probably It is.I will go over my code and increase the precision. What brings the attention of this problem is that standard library could give wrong results for particular cases, this could help to new C/C++ programmers. Best Regards Doctor Duffy, Stay at Home!My C++ Boost code gives
262537412640768743.999999999999250072597198185688879353856337336990862707537410378210647910118607313
which is correct.
This number was discovered in 1859 by the mathematician Charles Hermite.[7] In a 1975 April Fool article in Scientific American magazine,[8] "Mathematical Games" columnist Martin Gardner made the hoax claim that the number was in fact an integer, and that the Indian mathematical genius Srinivasa Ramanujan had predicted it—hence its name.
Please share the code, I will copy / paste and find out my mistakes. THANKS Daniel!If you run my code you get the correct answer Maybe you are mixing your types?
Is there a way a C++ program can take advantage of a multicore processor?
That is a great machine the new one you have,Newbie question..
Error - Cookies Turned Off
onlinelibrary.wiley.com
absolutely in C++11. threads, tasks and futures.
Discussed in my C++ 2018 book and QN Advanced C++ course.
Recommend doing some research.
//
Just got an 8-core machine today. What can I in heaven's name use it for? No idea.
Yes, I'm in the lap of luxury.That is a great machine the new one you have,
8 core =: 16 máximum numbers of threads.
reg instruction seems to be deprecated
Besides threads?
I have a program that is several K of source code (MS visual Studio 2019 - Windows) I was wondering how to tell the OS my program has a priority, something like in Unix/Linux.
Very important observacion, I will fix it.Code is undocumented