<?php
include "Turkce_matematik.class.php";
$sayiX = array (3,5,1,2);
$sayiY = array (1,1,2,1);
$math = new DortIslem($sayiX,$sayiY);
print "X Sayisi : {$math->X } \n<br />";
print "Y Sayisi : {$math->Y } \n<br />";
print "\n<br />";
print "Toplam : {$math->Toplama()} \n<br />";
print "Fark : {$math->Cikarma()} \n<br />";
print "Carpim : {$math->Carpma() } \n<br />";
print "Bolum : {$math->Bolme() } \n<br />";
print "Modul : {$math->Modul() } \n<br />";
$karekok = new KareKok($sayiX);
print "SayiX icin ( {$karekok->SetSayi()} ) icin Karekok = {$karekok->Sonuc()} \n<br />";
$faktoryel = new Faktoryel($sayiY);
print "SayiY icin ( {$faktoryel->SetSayi()}) Faktoryel = {$faktoryel->Sonuc($faktoryel->SetSayi())} \n<br />";
$taban = new Taban("FF00FF","16","2"); //Test degerleri
print "2 lik Tabana gore : {$taban->Sonuc()} \n<br />";
$kokler = new FonksiyonKokleriniBul("(x*x-9)","-10","+10","0.01","0.1");
print_r ($kokler->Sonuc());
$daire = new Daire (3); // Yaricapi 3 birim olan daire nesnesi
print ("<br>Daire Cevresi:" . $daire->Cevre ()." Birim ");
print ("<br>Daire Alani :" . $daire->Alan ()." Birim ");
print ("<br>Daire Dilimi Alani (180 derece icin)" . $daire->DaireDilimiAlani (180)." Birim ");
$kesirli = new KesirliYazim(1.5);
print ("\n<br />".$kesirli->Sonuc());
print "\n <br />";
$ucgen = new Ucgen;
$ucgen->Kenarlar(6,8,10);
echo $ucgen->AciA();
print "\n <br />";
echo $ucgen->AciB();
print "\n <br />";
echo $ucgen->AciC();
print "\n <br />";
echo $ucgen->Alan();
?>
|