• C++ Programming for Financial Engineering
    Highly recommended by thousands of MFE students. Covers essential C++ topics with applications to financial engineering. Learn more Join!
    Python for Finance with Intro to Data Science
    Gain practical understanding of Python to read, understand, and write professional Python code for your first day on the job. Learn more Join!
    An Intuition-Based Options Primer for FE
    Ideal for entry level positions interviews and graduate studies, specializing in options trading arbitrage and options valuation models. Learn more Join!

SHOW ME THE CODE !

1586555214444.png

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