brackets and the factorial function

Issue #394 invalid
Former user created an issue

Originally reported on Google Code with ID 394

What steps will reproduce the problem?
1. 1-365!/((365^23)*343!)  (the birthday problem with n = 23 students)
2. = 0,99856354878811657553
3. 1-365!/((365^23)*(365-23)!) (with brackets and "n")
4. = 0,50729723432398540723

What is the expected output? What do you see instead?
0,99856354878811657553
0,50729723432398540723

What version of the product are you using? On what operating system?
0.10.1
Windows 7 64 bit

Reported by rudhild on 2011-12-08 18:02:21

Comments (3)

  1. Former user Account Deleted

    ``` Disclaimer: I just glanced at this and haven't checked my math.

    But... What steps will reproduce the problem? 1. 1-365!/((365^23)*343!)

    That 343! isn't equal to the end of 3. 1-365!/((365^23)*(365-23)!)

    365-23 = 342

    I would suspect that the difference in the output versus the expected output is due to a computational error of the input by the user.

    However, I am ignorant of what "the birthday problem" is, so maybe those lines are written exactly the way they are supposed to be. I just thought that I would point out the inequality in the two inputs that I think that I see.

    Cheers. ```

    Reported by `joseph.fantinel` on 2012-07-07 03:22:17

  2. Former user Account Deleted
    This is probably way late for a reply. However:
    
    1) 365-23=342 and on the first formula you used 343
    2) SpeedCrunch can only calculate factorials up to 144!
    

    Reported by helder.pereira.correia on 2013-03-14 04:14:29 - Status changed: Rejected

  3. Log in to comment