PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Mohammed Cherkaoui   Trigonometric tools   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example file
Class: Trigonometric tools
Calculate sine, cosine and tangent of angles
Author: By
Last change:
Date: 14 years ago
Size: 1,385 bytes
 

Contents

Class file image Download
<?php

require('math.php');

$Math = new Math;

// &#1580;&#1604;&#1576; &#1575;&#1604;&#1603;&#1608;&#1587; &#1605;&#1606; &#1575;&#1604;&#1587;&#1610;&#1606; :

$Math->SetSin('&#1607;&#1606;&#1575; &#1575;&#1604;&#1587;&#1610;&#1606; &#1576;&#1575;&#1604;&#1571;&#1585;&#1602;&#1575;&#1605;');

echo
$Math->GetCosFromSin();// &#1591;&#1576;&#1575;&#1593;&#1577; &#1575;&#1604;&#1603;&#1608;&#1587;


// &#1580;&#1604;&#1576; &#1575;&#1604;&#1587;&#1610;&#1606; &#1605;&#1606; &#1575;&#1604;&#1603;&#1608;&#1587; :

$Math->SetCos('&#1607;&#1606;&#1575; &#1575;&#1604;&#1603;&#1608;&#1587; &#1576;&#1575;&#1604;&#1571;&#1585;&#1602;&#1575;&#1605;');

echo
$Math->GetSinFromCos();


// &#1580;&#1604;&#1576; &#1575;&#1604;&#1603;&#1608;&#1587; &#1605;&#1606; &#1575;&#1604;&#1578;&#1608;&#1606;&#1580;&#1608;&#1606;&#1578; :


$Math->SetTg('&#1602;&#1610;&#1605;&#1577; &#1575;&#1604;&#1578;&#1608;&#1606;&#1608;&#1606;&#1578; &#1576;&#1575;&#1604;&#1571;&#1585;&#1602;&#1575;&#1605;');

echo
$Math->GetCosFromTg();

// &#1580;&#1604;&#1576; &#1575;&#1604;&#1587;&#1610;&#1606; &#1605;&#1606; &#1575;&#1604;&#1578;&#1608;&#1606;&#1580;&#1608;&#1606;&#1578; :

$Math->SetTg('&#1602;&#1610;&#1605;&#1577; &#1575;&#1604;&#1578;&#1608;&#1606;&#1608;&#1606;&#1578; &#1576;&#1575;&#1604;&#1571;&#1585;&#1602;&#1575;&#1605;');

echo
$Math->GetSinFromTg();

?>