Skip to content

Commit

Permalink
fix cross product in docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
m-reuter authored Jan 17, 2025
1 parent 6c20eb8 commit f22bfad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lapy/diffgeo.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,9 +668,9 @@ def tet_compute_gradient(tet, vfunc):
For a tetrahedron (vi,vj,vk,vh) with volume V we have:
.. math::
grad(f) &= [ (f_j - f_i) (vi-vk) \cross (vh-vk) \\
& + (f_k - f_i) (vi-vh) \cross (vj-vh) \\
& + (f_h - f_i) (vk-vi) \cross (vj-vi) ] / (6 V).
grad(f) &= [ (f_j - f_i) (vi-vk) \times (vh-vk) \\
& + (f_k - f_i) (vi-vh) \times (vj-vh) \\
& + (f_h - f_i) (vk-vi) \times (vj-vi) ] / (6 V).
Parameters
----------
Expand Down

0 comments on commit f22bfad

Please sign in to comment.