点击查看代码
<?php
header('Content-Type: text/html; charset=utf-8');
define ('ROOT', $_SERVER['DOCUMENT_ROOT']);
include ROOT.'/assets/php/head.php';
$tit= '计算钢筋重量已知直径和长度';
// 直径12,长度120
$val='12 120';
$img='';
//调用方法
mill($val,$img,$tit);
//mill 是磨粉机的方法
function mill($val,$img,$tit){
//初始化
include ROOT.'/assets/php/init.php';
imgt($img,$tit);
//设置小数点保留位数
bcscale (3);
//$pi = round(pi(),2);
//以空格分割成数值
$vals = expl($val);
$d = evev($vals[0]);
$l = evev($vals[1]);
//已知条件
$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['m']}");
//计算步骤
$step = array();
array_push($step, "计算钢筋重量:");
array_push($step, "{$math['eq']} 0.00617{$math['mul']}$d{$math['sup2']}{$math['mul']}$l");
$dd = bcmul($d, $d);
array_push($step, "{$math['eq']} 0.00617{$math['mul']}$dd{$math['mul']}$l");
$dd617 = 0.00617*$dd;
array_push($step, "{$math['eq']} $dd617{$math['mul']}$l");
$W = bcmul($dd617, $l);
array_push($step, "{$math['eq']} $W");
//算出结果
$ends = array();
array_push($ends, "钢筋重量:$W{$unit['kg']}");
//公式表示
$home = array();
array_push($home, "钢筋重量:W{$math['eq']}0.00617{$math['mul']}d{$math['sup2']}{$math['mul']}l");
//公式说明
$info = array();
array_push($info, "钢筋重量 {$math['eq']} 0.00617 {$math['mul']} 钢筋直径{$unit['mm']} {$math['mul']} 钢筋直径{$unit['mm']} {$math['mul']} 钢筋长度{$unit['m']}。");
//表格列表
$tdli = array();
array_push($tdli, "直径{$unit['mm']}{$labe['td']}钢筋比重{$unit['kg']}{$math['sol']}{$unit['m']}");
array_push($tdli, "{$buil['phi']}8{$labe['td']}0.395");
array_push($tdli, "{$buil['phi']}10{$labe['td']}0.617");
array_push($tdli, "{$buil['phi']}12{$labe['td']}0.888");
array_push($tdli, "{$buil['phi']}14{$labe['td']}1.209");
array_push($tdli, "{$buil['phi']}16{$labe['td']}1.58");
array_push($tdli, "{$buil['phi']}18{$labe['td']}1.999");
array_push($tdli, "{$buil['phi']}20{$labe['td']}2.468");
array_push($tdli, "{$buil['phi']}22{$labe['td']}2.986");
know($know);
ends($ends);
home($home);
step($step);
info($info);
tdli($tdli,$html =!true);
}
?>
<?php include ROOT.'/assets/php/foot.php';
//查改样式
$chck = array();
chck($chck);
?>
☁参考上图[22-12-10 chaoyi]
☀计算钢筋重量已知直径和长度
12 120
钢筋的直径:12㎜
长度:120m
♠算出结果
钢筋重量:106.617㎏
♥公式表示
钢筋重量:W=0.00617×d²×l
♣计算步骤
计算钢筋重量:
= 0.00617×12²×120
= 0.00617×144.000×120
= 0.88848×120
= 106.617
♦公式说明
钢筋重量 = 0.00617 × 钢筋直径㎜ × 钢筋直径㎜ × 钢筋长度m。
♣附表如下
直径㎜ | 钢筋比重㎏/m |
---|---|
Φ8 | 0.395 |
Φ10 | 0.617 |
Φ12 | 0.888 |
Φ14 | 1.209 |
Φ16 | 1.58 |
Φ18 | 1.999 |
Φ20 | 2.468 |
Φ22 | 2.986 |