<div id=":ut" class="ii gt"><div id=":uu">I'm working on some <span class="il">factorial</span>
stuff myself, and I'm running into that issue that the CPU or ALU
(Algorithmic Logical Unit), isn't powerful enough to compute the numbers
I'm trying to produce, including the OS has its own number crunching
limitation for accuracy.<div>
<br></div><div>To accurately generate the numbers I want I'd probably
need about 200+ 64 bit CPUs or ALUs, thats about 640,000 bit Long. I
can produce about 100 places of accuracy with my i7-950 I think.</div><div><br>
</div><div>@geobird or anyone: does someone have an idea of how to bridge this issue?<div><div><span id="q_12befb7386002e4f_1" class="h4"><br></span></div>Here is what I have in MATLAB currently, I have heard of; <a href="http://www.sagemath.org/" target="_blank">SAGE</a>, which I've heard is a good alternative to MATLAB.<br>
</div></div></div></div>Here is the script I have from MATLAB; <a href="http://pastebin.com/sc1jW1n4" target="_blank">http://pastebin.com/sc1jW1n4</a>, it takes the natural log of the number huge numbers being generated, and allows you to work with gigantic numbers more easily.<br>
<br>I don't know how to write this naively into python though without being able to call functions.<br>I'm working with differential equations related the the higher roots of -1 (negative one).<br><br><div class="gmail_quote">
On Wed, Oct 27, 2010 at 5:13 AM, Jussi Piitulainen <span dir="ltr"><<a href="mailto:jpiitula@ling.helsinki.fi">jpiitula@ling.helsinki.fi</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">Geobird writes:<br>
<br>
> @ Ulrich : Tx<br>
> @ Rebert : Appreciate your interpretation.<br>
> It made me think about ternary operation . Say<br>
> >>> (a > b) and x or y<br>
><br>
> Are all ternary operations prone to ...( in your words )<br>
> > It exploits short-circuit evaluation<br>
> >(<a href="http://en.wikipedia.org/wiki/Short-circuit_evaluation" target="_blank">http://en.wikipedia.org/wiki/Short-circuit_evaluation</a> ). This is<br>
> >stunt coding / code golf; no one should actually write factorial<br>
> like<br>
> >that.<br>
<br>
</div>The purpose of a conditional expression is to select one branch of<br>
computation and avoid another. Other ternary operations might well<br>
use the values of all three arguments.<br>
<br>
(I agree that no one should write factorial like that, except as<br>
a joke. I have nothing against (x if (a > b) else y). The trick<br>
with and and or was used before Python had an actual conditional<br>
expression.)<br>
<div><div></div><div class="h5">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br>