Last active
October 2, 2021 08:21
-
-
Save yakupyavas/037956cf1c594eee20fb to your computer and use it in GitHub Desktop.
Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'complex.php'; | |
#Examples | |
$complex = new Complex(); //instance | |
$complex->set_comp_num(3,4); //define number(Default 0,0) | |
echo"Number: ".$complex->comp_numb."<br>"; | |
echo"Real: ".$complex->real."<br>"; | |
echo"Imaginer: ".$complex->imaginer."<br>"; | |
echo "Modulus: ".$complex->modulus()."<br>"; | |
echo "Polar Form: ".$complex->polar_form()."<br>"; | |
echo "Conjugate Number: ".$complex->conj_number()."<br>"; | |
echo "Conjugate Form: ".$complex->conj_form()."<br>"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment