Login   Register  
PHP Classes

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Armin Randjbar-Daemi  >  Boolean Minimization  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example
Class: Boolean Minimization
Minimize boolean expressions using base 3 matrix
Author: By
Last change:
Date: 6 years ago
Size: 1,055 bytes


Class file image Download
* Author: Armin Randjbar-Daemi
* Demo: http://www.omnistream.co.uk/minimization/
if (!empty($_POST['vari'])&&!empty($_POST['minterm'])&&$_POST['vari']<"12"&&strlen($_POST['minterm'])<"100")

$chrono = new Chronometer();
$Minimization=new Minimization($vari,$minterm);
$Minimization->PrimeImplicants[$p]."<br />";//show final result
echo "<font color=\"#c30606\">execution&nbsp;time:&nbsp;".$chrono->show()."&nbsp;&#956;s</font>";
<br /><br />
<form action="index.php" method="post">
<br />Minterms: <input type="text" name="minterm" />
<br />Variables: <input type="text" name="vari" />
<br /><input type="submit" value="ok" name="ok" />