Quadratic Equation Solver
getActiveSheet()->setCellValue('A1', $_POST['A']);
$objPHPExcel->getActiveSheet()->setCellValue('B1', $_POST['B']);
$objPHPExcel->getActiveSheet()->setCellValue('C1', $_POST['C']);
/** Calculate and Display the results **/
echo '
Roots:
';
$callStartTime = microtime(true);
echo $objPHPExcel->getActiveSheet()->getCell('B5')->getCalculatedValue().'
';
echo $objPHPExcel->getActiveSheet()->getCell('B6')->getCalculatedValue().'
';
$callEndTime = microtime(true);
$callTime = $callEndTime - $callStartTime;
echo '
Call time for Quadratic Equation Solution was '.sprintf('%.4f',$callTime).' seconds
';
echo ' Peak memory usage: '.(memory_get_peak_usage(true) / 1024 / 1024).' MB
';
}
}
?>