Login   Register  
PHP Classes
elePHPant
Icontem

File: Ornek.php

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

Contents

Class file image Download
<?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();
?>