-
-
Notifications
You must be signed in to change notification settings - Fork 480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add curl and divergence functions to vectors #3021
Comments
comment:1
(After some discussion on IRC) It seems that Sage is really lacking in the differential geometry area. If some good work is done there, this request will likely automatically be satisfied. A short term solution would be to write a vector field class. |
comment:2
|
comment:3
See #5506 for a collection of things to add to a symbolic vectors class |
comment:4
There is a 7-dim curl. Why doesn't the generic vector one work? |
comment:5
What generic curl (I don't think it's in Sage right now)? Or are you saying we should just add curl to generic vectors? I agree; no reason to add this to just the callable symbolic vectors class (what was I thinking?). |
comment:7
Also
|
Branch: u/robertwb/ticket/3021 |
New commits:
|
Commit: |
comment:13
I was just going to work on this today! I haven't tested the code, but looks good. Just a few things:
|
comment:14
Nitpicking on the error message in About point 4 in eviatarbach's comment:
|
comment:15
More nitpicking:
|
comment:16
Another thought: The extracting of variables from each element and then sorting by name looks scary, and can give unexpected results (if your vector is |
comment:17
If your vectors are callable symbolic vectors, you should be able to get the list of arguments from the base ring (since you've already explicitly given an order to the variables):
|
comment:18
That's a great idea. I think we should have that for callable vectors. For the record, Mathematica and Maple both have default coordinate systems, which is how they deal with this issue. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:22
I've addressed all the comments. |
comment:24
I was going to look at this, but looks like Eviatar and Samuel are on top, so just think of this as a ping :) |
comment:25
Replying to @kcrisman:
Feel free to look at this yourself :) |
comment:26
My 2 cents, I'd have curl also take 2-dim inputs and return a vector. It might also be a good idea for a way (likely another method) which takes a 2-dim input and return a scalar as a shorthand (a la Green's theorem). +1 to getting these (fundamental) methods into Sage. |
comment:27
Are there any enhancements to this with-patch, 7-year-old ticket that simply can't be deferred 'till later so we can finally get this in? |
Changed branch from u/robertwb/ticket/3021 to u/tscrim/curl_divergence-3021 |
Author: Robert Bradshaw |
Reviewer: Eviatar Bach, Samuel Lelièvre, Travis Scrimshaw |
Changed branch from u/tscrim/curl_divergence-3021 to |
Make curl work if the vector has 2 or 3 components. Is there a higher-dimensional analogue for curl?
CC: @eviatarbach
Component: calculus
Author: Robert Bradshaw
Branch/Commit:
7b49240
Reviewer: Eviatar Bach, Samuel Lelièvre, Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/3021
The text was updated successfully, but these errors were encountered: