Ask Your Question
0

Vector multiplication

asked 2019-11-12 09:09:27 -0500

Cyrille gravatar image

updated 2019-11-13 07:09:14 -0500

Iguananaut gravatar image

I would like to know why this procedure doesn't work

aa = list(var('delta_%d' % i) for i in (0..2))
c=n(matrix(1,3,(-0.5,0.2,.3)),2)
U = e^(c*transpose(aa))
show(U)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2019-11-12 09:39:41 -0500

rburing gravatar image

For one, because you can't transpose lists. Secondly, you should take the (single) entry of c*aa.

aa = vector(var('delta_%d' % i) for i in (0..2))
c = n(matrix(1,3,(-0.5,0.2,.3)),2)
U = e^((c*aa)[0])
show(U)

$$e^{\left(-0.50 \delta_{0} + 0.19 \delta_{1} + 0.25 \delta_{2}\right)}$$

(Note that you specified 2 bits of precision with n.)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-11-12 09:09:27 -0500

Seen: 61 times

Last updated: Nov 13 '19