首页 > 其他分享 >100019 求三角形斜边对边已知角A邻边角度

100019 求三角形斜边对边已知角A邻边角度

时间:2022-11-27 17:56:03浏览次数:45  
标签:邻边 40 斜边 对边 等于 三角形 100019

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

$tit= '求三角形斜边对边已知角A邻边角度';
//设邻边40,角度37
$val='40 37';
$img='';

mill($val,$img,$tit);

/**
 * mill 是磨粉机的方法
 * $val 传值过来计算,以空格分割成数值
 * $img 自定义图片名,默认以文件名为图片名
 * $tit 标题名
 * */
function mill($val,$img,$tit){
    //初始化
    include ROOT.'/assets/php/init.php';
    imgt($img,$tit);

    //设置小数点保留位数 
    bcscale (2);
    //$pi = round(pi(),2);

     //以空格分割成数值
    $vals = expl($val);
    $b = evev($vals[0]);
    $ao = evev($vals[1]);

    //已知条件
    $know = array();
    array_push($know, $val);
    $v0 = eveq($vals[0]);
    array_push($know, "{$math['ang']}A的邻边(b边):$v0");
    $v1 = eveq($vals[1]);
    array_push($know, "{$math['ang']}A的度数:$v1{$math['o']}");

    //计算步骤
    $step = array();
    array_push($step, "{$math['ang']}A的斜边(c边):");
    array_push($step, "{$math['eq']} {$b}{$math['div']}cos{$ao}{$math['o']}");
    $cosao = cos(deg2rad($ao));
    array_push($step, "{$math['eq']} {$b}{$math['div']}$cosao");
    $c = bcdiv($b, $cosao);
    array_push($step, "{$math['eq']} {$c}");

    array_push($step, "{$math['ang']}A的对边(a边):");
    array_push($step, "{$math['eq']} {$b}{$math['mul']}tan{$ao}{$math['o']}");
    $tanao = tan(deg2rad($ao));
    array_push($step, "{$math['eq']} {$b}{$math['mul']}$tanao");
    $a = bcmul($b, $tanao);
    array_push($step, "{$math['eq']} {$a}");

    //算出结果
    $ends = array();
    array_push($ends, "{$math['ang']}A的斜边(c边):$c");
    array_push($ends, "{$math['ang']}A的对边(a边):$a");
    
    //公式表示
    $home = array();
    array_push($home, "{$math['ang']}A的斜边(c边):c{$math['eq']}b{$math['div']}cos{$math['ang']}A");
    array_push($home, "{$math['ang']}A的对边(a边):a{$math['eq']}b{$math['mul']}tan{$math['ang']}A");

    //公式说明
    $info = array();
    array_push($info, "直角三角形的三角函数:");
    array_push($info, "正弦(sin)等于对边比斜边;sinA=a/c ;");
    array_push($info, "余弦(cos)等于邻边比斜边;cosA=b/c ;");
    array_push($info, "正切(tan)等于对边比邻边;tanA=a/b ;");
    array_push($info, "余切(cot)等于邻边比对边;cotA=b/a 。");

    know($know);
    ends($ends);
    home($home);
    step($step);
    info($info);
}
?>
<?php include ROOT.'/assets/php/foot.php'; ?>

结果:

☁参考上图[2022-11-27]

☀求三角形斜边对边已知角A邻边角度
40 37
∠A的邻边(b边):40
∠A的度数:37°

♠算出结果
∠A的斜边(c边):50.08
∠A的对边(a边):30.14

♦公式表示
∠A的斜边(c边):c=b÷cos∠A
∠A的对边(a边):a=b×tan∠A

♣计算步骤
∠A的斜边(c边):
= 40÷cos37°
= 40÷0.79863551004729
= 50.08
∠A的对边(a边):
= 40×tan37°
= 40×0.75355405010279
= 30.14

♥公式解释
直角三角形的三角函数:
正弦(sin)等于对边比斜边;sinA=a/c ;
余弦(cos)等于邻边比斜边;cosA=b/c ;
正切(tan)等于对边比邻边;tanA=a/b ;
余切(cot)等于邻边比对边;cotA=b/a 。

标签:邻边,40,斜边,对边,等于,三角形,100019
From: https://www.cnblogs.com/onestopweb/p/16930218.html

相关文章