Help - Search - Members - Calendar
Full Version: 2^4096=?
Hydrogenaudio Forums > Misc. > Off-Topic
Cobra
So, 2^4096=X
I want to know _exact_ value of X. Are there any (free) programs which give accurate results for this?
Peter Harris
QUOTE(Cobra @ Mar 28 2003 - 02:44 PM)
So, 2^4096=X
I want to know _exact_ value of X. Are there any (free) programs which give accurate results for this?

Sure. Lots. bc and dc are two.

I'll use dc for my example. It operates in Reverse Polish Notation (the operator comes after the operands). ^ is exponentiation. p is the unary 'print' operator, and q is the void 'quit' operator.

CODE

linux:~$ dc
2 4096^pq
104438888141315250669175271071662438257996424904738378038423348328395\
390797155745684882681193499755834089010671443926283798757343818579360\
726323608785136527794595697654370999834036159013438371831442807001185\
594622637631883939771274567233468434458661749680790870580370407128404\
874011860911446797778359802900668693897688178778594690563019026094059\
957945343282346930302669644305902501597239986771421554169383555988529\
148631823791443449673408781187263949647510018904134900841706167509366\
833385055103297208826955076998361636941193301521379682583718809183365\
675122131849284636812555022599830041234478486259567449219461702380650\
591324561082573183538008760862210283427019769820231316901767800667519\
548507992163641937028537512478401490715913545998279051339961155179427\
110683113409058427288427979155484978295432353451706522326906139490598\
769300212296339568778287894844061600741294567491982305057164237715481\
632138063104590291613692670834285644073044789997190178146576347322385\
026725305989979599609079946920177462481771844986745565925017832907047\
311943316555080756822184657174637329688491281952031745700244092661691\
087414838507841192980452298185733897764810312608590300130241346718972\
6673216491511131602920781738033436090243804708340403154190336
linux:~$


If you're running windows, you probably want to install cygwin anyway (you can't run LyX without it. smile.gif ).
robert
QUOTE(Cobra @ Mar 28 2003 - 09:44 PM)
So, 2^4096=X
I want to know _exact_ value of X. Are there any (free) programs which give accurate results for this?

2^4096
it is equal to a sequence of one following 4096 zeroes in binary notation: 100000000000000000000000000000...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.