Search found 2 matches

by Swatch Watch
Mon Jul 20, 2009 9:39 pm
Forum: Coding Questions
Topic: Factorial
Replies: 10
Views: 2510

Thank you for the answers. :D
by Swatch Watch
Sun Jul 19, 2009 9:06 am
Forum: Coding Questions
Topic: Factorial
Replies: 10
Views: 2510

Factorial

The lower code works ok but if N is e.g 150 it gives back a wrong factorial. So my question is: Do you know any more correct and or faster way to get a factorial? I need these high factorials for the Bernstein polynomial.

Procedure.d Factorial(N.b)
E.d=1
For S=2 To N
E*S
Next
ProcedureReturn E ...