//3 functions to toggle
function togglePhrase(){
$week =strftime('%U');
$phraseOne =" ";
$phraseTwo =" ";
// 00 -- 53
if(($week < 11) || (($week > 22) && ($week < 34)) || ($week > 45))//approximately half the weeks of the year
{
print $phraseOne ;
}
else{
print $phraseTwo;
}
}
function andToggler()
{
$phraseOne ="& ";
$phraseTwo =" and ";
// 00 -- 53
if(($week < 3) || (($week > 15) && ($week < 31)) || ($week > 33))//approximately half the weeks of the year
{
print $phraseOne ;
}
else{
print $phraseTwo;
}
}
function aTheToggler()
{
$phraseOne =" a ";
$phraseTwo =" the ";
// 00 -- 53
if(($week < 20) || (($week > 25) && ($week < 44)) || ($week > 49))//approximately half the weeks of the year
{
print $phraseOne ;
}
else{
print $phraseTwo;
}
}
?>
Interactive System of Linear Inequalities
Explore the equations,graphs and solution