if($_POST['Calculate'] == 'Calculate' ) { extract( $_POST ); $Br = $br_gauss ; $L = $length ; $W = $width ; $T = $thickness ; $X = $dist_range; /* if( $L == "" ) { $L = 1 ; } if( $W == "" ) { $W = 1 ; } if( $T == "" ) { $T = 1 ; } if( $X == "" ) { $X = 1 ; } */ if( $units_length == "mm" ) { $L = $L/25.4 ; } if( $units_width == "mm" ) { $W = $W/25.4 ; } if( $units_thickness == "mm" ) { $T = $T/25.4 ; } if( $units_dist_range == "mm" ) { $X = $X/25.4 ; } $wcrossl = $W*$L ; $xsqure = $X*$X ; $wsqure = $W*$W ; $lsqure = $L*$L ; $fourxsqure_plus_wsqure_plus_lsqure = 4*$xsqure + $wsqure + $lsqure ; $sqrt_fourxsqure_plus_wsqure_plus_lsqure = sqrt($fourxsqure_plus_wsqure_plus_lsqure) ; $twox_cross_sqrt_fourxsqure_plus_wsqure_plus_lsqure = 2*$X*$sqrt_fourxsqure_plus_wsqure_plus_lsqure; if( $twox_cross_sqrt_fourxsqure_plus_wsqure_plus_lsqure == "" ) { $twox_cross_sqrt_fourxsqure_plus_wsqure_plus_lsqure = 0.0000001 ; } $wcrossl_by_twox_cross_sqrt_fourxsqure_plus_wsqure_plus_lsqure = $wcrossl/$twox_cross_sqrt_fourxsqure_plus_wsqure_plus_lsqure; $tan_inverse1 = atan($wcrossl_by_twox_cross_sqrt_fourxsqure_plus_wsqure_plus_lsqure); $xplust = $X + $T ; $fourcrossxplustwholesqure_plus_wsqure_plus_lsqure = 4*$xplust*$xplust + $wsqure + $lsqure; $squrt_fourcrossxplustwholesqure_plus_wsqure_plus_lsqure = sqrt($fourcrossxplustwholesqure_plus_wsqure_plus_lsqure); $twoxplust_cross_squrt_fourcrossxplustwholesqure_plus_wsqure_plus_lsqure = 2*$xplust*$squrt_fourcrossxplustwholesqure_plus_wsqure_plus_lsqure; if( $twoxplust_cross_squrt_fourcrossxplustwholesqure_plus_wsqure_plus_lsqure == "" ) { $twoxplust_cross_squrt_fourcrossxplustwholesqure_plus_wsqure_plus_lsqure = 0.0000001 ; } $wcrossl_by_twoxplust_cross_squrt_fourcrossxplustwholesqure_plus_wsqure_plus_lsqure = $wcrossl/$twoxplust_cross_squrt_fourcrossxplustwholesqure_plus_wsqure_plus_lsqure; $tan_inverse2 = atan($wcrossl_by_twoxplust_cross_squrt_fourcrossxplustwholesqure_plus_wsqure_plus_lsqure); $B = abs(($Br/3.14) * ($tan_inverse1 - $tan_inverse2)); $squrebbyonethousand = ($B/1000)*($B/1000); if( $wcrossl == "0" ) { $wcrossl = 0.0000001 ; } $PF = 4 * 0.577 * $wcrossl * $squrebbyonethousand ; if($_POST['units_single'] == 'Tesla' ) { $B = $B/10000; } } ?>
![]() |
| ||
| home | products | search | checkout | policies | contact   | |||
| BLOCK CALCULATOR | |||||||||
|
Joe MagneatoTM
|
|
||||||||