[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: facrtorial functions in kspread
From: "Tomas Mecir" <mecirt () gmail ! com>
Date: 2008-11-17 18:09:17
Message-ID: 492258b10811171009t408dfef8pdd77d9ac69895b45 () mail ! gmail ! com
[Download RAW message or body]
2008/11/17 Andrew <andrew.dorrell@gmail.com>:
> 2. the code uses a recursive implementation. Yuck. See for example
> http://stackoverflow.com/questions/231250/how-would-you-write-a-non-recursive-
> algorithm-to-calculate-factorials
Not a big difference really, as the recursion doesn't add any major
overhead here, but as it's an easy change, I have just committed an
iterative algorithm for factorial and double factorial.
/ Tomas
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic