How do you divide two big numbers (signed integers)? For example, show me how you would perform 5461898545615669847/24363
use calc
good luck inputting that big number in the calc. Actually, I am trying to implement this on the computer.
This presents the question of whether to return the quotient as a signed int + remainder, or as a real.
help :(
guess I will have to consult TAOCP vol II
I can't find the book :(
oh dear
Mathematica can process integer problems like this at "unlimted precision" \[224188258655160+\frac{6767}{24363} \]
that's what I need to implement in C++ :-D
if only Mathematica was open source :(
Thank you for the medal.
I wish I had Knuth's volume II right now :(
This would be a great question to ask students (or in interviews *grin*)
"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++?"
http://mathforum.org/library/drmath/view/63866.html There are some references to "arbitrary precision" packages there.
Yeah!!!! Alright now I can get my assignment done.
BigNum is in there... I was looking for that
Good luck on your project.
thanks!
Join our real-time social learning platform and learn together with your friends!