For questions about symbolic computation, as opposed to numerical computations.
11
votes
1answer
440 views
Incorrect results for elementary integrals when using Integrate
There is a rather simple integral ($K_0$ is the 0-th order MacDonald function)
$$\int_0^\infty e^{-x \cosh\xi}\, d\xi = K_0(x)$$
which mathematica cannot solve. This even though the documentation ...
11
votes
2answers
383 views
Surprises simplifying simple polynomials
I came across some somewhat surprising behavior of Simplify today, on something very simple. Let's take two cubic polynomials that we know have the same value:
...
6
votes
1answer
145 views
Sophistication of Series[…]
I'll give a concrete example and I hope that my general question will be clear.
Say I have three variables, $f$, $g$, $h$, and I know that $f=\mathcal O(x)$, $g=\mathcal O(x^2)$, $h=\mathcal O(x^3)$ ...
6
votes
1answer
502 views
Why does this sum not simplify properly?
I was trying to get Mathematica to simplify some moderately ugly sums and I ran into some pretty weird behaviour, which I tracked down to the following example. I'm working with ...
8
votes
2answers
669 views
10
votes
1answer
173 views
Why does Assuming[x > 0, TrueQ[x > 0]] return False?
Assuming[x>0,TrueQ[x>0]]
should, as I understand it, test TrueQ[x>0] after assuming ...
13
votes
5answers
630 views
Does $x>0$ imply that $x\in\mathbb{R}$?
Let’s assume I input
Assuming[x > 0, expression]
Is it assumed by Mathematica that $x$ is a real number? Or that the real part of $x$ is positive? Something ...
19
votes
3answers
848 views
What is a type in Wolfram Mathematica programming language?
"Everything is an expression" is a popular citation from many Mathematica guidebooks. So, what is type in Mathematica? How does it relate to common types from Haskell, for example?
I did some ...
12
votes
6answers
955 views
Replacing composite variables by a single variable
To replace a single variable by another variable, one can simply use the the replace all (/.) operator (e.g., ...
5
votes
1answer
213 views
Validating simplifications analytically
I have a rather complex expression which I would like to simplify and check my work along the way (Mathematica does not simplify very basic things and it is frustrating me). In the following example, ...
7
votes
1answer
2k views
Extract real part of a complex expression better than Re does
I have a complex expression with real positive variables only.
Mathematica Input Style:
...
2
votes
1answer
189 views
Integral not simplifying
I specify a function in terms of an integral and then try to evaluate it with Simplify. However, the answer is not really simplified to what it should be.
...
20
votes
3answers
1k views
Can Mathematica do symbolic linear algebra?
For instance, is there some way I can say "let A and B be arbitrary real $m\times n$ and $k\times m$ matrices, Simplify[Transpose[Transpose[A].Transpose[B]]]" and ...
3
votes
1answer
196 views
n-fold symbolic integral in Mathematica
I am trying to compute symbolically a n-fold integral (n is a parameter of a function) over, say, the cube [0,a]^n. My code looks like this
...
3
votes
1answer
395 views
Definite and Indefinite integral give different results for piecewise function
I have the following function:
$$
f(q,y)=
\begin{cases}
\tfrac{11720+p}{37791360} & -11720<p<-7720 \\
0 & \text{True}
\end{cases}
$$
where $p = 443\ y-777600\ \sin^{-1}\left(\frac{q ...
16
votes
3answers
1k views
How to symbolically do matrix “Block Inversion”?
Consider a block (partitioned) matrix
matrix = ArrayFlatten[{{a, b}, {c, d}}]
where, a, ...