Ask Your Question

idonea's profile - activity

2020-12-11 10:55:11 +0200 received badge  Popular Question (source)
2018-12-03 21:45:44 +0200 received badge  Student (source)
2015-02-16 18:22:43 +0200 received badge  Scholar (source)
2015-02-16 13:17:00 +0200 commented question built in method norm of Vector_symbolic_dense object

And I'm using sage 5.13 because newer versions don't work on my virtualbox machine.

2015-02-16 13:16:13 +0200 commented question built in method norm of Vector_symbolic_dense object

It's a mistake I made here, there is the parenthesis in .norm() in my worksheet

2015-02-16 10:51:10 +0200 answered a question built in method norm of Vector_symbolic_dense object

sage 5.13 and that is what I want to get. which version do you have?

2015-02-15 22:32:05 +0200 received badge  Editor (source)
2015-02-15 22:22:21 +0200 asked a question built in method norm of Vector_symbolic_dense object

So, I want to write a program that plots equipotential contours for z=0 for electric potential of 3 charges(ch) at specified coordinates(matrix m). I need rv to be a vector with general coordinates so I can later plot the equipotential contours.

var(' x y ')
m=matrix(QQ,[[1,1],[-1,-1],[-1,1]])
ch=([-1,1,1])
rv=vector([x,y])
k=m.nrows();
u=[(rv-m[i]).norm() for i in range(k)];

However, after the last line I get this:

[<built in method norm of Vector_symbolic_dense object at 0xbb752fc>, <built in method norm of Vector_symbolic_dense object at 0xbb7532c>, <built in method norm of Vector_symbolic_dense object at 0xbb750bc>]

How do I fix this to get the norm of rv-m[i]?

,