calculate math problem help

1 回表示 (過去 30 日間)
idan
idan 2022 年 7 月 5 日
コメント済み: idan 2022 年 7 月 5 日
how to write a code to caculate this tipe of problem: 4^2/(4+5^2)+6/74.
Thanks.

回答 (2 件)

Kritarth Sinha
Kritarth Sinha 2022 年 7 月 5 日
Hello Idan,
You can directly write the following expression as it is in matlab and it runs fine for me.
x=4^2/(4+5^2)+6/74.
Hope this will help.
  1 件のコメント
idan
idan 2022 年 7 月 5 日
Thanks:)

サインインしてコメントする。


Garmit Pant
Garmit Pant 2022 年 7 月 5 日
編集済み: Garmit Pant 2022 年 7 月 5 日
Hello idan
You can directly type this in a live script or the command window of MATLAB and it will give you the answer.
4^2/(4+5^2)+6/74
ans = 0.6328
Depending on different parentheses placements, the answer will differ so add parentheses according to your intended calculation.
4^2/((4+5^2)+6/74)
ans = 0.5502
4^(2/(4+5^2)+6/74)
ans = 1.2312
  1 件のコメント
idan
idan 2022 年 7 月 5 日
Thanks:)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by