Clear Filters
Clear Filters

Flipping Sign provide wrong information and Answers

1 view (last 30 days)
Hi, I type my equation and the equation reversing and change the meaning of the equation.
can you assists me how to solve this? how to turn off the alphabetical orders settings?

Accepted Answer

Steven Lord
Steven Lord on 4 Jun 2024
How exactly does this reordering "change the meaning of the equation"? The derivative of with respect to x is . In this case, x is c and k is . So the derivative of is or . Multiply that by the constant and the derivative is or exactly as MATLAB showed.
Sure, the way MATLAB displays u is not identical to the way you entered it, but it represents the same value.
  3 Comments
Steven Lord
Steven Lord on 4 Jun 2024
Ah, you're thinking it's not a reordering question but a question about operator precedence. Yes, unary minus is lower in priority (at level 4) than the power operations (levels 2 and 3.) I agree, adding parentheses (level 1) can help clarify intent.

Sign in to comment.

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!