this post was submitted on 08 Nov 2024
75 points (96.3% liked)
Weird News - Things that make you go 'hmmm'
903 readers
106 users here now
Rules:
-
News must be from a reliable source. No tabloids or sensationalism, please.
-
Try to keep it safe for work. Contact a moderator before posting if you have any doubts.
-
Titles of articles must remain unchanged; however extraneous information like "Watch:" or "Look:" can be removed. Titles with trailing, non-relevant information can also be edited so long as the headline's intent remains intact.
-
Be nice. If you've got nothing positive to say, don't say it.
Violators will be banned at mod's discretion.
Communities We Like:
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
import sympy as sp
x, y, z = sp.symbols('x y z')
Fx = sp.Function('Fx')(x, y, z)
Fy = sp.Function('Fy')(x, y, z)
Fz = sp.Function('Fz')(x, y, z)
F = sp.Matrix([Fx, Fy, Fz])
nabla = sp.Matrix([sp.diff(Fx, x), sp.diff(Fy, y), sp.diff(Fz, z)])
curl_F = F.jacobian([x, y, z]).transpose() - nabla
sp.pprint(curl_F)