Welcome to Onlinetunes24 .....

We are committed to become your long-term, trusted partner. Our priority is not only to provide professional services and solutions but to become your IT vendor dedicated to meet your needs today and support your growing business needs tomorrow.

This is default featured post 1 title

We are committed to become your long-term, trusted partner. Our priority is not only to provide professional services and solutions but to become your IT vendor dedicated to meet your needs today and support your growing business needs tomorrow.

This is default featured post 2 title

We are committed to become your long-term, trusted partner. Our priority is not only to provide professional services and solutions but to become your IT vendor dedicated to meet your needs today and support your growing business needs tomorrow.

This is default featured post 3 title

We are committed to become your long-term, trusted partner. Our priority is not only to provide professional services and solutions but to become your IT vendor dedicated to meet your needs today and support your growing business needs tomorrow.

This is default featured post 4 title

We are committed to become your long-term, trusted partner. Our priority is not only to provide professional services and solutions but to become your IT vendor dedicated to meet your needs today and support your growing business needs tomorrow.

Encrypted and Decrypted using md5

<?php
 

echo 'Input = '.$input ="Admin".'<br>';

$encrypted = encryptIt( $input );
$decrypted = decryptIt( $encrypted );

echo 'Encrypted = '.$encrypted . '<br />' .'Decrypted = '.$decrypted;

function encryptIt( $q ) {
    $cryptKey  = 'qJB0rGtIn5UB1xG03efyCp';
    $qEncoded      = base64_encode( mcrypt_encrypt( MCRYPT_RIJNDAEL_256, md5( $cryptKey ), $q, MCRYPT_MODE_CBC, md5( md5( $cryptKey ) ) ) );
    return( $qEncoded );
}

function decryptIt( $q ) {
    $cryptKey  = 'qJB0rGtIn5UB1xG03efyCp';
    $qDecoded      = rtrim( mcrypt_decrypt( MCRYPT_RIJNDAEL_256, md5( $cryptKey ), base64_decode( $q ), MCRYPT_MODE_CBC, md5( md5( $cryptKey ) ) ), "\0");
    return( $qDecoded );
}


?>

Find the root of equation: X^2-2X-3 = 0. using iterative method. Take initial value X = 2

Find the root of equation: X2-2X-3 = 0. using iterative method. Take initial value X = 2 [Calculation up to 4 decimal places]

Program:
<?php
    $c = 2; // Counter Start Value Assign Here.
    $x = "";
    $x2 = 2;    // Initial value Assign Here.
   
    echo "X 1 = 2 <br />"; // Assign X1 Value Here.
   
    for ($i = 2; $i <= $c; $i = $i+1)    {
        $x=$x2;
        // Simplify Equation Here.
        $x2 = number_format(sqrt((2*$x)+3),"4",".","");
        $c++;    // Increment Counter Value.
        echo "X $i = " .$x2 . '<br />';

        if ($x === $x2) {
            echo "<h3 style = 'color:green'> Hello same value $x2 is found. </h3>";
            $c = $i-1;
        }
    }
?>

Find the root of equation: x-cosx = 0. using iterative method. Take initial value X = 1

Find the root of equation: x-cosx = 0. using iterative method. Take initial value X = 1 [Calculation up to 4 decimal places]

Program:
 <?php
    $c = 2; // Counter Start Value Assign Here.
    $x = "";
    $x2 = 1;    // Initial value Assign Here.
   
    echo "X 1 = 1 <br />"; // Assign X1 Value Here.
   
    for ($i = 2; $i <= $c; $i = $i+1)    {
        $x=$x2;
        // Simplify Equation Here.
        $x2 = number_format((cos($x)),"4",".","");
        $c++;    // Increment Counter Value.
        echo "X $i = " .$x2 . '<br />';

        if ($x === $x2) {
            echo "<h3 style = 'color:green'> Hello same value $x2 is found. </h3>";
            $c = $i-1;
        }
    }
?>

Consider the quadratic equation: X^2-2X-2 = 0. Find the root of this equation using iterative method. Take initial value X1 = 1

Consider the quadratic equation: X2-2X-2 = 0. Find the root of this equation using iterative method. Take initial value X1 = 1 [Calculation up to 3 decimal places]

Program:
<?php
    $c = 2; // Counter Start Value Assign Here.
    $x = "";
    $x2 = 1;    // Initial value Assign Here.
   
    echo "X 1 = 1 <br />"; // Assign X1 Value Here.
   
    for ($i = 2; $i <= $c; $i = $i+1)    {
        $x=$x2;
        // Simplify Equation Here.
        $x2 = number_format((1-(0.5*($x*$x))),"3",".","");
        $c++;    // Increment Counter Value.
        echo "X $i = " .$x2 . '<br />';

        if ($x === $x2) {
            echo "<h3 style = 'color:green'> Hello same value $x2 is found. </h3>";
            $c = $i-1;
        }
    }
?>

Find the root of given eqution using iterative method.

Consider the quadratic equation: 2X2-4X+1 = 0. Find the root of this equation using iterative method. Take initial value x=1 [Calculation up to 4 decimal places]

Program:

<?php
    $c = 2; // Counter Start Value Assign Here.
    $x = "";
    $x2 = 1;    // Initial value Assign Here.
   
    echo "X 1 = 1 <br />"; // Assign X1 Value Here.
   
    for ($i = 2; $i <= $c; $i = $i+1)    {
        $x=$x2;
        // Simplify Equation Here.
        $x2 = number_format(((0.5*($x*$x))+(1/4)),"4",".","");
        $c++;    // Increment Counter Value.
        echo "X $i = " .$x2 . '<br />';

        if ($x === $x2) {
            echo "<h3 style = 'color:green'> Hello same value $x2 is found. </h3>";
            $c = $i-1;
        }
    }
?>

Loading
Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Flying Twitter Bird Widget By ICT Sparkle