Online Statistics Calculators - Solvers
Use this calculator if you want to compute the main descriptive statistics of a given dataset:
[insert_php]
$root_path = "/home/timeofwa/homeworkfactory.com";
require_once $root_path . "/wp-content/php_includes/FormFunctions.php";
$solver_name = "descriptive-statistics-calculator";
echo_form_start(); //Starts the form (with DIV for style)
echo_anchor_results(); //The point where the browser will scroll for the results
echo_begin_div_table();
input_textarea("Type the sample (comma or space separated)","xdata",100, 128,1,128,true,"","",false); //Textarea line
input_line('Name of the variable (Optional)','xname',101,30,"","",true); //Input line
echo_end_div_table();
echo_hidden_input($solver_name); //Hidden input for validation
include "adsinc/mathcracker-responsive1.php";
echo_submit("Calculate it",102); //Submit button
echo_form_end(); //End form
[/insert_php]
[insert_php]
if ($_SERVER['REQUEST_METHOD'] == 'POST' && $_POST[$solver_name] == $solver_name){
//error_reporting(E_ALL & ~E_NOTICE);
//*******************************
//Retrieval of POST parameters
//*******************************
$xdata = trim($_POST['xdata']);
$xname = trim($_POST['xname']);
//******************************************************
//CALL THE REQUIRED PHP LIBRARIES
//******************************************************
require_once $root_path . "/wp-content/MathLibraries/Solver_DescriptiveStatisticsClass.php";
//****************************************
//RENDER THE SOLUTION AND ERRORS
//****************************************
try{
//**************************************************
//INSTANTIATE OBJECT, ECHO STEPS AND ERRORS
//**************************************************
$oSolver = new DescriptiveStatisticsCalculator($xdata,$xname);
$oSolver->EchoSteps();
$oSolver->EchoSpecificErrors();
}
catch(Exception $e){
echo "Something went wrong: ", $e->getMessage(), "\n";
}
}
[/insert_php]