100028 求扇形的弦長已知半徑角度
阿新 • • 發佈:2022-12-08
<?php header('Content-Type: text/html; charset=utf-8'); define ('ROOT', $_SERVER['DOCUMENT_ROOT']); include ROOT.'/assets/php/head.php'; $tit= '求扇形的弦長已知半徑角度'; // 半徑為50 ,角度為110 $val='50 110'; $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); $r = evev($vals[0]); $co = evev($vals[1]); //已知條件 $know = array(); array_push($know, $val); $v0 = eveq($vals[0]); array_push($know, "半徑:$v0"); $v1 = eveq($vals[1]); array_push($know, "角度:$v1"); //計算步驟 $step = array(); array_push($step, "求扇形的弦長:"); array_push($step, "{$math['eq']} $r{$math['mul']}sin{$math['lpar']}$co{$math['div']}2{$math['rpar']}{$math['mul']}2"); $co2 = bcdiv($co, 2); array_push($step, "{$math['eq']} $r{$math['mul']}sin{$math['lpar']}$co2{$math['rpar']}{$math['mul']}2"); $sinco2 = sin(deg2rad($co2)); array_push($step, "{$math['eq']} $r{$math['mul']}$sinco2{$math['mul']}2"); $rsinco2 = bcmul($r, $sinco2); array_push($step, "{$math['eq']} $rsinco2{$math['mul']}2"); $c = bcmul($rsinco2, 2); array_push($step, "{$math['eq']} $c"); //算出結果 $ends = array(); array_push($ends, "扇形的弦長:{$c}"); //公式表示 $home = array(); array_push($home, "扇形的弦長:c{$math['eq']}r{$math['mul']}sin{$math['lpar']}{$math['ang']}C{$math['o']}{$math['sol']}2{$math['rpar']}{$math['mul']}2"); //公式說明 $info = array(); 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 。"); array_push($info, "下面的方法同樣可解:"); array_push($info, "100026 求三角形各邊各角度已知兩邊夾角:https://www.cnblogs.com/onestopweb/p/16939982.html"); know($know); ends($ends); home($home); step($step); info($info); } ?> <?php include ROOT.'/assets/php/foot.php'; ?>
☁參考上圖[22-12-08 chaoyi] ☀求扇形的弦長已知半徑角度 50 110 半徑:50 角度:110 ♠算出結果 扇形的弦長:81.90 ♥公式表示 扇形的弦長:c=r×sin(∠C°/2)×2 ♣計算步驟 求扇形的弦長: = 50×sin(110÷2)×2 = 50×sin(55.00)×2 = 50×0.81915204428899×2 = 40.95×2 = 81.90 ♦公式說明 正弦(sin)等於對邊比斜邊;sinA=a/c; 餘弦(cos)等於鄰邊比斜邊;cosA=b/c; 正切(tan)等於對邊比鄰邊;tanA=a/b; 餘切(cot)等於鄰邊比對邊;cotA=b/a 。 下面的方法同樣可解: 100026 求三角形各邊各角度已知兩邊夾角:https://www.cnblogs.com/onestopweb/p/16939982.html