Items tagged with vector vector Tagged Items Feed

How to generate all basis of a set? (rather an the one basis that basis generates)

Hello;

 

I wish to express a tensorial equation or expression a simplified vector form.

 

In the worksheet attached, I was trying to express Maxwell Equations in the familiar vector form from the tensorial form, using the F[mu,nu] tensor.

 

But I cannot achieve the familiar tensor form. If someone can give a hand, it would help me a lot.

 

HowtoExpressCompactForm.mw

 

 

1. how to eliminate the diff(*(x,y,z),x) terms in an expression, "*" means any function which have independent variables x,y,z?

2. how to get the gradient of a vector, which should be a tensor?

Hi all

Assume that we have following special matrix(Namely ATilde) for arbitrary vectore  z=[a0,a1,a2,a1*,a2*]:
atild.mws

and we want to use this as a general function for other arbitrary vector. is ther any way?

for example z1=[x,y,t,s,u]?

thanks for any help

best wishes

 

Mahmood   Dadkhah

Ph.D Candidate

Applied Mathematics Department

Maple function plot allows to build a linear plot for two vectors, when one vector contains X coordinates, another -- Y coordinates (similar to plot below):

Is it possible to build such a plot for several Y-vectors like this:

12

 

eq:=[Vector[row](4, {(1) = 0., (2) = 0., (3) = 0., (4) = 0.}), Vector[row](4, {(1) = -0.3381778526e-2, (2) = -.3381778526, (3) = -.3185010532, (4) = 0.}), Vector[row](4, {(1) = 0., (2) = 0., (3) = 0., (4) = 0.}), Vector[row](4, {(1) = 0., (2) = 0., (3) = 0., (4) = 0.}), Vector[row](4, {(1) = 0., (2) = 0., (3) = 0., (4) = 0.})]

how i can get a unique results:[Vector[row](4, {(1) = 0., (2) = 0., (3) = 0., (4) = 0.}), Vector[row](4, {(1) = -0.3381778526e-2, (2) = -.3381778526, (3) = -.3185010532, (4) = 0.})]

 

I have a (251*1) vector for which I need to compute the cumulative sum. I'm currently using :

s:=Statistics[CumulativeSum](prices[1..251,1])

defined under the Statistics package but this method doesn't return an output, even though the argument passed is a vector.

Is there another method I can use?

Here is my code

ma[1] := [-885.880598855072776, [bh = 0., g0h = 0., g1h = 0.825946224722250e-4]]

ma[2] := [-877.957885609114328, [bh = 347.116836805625, g0h = 0., g1h = 0.164861392564e-3]]

ma[3] := [-863.445203144006655, [bh = 0., g0h = 0., g1h = 0.787090377403668e-4]]

aver := [bh = 121.477814540743, g0h = 0.249071340242633e-5, g1h = 0.110740782334817e-3]

when i did

add((aver[1]-ma[j][2][1])^2, j = 1 .. 3)

it shows some error...

how to solve this problem??

 

related topic is here

Suppose I have 2 differential equations in vector form, and I want to solve them using dsolve. I am not able to figure the syntax for what I would do for scalar ODE to initial its derivative at t=0, which is D(x)(0)=some_value, but do the same when x is a vector.

Here is an example:

restart;
x := t-> <x1(t),x2(t)>;
eq:=diff~(x(t),t$2) =~ <sin(t),t>;
ic1:=x(0)=~0;

So far so good. Now I wanted to also make initial conditions for derivative at zero to be some value. Only syntax I know is using D(x)(0)=some_value. But this works for scalar ODE. When I tried

ic2:=D(x)(0)=~0;

I got

This does not work:

ic2:=diff~(x)(0)=~0;

any help on the correct syntax to use? I am using Maple 2015

 

Helo Dears, I need help to generate a vector whose detail given below

`for `K:=1 and m:=3 i need [[[psi[1,0]],[psi[1,1]],[psi[1,2]]]] and for K:=1 and m:=4 i need [[[psi[1,0]],[psi[1,1]],[psi[1,2]],[psi[1,3]]]]

 

`similarly for `K:=2 and m:=3 i need [[[psi[1,0]],[psi[1,1]],[psi[1,2]],[psi[2,0]],[psi[2,1]],[psi[2,2]]]] and for K:=1 and m:=4 i need [[[psi[1,0]],[psi[1,1]],[psi[1,2]],[psi[1,3]],[psi[2,0]],[psi[2,1]],[psi[2,2]],[psi[2,3]]]]

 

Simply I need to generate a general vector for arbitrary values of k and M as discus in above.

New_Wavelet_with_Operational_Matrix.mw

 

Dear all
I am using Physics[Vectors] package of Maple 17. I want to define an orthogonal curvilinear coordinates through alpha and beta independent variables. To define unit vectors of alpha and beta, I have to apply the derivatives of position vector r_ with respect to alpha and beta, respectively. Please help me to define the unit vectors in directions alpha and beta as derivatives of position vector r_ with respect to alpha and beta, respectively. Please see the below Code:


> restart;

> with(Physics[Vectors]);

> Setup(mathematicalnotation=true);

> r_:=X(alpha,beta)*_i+Y(alpha,beta)*_j+Z(alpha,beta)*_k;


The unit vectors in directions alpha and beta should be defined as:

_alpha=diff(r_,alpha)
_beta=diff(r_,beta)

It is worthwhile to mention that the following expression governs:


> diff(r_,alpha).diff(r_,beta)=0;

 

Please guide me.

Best wishes

Ali

How to add values in vector? This is what I am trying in my code below. I know there are more than one values satifying my conditon.

What is the best way constructing such vectors. If there are other options, please let me know. Thanks.

Hi all,

I've been working on this problem for a while and only need to figure out why the function vector is returning zeros every time I call the procedure. The problem statement is in the file I attached to this.

If any of you could help me, I would be a happy guy.

 

File: 1.2.mw

The physics package is pretty awesome, but one thing that would be a big help is some functionality for entering and resolving vectors in angle/magnitude format (50 angle 45 degrees, or what have you.) Is there a way to do this?

 

Thanks

 

Joe

I'd like to plot the differences between terms in a sequence of vectors. Each difference term should start at the end of the last difference term, so that if I was to plot the actual term, the vector would meet at the end of the difference term. The sequence is limited in length and stored as a list.

Ex:

Suppose I have  [<1,1>,<2,2>,<3,3>]. The difference terms would thus be [<1,1>,<1,1>,<1,1>]. The first difference term would be plotted be plotted from <0,0>, the second starting at <1,1>, the third at <2,2>.

I can compute the difference terms, but I am not sure how to make the plot I desire. Is arrow(...) the answer, somehow?

1 2 3 4 5 6 7 Last Page 1 of 14