factorial
Fastest factorial implementation with 64-bit result in assembly
This is not homework, just something I though of. So, straight computing factorial is not exactly fast; memoization can help, but if the result is to fit into 32 or 64 bits, then the factorial only ca[详细]
2023-01-06 16:53 分类:问答Why won't `let` work for naming internal recursive procedures?
Consider the following implementation of a function to compute factorial: [1] (define fac-tail (lambda (n)[详细]
2023-01-05 19:08 分类:问答Reversible numerical calculations in Prolog
While reading SICP I came across logic programming chapter 4.4. Then I started looking into the Prolog programming language and 开发者_运维问答tried to understand some simple assignments in Prolog.I f[详细]
2022-12-31 05:00 分类:问答Basic recursive method - factorial
I am practicing recursion and I can\'t see why this method does not seem t开发者_运维百科o work.[详细]
2022-12-30 06:02 分类:问答Factorial in Prolog and C++
I would like to work out a number\'s factorial.My factorial rule is in a Prolog file and I am connecting it to a C++ file.Can someone please tell me what is wrong with my interfacing C++ to Prolog?[详细]
2022-12-25 09:40 分类:问答an 8085 assembly language program to find the factorial of a number
i want to find factorial a number which i take memory first.(intel 8085) edit: i\'m beginner. i don\'t know how to write it\'s assembly codes.[详细]
2022-12-23 16:22 分类:问答Ruby factorial function
I\'m going crazy: Where is the Ruby function for开发者_如何学JAVA factorial? No, I don\'t need tutorial implementations, I just want the function from the library. It\'s not in Math![详细]
2022-12-22 23:06 分类:问答How do I find a factorial? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this[详细]
2022-12-22 06:42 分类:问答Complexity of recursive factorial program
What\'s the complexity of a recursive program to find fac开发者_运维知识库torial of a number n? My hunch is that it might be O(n).If you take multiplication as O(1), then yes, O(N) is correct. However[详细]
2022-12-20 23:07 分类:问答I'm trying to implement factorial in an xml language
I\'m trying to implement factoria开发者_开发知识库l in the xml language of xcerion. <step id=\"fac\">[详细]
2022-12-18 03:50 分类:问答
加载中,请稍侯......