TI-BASIC:Factorial

From Learn @ Cemetech
Jump to navigationJump to search

FACTORIAL.GIF

Command Summary

Calculates the factorial of a number or list.

Command Syntax

value!

Menu Location

Press:

  1. MATH to access the Math menu.
  2. LEFT to access the PRB submenu.
  3. 4 to select !, or use arrows.

Calculator Compatibility

TI-83/84/+/SE

Token Size

1 byte

! is the factorial function, where n! = n*(n-1)! and 0! = 1, n an nonnegative integer. The function also works for arguments that are half an odd integer and greater than -1/2: <math>(-\frac1{2})!</math> is defined as <math>\sqrt{\pi}</math> and the rest are defined recursively.

3!
     6
(‾.5)!
     1.772453851
Ans²
     3.141592654

The combinatorial interpretation of factorials is the number of ways to arrange n objects in order.

Error Conditions

  • ERR:DOMAIN for any numbers except the ones mentioned above.

Related Commands