Package: stokes 1.2-1

stokes: The Exterior Calculus

Provides functionality for working with tensors, alternating forms, wedge products, Stokes's theorem, and related concepts from the exterior calculus. Uses 'disordR' discipline (Hankin, 2022, <doi:10.48550/arXiv.2210.03856>). The canonical reference would be M. Spivak (1965, ISBN:0-8053-9021-9) "Calculus on Manifolds". To cite the package in publications please use Hankin (2022) <doi:10.48550/arXiv.2210.17008>.

Authors:Robin K. S. Hankin [aut, cre]

stokes_1.2-1.tar.gz
stokes_1.2-1.zip(r-4.5)stokes_1.2-1.zip(r-4.4)stokes_1.2-1.zip(r-4.3)
stokes_1.2-1.tgz(r-4.4-any)stokes_1.2-1.tgz(r-4.3-any)
stokes_1.2-1.tar.gz(r-4.5-noble)stokes_1.2-1.tar.gz(r-4.4-noble)
stokes_1.2-1.tgz(r-4.4-emscripten)stokes_1.2-1.tgz(r-4.3-emscripten)
stokes.pdf |stokes.html
stokes/json (API)
NEWS

# Install 'stokes' in R:
install.packages('stokes', repos = c('https://robinhankin.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/robinhankin/stokes/issues

Datasets:
  • dx - Elementary forms in three-dimensional space
  • dy - Elementary forms in three-dimensional space
  • dz - Elementary forms in three-dimensional space
  • ex - Basis vectors in three-dimensional space
  • ey - Basis vectors in three-dimensional space
  • ez - Basis vectors in three-dimensional space

On CRAN:

6.51 score 3 stars 316 downloads 74 exports 26 dependencies

Last updated 2 months agofrom:7234fa4183. Checks:OK: 5 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 11 2024
R-4.5-winNOTENov 11 2024
R-4.5-linuxNOTENov 11 2024
R-4.4-winOKNov 11 2024
R-4.4-macOKNov 11 2024
R-4.3-winOKNov 11 2024
R-4.3-macOKNov 11 2024

Exports:%^%%X%0form0tensorAltas.1formas.function.kformas.function.ktensoras.kformas.ktensoras.sprayas.symboliccoeffscoeffs<-coeffs<-.kformcoeffs<-.ktensorcoeffs<-.sprayconsolidatecontractcontract_elementaryddiscarddovsegradhodgeinclude_permsinneris.emptyis.kformis.ktensoris.scalaris.volumeis.zeroissmallkeepkformkform_basiskform_generalkform_to_ktensorkill_trivial_rowskinnerktensorloselose.kformlose.ktensorntermsOps.kformOps.ktensorprint.kformprint.ktensorprint.summary.kformprint.summary.ktensorpullbackrformrtensorscalarsortspraystretchsummary.kformsummary.ktensortensorprodtensorprod2vcp3vector_cross_productvolumewedgewedge2zapzap.kformzap.ktensorzeroformzerotensor

Dependencies:abindclidigestdisordRfreealggluegmplatticelifecyclemagicmagrittrmathjaxrMatrixnumberspartitionspermutationspolynomrbibutilsRcppRdpackrlangsetsspraystringistringrvctrs

The Alt() function in the stokes package

Rendered fromAlt.Rmdusingknitr::rmarkdownon Nov 11 2024.

Last update: 2024-08-15
Started: 2021-05-03

Objects ex, ey, and ez in the stokes package

Rendered fromex.Rmdusingknitr::rmarkdownon Nov 11 2024.

Last update: 2024-02-29
Started: 2023-02-22

Functions contract() and contract_elementary() in the stokes package

Rendered fromcontract.Rmdusingknitr::rmarkdownon Nov 11 2024.

Last update: 2024-08-15
Started: 2022-01-01

Function dovs() function in the stokes package

Rendered fromdovs.Rmdusingknitr::rmarkdownon Nov 11 2024.

Last update: 2023-10-06
Started: 2022-03-05

Objects dx, dy, and dz in the stokes package

Rendered fromdx.Rmdusingknitr::rmarkdownon Nov 11 2024.

Last update: 2024-06-03
Started: 2022-02-26

The hodge() function in the stokes package

Rendered fromhodge.Rmdusingknitr::rmarkdownon Nov 11 2024.

Last update: 2024-08-19
Started: 2022-03-04

The inner() function in the stokes package

Rendered frominner.Rmdusingknitr::rmarkdownon Nov 11 2024.

Last update: 2024-07-27
Started: 2021-05-03

The kinner() function in the stokes package

Rendered fromkinner.Rmdusingknitr::rmarkdownon Nov 11 2024.

Last update: 2024-06-03
Started: 2022-03-04

Exterior calculus with R

Rendered fromstokes.Rmdusingknitr::rmarkdownon Nov 11 2024.

Last update: 2024-02-29
Started: 2020-01-22

Functions vector_cross_product() and vcp3() in the stokes package

Rendered fromvector_cross_product.Rmdusingknitr::rmarkdownon Nov 11 2024.

Last update: 2024-02-16
Started: 2022-01-17

Function volume() in the Stokes package

Rendered fromvolume.Rmdusingknitr::rmarkdownon Nov 11 2024.

Last update: 2024-06-03
Started: 2022-09-18

Functions wedge() and wedge2() in the stokes package

Rendered fromwedge.Rmdusingknitr::rmarkdownon Nov 11 2024.

Last update: 2024-08-23
Started: 2019-04-01

Readme and manuals

Help Manual

Help pageTopics
The Exterior Calculusstokes-package stokes
Alternating multilinear formsAlt
Coerce vectors to 1-formsas.1form grad
Extract and manipulate coefficientsas.spray coeff coeffs coeffs,kform-method coeffs,ktensor-method coeffs.kform coeffs.ktensor coeffs<- coeffs<-,kform-method coeffs<-,ktensor-method coeffs<-.kform coeffs<-.ktensor coeffs<-.spray nterms spray value<-
Various low-level helper functionsconsolidate include_perms kform_to_ktensor kill_trivial_rows lose_repeats
Contractions of k-formscontract contract_elementary
Dimension of the underlying vector spacedovs
Elementary forms in three-dimensional spacedx dy dz
Basis vectors in three-dimensional spaceex ey ez
Hodge star operatorHodge hodge star
Inner product operatorinner inner.product inner_product
Is a form zero to within numerical precision?issmall
Keep or drop variablesdiscard keep retain
k-formsas.function.kform as.kform d e general_kform is.form is.kform kform kform_basis kform_general
Inner product of two kformskinner
k-tensorsas.function.ktensor as.ktensor is.ktensor is.tensor ktensor
Arithmetic Ops Group Methods for 'kform' and 'ktensor' objectsOps Ops.kform Ops.ktensor Ops.stokes
Print methods for k-tensors and k-formskform_symbolic_print ktensor_symbolic_print polyform print.kform print.ktensor print.stokes stokes_symbolic_print
Random kforms and ktensorsrform rkform rktensor rtensor
Scalars and losing attributes0form 0tensor drop is.scalar lose lose.kform lose.ktensor scalar
Summaries of tensors and alternating formsprint.summary.kform print.summary.ktensor print.summary.spray summary summary.kform summary.ktensor summary.stokes
Symbolic formas.symbolic symbolic
Tensor products of k-tensors%X% tensorprod tensorprod2
Linear transforms of k-formspull-back pullback push-forward pushforward stretch transform
The Vector cross productvcp3 vector_cross_product
The volume elementis.volume volume
Wedge products%^% wedge wedge2
Zap small values in k-forms and k-tensorszap zap.kform zap.ktensor zap.spray zapsmall zaptiny
Zero tensors and zero formsis.empty is.zero zero zeroform zerotensor