Skip to main content

Questions tagged [algebraic-manipulation]

The art of manipulating an algebraic expression into the desired form.

Filter by
Sorted by
Tagged with
2 votes
1 answer
149 views

I want to transform expr by factoring out only the E^(-t γ) term. I could implement it like in my code below, but is there a ...
Soon's user avatar
  • 1,484
2 votes
3 answers
176 views

Is there a nice way to group the terms in equation 1 like in equation 2, where the terms with subscript 1 are put on the left-hand side and the terms with subscript 2 on the right-hand side. Equation ...
Soon's user avatar
  • 1,484
5 votes
0 answers
97 views

For inexact coefficients MonomialList seems to apply N. How to avoid this? ...
I.M.'s user avatar
  • 3,516
3 votes
1 answer
236 views

Here are two examples with ordinary extensions: Factor[1 + x^4, Extension -> Sqrt[2]] Factor[x^2 + 2 Sqrt[3] x + 3, Extension -> Automatic] But what about &...
azerbajdzan's user avatar
  • 32.8k
1 vote
1 answer
162 views

Using Mathematica, I want to collect the coefficient of $(\epsilon_1 + \epsilon_1^*)$ in a simple algebraic equation below. Mathematica gives ZERO as the answer, which is not correct. The expected ...
rasi's user avatar
  • 73
0 votes
1 answer
145 views

I need help simplifying a complicated expression which I believe it is zero. I have asked a similar question like this here before, Help manipulating a complicated expression to check that it gives ...
Someone's user avatar
  • 221
3 votes
2 answers
275 views

I'm working in Mathematica, trying to obtain some coefficients, and at some point I obtain the following coefficient, which is a function of $r$: ...
Someone's user avatar
  • 221
4 votes
1 answer
1k views

The title says it - when trying Solve[{a==0,b==0,a c==0,b c==0}] Mathematica works for quite a while without giving any output. I cannot get anything with the ...
მამუკა ჯიბლაძე's user avatar
10 votes
3 answers
274 views

Is there a way to coax Mathematica to automatically simplify expressions involving Pochhammer symblos like Pochhammer[1, n]/Pochhammer[3/2, n]? It comes from ...
Yaroslav Bulatov's user avatar
3 votes
1 answer
190 views

For single variate partial fraction decompositions, Apart can do it. What if multivariate partial fraction decompositions? Should I use Singular's pfd.lib or Sage? ...
Ahamad's user avatar
  • 1
4 votes
1 answer
216 views

I have a set of equations whose l.h.s. are given by: ...
chris's user avatar
  • 23.4k
0 votes
1 answer
205 views

In my calculation, I came up with a factor Sqrt[s^3 (s - 4 m^2)] And it failed to be simplified into s Sqrt[s^1 (s - 4 m^2 )] ...
tya's user avatar
  • 1
1 vote
1 answer
235 views

Edit 20250324 This is essentially a problem of trigonometric transformation. The key to the problem is how to convert a sine or cosine function into the standard form of a sinusoidal alternating ...
lotus2019's user avatar
  • 2,763
0 votes
2 answers
168 views

How to take the minus sign "-" in the front to inside the bracket and change the sign of each individual term while to keep the current simplified as it is: ...
SciJewel's user avatar
  • 631
2 votes
1 answer
198 views

I have the following expression: \begin{equation} aX + aY + bZ + bT +cV + cU\tag{*} \end{equation} expr = a X + a Y + b Z + b T + c V + c U where $ a, b , c$ are ...
Ali Olaikhan's user avatar
0 votes
0 answers
32 views

Why does the FullSimplify not act on the following Log functions and cannot apply the product rule: ...
SciJewel's user avatar
  • 631
0 votes
1 answer
135 views

Why does the following not work! ...
SciJewel's user avatar
  • 631
3 votes
2 answers
247 views

I have an expression that has two different kinds of variables. It's quite ugly, so I'll replace it with a toy expression here: ...
Myles_H's user avatar
  • 51
0 votes
1 answer
123 views

I want to compute matrix exponential of general SU(3) rotations, $U = \exp[-i \sum_{a=1}^{8} c_a \lambda_a]$ for $\lambda_a$ is the Gell-Mann matrices. For three combintations of $\lambda$ works fine ...
phy_math's user avatar
  • 915
6 votes
4 answers
724 views

While performing some analytical calculations, I got the following large expression when I was expecting just Sqrt[a^2 + b^2]. To my surprise, Mathematica seems to ...
WillG's user avatar
  • 1,120
0 votes
1 answer
140 views

I'm trying to compute derivatives of the form D[Tr[A],x] for A being a large polynomial in a single variable $x$. Mathematica always gets me the result with formal ...
Fr6's user avatar
  • 17
0 votes
0 answers
56 views

Factor[8 x^2 - 73 y^2] returns 8 x^2 - 73 y^2 How do I go about factoring it into (8^.5 x + 73^.5 y)*(8^.5 x - 73^.5 y) ?
Anton's user avatar
  • 2,072
1 vote
1 answer
79 views

If I have a single algebraic expression, I could use PolynomialQ for its numerator and denominator to determine if there are any fractional powers. What if I have a ...
VladM's user avatar
  • 305
2 votes
2 answers
204 views

Simplification functions are usually able to reduce Piecewise to a simple expression when the conditions are not necessary, for example: ...
მამუკა ჯიბლაძე's user avatar
1 vote
0 answers
81 views

