- #1
daudaudaudau said:And what about this:
FullSimplify[Abs[(x*y)]^2, x > 0 && y > 0]
the result is still Abs[x*y]^2
But there is no trouble doing this one
FullSimplify[Abs[(x/y)]^2, x > 0 && y > 0]
is simply returns x^2/y^2...
bpet said:I had similar problems and asked tech support about it - they recommend as a workaround e.g.
PiecewiseExpand[Abs[(x*y)]^2, Reals]
When Mathematica is being silly, it means that the output it is providing does not make sense or is not what was expected. This could be due to an error in the code or a limitation of the software.
There could be several reasons why Mathematica is being silly. It could be due to a mistake in the code, an incorrect or incomplete input, or a limitation of the software. It is important to carefully check the code and inputs to troubleshoot the issue.
If you have identified the cause of why Mathematica is being silly, you can fix the issue by correcting the mistake in the code or input. If you are unsure of the cause, you can try simplifying the code or seeking help from other Mathematica users or support resources.
Mathematica is a powerful software tool for mathematical and scientific computations, but like any software, it is not perfect. It may encounter errors or limitations in certain cases, resulting in it being silly. However, these instances are rare and can usually be resolved.
To prevent Mathematica from being silly, it is important to write code carefully and accurately. This includes checking for errors and using correct syntax. It is also helpful to understand the limitations of the software and how to work around them. Additionally, regularly updating to the latest version of Mathematica can help prevent issues.