Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Use ./ or / in symbolic expressions. Doesn't make a difference?

2 vues (au cours des 30 derniers jours)
Jeho
Jeho le 1 Août 2012
Clôturé : MATLAB Answer Bot le 20 Août 2021
>> syms k
>> f = k./(k+1)
f =
k/(k + 1)
>> g = k/(k+1)
g =
k/(k + 1)
f and g above end up being the same. Why?

Réponses (1)

Walter Roberson
Walter Roberson le 1 Août 2012
The operators are overloaded in symbolic expressions and defined to mean the same thing for symbolic expressions.
MuPAD's / operator is sensitive to the data type that is being used and only does matrix arithmetic when appropriate. See http://www.mathworks.com/help/toolbox/mupad/linalg/index.html

Cette question est clôturée.

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by