㹡����¹����� �պҧ���駷����ҵ�ͧ����¡�äӹdz�ҧ��Ե��ʵ��
JavaScript ���դس���ѵ�㹡�äӹdz�ҧ��Ե��ʵ�����������ѹ��Ѻ
Math
Object
Math Object �� object �����������ҷӧҹ�ҧ��Ե��ʵ����
�¨��� ��Ҥ���� (Constants) ��� Function �ҧ��Ե��ʵ�����������Ѻ
Mathematical
Constants
| E | �繤�Ҥ����ͧ Euler ����繰ҹ�ͧ natural logarithms |
| LN2 | ln 2 |
| LN10 | ln 10 |
| LOG2E | log e �ҹ 2 |
| LOG10E | log e �ҹ 10 |
| PI | ���侹� (3.14159...) |
| SQRT1_2 | square root �ͧ 1/2 |
| SQRT2 | square root �ͧ 2 |
�֧�س��������ѡ�ҧ��ǡ�������ùФ�Ѻ ������������͡ ����������������� ��ԧ�����Ѻ
���Ҥس��ͧ��������˹���ͧ�ѹ�� Property �ͧ Math �ѧ��鹡����ҧ�֧���� Math.constant ��
CircleArea=Math.PI*r*r; {�ٵ��Ҿ�鹷��ǧ���}
Mathematical
Functions
���Т��觿ѧ�����͡�� 6 ������Ф�Ѻ �������������ҹ
Rounding Functions
��㹡�ûѴ��ɢͧ Floating (�ȹ���) ����� �ӹǹ�����Ѻ������ 3 ��Ǥ��
round() ��Ѵ�����Ҩӹǹ������������ش
floor() ��Ѵ��ɷ�� (�Ѵŧ)
ceiling()�Ѵ���
Comparison Functions
��㹡�����º��º�Ţ 2 �ӹǹ��Ѻ�� 2 ��Ǥ�� min() ���觤�ҹ��¡�Ѻ�� ��� max() ���觤���ҡ��Ѻ
Algebraic Functions
�յ�����Ǥ�Ѻ��� abs() (�� absolute �)����Ţ����繺ǡ��Ѻ
Logarithmic and Exponential Functions
�� function ����ǡѺ�Ţ¡���ѧ��Ѻ �� 3 ���
log() ���Ҥ�� logarithm
pow() ��ӹdz�Ţ¡���ѧ��Ѻ
exp() ��ӹdz�ѧ���� exponential ���հҹ��ҡѺ e
��Ҽ���¹��� exp(10) ���դ����ҡѺ pow(Math.E,10) ��Ѻ
Trigonometric Functions
JavaScript ʹѹʹع function �ҧ���⡳ 7 function ��Ѻ ��� sin() cos() tan() asin() acos() atan() ��� atan2()
Random Number Generations
�������Ţ��Ѻ ���� function random() �� ��ҷ����������Ҩ����������ҧ 0 ��� 1
�˹�ҹ�� function ��ǹ�˭�����Ǣ�ͧ�Ѻ��������ԪҤ�Ե��ʵ���дѺ�٧ ���������㨡�������ùФ�Ѻ
The End.
����س�����֡�� JavaScript ���ǹ�ͧ�����Ҩ����Ǥ�Ѻ ����ö��任���ء����������������ä�
���Ѻ Homepage �س�� ��ͨҡ��� ���յ�����ҧ����� �����¹���� JavaScript �������ö�������
�����繵�����ҧ� Part III : Example JavaScript and Comment ���¤�Ѻ ���ͧ���ɨ�ԧ�
���ҧ������������öŧ comment �������� ���ͧ�ҡ���������¹�ͧ �Ҩ��������������´�ҧ���ҧ
�س�֧��ͧ �֡�Ҵ��µ��ͧ ��ͧ�����¨�ԧ��Ѻ