On Thursday, January 16, 2014, Ingo Weinhold <ingo_weinhold@xxxxxx> wrote: > On 01/16/2014 01:16 PM, John Scipione wrote: > >> On Thursday, January 16, 2014, Ingo Weinhold <ingo_weinhold@xxxxxx >> <mailto:ingo_weinhold@xxxxxx>> wrote: >> >> On 01/16/2014 01:01 AM, jscipione@xxxxxxxxx wrote: >> >> 969fac1: Evaluate asynchronously in a separate thread >> >> Show calculating animation >> >> >> I'm surprised to learn that DeskCalc supports an operation that >> takes long enough. Which is it? Or do you nest a few million sin() >> or something like that? >> >> ! (Factorial) >> > > I see. How about using an exact computation up to say n=1000 and beyond > that use a good approximation ? It doesn't seem particularly useful to > wait 10 minutes for an exact 1000000! result when in the end only a few > significant digits are shown anyway > How convinient, a solution that doesn't invole managing multiple threads of execution. I like it! Seems like it could speed up factorials tremendoulsy. I already throw out everything after 40 significant digits or so anyway because it takes too long to parse. I'm no mathematician though, I only know the basics of multi-variable calculus and differential equations so I can't say that there aren't other long running operations available that might need this. The overhead of running the calculation in a separate thread is small. I did this mostly as an exercise to learn about how threading works on Haiku.