首页 > 其他分享 >200010 计算墙的体积面积砖用量已知长宽高

200010 计算墙的体积面积砖用量已知长宽高

时间:2022-12-17 22:56:13浏览次数:44  
标签:长宽 7.800 平方 200010 240 用量 2600 墙砖

点击查看代码
<?php
header('Content-Type: text/html; charset=utf-8');
define ('ROOT', $_SERVER['DOCUMENT_ROOT']);
include ROOT.'/assets/php/head.php';

$tit= '计算墙的体积面积砖用量已知长宽高';
//长:3000,宽:240,高:2600
$val='3000 240 2600';

//调用方法
mill($tit,$img,$val);

//mill 是磨粉机的方法
function mill($tit,$img,$val){
    //初始化
    include ROOT.'/assets/php/init.php';
    imgt($img,$tit);

    //设置默认值 
    bcscale (3);
    //$pi = round(pi(),2);
    
    //以空格分割成数值
    $vals = expl($val);
    $a = evev($vals[0]);
    $b = evev($vals[1]);
    $h = evev($vals[2]);

    //已知条件
    $know = array();
    array_push($know, $val);
    $v0 = eveq($vals[0]);
    array_push($know, "长:$v0{$unit['mm']}");
    $v1 = eveq($vals[1]);
    array_push($know, "宽:$v1{$unit['mm']}");
    $v2 = eveq($vals[2]);
    array_push($know, "高:$v2{$unit['mm']}");

    //计算步骤
    $step = array();
    array_push($step, "墙的体积:");
    array_push($step, "{$math['eq']} $a{$math['mul']}$b{$math['mul']}$h");
    $ab = bcmul($a, $b);
    array_push($step, "{$math['eq']} $ab{$math['mul']}$h");
    $V = bcmul($ab, $h);
    array_push($step, "{$math['eq']} $V{$unit['mm3']}");
    $V = bcdiv($V, 1000000000);
    array_push($step, "{$math['eq']} $V{$unit['m3']}");

    array_push($step, "墙的面积:");
    array_push($step, "{$math['eq']} $a{$math['mul']}$h");
    $S = bcmul($a, $h);
    array_push($step, "{$math['eq']} $S{$unit['mm2']}");
    $S = bcdiv($S, 1000000);
    array_push($step, "{$math['eq']} $S{$unit['m2']}");

    array_push($step, "120墙砖用量:");
    array_push($step, "{$math['eq']} $S{$math['mul']}64");
    $S64 = bcmul($S, 64);
    array_push($step, "{$math['eq']} $S64");
    $S64 = ceil($S64);
    array_push($step, "{$math['eq']} $S64");

    array_push($step, "180墙砖用量:");
    array_push($step, "{$math['eq']} $S{$math['mul']}96");
    $S96 = bcmul($S, 96);
    array_push($step, "{$math['eq']} $S96");
    $S96 = ceil($S96);
    array_push($step, "{$math['eq']} $S96");

    array_push($step, "240墙砖用量:");
    array_push($step, "{$math['eq']} $S{$math['mul']}128");
    $S128 = bcmul($S, 128);
    array_push($step, "{$math['eq']} $S128");
    $S128 = ceil($S128);
    array_push($step, "{$math['eq']} $S128");

    array_push($step, "370墙砖用量:");
    array_push($step, "{$math['eq']} $S{$math['mul']}192");
    $S192 = bcmul($S, 192);
    array_push($step, "{$math['eq']} $S192");
    $S192 = ceil($S192);
    array_push($step, "{$math['eq']} $S192");

    array_push($step, "490墙砖用量:");
    array_push($step, "{$math['eq']} $S{$math['mul']}256");
    $S256 = bcmul($S, 256);
    array_push($step, "{$math['eq']} $S256");
    $S256 = ceil($S256);
    array_push($step, "{$math['eq']} $S256");

    array_push($step, "240空心墙砖用量:");
    array_push($step, "{$math['eq']} $S{$math['mul']}80");
    $S80 = bcmul($S, 80);
    array_push($step, "{$math['eq']} $S80");
    $S80 = ceil($S80);
    array_push($step, "{$math['eq']} $S80");

    //算出结果
    $ends = array();
    array_push($ends, "墙的体积:$V{$unit['m3']}");
     array_push($ends, "墙的面积:$S{$unit['m2']}");
    array_push($ends, "120墙砖用量:$S64");
    array_push($ends, "180墙砖用量:$S96");
    array_push($ends, "240墙砖用量:$S128");
    array_push($ends, "370墙砖用量:$S192");
    array_push($ends, "490墙砖用量:$S256");
    array_push($ends, "240空心墙砖用量:$S80");

    //公式表示
    $home = array();
    array_push($home, "墙的体积:V{$math['eq']}a{$math['mul']}b{$math['mul']}h");
    array_push($home, "墙的面积:S{$math['eq']}a{$math['mul']}h");
    array_push($home, "120墙砖用量:N{$math['eq']}S{$math['mul']}64");
    array_push($home, "180墙砖用量:N{$math['eq']}S{$math['mul']}96");
    array_push($home, "240墙砖用量:N{$math['eq']}S{$math['mul']}128");
    array_push($home, "370墙砖用量:N{$math['eq']}S{$math['mul']}192");
    array_push($home, "490墙砖用量:N{$math['eq']}S{$math['mul']}256");
    array_push($home, "240空心墙砖用量:N{$math['eq']}S{$math['mul']}80");

    //解释说明
    $info = array();
    array_push($info, "墙的体积 {$math['eq']} 墙的长度 {$math['mul']} 墙的宽度 {$math['mul']} 墙的高度 ");
    array_push($info, "墙的面积 {$math['eq']} 墙的长度 {$math['mul']} 墙的高度 ");
    array_push($info, "实体墙体标准砖用量:");
    array_push($info, "120墙一个平方需要64块标准砖;");
    array_push($info, "180墙一个平方需要96块标准砖;");
    array_push($info, "240墙一个平方需要128块标准砖;");
    array_push($info, "370墙一个平方需要192块标准砖;");
    array_push($info, "490墙一个平方需要256块标准砖;");
    array_push($info, "240空心墙一个平方需要80多块标准砖。");

    know($know);
    ends($ends);
    home($home);
    step($step);
    info($info);
}
?>
<?php include ROOT.'/assets/php/foot.php';
//写下笔记
$note = array();
//note($note);
?>

