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  >  Quine-McCluskey Method  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: a simple Example
Class: Quine-McCluskey Method
Minimize boolean functions with Quine-McCluskey
Author: By
Last change:
Date: 7 years ago
Size: 1,147 bytes


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

        if (!empty(
$dontcare=" ".addslashes(trim($_POST['dontcare']));
$chrono = new Chronometer();
$QM=new QM($vari,$minterm,$dontcare);
$QM->essentialPrimes[$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 />DontCares: <input type=text name="dontcare" />
<br />Variables: <input type=text name="vari" />
<br /><input type=submit value="ok" name="ok" />