Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 18.188.113.189
Web Server : Apache
System : Linux zeus.vwu.edu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Wed Nov 6 14:29:02 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.2.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/asbright/www/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/asbright/www/roots.php
<!--
	Filename: roots.php
	Name: Andrew Bright
	Task: Script to calculate the root(s) of the quadratic equation, and output the result.
	x^2 - 24x + 144 = 0
-->

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styling.css">
<title>Linear Equation Solver
</title>
<h1>
Linear Equation Solver
</h1>
</head>

<?php
	include("navbar.php");
?>

<br/><br/>

<body>
<br/>
<div style="text-align:center">
<p>
<br/><br/>
<?php
	$a = 1;
	$b = -24;
	$c = 144;
	$solution = (-$b + sqrt($b * $b - 4.0 * $a * $c))/(2.0 * $a);
	print "The root for x^2 - 24x + 144 = 0 is $solution";
?>
</p>
</div>
</body>
</html>

Stv3n404 - 2023