Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Mupad - using brackets in statements

조회 수: 1 (최근 30일)
Lana
Lana 2013년 12월 3일
마감: MATLAB Answer Bot 2021년 8월 20일
This might be a silly question, but can anybody explain why this assignment in Mupad does not produce an error:
a:=1000(9-x)
I am trying to show students most common errors, and this was supposed to be an example of how they need to always use multiplication sign, however Mupad obviously thinks this is a valid command and assigns a = 1000. What does it think (9-x) is then?

답변 (2개)

Walter Roberson
Walter Roberson 2013년 12월 3일
MuPAD tries to be smarter about recognizing implied algebraic operations, so it is probably treating that as a multiplication, 1000*(9-x)
There are some other stranger possibilities that I cannot test as I do not have Mathwork's Symbolic Mathematics Toolbox

Lana
Lana 2013년 12월 4일
Many thanks, however I do not think that Mupad treats it as a product - as x is not defined. I am more inclined to think that it treats is as an index or something but wanted to see if anybody knows for sure...

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by