Skip to content
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

feat: Add commonly used physics macros #3700

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Leedehai
Copy link

@Leedehai Leedehai commented Aug 31, 2022

Support commonly used macros from the $\LaTeX$ physics package. Demo.

ops.js ('yarn start' URL):

ops explanation
\rank rank of matrices
\Res residue in complex analysis
\tr, \Tr, \trace trace of matrices

macros.js ('yarn start' URL):

macros explanation
\abs, \Abs absolute value
\norm, \Norm norm
\eval vertical bar of evaluation limits for integrals
\vb, \vectorbold vector, bold font
\vectorarrow vector, with an arrow
\vectorunit unit vector, with a hat
\dotproduct, \crossproduct dot and cross product of vectors
\dd differential
\gradient, \laplacian gradient and laplacian for scalar fields
\divergence, \curl divergence and curl for vector fields
  • Already signed CLA.

@Leedehai
Copy link
Author

Leedehai commented Sep 1, 2022

Hi maintainers, GitHub said I "need a maintainer to approve running workflows". 🙂

@codecov
Copy link

codecov bot commented Sep 1, 2022

Codecov Report

Merging #3700 (de43acc) into main (176552a) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3700      +/-   ##
==========================================
+ Coverage   92.97%   92.99%   +0.01%     
==========================================
  Files          91       91              
  Lines        6765     6781      +16     
  Branches     1571     1571              
==========================================
+ Hits         6290     6306      +16     
  Misses        437      437              
  Partials       38       38              
Impacted Files Coverage Δ
src/functions/op.js 98.97% <ø> (ø)
src/macros.js 97.58% <100.00%> (+0.08%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ef49e2b...de43acc. Read the comment docs.

@Leedehai
Copy link
Author

Ping reviewers... 🙂

@Leedehai
Copy link
Author

Leedehai commented Sep 23, 2022

Ping reviewers..🙂 (x2)

@Leedehai
Copy link
Author

Leedehai commented Sep 30, 2022

Ping reviewers...🙂 (x3)

@Leedehai
Copy link
Author

Leedehai commented Oct 7, 2022

Ping reviewers...🙂 (x4)

@Leedehai
Copy link
Author

Ping reviewers...🙂(x5)

@physicslog
Copy link

Any plan to add a derivative shortcut like in the physics package:\dv{f}{x} for $\frac{df}{dx}$?

@Leedehai
Copy link
Author

Nope.. If anyone volunteers, feel free to fork this PR. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants