Liking cljdoc? Tell your friends :D

physics.electromagnetics.math

Utility helpers for electromagnetics: robust complex arithmetic with resilience metadata.

Utility helpers for electromagnetics: robust complex arithmetic with resilience metadata.
raw docstring

*condition-threshold*clj

Condition number above which high-precision fallbacks are attempted.

Condition number above which high-precision fallbacks are attempted.
sourceraw docstring

*scale-threshold*clj

Magnitude order at which scaling warnings are emitted.

Magnitude order at which scaling warnings are emitted.
sourceraw docstring

*validity-log*clj

Optional atom/vector for collecting diagnostic maps from arithmetic operations.

Optional atom/vector for collecting diagnostic maps from arithmetic operations.
sourceraw docstring

c*clj

(c* a b)
source

c+clj

(c+ a b)
source

c-clj

(c- a b)
source

cdivclj

(cdiv a b)

Divide complex numbers A/B using Smith's algorithm for numerical stability.

Divide complex numbers A/B using Smith's algorithm for numerical stability.
sourceraw docstring

complexclj

(complex re im)
(complex re
         im
         {:keys [flags valid? op metadata]
          :or {flags #{} valid? true op :literal metadata {}}})

Create a robust complex number map. Options: :flags set of diagnostic keywords, :valid? boolean, :op keyword, :metadata map.

Create a robust complex number map.
Options: :flags set of diagnostic keywords, :valid? boolean, :op keyword, :metadata map.
sourceraw docstring

conj*clj

(conj* z)
source

csqrtclj

(csqrt z)

Principal square root of complex number.

Principal square root of complex number.
sourceraw docstring

high-precision-mcclj

source

jclj

Imaginary unit.

Imaginary unit.
sourceraw docstring

magnitudeclj

(magnitude z)

Return magnitude of a robust complex number.

Return magnitude of a robust complex number.
sourceraw docstring

magnitude-squaredclj

(magnitude-squared z)
source

phaseclj

(phase z)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close