Ask your own question, for FREE!
Mathematics 18 Online
OpenStudy (anonymous):

How do you divide two big numbers (signed integers)? For example, show me how you would perform 5461898545615669847/24363

OpenStudy (anonymous):

use calc

OpenStudy (anonymous):

good luck inputting that big number in the calc. Actually, I am trying to implement this on the computer.

OpenStudy (anonymous):

This presents the question of whether to return the quotient as a signed int + remainder, or as a real.

OpenStudy (anonymous):

help :(

OpenStudy (anonymous):

guess I will have to consult TAOCP vol II

OpenStudy (anonymous):

I can't find the book :(

OpenStudy (anonymous):

oh dear

OpenStudy (anonymous):

Mathematica can process integer problems like this at "unlimted precision" \[224188258655160+\frac{6767}{24363} \]

OpenStudy (anonymous):

that's what I need to implement in C++ :-D

OpenStudy (anonymous):

if only Mathematica was open source :(

OpenStudy (anonymous):

Thank you for the medal.

OpenStudy (anonymous):

I wish I had Knuth's volume II right now :(

OpenStudy (anonymous):

This would be a great question to ask students (or in interviews *grin*)

OpenStudy (anonymous):

"Your resume says you have 10+ years of experience in C, C++, Java, XML, SQL, SQLite, HTML, XQuery, blahblahblah. Now, how would you implement a BigInt class in C++?"

OpenStudy (anonymous):

http://mathforum.org/library/drmath/view/63866.html There are some references to "arbitrary precision" packages there.

OpenStudy (anonymous):

Yeah!!!! Alright now I can get my assignment done.

OpenStudy (anonymous):

BigNum is in there... I was looking for that

OpenStudy (anonymous):

Good luck on your project.

OpenStudy (anonymous):

thanks!

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!