Questions tagged [algebra]

Abstract manipulation of symbols. Transforming an algebraic expression into the desired form.

Filter by
Sorted by
Tagged with
0 votes
0 answers
46 views

Exponentes not multiplying as it should? [closed]

I have this code: xo = 0.00105; lambda = 0.2063; Bcgc = 5.5; x = 10^-5; Qs = (xo/x)^(lambda)*E^(-b^2/(2*Bcgc)); Output = 2.61199 E^(-0.0909091 b^2) And I want to ...
user avatar
4 votes
2 answers
185 views

Tropical Operation Conversions: Multiple Operations

I apologize if my syntax is bad. I looked around, but didn't see anything on this in the stack exchange. I would like to be able to transform a classical real-valued polynomial to a tropical ...
user avatar
  • 143
5 votes
1 answer
102 views

How to get the extension degree

The real number field cannot express $\sqrt{2}$, so we extend $2$ times to get $Q(\sqrt{2})=a+b\sqrt(2)$. But it cannot express $\sqrt{3}$ still. So we are going to extend it $2$ more times to get $Q(\...
user avatar
  • 23.7k
0 votes
0 answers
61 views

How to speed up Resultant?

I am experimenting with the polynomials Y and T: i1 = 9; i2 = 4; Y = Sum[ x^i y[i], {i, 0, i1}]; T = Sum[ x^i t[i], {i, 0, i2}]; Timing[Resultant[Y, T, x]] Whith ...
user avatar
0 votes
2 answers
116 views

Solving System of six Non-Linear Equations in Six Unknowns

I've been trying to solve the following system of equations using NSolve and the code has been running for close to 24 hours already. Is this normal? Is there a quicker way to solve these equations? ...
user avatar
2 votes
0 answers
88 views

How to solve this equation analytically?

Why can't Mathematica 13 solve this equation in radicals? Solve[x^5 - 5*x^4 - 10*x^3 - 10*x^2 - 5*x - 1 == 0, x] // ToRadicals I also tried to use ...
user avatar
  • 71
2 votes
1 answer
162 views

Define a new rule for multiplication

I am trying to implement a new rule for noncommutative multiplication: $$ x * q^n * y \to q^n * x * y, $$ where $\ast$ stands for noncommutative multiplication and x and y are random products in ...
user avatar
  • 45
1 vote
1 answer
74 views

Simple algebra question

Am I missing something here? This does not resolve to True. Clear[x,y] $Assumptions={x>0,y>0} FullSimplify[(Sqrt[x] + Sqrt[y]) == Sqrt[x + y + 2 Sqrt[x y]]] ...
user avatar
  • 847
1 vote
1 answer
77 views

Empty output {} for matrix solutions which I know graphically exist [closed]

I am new to Mathematica, so there's a good chance that I am missing something critical here but I tried to check the documentation and am still stuck. ...
user avatar
-1 votes
1 answer
46 views

Factorize expression by specific term [closed]

I am new to Mathematica but I would like to know how to force Mathematica to factorize an expression by a specific term. Exemple, imagine I have a term like this: And I have an expression like this: ...
user avatar
1 vote
0 answers
75 views

Mathematica doesn't simplify 1.` x

I'm debugging a program that uses polynomials with numerical coefficients and it turns out that mathematica does not simplify 1.` x[1]^2 x[2]^2 to ...
user avatar
  • 928
0 votes
1 answer
72 views

How to get exact solution for determinant in mathematica? [closed]

I am currently trying to program in mathematica, my issue is that the program is not solving for the exact value of the determinant in comparison to matlab. Code given below, where a and x are ...
user avatar
  • 1
0 votes
0 answers
27 views

handling roots in mathematica [duplicate]

I am looking for the solution of: $\text{Solve}\left[-\frac{\alpha }{\sqrt{1-L}}-\frac{L t}{2}=-\alpha -2,L,Reals,\text{Assumptions}\to 0\leq \alpha \&\& 0<t\right]$ Mathematica is giving ...
user avatar
2 votes
3 answers
296 views

How to find constant term of binomial

There is supposed to be a command or set of commands to find the constant term of a binomial expression like $$ \left(-2x^4 + \dfrac{-5}{x}\right)^{25} $$ ...
user avatar
  • 127
0 votes
1 answer
35 views

Spotting and condensing expressions in output

I am running some symbolic scripts to generate a model problem. One of my outputs is This is generated by the Mathematica code or, in Mathematica format (owing to the fancy lettering and formatting ...
user avatar
0 votes
0 answers
36 views

Take a specific part of a matrix, excluding the external brackets [duplicate]

I have a little manipulation problem. I have the following matrix: ...
user avatar
1 vote
0 answers
51 views

How to use only real values in a notebook?

I am wondering how to make Mathematica only evaluate real numbers by creating an initialization line in the beginning of a notebook. I would like to prevent the following: complex trigonometric ...
user avatar
0 votes
0 answers
100 views

Algorithms or Mathematica definition for functions ideals of polynomial Rings

This question was well posed four years ago without answer at Operations on ideals of polynomial rings. I asked again in Nov 2021 and posted possible function defininitions. Lichtblau commented ...
user avatar
0 votes
1 answer
54 views

Checking the consistency of a variable change

This question may have a simple solution. I did a change of variables and I'd like to check it; what do you recommend?. Altough I believed there's a way to compare term-by-term doing ...
user avatar
  • 575
0 votes
0 answers
54 views

apply a change of variable to an expression

What would be the simplest way in which we can write y[x1_, x2_, x3_] = x1 + x2*x3 then x4 = x2*x3; to get to the form: ...
user avatar
  • 575
2 votes
0 answers
77 views

Mathematica package for computing Macdonald polynomials

I want to implement computation of Macdonald polynomials in mathematica. A similar question was raised in another question 5 years ago (Macdonald-Koornwinder polynomials?), but received no clear ...
user avatar
  • 133
1 vote
1 answer
109 views

How to apply this function? [closed]

I have defined functions f[x], g[x]. How can I let them act on variable x (I want to put the ...
user avatar
  • 51
0 votes
0 answers
67 views

Inverse/Division in finite field?

Think of multiplictavie group of finite field F[p,n], where p is a prime number and n is a positive integer. The whole elements of F[p,n] can be represented as p^n-p^(n-1) positive integers in the ...
user avatar
  • 2,815
0 votes
2 answers
71 views

How can I multiply two 2-dim. matrices? [closed]

If I have the given below matrix d1[7,7], how can I multiply d1 by d1 to get the square matrix d2=d1.d1 ? ...
user avatar
0 votes
0 answers
65 views

Simplify simple symbolic expression with KroneckerDelta

In short, my question is about finding a method for performing an automatic substitution f[a]/.{a->b}, where b depends on the ...
user avatar
  • 347
0 votes
1 answer
84 views

No solution to the equation even though it has one

I was trying out Mathematica with a simple equation. I tried this one out, but it outputted nothing and when I went on WolframAlpha to test it, there was a result (c = 3 btw). Please let me know if ...
user avatar
1 vote
1 answer
60 views

generate quadratic functions to evaluate membership of points

How can I make a printable list with different quadratic functions and with points that belong or not to them so that a young person can check whether or not the point belongs to the parabola? my code ...
user avatar
  • 2,145
1 vote
1 answer
230 views

Simplifying quantum operators (ladder operators with multiple modes)

Similar to this question, I am interested in working with an implementation of quantum ladder operators. I've been trying to use this "Quantum Mathematica Package" to solve some lengthy ...
user avatar
2 votes
1 answer
124 views

Using Curl and Grad in cylindrical coordinates gives different result than in Cartesian

I am doing a quite elementary calculation to verify $$ \vec \nabla\cdot V = \vec\nabla \times \vec A $$ Where $V$ is just some scalar function in $\rho$, $\phi$ and $z$ and $A$ is defined as $$ ...
user avatar
0 votes
1 answer
45 views

Substitution of sequences to derive recursive mean

I would have the following derivation to calculate the recursive moving average and I'd like to follow it as closely as possible in Mathematica. For the sequence where $y(i)$ is considered as an ...
user avatar
0 votes
3 answers
131 views

How to solve these type : If $a + b + c + d = 63$ then find the Maximum of $(a b+ b c+ c d)$

If a + b + c + d == 63 then find the Maximum of a b + b c + c d. I tried using If, ...
user avatar
5 votes
2 answers
68 views

Group terms in a large expression based on their minimum variable dependencies

Suppose I have a very large expression, myEq[x1,x2,x3,x4] in four variables, x1, x2, ...
user avatar
0 votes
1 answer
87 views

How to simplify for a ratio of two variables

Say I have an equation like $$2 z \ln[\frac{a v_{2}^{2}}{b_{2}}]+(v_{1}-2v_{2}) - z \ln[\frac{a v_{1}^{2}}{b_{1}}]\geq0$$ ...
user avatar
  • 3,862
3 votes
3 answers
227 views

How to solve these algebraic identities?

I need help in finding/solving these types of algebraic equations using Mathematica. here is the problem/code. I tried using 'With' command but no use. Thanks in advance. ...
user avatar
0 votes
1 answer
50 views

Solving from previous results

I require in this program to use only all the value of “p” form “solution 1” in “solution 2”. Instead of copy and paste each value of “p” individually in solution 2, I am trying to write a function to ...
user avatar
  • 39
0 votes
2 answers
100 views

How to generate multiplication tables up to nxn?

I'm doing a simple multiplication table and I have this that I'm having a hard time with. I imagine that there must be a shorter way to do it, what I can't get is that it paints black the first column ...
user avatar
  • 480
2 votes
1 answer
108 views

Simplifying cross product expressions

Suppose I want to calculate: Cross[A1 + B1, A2 - B2] + Cross[A1 - B1, A2 + B2] which is equal to 2 A1xA2 - 2 B1xB2 Using ...
user avatar
  • 593
5 votes
1 answer
115 views

Check if polynomial is in factored form, without factoring

I have a large list list of integer polynomials, all of which are the output of Factor. So my list looks something like this: <...
user avatar
0 votes
1 answer
52 views

Sorting terms in a huge equation by grouping specific products

I have a boundary condition for a problem, which contains around 100 terms! I have no trouble getting Mathematica to compute it, but the terms are sorted in a seemingly random order and I would like ...
user avatar
0 votes
2 answers
79 views

Can I implement a constant in such a way that every function of it gets redirected?

Basically, I want to implement split-complex numbers and tessarines. They can be easily implemented as 2x2 matrices with complex elements. But I want them to work in general expressions. So I want a ...
user avatar
  • 2,751
0 votes
1 answer
38 views

Perform Eliminate, Solve and Format at once in Mathematica

I have a series of equations where I use eliminate to get a new equation with desired variables. This equation is then solved for a specific variable and then the result is presented in a specific ...
user avatar
  • 219
1 vote
0 answers
32 views

rule generalization-NCA algebra [duplicate]

How can I generalize the rule ...
user avatar
  • 593
1 vote
4 answers
92 views

numerical values of coefficients

Consider the following output: x= (Sqrt[3/(2 (1 + Sqrt[11]/4))] b[0, π/3] - (1 + Sqrt[7/3]) b[(2 π)/3, (2 π)/3])/(4 Sqrt[2] 7^(1/4) Sqrt[1 + Sqrt[7]/4]) If i do <...
user avatar
  • 593
2 votes
1 answer
76 views

Expression conversion to a sum of base-N

I have: 1/(2^(1/2) - 2^(1/3)) And would like to dissolve the denominator and convert it to sum of numbers in the form 2^q where q is Rational. Does Mathematica ...
user avatar
  • 389
1 vote
1 answer
81 views

dot product of vectors with noncommutative elements

I came upon an interesting problem. Suppose you have three vectors $\psi=(a, b)$, $\phi=(c,d)$ such that their components do not commute: $ac\neq ca$, $bd \neq db$ etc. (in general the vectors may ...
user avatar
  • 593
0 votes
0 answers
30 views

Obtain real roots [duplicate]

I'm evaluating polynomials that are solvables by radicals in their algebraic solutions but it allways return complex values. Apparently the main issue is with the radicals e.g. N[(-1)^(1/3)] returns 0....
user avatar
0 votes
1 answer
74 views

simplifying indefinite sums containing Kronecker Deltas

I want to simplify indefinite sums containing KroneckerDeltas, e.g: $\sum_{k,k1,q} \beta(q) \beta(k+k1+q) \delta(k1+q)= \sum_{k,q} \beta(k)\beta(q)$ where $k,k1,q \;\epsilon \; \mathrm{R}$ ...
user avatar
  • 593
1 vote
1 answer
47 views

NonCommutativeMultiply syntax question

I define: ...
user avatar
  • 593
2 votes
1 answer
49 views

NonCommutativeMultiply question- syntax question

if I define id as: id /: NonCommutativeMultiply[id, x_] := x id /: NonCommutativeMultiply[y_, id] := y then ...
user avatar
  • 593
2 votes
2 answers
81 views

Solve for two variables but output second variable in terms of first variable

Here are some equations for illustration: Format[Solve[{4*r1^3 == r2^2*(3*h), t*r2^2*(h - d) == r2^2*(h + d)}, #] & /@ {{h, d}}, InputForm] Here is their ...
user avatar
  • 219

1
2 3 4 5