☁参考上图[22-12-17 chaoyi]

☀计算墙的体积面积砖用量已知长宽高
3000 240 2600  
长:3000㎜  
宽:240㎜  
高:2600㎜  

♠算出结果  
墙的体积:1.872m³  
墙的面积:7.800m²  
120墙砖用量:500  
180墙砖用量:749  
240墙砖用量:999  
370墙砖用量:1498  
490墙砖用量:1997  
240空心墙砖用量:624  

♥公式表示  
墙的体积:V=a×b×h  
墙的面积:S=a×h  
120墙砖用量:N=S×64  
180墙砖用量:N=S×96  
240墙砖用量:N=S×128  
370墙砖用量:N=S×192  
490墙砖用量:N=S×256  
240空心墙砖用量:N=S×80  

♣计算步骤  
墙的体积:  
= 3000×240×2600  
= 720000.000×2600  
= 1872000000.000㎜³  
= 1.872m³  
墙的面积:  
= 3000×2600  
= 7800000.000㎜²  
= 7.800m²  
120墙砖用量:  
= 7.800×64  
= 499.200  
= 500  
180墙砖用量:  
= 7.800×96  
= 748.800  
= 749  
240墙砖用量:  
= 7.800×128  
= 998.400  
= 999  
370墙砖用量:  
= 7.800×192  
= 1497.600  
= 1498  
490墙砖用量:  
= 7.800×256  
= 1996.800  
= 1997  
240空心墙砖用量:  
= 7.800×80  
= 624.000  
= 624  

♦公式说明  
墙的体积 = 墙的长度 × 墙的宽度 × 墙的高度   
墙的面积 = 墙的长度 × 墙的高度   
实体墙体标准砖用量:  
120墙一个平方需要64块标准砖;  
180墙一个平方需要96块标准砖;  
240墙一个平方需要128块标准砖;  
370墙一个平方需要192块标准砖;  
490墙一个平方需要256块标准砖;  
240空心墙一个平方需要80多块标准砖。  

标签:长宽,7.800,平方,200010,240,用量,2600,墙砖
From: https://www.cnblogs.com/onestopweb/p/16989774.html

相关文章