Ask Your Question
2

Gradient, Divergence, Curl and vector products

asked 2013-10-21 12:40:22 +0100

anonymous user

Anonymous

Are there implementations of vector product and the nabla operator yet? I can't find anything.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2015-11-20 03:14:41 +0100

kcrisman gravatar image

updated 2015-11-20 03:16:00 +0100

Sorry for the update - believe it or not, after years this was finally implemented (as a method, not function) in Trac 3021.

sage: var('y z')
(y, z)
sage: V = vector([x^2*y, z, 3*y^2])sage: V.curl([x,y,z]) # necessary since otherwise why should x be first?
(6*y - 1, 0, -x^2)
sage: V.div()  # same reason
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<snip>
ValueError: Unable to determine ordered variable names for Symbolic Ring
sage: V.div([x,y,z])
2*x*y
edit flag offensive delete link more
1

answered 2013-10-21 13:24:57 +0100

Shashank gravatar image

I don't think sage has a curl and divergence defined, but it is very easy to implement them.

Have a look at http://sage.math.canterbury.ac.nz/hom...

edit flag offensive delete link more

Comments

1

I'm kind of disappointed now, since they are very easy to implement and are really important when working with vectors. I don't really want to define it myself every time I need it.

Ki gravatar imageKi ( 2013-10-22 01:33:11 +0100 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2013-10-21 12:40:22 +0100

Seen: 4,726 times

Last updated: Nov 20 '15