Minggu, 13 Oktober 2013

PHP Indonesia - Facebook: tutorial para bola

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Start taking a college level music theory class today.

This beginner class is now accessible to aspiring musicians of all ages. Learn all of the basic concepts in an easy to follow manner.
From our sponsors
tutorial para bola
Oct 13th 2013, 14:17, by Hengky Prananda

Hengky Prananda 2:17pm Oct 13
tutorial para bola

<?php
function retval($inv) {
if (strpos($inv, "E-") !== false) return "0";
return $inv;
}
?>

<html>
<head>
<title>Parabola Line Graph - RJM Programming - http://www.rjmprogramming.com.au (Copyright &copy; 2013 rjmprogramming.com.au all rights reserved.)</title>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {

var dataTable = new google.visualization.DataTable();
dataTable.addColumn('number', 'X');
dataTable.addColumn('number', 'Y');
dataTable.addRows([
<?php
//echo "here";
$minval = "-2";
$maxval = "1.5";
$se2 = "2";
$se1 = "-1";
$se0 = "-6";
$e2 = "2";
$e1 = "-1";
$e0 = "-6";
if (isset($_GET['minval'])) {
$minval = $_GET['minval'];
$maxval = $_GET['maxval'];
if ($minval == $maxval && $maxval == 1400) {
$minval = -10.0;
$maxval = 10.0;
}
$e2 = str_replace("+","",$_GET['e2']);
$e1 = str_replace("+","",$_GET['e1']);
$e0 = str_replace("+","",$_GET['e0']);
$se2 = $_GET['e2'];
$se1 = str_replace("++","+",str_replace("+-","-",("+".$_GET['e1'])));
$se0 = str_replace("++","+",str_replace("+-","-",("+".$_GET['e0'])));
}
$off = 1.0;
$c = "";
for ($x=($minval-$off); $x<($maxval+$off); $x+=0.1) {
$y = ((($e2) * ($x) * ($x)) + (($e1) * ($x)) + ($e0));
$c = "[".retval($x).",".retval($y)."]\n";
echo "[".retval($x).",".retval($y)."],\n";
}
if ($minval != $maxval) {
$x = ($maxval+$off);
$y = ((($e2) * (($maxval)+$off) * (($maxval)+$off)) + (($e1) * (($maxval)+$off)) + ($e0));
echo "[".retval($x).",".retval($y)."]\n";
} else {
echo $c;
}
echo " ]);\n";
echo " var dataView = new google.visualization.DataView(dataTable);\n";

echo " var options = {\n";
echo " backgroundColor: 'lightgray',\n";
echo " title: 'Parabola y = ".$se2."x^2 ".$se1."x ".$se0."'\n";
echo " };\n";

?>
var chart = new google.visualization.LineChart(document.getElementById('chart_div'));
chart.draw(dataTable, options);
}

function ask() {
if (document.URL.indexOf("&") == (0 - 1)) {
var sqval = prompt("Enter ??? of Parabola graph ... y = ???x^2 + ??x + ?", "0");
var nonsqval = prompt("Enter ?? of Parabola graph ... y = " + sqval + "x^2 + ??x + ?", "0");
var val = prompt("Enter ? of Parabola graph ... y = " + sqval + "x^2" + nonsqval + "x + ?", "0");
var minval=-600.0;
var maxval=-600.0;
var x=minval, y, goes=0;
y = eval(( (sqval) * (minval) * (minval)) + ( (nonsqval) * (minval) ) + (val));
if (y < 0) {
while (y < 0 && goes < 2000) {
minval = eval(minval + 1.0);
y = eval(( (sqval) * (minval) * (minval)) + ( (nonsqval) * (minval) ) + (val));
goes = eval(goes + 1);
}
if (goes < 2000) {
goes = 0;
maxval = minval;
y = eval(( (sqval) * (maxval) * (maxval)) + ( (nonsqval) * (maxval) ) + (val));
while (y > 0 && goes < 2000) {
maxval = eval(maxval + 1.0);
y = eval(( (sqval) * (maxval) * (maxval)) + ( (nonsqval) * (maxval) ) + (val));
goes = eval(goes + 1);
}
} else {
minval = -10.0;
maxval = 10.0;
}
} else {
while (y > 0 && goes < 2000) {
minval = eval(minval + 1.0);
y = eval(( (sqval) * (minval) * (minval)) + ( (nonsqval) * (minval) ) + (val));
goes = eval(goes + 1);
}
if (goes < 2000) {
goes = 0;
maxval = minval;
y = eval(( (sqval) * (maxval) * (maxval)) + ( (nonsqval) * (maxval) ) + (val));
while (y < 0 && goes < 2000) {
maxval = eval(maxval + 1.0);
y = eval(( (sqval) * (maxval) * (maxval)) + ( (nonsqval) * (maxval) ) + (val));
goes = eval(goes + 1);
}
} else {
maxval = minval;
}
}
if (nonsqval.indexOf("+") == (0 - 1)) {
if (nonsqval.indexOf("-") == (0 - 1)) {
nonsqval = "+" + nonsqval;
}
}
if (val.indexOf("+") == (0 - 1)) {
if (val.indexOf("-") == (0 - 1)) {
val = "+" + val;
}
}
if (nonsqval.replace("0","").length > 0 || sqval.replace("0","").length > 0 || val.replace("0","").length > 0) {
window.location = "./parabola_lgraph.php?minval=" + minval + "&maxval=" + maxval + "&e2=" + sqval + "&e1=" + nonsqval + "&e0=" + val;
}
}
}
</script>
</head>
<body onload="ask();">
<h1>Parabola Line Graph</h1>
<div id="chart_div" style="width: 900px; height: 500px; background-color: yellow;"></div>
<a title="Another Line Graph" href="./parabola_lgraph.php">Another parabola graph?</a>
</body>
</html>

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar