/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to Development/languages/perl/perl.math

  • Committer: Suren A. Chilingaryan
  • Date: 2009-04-09 03:21:08 UTC
  • Revision ID: csa@dside.dyndns.org-20090409032108-w4edamdh4adrgdu3
import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
������� ��������:
 
2
+ - * / += -= /= *=
 
3
**              ���������� � �������
 
4
%               ������� �� �������
 
5
.               ������������
 
6
x               �������� ����������
 
7
                ��������:       @arr=(1)x80;    ������ 80 ��������� 1
 
8
                �������:
 
9
                                        ++($a='99'); 100
 
10
                                        ++($a='a0'); a1
 
11
                                        ++($a='Az'); Ba;
 
12
                                        ++($a='zz'); aaa;
 
13
~ | &           ��������� �������� not,or,and
 
14
 
 
15
! || &&         Not, Or, And 
 
16
                ������ And � Or ��������� ��������� �����������, � �� 1
 
17
                if ( $a | $b ) ������ $a ��� $b
 
18
not or and xor  ����������� �� � ������� �����������
 
19
&               ��� �� ����� and, �� ���� ���� ������ �������� ���� ��
 
20
                ����� ��������� ������.
 
21
< > <= >= == != �������� ��������� ��� �����
 
22
                "a2c" == 0 : ���������� ���������� � �������� �������� = 0
 
23
gt lt ge le     
 
24
eq ne           �������� ��������� ��� �����
 
25
cmp             ������������� C++ strcmp (-1,0,1)
 
26
<=>             ������������� C++ strcmp (-1,0,1) �� ��� ��������� ���������
 
27
 
 
28
log             ����������� ��������
 
29
exp             ����������
 
30
sin,cos         � ��������
 
31
sqrt            ���������� ������
 
32
atan2(x,y)      y>0 arctan(x/y), y<0 3.14-actan(x/y) 
 
33
                ���� ��������� � [-3.14,3.14]
 
34
int(x)          ��������� �� �������� ������ �����
 
35
 
 
36
ord(x)          ASCII ��� ��������������� �������
 
37
chr(x)          ������ ��������������� ASCII ����
 
38
 
 
39
srand           �������������� ��������� ��������� ����� (not for CGI)
 
40
rand [num]      ������ ������������ ��������� ����� �� [0,1] ��� ����
 
41
                ������ [num] �� [0,num].