Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.20
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
groff-base /
html /
[ HOME SHELL ]
Name
Size
Permission
Action
img
[ DIR ]
drwxr-xr-x
mom
[ DIR ]
drwxr-xr-x
pic-1.html
3.37
KB
-rw-r--r--
pic-10.html
13.89
KB
-rw-r--r--
pic-11.html
6.21
KB
-rw-r--r--
pic-12.html
2.36
KB
-rw-r--r--
pic-13.html
4.83
KB
-rw-r--r--
pic-14.html
5.18
KB
-rw-r--r--
pic-15.html
5.47
KB
-rw-r--r--
pic-16.html
4.2
KB
-rw-r--r--
pic-17.html
6.54
KB
-rw-r--r--
pic-18.html
3.83
KB
-rw-r--r--
pic-19.html
1.7
KB
-rw-r--r--
pic-2.html
2.31
KB
-rw-r--r--
pic-20.html
6.1
KB
-rw-r--r--
pic-21.html
26.61
KB
-rw-r--r--
pic-22.html
2.67
KB
-rw-r--r--
pic-23.html
1.74
KB
-rw-r--r--
pic-3.html
7.48
KB
-rw-r--r--
pic-4.html
5.46
KB
-rw-r--r--
pic-5.html
3.16
KB
-rw-r--r--
pic-6.html
11.22
KB
-rw-r--r--
pic-7.html
2.57
KB
-rw-r--r--
pic-8.html
3.32
KB
-rw-r--r--
pic-9.html
4.54
KB
-rw-r--r--
pic.html
6.92
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : pic-13.html
<!-- Creator : groff version 1.22.4 --> <!-- CreationDate: Wed Mar 23 13:56:30 2022 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta name="generator" content="groff -Thtml, see www.gnu.org"> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <meta name="Content-Style" content="text/css"> <style type="text/css"> p { margin-top: 0; margin-bottom: 0; vertical-align: top } pre { margin-top: 0; margin-bottom: 0; vertical-align: top } table { margin-top: 0; margin-bottom: 0; vertical-align: top } h1 { text-align: center } </style> <title>pic-13.html</title> </head> <hr> [ <a href="pic-12.html">prev</a> | <a href="pic-14.html">next</a> | <a href="pic.html">top</a> ] <hr> <h2>13. Expressions, Variables, and Assignment <a name="13. Expressions, Variables, and Assignment"></a> </h2> <p style="margin-top: 1em"><font color="#000000">A number is a valid expression, of course (all numbers are stored internally as floating-point). Decimal-point notation is acceptable; in GNU <b>gpic</b>, scientific notation in C’s ‘e’ format (like 5e-2) is accepted.</font></p> <p style="margin-top: 1em"><font color="#000000">Anywhere a number is expected, the language also accepts a variable. Variables may be the built-in style variable described in the last section, or new variables created by assignment.</font></p> <p style="margin-top: 1em"><font color="#000000">DWB <b>pic</b> supports only the ordinary assignment via <b>=</b>, which defines the variable (on the left side of the equal sign) in the current block if it is not already defined there, and then changes the value (on the right side) in the current block. The variable is not visible outside of the block. This is similar to the C programming language where a variable within a block shadows a variable with the same name outside of the block.</font></p> <p style="margin-top: 1em"><font color="#000000">GNU <b>gpic</b> supports an alternate form of assignment using <b>:=</b>. The variable must already be defined, and the value is assigned to that variable without creating a variable local to the current block. For example, this</font></p> <p style="margin-left:10%; margin-top: 1em"><font color="#000000">x=5 <br> y=5 <br> [ <br> x:=3 <br> y=3 <br> ] <br> print x " " y</font></p> <p style="margin-top: 1em"><font color="#000000">prints <b>3 5</b>.</font></p> <p style="margin-top: 1em"><font color="#000000">You can use the height, width, radius, and x and y coordinates of any object or corner in expressions. If <b>A</b> is an object label or name, all the following are valid:</font></p> <p style="margin-left:10%; margin-top: 1em"><font color="#000000">A.x # x coordinate of the center of A <br> A.ne.y # y coordinate of the northeast corner of A <br> A.wid # the width of A <br> A.ht # and its height <br> 2nd last circle.rad # the radius of the 2nd last circle</font></p> <p style="margin-top: 1em"><font color="#000000">Note the second expression, showing how to extract a corner coordinate.</font></p> <p style="margin-top: 1em"><font color="#000000">Basic arithmetic resembling those of C operators are available; <b>+</b>, <b>*</b>, <b>-</b>, <b>/</b>, and <b>%</b>. So is <b>^</b> for exponentiation. Grouping is permitted in the usual way using parentheses. GNU <b>gpic</b> allows logical operators to appear in expressions; <b>!</b> (logical negation, not factorial), <b>&&</b>, <b>||</b>, <b>==</b>, <b>!=</b>, <b>>=</b>, <b><=</b>, <b><</b>, <b>></b>.</font></p> <p style="margin-top: 1em"><font color="#000000">Various built-in functions are supported: <b>sin(</b><i>x</i><b>)</b>, <b>cos(</b><i>x</i><b>)</b>, <b>log(</b><i>x</i><b>)</b>, <b>exp(</b><i>x</i><b>)</b>, <b>sqrt(</b><i>x</i><b>)</b>, <b>max(</b><i>x</i><b>,</b><i>y</i><b>)</b>, <b>atan2(</b><i>x</i><b>,</b><i>y</i><b>)</b>, <b>min(</b><i>x</i><b>,</b><i>y</i><b>)</b>, <b>int(</b><i>x</i><b>)</b>, <b>rand()</b>, and <b>srand()</b>. Both <b>exp</b> and <b>log</b> are base 10; <b>int</b> does integer truncation; <b>rand()</b> returns a random number in [0-1), and <b>srand()</b> sets the seed for a new sequence of pseudo-random numbers to be returned by <b>rand()</b> (<b>srand()</b> is a GNU extension).</font></p> <p style="margin-top: 1em"><font color="#000000">GNU <b>gpic</b> also documents a one-argument form or rand, <b>rand(</b><i>x</i><b>)</b>, which returns a random number between 1 and <i>x</i>, but this is deprecated and may be removed in a future version.</font></p> <p style="margin-top: 1em"><font color="#000000">The function <b>sprintf()</b> behaves like a C <i>sprintf</i>(3) function that only takes %, %e, %f, and %g format strings.</font></p> <hr> [ <a href="pic-12.html">prev</a> | <a href="pic-14.html">next</a> | <a href="pic.html">top</a> ] <hr>
Close