Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Papajohn56

macrumors 6502
Original poster
Aug 13, 2005
277
0
Using a factorial in Grapher results in an incorrect function output, it seems Grapher does the Gamma function rather than the standard step function for factorial. Take a look:

picture2me1.png


Which gamma is actually defined as:
de7cbb153c88150ab22e94afc2b432af.png


rather than the true factorial:

c018852104089c3b86ad5bba9e9223f9.png
 

gauchogolfer

macrumors 603
Jan 28, 2005
5,551
5
American Riviera
How would you plot a factorial for negative numbers, anyways? Isn't that the whole point of the Gamma function, to account for real and complex numbers? Still, I'm not sure it counts as a 'Major Math Error'. Is there a different function indicator rather than ! that you could use for factorial?
 

Papajohn56

macrumors 6502
Original poster
Aug 13, 2005
277
0
How would you plot a factorial for negative numbers, anyways? Isn't that the whole point of the Gamma function, to account for real and complex numbers?

Exactly, that's the biggest problem, along with positive decimal factorials.
 

Papajohn56

macrumors 6502
Original poster
Aug 13, 2005
277
0
Thanks for the link, but I think we both know what the Gamma function is already. The OP would like to know why ! defaults to Gamma and not factorial, I imagine. Maybe it's because factorial is only defined for positive integers, and Grapher can only handle continuous functions? Iono.

yeah, I know factorial and gamma are related, but they aren't the same. That's my concern
 

MisterMe

macrumors G4
Jul 17, 2002
10,709
69
USA
... The OP would like to know why ! defaults to Gamma and not factorial, I imagine. Maybe it's because factorial is only defined for positive integers, and Grapher can only handle continuous functions? ...
The gamma function is defined over the range of negative non-integers, zero, and positive numbers. The factorial is not a step function. In the OP's parlance, the factorial function is defined only for zero and positive integral arguments. The OP cannot invoke non-integral arguments and then complain about the result.
 

Papajohn56

macrumors 6502
Original poster
Aug 13, 2005
277
0
The gamma function is defined over the range of negative non-integers, zero, and positive numbers. The factorial is not a step function. In the OP's parlance, the factorial function is defined only for zero and positive integral arguments. The OP cannot invoke non-integral arguments and then complain about the result.

Yes but Gamma and Factorial are not the same thing. As a matter of fact, for positive integers, Gamma is equal to (n-1)!, rather than just n!

They are not the same function, even though they are related. When I enter factorial, I shouldn't get Gamma as the output.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.