点击查看代码
<?php
header('Content-Type: text/html; charset=utf-8');
define ('ROOT', $_SERVER['DOCUMENT_ROOT']);
include ROOT.'/assets/php/head.php';
$tit= '计算基坑体积已知底面长宽和顶面长宽和高';
//底面长:36,宽16;顶面长:39,宽:23;高:4
$val='36 16 39 23 4';
//调用方法
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);
$a1 = evev($vals[0]);
$b1 = evev($vals[1]);
$a2 = evev($vals[2]);
$b2 = evev($vals[3]);
$h = evev($vals[4]);
//已知条件
$know = array();
array_push($know, $val);
$v0 = eveq($vals[0]);
array_push($know, "底面长:$v0{$unit['m']}");
$v1 = eveq($vals[1]);
array_push($know, "底面宽:$v1{$unit['m']}");
$v2 = eveq($vals[2]);
array_push($know, "顶面长:$v2{$unit['m']}");
$v3 = eveq($vals[3]);
array_push($know, "顶面宽:$v3{$unit['m']}");
$v4 = eveq($vals[4]);
array_push($know, "基坑高:$v4{$unit['m']}");
//计算步骤
$step = array();
array_push($step, "底面的面积:S1");
array_push($step, "{$math['eq']} $a1{$math['mul']}$b1");
$S1 = bcmul($a1, $b1);
array_push($step, "{$math['eq']} $S1{$unit['m2']}");
array_push($step, "顶面的面积:S2");
array_push($step, "{$math['eq']} $a2{$math['mul']}$b2");
$S2 = bcmul($a2, $b2);
array_push($step, "{$math['eq']} $S2{$unit['m2']}");
array_push($step, "中部的面积:S0");
array_push($step, "{$math['eq']} {$math['lsqb']}{$math['lpar']}$a1{$math['add']}$a2{$math['rpar']}{$math['div']}2{$math['rsqb']}{$math['mul']}{$math['lsqb']}{$math['lpar']}$b1{$math['add']}$b2{$math['rpar']}{$math['div']}2{$math['rsqb']}");
$a1a1 = bcadd($a1, $a2);
$b1b2 = bcadd($b1, $b2);
array_push($step, "{$math['eq']} {$math['lpar']}$a1a1{$math['div']}2{$math['rpar']}{$math['mul']}{$math['lpar']}$b1b2{$math['div']}2{$math['rpar']}");
$a1a12 = bcdiv($a1a1,2);
$b1b22 = bcdiv($b1b2,2);
array_push($step, "{$math['eq']} $a1a12{$math['mul']}$b1b22");
$S0 = bcmul($a1a12, $b1b22);
array_push($step, "{$math['eq']} $S0{$unit['m2']}");
array_push($step, "天然状态下的体积:V1");
array_push($step, "{$math['eq']} {$math['lpar']}$h{$math['div']}6{$math['rpar']}{$math['mul']}{$math['lpar']}$S1{$math['add']}4{$math['mul']}$S0{$math['add']}$S2{$math['rpar']}");
$S04 = bcmul(4, $S0);
array_push($step, "{$math['eq']} {$math['lpar']}$h{$math['div']}6{$math['rpar']}{$math['mul']}{$math['lpar']}$S1{$math['add']}$S04{$math['add']}$S2{$math['rpar']}");
$h6 = $h/6;
$S1S2S04 = bcadd($S1+$S2,$S04);
array_push($step, "{$math['eq']} $h6{$math['mul']}$S1S2S04");
$V1 = bcmul($h6,$S1S2S04);
array_push($step, "{$math['eq']} $V1{$unit['m3']}");
array_push($step, "松散状态下的体积:V2");
$RS = 1.09;
array_push($step, "土的可松性系数:设RS{$math['eq']}$RS");
array_push($step, "{$math['eq']} $V1{$math['mul']}$RS");
$V2 = bcmul($V1, $RS);
array_push($step, "{$math['eq']} $V2{$unit['m3']}");
//算出结果
$ends = array();
array_push($ends, "底面的面积:$S1{$unit['m2']}");
array_push($ends, "顶面的面积:$S2{$unit['m2']}");
array_push($ends, "中部的面积:$S0{$unit['m2']}");
array_push($ends, "天然状态下的体积:$V1{$unit['m3']}");
array_push($ends, "松散状态下的体积:$V2{$unit['m3']}");
//公式表示
$home = array();
array_push($home, "底面的面积:S1{$math['eq']}a1{$math['mul']}b1");
array_push($home, "顶面的面积:S2{$math['eq']}a2{$math['mul']}b2");
array_push($home, "中部的面积:S0{$math['eq']}{$math['lsqb']}{$math['lpar']}a1{$math['add']}a2{$math['rpar']}{$math['div']}2{$math['rsqb']}{$math['mul']}{$math['lsqb']}{$math['lpar']}b1{$math['add']}b2{$math['rpar']}{$math['div']}2{$math['rsqb']}");
array_push($home, "天然状态下的体积:V1{$math['eq']}{$math['lpar']}h{$math['div']}6{$math['rpar']}{$math['mul']}{$math['lpar']}S1{$math['add']}4{$math['mul']}S0{$math['add']}S2{$math['rpar']}");
array_push($home, "松散状态下的体积:V2{$math['eq']}V1{$math['mul']}RS");
//解释说明
$info = array();
array_push($info, "底面的面积 {$math['eq']} 底面长 {$math['mul']} 底面宽 ");
array_push($info, "顶面的面积 {$math['eq']} 顶面长 {$math['mul']} 顶面宽 ");
array_push($info, "中部的面积 {$math['eq']} {$math['lsqb']}{$math['lpar']} 底面长 {$math['add']} 顶面长 {$math['rpar']}{$math['div']}2{$math['rsqb']}{$math['mul']}{$math['lsqb']} {$math['lpar']} 底面宽 {$math['add']} 顶面宽 {$math['rpar']}{$math['div']}2{$math['rsqb']}");
array_push($info, "天然状态下的体积 {$math['eq']} {$math['lpar']} 基坑高 {$math['div']} 6 {$math['rpar']} {$math['mul']} {$math['lpar']} 底面的面积 {$math['add']} 4 {$math['mul']} 中部的面积 {$math['add']} 顶面的面积 {$math['rpar']}");
array_push($info, "松散状态下的体积 {$math['eq']} 天然状态下的体积 {$math['mul']} 土的可松性系数");
//参考链接
$href = array();
array_push($href, "参考链接:https://baike.baidu.com/item/拟柱体/2126117?fr=aladdin");
know($know);
ends($ends);
home($home);
step($step);
info($info);
href($href);
}
?>
<?php include ROOT.'/assets/php/foot.php';
//写下笔记
$note = array();
//note($note);
?>
☁参考上图[22-12-18 chaoyi]
☀计算基坑体积已知底面长宽和顶面长宽和高
36 16 39 23 4
底面长:36m
底面宽:16m
顶面长:39m
顶面宽:23m
基坑高:4m
♠算出结果
底面的面积:576.000m²
顶面的面积:897.000m²
中部的面积:731.250m²
天然状态下的体积:2932.000m³
松散状态下的体积:3195.880m³
♥公式表示
底面的面积:S1=a1×b1
顶面的面积:S2=a2×b2
中部的面积:S0=[(a1+a2)÷2]×[(b1+b2)÷2]
天然状态下的体积:V1=(h÷6)×(S1+4×S0+S2)
松散状态下的体积:V2=V1×RS
♣计算步骤
底面的面积:S1
= 36×16
= 576.000m²
顶面的面积:S2
= 39×23
= 897.000m²
中部的面积:S0
= [(36+39)÷2]×[(16+23)÷2]
= (75.000÷2)×(39.000÷2)
= 37.500×19.500
= 731.250m²
天然状态下的体积:V1
= (4÷6)×(576.000+4×731.250+897.000)
= (4÷6)×(576.000+2925.000+897.000)
= 0.66666666666667×4398.000
= 2932.000m³
松散状态下的体积:V2
土的可松性系数:设RS=1.09
= 2932.000×1.09
= 3195.880m³
♦公式说明
底面的面积 = 底面长 × 底面宽
顶面的面积 = 顶面长 × 顶面宽
中部的面积 = [( 底面长 + 顶面长 )÷2]×[ ( 底面宽 + 顶面宽 )÷2]
天然状态下的体积 = ( 基坑高 ÷ 6 ) × ( 底面的面积 + 4 × 中部的面积 + 顶面的面积 )
松散状态下的体积 = 天然状态下的体积 × 土的可松性系数
♥参考链接
参考链接:https://baike.baidu.com/item/拟柱体/2126117?fr=aladdin
标签:长宽,面积,顶面,200011,体积,基坑,底面
From: https://www.cnblogs.com/onestopweb/p/16991059.html