# File: Ornek.php

 Recommend this page to a friend! Stumble It! Bookmark in del.icio.us
 Classes of Serkan Ceylani > Calculator > Ornek.php > Download
File: Ornek.php Example script text/plain Example File (TURKISH) Calculator Perform basic mathematical operations By Serkan Ceylani . 9 years ago 1,642 bytes

## Contents

 ``` X } \n
"; print "Y Sayisi : {\$math->Y } \n
"; print "\n
"; print "Toplam : {\$math->Toplama()} \n
"; print "Fark : {\$math->Cikarma()} \n
"; print "Carpim : {\$math->Carpma() } \n
"; print "Bolum : {\$math->Bolme() } \n
"; print "Modul : {\$math->Modul() } \n
"; \$karekok = new KareKok(\$sayiX); print "SayiX icin ( {\$karekok->SetSayi()} ) icin Karekok = {\$karekok->Sonuc()} \n
"; \$faktoryel = new Faktoryel(\$sayiY); print "SayiY icin ( {\$faktoryel->SetSayi()}) Faktoryel = {\$faktoryel->Sonuc(\$faktoryel->SetSayi())} \n
"; \$taban = new Taban("FF00FF","16","2"); //Test degerleri print "2 lik Tabana gore : {\$taban->Sonuc()} \n
"; \$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 ("
Daire Cevresi:" . \$daire->Cevre ()." Birim "); print ("
Daire Alani :" . \$daire->Alan ()." Birim "); print ("
Daire Dilimi Alani (180 derece icin)" . \$daire->DaireDilimiAlani (180)." Birim "); \$kesirli = new KesirliYazim(1.5); print ("\n
".\$kesirli->Sonuc()); print "\n
"; \$ucgen = new Ucgen; \$ucgen->Kenarlar(6,8,10); echo \$ucgen->AciA(); print "\n
"; echo \$ucgen->AciB(); print "\n
"; echo \$ucgen->AciC(); print "\n
"; echo \$ucgen->Alan(); ?> ```