constraints = {A >= 0, B >= 0, A + 2 B == T, S == T*V + 2.4*B^3}; Simplify[Minimize[{T, constraints}, {A, B, T}, Reals], {S > 0, V >= 0}] Above is the ...
Liu Rick's user avatar
1 vote
0 answers
159 views

I was solving a RSA factorization problem with a weak prime. In a given base, the prime was made of a lots of zeroes and can be factorized pretty quickly. See this write-up. I checked the code for ...
Crypto's user avatar
  • 382
2 votes
3 answers
216 views

Not sure how to do this with Factor/Collect etc. I'm thinking this might not be straightforward at all. Given a large Laurent polynomial I am trying to factor it into irreducible Laurent polynomials. ...
ngc5139's user avatar
  • 441
1 vote
0 answers
65 views

I have already calculated the variation of an action for a modified gravitational theory, and now I want to substitute a specific metric (e.g., the Schwarzschild metric) into this variation in ...
Elena Margalejo's user avatar
2 votes
1 answer
161 views

Specifically, I have a list that looks like: {(1-x),(-1+x),(x+y)^2, (-x-y)^3, (1-x)^3,... } I want to partition this into smaller lists that look like: {(1-x),(-1+x),(1-x)^3...} {(x+y),(-x-y)^3,...} ...
mathematicaEric's user avatar
2 votes
2 answers
216 views

I have an old reference text with tables of solid spherical harmonics expressed in cartesian coordinates. (Edit: Here's a digital version of said table, for the curious.) In an attempt to replicate ...
sbernierjhu's user avatar
1 vote
2 answers
143 views

I am trying to calculate the variance of the mean parameterised beta-binomial distribution. The probability mass function is given by ...
user179028's user avatar
-2 votes
1 answer
136 views

(a+1)^2 === a^2 + 2 a + 1 gives false. Is there a way to compare these two? ...
kile's user avatar
  • 2,012
1 vote
4 answers
207 views

Consider the following algebraic expression ...
hyriusen's user avatar
  • 173
1 vote
0 answers
94 views

Consider the polynomials in $x$ with positive-integer parameters $a,b,c$ ...
PalmTopTigerMO's user avatar
0 votes
0 answers
73 views

I have now made a post on the Computer Science stack exchange that talks about the general problems from an algorithmnic perspective here. I have defined a custom tensor product function ...
Jack's user avatar
  • 101
0 votes
2 answers
109 views

I have written a custom tensor-like product called "TProduct[a,b]" ...
Jack's user avatar
  • 101
0 votes
0 answers
71 views

Problem I want to generalize a solution I already have for a simpler situation. In my case I need to collect coefficients from a variable assuming fractional powers and on. First I'll present some ...
Felipe's user avatar
  • 175
2 votes
1 answer
118 views

I'm struggling in the use of Sum. I want to define something like that: ...
Felipe's user avatar
  • 175
2 votes
3 answers
260 views

Consider the following expression: a1 b1 c1 + a4 b2 c1 + a7 b3 c1 + a2 b1 c2 + a5 b2 c2 + a8 b3 c2 + a3 b1 c3 + a6 b2 c3 + a9 b3 c3 Can Mathematica convert it ...
SciJewel's user avatar
  • 631
0 votes
1 answer
129 views

Is it possible in Mathematica to take a function $F(r, \theta)$ and ask it to rewrite it as $F(r,\theta) = A(r) + B(\theta)$? In particular, I have the expression: $$ \frac{g^{2} (r) f^{2} (r) \sin^{2}...
Dayzk's user avatar
  • 169
3 votes
2 answers
157 views

Why does the replace /. not work on the second argument in the following expression: ...
SciJewel's user avatar
  • 631
0 votes
1 answer
152 views

I have the following Mathematica expression as a result of some calculations: ...
Mark's user avatar
  • 359
1 vote
0 answers
160 views

Is there a documentation for the function Simplify`PWToUnitStep? This is a function which can be used to express a Piecewise ...
Ruth Murphy's user avatar
4 votes
2 answers
257 views

Given a transfer funtion TransferFunctionModel[1/(s + I) + 1/(s - I) + 1/(s + 1) + 1/(s - 2)^2,s] we can obtain the polinomial form by using TransferFunctionExpand ...
metroidman's user avatar
  • 1,277
2 votes
1 answer
160 views

I obtain this expression in my calculations, and numerically I am sure that it is a real number. ...
MsMath's user avatar
  • 195
0 votes
1 answer
90 views

I am trying to understand why Sum does not recognize a particular Taylor series as convergent. I have defined a function 'series' like this, that computes the Taylor series of a function 'f' at 'x', ...
Glenn Welch's user avatar
10 votes
4 answers
595 views

Given a string like MMMM, what is the easiest way to draw all Wicks contractions similar to the diagram below (from Ch. 2 of Eynard paper)? Example below is for (MMMM), but I need it to work for other ...
Yaroslav Bulatov's user avatar
1 vote
0 answers
75 views

Good afternoon, I have an expression Exp[2 I (t - tau) + a] + 2 Exp[2 I t + b] + 3 Exp[-I t + b] And I want to write it as a summation of powers of Exp[I t]. So, <...
Boudewijn Verhaar's user avatar
2 votes
0 answers
114 views

I'm looking for Mathematica implementation of conversion between free moments and free cumulants. For instance, for traditional moments we have from ...
Yaroslav Bulatov's user avatar

1
2 3 4 5
16