comparison man/calc.texi @ 59045:ba6d401365b5

(Types Tutorial): Emphasized that you can't divide by 0.
author Jay Belanger <jay.p.belanger@gmail.com>
date Mon, 20 Dec 2004 20:00:48 +0000
parents 3dc0b0b0b0cb
children 0e949a8f0be2 eac554634bfa
comparison
equal deleted inserted replaced
59044:9dadbbe9a381 59045:ba6d401365b5
4755 17 M 24 @key{RET} 10 + n 5 / 4755 17 M 24 @key{RET} 10 + n 5 /
4756 @end group 4756 @end group
4757 @end smallexample 4757 @end smallexample
4758 4758
4759 @noindent 4759 @noindent
4760 In this last step, Calc has found a new number which, when multiplied 4760 In this last step, Calc has divided by 5 modulo 24; i.e., it has found a
4761 by 5 modulo 24, produces the original number, 21. If @var{m} is prime 4761 new number which, when multiplied by 5 modulo 24, produces the original
4762 it is always possible to find such a number. For non-prime @var{m} 4762 number, 21. If @var{m} is prime and the divisor is not a multiple of
4763 like 24, it is only sometimes possible. 4763 @var{m}, it is always possible to find such a number. For non-prime
4764 @var{m} like 24, it is only sometimes possible.
4764 4765
4765 @smallexample 4766 @smallexample
4766 @group 4767 @group
4767 1: 10 mod 24 1: 16 mod 24 1: 1000000... 1: 16 4768 1: 10 mod 24 1: 16 mod 24 1: 1000000... 1: 16
4768 . . . . 4769 . . . .