calculate math problem help
조회 수: 3 (최근 30일)
이전 댓글 표시
how to write a code to caculate this tipe of problem: 4^2/(4+5^2)+6/74.
Thanks.
댓글 수: 0
답변 (2개)
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.
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
Depending on different parentheses placements, the answer will differ so add parentheses according to your intended calculation.
4^2/((4+5^2)+6/74)
4^(2/(4+5^2)+6/74)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!