# Tagged Questions

Mathematical vectors, operations on vectors and vectorized programming.

1answer
19 views

### how to do VectorPlot?

I have a problem with VectorPlot for spin current density and I tried it my self but not working. Here is the code according to Jens solution: ...
0answers
35 views

### Color vectors according to a user-defined function

V[x_,z_]:=x/Sqrt[x^2+z^2]; Ex[x_,z_]=-D[V[x,z],x]; Ez[x_,z_]=-D[V[x,z],z]; The electric field components (Ex,Ez) are to be plotted as a vector field in the x-z ...
1answer
127 views

### How to fix the number and length of vectors when using ListVectorPLot

I want to plot only the vectors that I specify in my list of vectors, and no more. ListVectorPlot plots many of them, namely plots the field extrapolating from my four vectors.I would also like to ...
0answers
34 views

### Plotting a parameterized vector in the x-y plane

I am trying to plot the trajectory of a parachutist descending at a constant vertical rate of 8 m/s while a south wind also blows at a rate of 8 m/s. He initially jumps from a height of 300 m. I am ...
1answer
61 views

### How to I plot a vector and a line on the same graph?

For example I want to plot the vector <7, 20> on the same plot as the line {t, 6t+10}
1answer
44 views

### How to plot a linear vector tangent to a bezier surface?

I have a bezier surface and its parameters are u and v. The partial differentiation with u as variable gives me a vector in the direction of u. I need to plot this vector. I plugged in a particular ...
5answers
449 views

### Add a vector to a list of vectors

What is the syntax to add v1 to each vector in v2? I know it has to be simple, but I really have searched and not found it. ...
3answers
2k views

1answer
84 views

### Divide each element of a list of 500 matrices by another matrix

Lets say that I have a Table of dimension (3,3,500) and I'd like to perform element-wise division by a 3x3 matrix along the third dimension (of length 500 in this case). What is the most elegant way ...
1answer
114 views

### Plot a numerical integration as a function of a variable

Suppose we have a function that is hard to evaluate analytically but a numerical estimate suffices. For example consider the $f(x,\Lambda) = \Lambda\cdot \sin(x)$ where $\Lambda$ is some parameter I ...
2answers
78 views

### Plotting vectors using derivatives

This question stems from a previous question I asked here: Multiple Integral of equation including dx prime? An equation describing a gravitational field of a cuboid is given as: \$V(X,Y,Z) = -G\rho ...
3answers
66 views

### Referring to the components of a vector within a sum

I feel like I'm missing something obvious here, but.... I'm playing around, trying to do the standard deviation for my stats homework (don't worry, I already worked out the answer by hand), and I ...
2answers
79 views

### Problem in matrix multiplication

I created a random directed acyclic graph using Mathematica. I need to compute a specific function from its adjacency matrix. ...
0answers
57 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: ...
2answers
185 views

### Vector Plot of a linearly varying cantilever

I want to drawing with Vector Plot a deflection and slope of a linearly varying cantilever. And with Contour Plot it works but with Vector Plot it didn't. Here is the code: ...
0answers
105 views

### Find the point of intersection of A,B,C-plane and D1D2-line

The problem. Five points A,B,C,D1 and D2 in R3 are given. (1) Determine whether three points A,B,C are collinear(i.e. lie on the same line). (2) If A,B,C are not collinear, find the plane that ...