In ILWIS the following internal constants are defined:
PI |
Value p: |
3.141592653589793... |
|
PI2 |
Value 2p: |
6.283185307179586... |
|
PIDIV2 |
Value ½p: |
1.570796326794896... |
|
PIDIV4 |
Value ¼p: |
0.785398163397448... |
|
EXP(1) |
Value e: |
2.718281828459045... |
|
TRUE |
1 |
||
FALSE |
0 |
Note:
The predefined p values are often applied in combination with trigonometric functions like SIN, ACOS, ATAN2, etc.
Usable in
MapCalc, TabCalc, Simple calculators
Examples
Pocket line calculator examples:
? COS(PI) |
returns -1.000 |
? TAN(PIDIV4) |
returns 1 |
? RADDEG(ATAN2(PI,PI)) |
returns 45.00 |
? TRUE*8 |
returns 8 |
MapCalc example:
OutMap = InMap + SIN(PIDIV2)
InMap |
OutMap |
||||||||||||||||||
|
|
TabCalc example:
OutCol = InCol + COS(PI2)
InCol |
OutCol |
2.0 |
3.0 |
1.0 |
2.0 |
0.5 |
1.5 |
0.2 |
1.2 |
0.3 |
1.3 |
-1.0 |
0.0 |
? |
? |
-0.4 |
0.6 |
-0.1 |
0.9 |