Processing math: 100%

First time here? Check out the FAQ!

Ask Your Question
1

Evaluate a curl at a point?

asked 4 years ago

UncountableSet gravatar image

I'm trying to create a curl example for my calc III students. I figured out how to compute the curl, but not how to evaluate it at a point. Can someone please advise? Thanks, Albert

from sage.manifolds.operators import *
E.<x,y,z> = EuclideanSpace()
v = E.vector_field(exp(x)*sin(y),-exp(x)*cos(y),0, name='v')
show(v.display())
curl_v = curl(v)
show(type(curl_v))
show(curl_v.display())
Preview: (hide)

2 Answers

Sort by » oldest newest most voted
1

answered 4 years ago

rburing gravatar image

It is shown on the bottom of the reference manual page for vector fields, using the at method:

p = E((0,0,0), name='p')
show(curl_v.at(p).display())

curl(v)=2ez

(For some reason, the point is not displayed in the notation. Not sure why this is. I would expect it as a subscript.)

Preview: (hide)
link
0

answered 4 years ago

UncountableSet gravatar image

I was missing the at(). All of the vector calc stuff upto this point has been pretty easy, but these div and curl operators in sage are going to be really tough for the students. Much more complicated. I appreciate the help.

Preview: (hide)
link

Comments

1

The method at() is presented in this vector calculus tutorial. The reason why you cannot just write v(p) is that the call operator () acting on a vector field is expecting a 1-form and returns the contraction with that 1-form (a scalar field).

eric_g gravatar imageeric_g ( 4 years ago )

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: 4 years ago

Seen: 387 times

Last updated: Sep 30 '20