# SHOW ME THE CODE !

#### Daniel Duffy

##### C++ author, trainer
My conjecture is the value is 262537412640768743 + 1.

#### ExSan

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 problem

Last edited:

#### ExSan

I got this
BOOST y = e ^ (pi * sqrt(163)) = 262537412640768183.98118196127384561629
the difference 183.98118196127384561629
all values expressed in terms of the boost library

#### Daniel Duffy

##### C++ author, trainer
View 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
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.

Last edited:

#### ExSan

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.
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!

#### Daniel Duffy

##### C++ author, trainer
If you run my code you get the correct answer Maybe you are mixing your types?

#### ExSan

I am using Microsoft Visual Studio Community 2019 Versión 16.6.3
Is the executable 64 bits? how to know, is there a C/C++/boost instruction to know the version of the compiled process?
How to set MVS IDE to output executable either 32 bit or 64 bit, is it possible?
I know that any CPU will give you a 64 bit process on win64; I need to load load a 32 bits DLL.
how can I force a 'x86' to a 32 bits process which has no issues loading 32 bits DLLs.

#### ExSan

-ExSan- is my own version of Excel. Console oriented, it's been coded using C++

#### Attachments

• exsan_out.txt
811.7 KB · Views: 4
Last edited:

#### ExSan

If you run my code you get the correct answer Maybe you are mixing your types?
Please share the code, I will copy / paste and find out my mistakes. THANKS Daniel!

#### ExSan

Is there a way a C++ program can take advantage of a multicore processor?

#### Daniel Duffy

##### C++ author, trainer
Is there a way a C++ program can take advantage of a multicore processor?

Newbie question..

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.

Last edited:

#### ExSan

Newbie question..

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.
That is a great machine the new one you have,
8 core =: 16 máximum numbers of threads.
reg instruction seems to be deprecated
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.

Last edited:

#### Daniel Duffy

##### C++ author, trainer
That is a great machine the new one you have,
8 core =: 16 máximum numbers of threads.
reg instruction seems to be deprecated
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.
Yes, I'm in the lap of luxury.

Replies
1
Views
718
Replies
1
Views
624
Replies
0
Views
1K
Replies
2
Views
1K
Replies
0
Views
384