# Questions tagged [dot]

The tag has no usage guidance.

28 questions
Filter by
Sorted by
Tagged with
40 views

### Trying to find the double dot product of a Rank 4 and Rank 2 tensor

I understand this question has been asked before, or something very similar to what I'm trying to accomplish at the very least, however I didn't understand much of what was happening in the other ...
38 views

### Simplifying the dot product [closed]

Why does the code D[x.x, x] /. {1. x -> x, x .1 -> x} gives 1.x+x.1, while ...
41 views

### Distribute dot and multiplication on a sum

I have a simple problem, I would like to get the following: In= Distribute[a.(b+c)*d] Out= a.b*d+a.c*d Meaning that I would like the dot product and the ...
39 views

### How to plot two functions together when one of them needs to be a series of dots, with common labels and colors?

I have two functions that I want to plot together. I want to plot the non-linear and the linear (NL and L in my code) functions together, but I wish that the NL function is plotted as a series of dots ...
225 views

### Dot product result has wrong dimension [closed]

I'm doing a small project and I've encountered a problem while using Mathematica. I should mention that I'm kinda new to this software, so maybe it's just something I haven't grasped yet. Anyway, I ...
147 views

### How to change node color in .dot file using pattern matching?

For example I have a dot file that describe a decision tree or binary tree In the file, the color of node is always gold, so I try to change it according the number in ...
18 views

### Matrix multiplication Q.W not working - Result=matrix Q . matrix W [duplicate]

When I write the code to do the dot product between two matrices, Mathematica does not compute it: How can I get the right matrix? EDIT Thank you for your willingness.
132 views

### Product but with Dot operation [duplicate]

I want to describe a way to express a chain of Dot Product like this: m.m.m.m.m.m.m.m Something like ...
206 views

### Nested Matrix Dotproduct

For a given matrix M[n] of size $n\times n$ I want to define the following list of matrix-expressions: ...
66 views

### Importing a .dot graph file, and changing vertex label format

I worked out how (one way...) to import a .dot graph format file into Mathematica using ...
89 views

### Dot Product of Matrices in NDSolve

How to efficiently solve a system of differential equations involving matrix dot product? The example below is solved extremely fast when the array structure is flattened out. Is there a way to reach ...
568 views

### dot product not working [closed]

Im supposed to take the dot product of a function and itself. The matrix is a system of 4 equations defined to be : ...
184 views

### Orthogonalize with a custom inner product

Bug introduced in 9.0 or earlier and fixed in 10.0 I was trying to define a custom inner product function for Orthogonalize, and have been getting some odd behaviour. Here's a MWE: I try to compute ...
146 views

### Generalized n-fold inner product for tensors, iteration and indexing or built in functions?

I'm very new to Mathematica, and struggling to convert one of the codes I'd written in MATLAB. I am trying to program a function for a generalised inner product between two tensors, that is for ...
595 views

### Adding dots to an empty region of space [closed]

I want to add dots to the maze so far I know only how to get one dot on the maze. I don't know if there is way without using coordinates. So it would look like this with the dots added (source: ...
90 views

### Expressing the output product using dot

I have an expression of the form Hbar.H where H and Hbar are vectors. How can I get the ...
211 views

421 views

### Bilinear Dot Function

In mathematics the matrix product is a bilinear operation $$\alpha A \cdot(\beta B + \gamma C) = \alpha\beta ( A \cdot B )+ \alpha \gamma (A\cdot C ),$$ where capital letters denote matrices and ...
800 views

### Is it possible to simplify an expression in vector form, which involves crossproduct and dot product?

I often need to simplify expressions involving cross product and dot product, for example: f = Dot[Cross[Cross[p1 - p, e1], Cross[p2 - p, e2]], Cross[p3 - p, e3]] ...
1k views

### Using the Norm Function

I am trying to take the norm of a general vector and show that for vectors, v,w, that Norm[v cross w]^2==Norm[v]^2*Norm[w]^2-(v dot w)^2 In Mathematica, here are my steps: ...
397 views

### Pulling out a prefactor from a dot product

I have three complicated vectors u, v and w as well as three simple prefactors ...
407 views

### Factor out the scalar multiplier for the dot product of 2x2 matrices

If yy and zz are 2x2 Hermitian matrices, is there a way that I can mark them (with a property?) as Hermitian so that Mathematica can assume that it can factor out and simplify scalar multipliers from ...
190 views

### Unexpected inefficiency when calculating matrix product by Dot

There is an unexpected inefficiency when I calculate matrix product by Dot. The only relevant part of my code is presented as follows: ...
445 views

### Dot product for lists

Suppose we want to get the dot product for the following lists aa and bb, whose elements (a, ...
880 views

### Why is calling Dot with many arguments so inefficient?

Say I want to multiply a reasonably large list of symbolic matrices. ...