필터 지우기
필터 지우기

Cuanto les da en MatLab? 9/2(1+2)

조회 수: 3 (최근 30일)
Florentino Ruiz
Florentino Ruiz 2013년 3월 7일
Algunos compañeros y yo estamos debatiendo sobre el resultado de esta operación, alguno decimos que nueve, otros que es uno. 9/2(1+2). Que resultado arroja en MatLab, no lo tengo instalado en esta máquina.
gaussianos.com/jerarquia-de-las-operaciones-y-el-sindrome-del-parentesis-invisible/
  댓글 수: 1
Walter Roberson
Walter Roberson 2013년 3월 7일
Google translation:
Some friends and I are debating on the result of this operation, some say nine, other than one. 9/2(1 +2). That throws result in MatLab, I have not installed on this machine.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2013년 3월 7일
It is an error in MATLAB as MATLAB has no implied multiplication.
If it is interpreted as 9 / (2 * (1+2)) then that would be 9/6; if it is interpreted as (9/2) * (1+2) that would be 27/2. Neither result would be the 9 or 1 that you mentioned.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by