oleorun@real.lemmy.fanM to Weird News - Things that make you go 'hmmm'@real.lemmy.fanEnglish · 6 days agoMan finds python curled up in toilet—for the second time in a weekwww.newsweek.comexternal-linkmessage-square9fedilinkarrow-up180arrow-down13file-text
arrow-up177arrow-down1external-linkMan finds python curled up in toilet—for the second time in a weekwww.newsweek.comoleorun@real.lemmy.fanM to Weird News - Things that make you go 'hmmm'@real.lemmy.fanEnglish · 6 days agomessage-square9fedilinkfile-text
minus-squareC126@sh.itjust.workslinkfedilinkEnglisharrow-up2·edit-26 days agoimport 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)
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)