Group Abstract Group Abstract

Message Boards Message Boards

0
|
750 Views
|
6 Replies
|
4 Total Likes
View groups...
Share
Share this post:

Need explanation for FullSimplify result of mathematical expression

Posted 1 month ago

Pardon my curiosity, but I'm wondering how Wolfram calculates

FullSimplify[x == q Quotient[x, q] + Mod[x, q]].

I tried Trace and the TraceOriginal->True option, but I still don't get it. Does Wolfram know it's True, or does it apply some transformation rules to get True?

POSTED BY: Sasha Mandra
6 Replies

This behavior is documented in the "Properties & Relations" section of https://reference.wolfram.com/language/ref/Quotient.html (3rd example therein).

POSTED BY: Michael Rogers
Posted 1 month ago

Rather, from the examples given there, we should conclude that the result is derived from theory rather than computation.

POSTED BY: Sasha Mandra
POSTED BY: Michael Rogers
Posted 1 month ago

Got it. Thanks!!! I mistakenly thought that Wolfram computes in much the same way I write a sequence of commands, just along all paths at once, and selects the ones that get closest to the result. It turns out that applying a built-in function is not so easy to detect, much less see the entire computation process.

POSTED BY: Sasha Mandra

Using Reduce I get the message that it is using FunctionExpand:

Reduce[x == q Quotient[x, q] + Mod[x, q]]

In fact FunctionExpand translates the expression into Floor objects:

FunctionExpand[q Quotient[x, q]]
FunctionExpand[Mod[x, q]]
POSTED BY: Gianluca Gorni
Posted 1 month ago

I tried that too, but I didn't detect those transformations. How did you find them?

POSTED BY: Sasha Mandra
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard