Skip to main content

All Questions

8 votes
2 answers
388 views

Given square matrices A and B, how to solve T obeys Transpose[T]. A . T = B?

Dear Mathematica experts, Given two square matrices, A and B, how do we use Mathematica to solve a matrix T such that T satisfies this matrix equation? (Here we have A,B,T $\in$ general linear matrix ...
zeta's user avatar
  • 251
4 votes
0 answers
137 views

Solving or Minimizing the Norm of the matrix equation $M^TAM - M^TB - B^TM =C$

I am trying to solve the matrix equation $M^TAM - M^TB - B^TM=C$ where I know A, B and C. My unknown matrix is M which has the special form that all the rows and columns sum to zero. i.e. I have four ...
1729taxi's user avatar
  • 777
0 votes
0 answers
161 views

Not understanding the reason for not getting full rank matrix

I have a structure shown in figure. It has four members. Each member has represented by two displacement field $W_i$ and $U_i$. I have expressed this displacement field using some functions. I found ...
acoustics's user avatar
  • 1,719
2 votes
1 answer
129 views

How to grab two points from linear equations and from a matrix m.x == b for the purpose of creating lines or planes from each row.?

Don't get me wrong I can easily do it on paper and I could probably write convoluted code that will get the job done but I feel like there has to be an easy Mathematica way to do this. A few users on ...
Jules Manson's user avatar
  • 2,467
3 votes
1 answer
747 views

Solve the vector-matrix equation. Minimize the length of the desired n-dimensional vector

There is the following vector-matrix equation: $$\mathbf x^\top\mathbf M\mathbf x=\begin{bmatrix}x_1&x_2&x_3\end{bmatrix}\begin{bmatrix}a&b&c\\d&e&f\\g&h&i\end{bmatrix}...
ayr's user avatar
  • 2,444
0 votes
5 answers
663 views

Find all the closest positive integer solutions within a bound for a simple linear equation

Suppose I have a linear equation/inequality like $$xA+yB \leq C,$$ with $x,y \in \mathbb{Z}^{+}_{\neq 0}$ and $A,B,C \in \{x | x = 0.01\mu, \forall \mu \in \mathbb{Z}^+_{\neq0}\}$. I want to find ...
two black lines in the middle's user avatar
3 votes
1 answer
1k views

Solve overdetermined set using Mathematica?

As shown below, this is a overdetermined system. Could you teach me how to find the optimized solution in Mathematica? I know it could be solved by the method of least square, but how to realize it in ...
Fang's user avatar
  • 31
3 votes
1 answer
216 views

Decomposing a diagonal positive real matrix

I would like to 'decompose' a diagonal positive real matrix $E$ of rank $D$ onto $\sum_{i=1}^{D}c(i)N^i$: $$E = \left( \begin{array}{ccc} 0 & & & \\ & a & & \\ &...
Zlatko-Minev's user avatar
1 vote
2 answers
1k views

Finding shortest non-zero vector $x$ satisfying $Ax=0 \pmod q$

Let $n$, $m$, and $q$ be positive integers (with $m > n$), and $A$ be a matrix over $\mathbb{Z}_q^{n \times m}$. Using Mathematica, I want to find the shortest non-zero vectors $x \in \mathbb{Z}_q^...
Sadeq Dousti's user avatar