# Tagged Questions

Mathematical vectors, operations on vectors and vectorized programming.

154 views

### Controlling scaling of multiple vector fields in VectorPlot3D

I'm trying to plot the electric and magnetic fields of a relativistically moving electric charge using VectorPlot3D, and apply "Manipulate" to change the velocity. The code I'm using is as follows: <...
1k views

I want to compute a 3D gradient vector field of an Image3D object using the built-in GradientOrientationFilter function in Mathematica. From the documentation I ...
700 views

### Extract common factor from vector or matrix

I can't believe this hasn't been asked before but I can't find anything. Is there a way to convince Simplify or FullSimplify to ...
102 views

### Compile issues, scoping and order of evaluation

I have a few questions about compiling functions, which I think are all related to scoping and order of evaluation. I will illustrate them by a minimal example of the problem I have. I'm sorry for ...
53 views

### Piecewise in 2D with quadrants as conditions

I am trying to define a piecewise vector field. Can the condition be of the form I am using (i.e. a quadrant)? I can't also make Piecewise work with more than two ...
118 views

### StreamPlot in 3 Dimensions

I would like to plot the vector equation $\left( {\begin{array}{*{20}{c}} {\frac{{ - a + \sqrt {{a^2} + 4bc} }}{c}}\\ {\frac{{ - a - \sqrt {{a^2} + 4bc} }}{c}}\\ 1 \end{array}} \right)$ as a stream ...
131 views

### Ray tracing: Insufficient precision

I am writing a ray tracer to find the intersection point between a single ray and a cylinder. ...
225 views

### Manahalobis distance between two vectors

I want to calculate the Mahalanobis distance between two vectors that represent two points. For example: ...
95 views

### Solving for vector elements in a function to which the vectors are not passed explicitly

I want to define a function which takes in two integers (indicating the lengths of 2 vectors), and solves a simple set of expressions at a set of points to find all the values in both the vectors. so ...
31 views

### Plotting topological defects with VectorPlot

I have been trying to create a table with the graphs of the lowest winding number topological defects that can appear in a nematic Liquid Crystal. That is what I have been able to do so far: ...
18 views

### How to resolve this issue related to Conjugate?

When I perform the vector multiplication given below FullSimplify[{a,b}.Conjugate[{a,b}]] I am getting the result as I expect ...
41 views

### Pass List / Vector argument through NDSolve to a function

I am trying to pass vector or list as argument to the function from NDsolve.And I am getting these error. Also I am pretty new to stack overflow. Apology if this a possible duplicate. Here is my code. ...
30 views

### Simplify expression?

Suppose I have expressions that involve terms like: p1.p1+p2.p2+p3.p3+p4.p4 p1, p2, p3, and p4 are all elements of an array: ...
44 views

### Order of evaluation for numeric functions

I'm trying to plot a 3D vector field to illustrate an electric field of a uniformly charged disk, and I used Manipulate to change the radius R of the disk to see ...
55 views

### While loop running intermittently

...
Let's say I have a simple vector-valued ODE given by $y'(t) = K*y(t)$ where K is a matrix $K_{n_{X}n}$. Let's assume that the matrix is $K_{21_{X}21}$, \$K = \left[\begin{array}{cccc} k_{1_{X}1} &...