# calculate math problem help

5 visualizzazioni (ultimi 30 giorni)
idan il 5 Lug 2022
Commentato: idan il 5 Lug 2022
how to write a code to caculate this tipe of problem: 4^2/(4+5^2)+6/74.
Thanks.
##### 0 CommentiMostra -2 commenti meno recentiNascondi -2 commenti meno recenti

Accedi per commentare.

### Risposte (2)

Kritarth Sinha il 5 Lug 2022
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 CommentoMostra -1 commenti meno recentiNascondi -1 commenti meno recenti
idan il 5 Lug 2022
Thanks:)

Accedi per commentare.

Garmit Pant il 5 Lug 2022
Modificato: Garmit Pant il 5 Lug 2022
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 CommentoMostra -1 commenti meno recentiNascondi -1 commenti meno recenti
idan il 5 Lug 2022
Thanks:)

Accedi per commentare.

### Categorie

Scopri di più su Mathematics in Help Center e File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by