Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/At0micBee/scilib
/ functions
Functions
192 in github.com/At0micBee/scilib
⨍
Functions
192
◇
Types & classes
5
Method
from_degree
# From the point (degrees) Creates a Spherical struct from three given points in space, with the angles in degrees. ``` # use scilib::coordinate::sp
src/coordinate/spherical.rs:117
Method
from_degree
# From the point (degrees) Creates a Cylindrical struct from three given points in space, with the angles in degrees. ``` # use scilib::coordinate::
src/coordinate/cylindrical.rs:117
Method
from_rad
# Radec coordinates from radians Generates the struct from angles given in radians. ## Inputs - `ra`: right ascension, in radians - `dec`: declinati
src/astronomy.rs:83
Function
gaussian
# Gaussian function ## Definition The [gaussian function](https://en.wikipedia.org/wiki/Gaussian_function) is a function defined as: $$ g(x) = a\cdot
src/math/basic.rs:169
Method
gen_legendre
# Generalized Legendre polynomials ## Definition Which can be generalized with a given derivative order $l$, following the formula: $$ P_n^l(x) = (-1
src/math/polynomial.rs:212
Method
get_coefs
# Getting the coefficients of a polynomial Simply returns the HashMap of the power and associated coefficients. ``` # use std::collections::HashMap;
src/math/polynomial.rs:839
Function
get_l
# Azimuthal quantum number $l$ The [azimuthal quantum number](https://en.wikipedia.org/wiki/Azimuthal_quantum_number) is computed based on the value o
src/quantum.rs:53
Function
get_m
# Magnetic quantum number $m$ The [magnetic quantum number](https://en.wikipedia.org/wiki/Magnetic_quantum_number) is computed based on the value of t
src/quantum.rs:70
Method
get_order
# Polynomial orders ## Definition Extracts the maximum order of the polynomial. Used built-in series function. ## Example ``` # use scilib::math::po
src/math/polynomial.rs:915
Method
hermite
# Hermite polynomials ## Definitions The [Hermite polynomials](https://en.wikipedia.org/wiki/Hermite_polynomials) are a sequence of orthogonal polyno
src/math/polynomial.rs:672
Function
hill_radius_exact
# Exact Hill radius ## Definitions Similar to `hill_radius`, but solves the equation of the Hill radius: $$ \frac{m}{r_H^2} - \frac{M}{r^2}\left( 1 -
src/astronomy.rs:656
Function
ifft
# Inverse fast Fourier transform Computes the IFFT for a one-dimensional array, based on the discrete Fourier transform. This function accepts comple
src/signal.rs:194
Function
impact_parameter
# Impact parameter $b$ ## Definition The impact parameter for an exoplanet orbiting a star is defined as: $$ b = \frac{a\cos(i)}{R_\mathrm{star}} \lef
src/astronomy.rs:527
Method
integrate
# Polynomial integration ## Definition Computes the mth integration of the polynomial. Integration coefficients can be passed to the function, if an
src/math/polynomial.rs:759
Function
j_n
# $J_n$ Bessel function (integer order) ## Definition The $J_n$ Bessel represent the first kind of Bessel function, and are solution to Bessel differ
src/math/bessel.rs:258
Function
k
# $K$ modified Bessel function ## Definition The $K$ modified Second Bessel function represent another kind of solution to the Bessel differential eq
src/math/bessel.rs:547
Function
kummer_function
# Kummer function ## Definition [Kummer function](https://en.wikipedia.org/wiki/Confluent_hypergeometric_function), is a generalized hypergeometric s
src/math/basic.rs:345
Function
kurtosis
# Kurtosis of a series ## Definition We follow the mathematical definition of the kurtosis: $$ S = \left[\frac{1}{n} \sum_{i-1}^{n} \left( \frac{x_i
src/math/series.rs:200
Method
laguerre
# Laguerre polynomials ## Definition The [Laguerre polynomials](https://en.wikipedia.org/wiki/Laguerre_polynomials) are the solution to the Laguerre
src/math/polynomial.rs:351
Function
laplace
# Laplace distribution ## Definition The [Laplace distribution](https://en.wikipedia.org/wiki/Laplace_distribution) is a continuous probability distr
src/math/distribution.rs:166
Function
laplace_cumulative
# Cumulative function of the Laplace distribution ## Definition The cumulative function for Laplace is defined by: $$ F_b(\mu, x) = \frac{1}{2} + \fr
src/math/distribution.rs:200
Method
legendre
# Legendre polynomials ## Definition The [Legendre polynomials](https://en.wikipedia.org/wiki/Legendre_polynomials) are used as solution to the Legen
src/math/polynomial.rs:283
Function
levi_civita
# Levi-Civita symbol ## Definition $$ \epsilon_{ijk...l} $$ Computes the result of the $n$ dimensional Levi-Civita symbol. Returns 1 if the indexes a
src/math/basic.rs:761
Function
li
# Polylogarithm ## Definition The [polylogarithm](https://en.wikipedia.org/wiki/Polylogarithm) is defined by the infinite series: $$ Li_s(z) = \sum_{
src/math/basic.rs:431
Function
logarithmic
# Creating a logarithmic range from a number of points Creating a range with the start, stop, and number of points. If the range is invalid, an empty
src/range.rs:90
Function
logistic
# Logistic distribution ## Definition The [Logistic distribution](https://en.wikipedia.org/wiki/Logistic_distribution) is a continuous probability di
src/math/distribution.rs:230
Function
logistic_cumulative
# Cumulative function of the Logistic distribution ## Definition The cumulative function for Logistic is defined by: $$ F_s(\mu, x) = \frac{1}{2} + \
src/math/distribution.rs:263
Function
luminosity
# Luminosity using Stefan-Boltzmann ## Definition Computes the expected luminosity of a star using the Stefan-Boltzmann constant, from: $$ L = 4\pi\s
src/astronomy.rs:437
Method
mul
(self, rhs: T)
src/coordinate/spherical.rs:268
Method
mul
(self, rhs: T)
src/coordinate/cartesian.rs:482
Method
mul
(self, rhs: T)
src/coordinate/cylindrical.rs:278
Method
mul
(self, rhs: T)
src/math/polynomial.rs:1319
Method
mul_assign
(&mut self, rhs: T)
src/coordinate/spherical.rs:298
Method
mul_assign
(&mut self, rhs: T)
src/coordinate/cartesian.rs:505
Method
mul_assign
(&mut self, rhs: T)
src/coordinate/cylindrical.rs:308
Method
mul_assign
(&mut self, rhs: T)
src/math/polynomial.rs:1384
Method
neg
(self)
src/coordinate/spherical.rs:380
Method
neg
(self)
src/coordinate/cartesian.rs:572
Method
neg
(self)
src/coordinate/cylindrical.rs:390
Method
neg
(self)
src/math/polynomial.rs:1482
Method
new
# Creates a new entity Returns the same value as `Self::default()`, all elements are equal to zero. ``` # use scilib::coordinate::spherical::Spheric
src/coordinate/spherical.rs:78
Method
new
# Creates a new entity Returns the same value as `Self::default()`, all elements are equal to zero. ``` # use scilib::coordinate::cylindrical::Cylin
src/coordinate/cylindrical.rs:78
Function
normal
# Normal function ## Definition The [normal](https://en.wikipedia.org/wiki/Normal_distribution) is a continuous probability distribution. It is defin
src/math/distribution.rs:292
Function
normal_cumulative
# Cumulative function of the Normal distribution ## Definition The cumulative function for Normal is defined by: $$ F_\sigma(\mu, x) = \frac{1}{2}\le
src/math/distribution.rs:323
Function
orbital_speed
# Orbital speed of an object ## Definition Computation for the velocity of an object on an elliptical orbit. The definition is: $$ v = \sqrt{GM\left(
src/astronomy.rs:494
Method
origin
# Creates a new entity Returns the same value as `Self::default()`, all elements are equal to zero. ``` # use scilib::coordinate::cartesian::Cartesi
src/coordinate/cartesian.rs:77
Function
pascal_triangle
# Builds Pascal's triangle line ## Definition We can obtain any given line of the [pascal triangle](https://en.wikipedia.org/wiki/Pascal%27s_triangle
src/math/basic.rs:717
Function
peak_freq
# Maximum emission of a black body (frequency) ## Definition This is Wien's displacement law, applied to frequency: $$ \nu_\mathrm{peak} = b'T $$ Wher
src/planck.rs:217
Function
peak_wave
# Maximum emission of a black body (wavelength) ## Definition This is Wien's displacement law, applied to wavelength: $$ \lambda_\mathrm{peak} = \frac
src/planck.rs:193
Function
pearson_r
# Pearson r coefficient ## Definition The  is a correlation co
src/math/series.rs:268
Function
planet_luminosity
# Planetary luminosity ## Definition Computes the luminosity of a planet, based on the received irradiance and the albedo: $$ L_\mathrm{P} = E_\mathr
src/astronomy.rs:408
Function
probability_transit
# Transit probability ## Definitions The probability is computed based on the occulted fraction of the line of longitude. Allowing for grazing eclips
src/astronomy.rs:604
Function
radial_vec
# Radial wave-function for vectors Similar to `radial_wavefunction`, but computes the resulting values for a vector. This has the advantages to speed
src/quantum.rs:145
Function
radial_wavefunction
# Radial wave-function Computes the result of the radial wave-function, as defined by: $$ R_n^l(r) = \sqrt{\left( \frac{2}{na_B} \right)^3 \frac{(n-l-
src/quantum.rs:116
Function
rayleigh
# Rayleigh distribution ## Definition The [Rayleigh distribution](https://en.wikipedia.org/wiki/Rayleigh_distribution) is a continuous probability di
src/math/distribution.rs:41
Function
rayleigh_criterion
# Rayleigh criterion ## Definition The Rayleigh criterion qualifies the minimum separation of two points that can be resolved as two distinct points b
src/astronomy.rs:463
Function
rayleigh_cumulative
# Cumulative function of the Rayleigh distribution ## Definition The cumulative function for Rayleigh is defined by: $$ F_\sigma(x) = 1 - \exp\left(-
src/math/distribution.rs:74
Function
received_energy
# Energy received by an object ## Definition Computes the received energy by an object of a given surface, at a known distance. Makes use of the `irr
src/astronomy.rs:388
Function
riccati_c
# Riccati-Bessel function $C_n$ ## Definition The $C_n$ Riccati-Bessel function is defined as: $$ C_n(z) = -\sqrt{\frac{\pi z}{2}}Y_{n+\frac{1}{2}}(z)
src/math/bessel.rs:1024
Function
riccati_s
# Riccati-Bessel function $S_n$ ## Definition The $S_n$ Riccati-Bessel function is defined as: $$ S_n(z) = \sqrt{\frac{\pi z}{2}}J_{n+\frac{1}{2}}(z)
src/math/bessel.rs:994
Function
riccati_xi
# Riccati-Bessel function $\xi_n$ ## Definition The $\xi_n$ Riccati-Bessel function is defined as: $$ \xi_n(z) = \sqrt{\frac{\pi z}{2}}H_{n+\frac{1}{2
src/math/bessel.rs:1054
Function
riccati_zeta
# Riccati-Bessel function $\zeta_n$ ## Definition The $\zeta_n$ Riccati-Bessel function is defined as: $$ \zeta_n(z) = \sqrt{\frac{\pi z}{2}}H_{n+\fra
src/math/bessel.rs:1084
Function
rising_factorial
# Rising factorial ## Definition The [rising factorial](https://en.wikipedia.org/wiki/Falling_and_rising_factorials) is a polynomial, which can be co
src/math/basic.rs:316
Method
rotate
# Coordinate rotation Computes the resulting coordinates after an arbitrary rotation in 3D. The rotation arguments are the yaw, pitch and roll in rad
src/coordinate/cartesian.rs:194
Function
scale_min_max
# Min-Max scaling of a series ## Definition Min-Max scaling compresses all the data points passed in a series between two arbitrary values a and b. $
src/math/series.rs:315
Method
separation
# Angular separation computation ## Definition We use the Vincenty formula to compute the angular separation, as it should remain stable no matter th
src/astronomy.rs:161
Function
sh1_nu
# First spherical Hankel function: $h^{(1)}$ ## Definition The first spherical hankel function is defined as: $$ h_n^{(1)}(x) = j_n(x) + iy_n(x) $$
src/math/bessel.rs:860
Function
sh2_nu
# Second spherical Hankel function: $h^{(2)}$ ## Definition The second spherical hankel function is defined as: $$ h_n^{(2)}(x) = j_n(x) - iy_n(x) $$
src/math/bessel.rs:924
Function
sh_first_array
# First spherical Hankel function (array): $h^{(1)}$ ## Inputs Compute the first kind of spherical hankel function by recurrence to get an array of f
src/math/bessel.rs:887
Function
sh_second_array
# Second spherical Hankel function (array): $h^{(2)}$ ## Inputs Compute the second kind of spherical hankel function by recurrence to get an array of
src/math/bessel.rs:951
Function
sigmoid
# Sigmoid function ## Definition The [sigmoid function](https://en.wikipedia.org/wiki/Sigmoid_function) is defined as: $$ \sigma(x) = \frac{1}{1 + \e
src/math/basic.rs:196
Function
sinc
# Sinus cardinal ## Definition The value of the [cardinal sinus](https://fr.wikipedia.org/wiki/Sinus_cardinal) is defined as: $$ \mathrm{sinc}(x) = \
src/math/basic.rs:55
Function
skewness
# Skewness of a series ## Definition We follow the mathematical definition of the skewness: $$ S = \frac{1}{n} \sum_{i-1}^{n} \left( \frac{x_i - m}{\
src/math/series.rs:171
Method
specify_distance
# Specifying known distance Appends the distance to the Radec struct. ## Input - `distance`: distance of the object from earth, in meters ($m$) Retu
src/astronomy.rs:137
Function
spherical_harmonics
# Spherical harmonics Provides the solution to the angular $Y_l^m(\theta, \phi)$ wave-function: $$ Y_l^m(\theta, \phi) = (-1)^m \sqrt{\frac{(2l+1)}{4\
src/quantum.rs:185
Function
spherical_harmonics_theta_vec
# Spherical harmonics for multiple angles theta
src/quantum.rs:210
Function
spin_ang_mom
# Spin angular momentum The spin angular momentum $S$ is the quantized energy: $$ S = \hbar \sqrt{s(s+1)} = \frac{\hbar}{2}\sqrt{n(n+2)} $$ Where $\h
src/quantum.rs:93
Method
stirling_number
# Stirling number generator ## Definition The [Stirling numbers](https://en.wikipedia.org/wiki/Stirling_numbers_of_the_first_kind) are defined by the
src/math/polynomial.rs:1060
Method
stirling_number_signed
# Signed Stirling number generator ## Definition The [signed Stirling numbers](https://en.wikipedia.org/wiki/Stirling_numbers_of_the_first_kind) have
src/math/polynomial.rs:1099
Function
student_t
# Student's t value ## Definition Computes the difference of means between two series. The $t$ value is simply defined as: $$ t = \frac{m_a - m_b}{s_
src/math/series.rs:235
Method
sub
(self, rhs: T)
src/coordinate/spherical.rs:247
Method
sub
(self, rhs: T)
src/coordinate/cartesian.rs:399
Method
sub
(self, rhs: T)
src/coordinate/cylindrical.rs:257
Method
sub
(self, rhs: T)
src/math/polynomial.rs:1225
Method
sub_assign
(&mut self, rhs: T)
src/coordinate/cartesian.rs:442
Method
sub_assign
(&mut self, rhs: T)
src/math/polynomial.rs:1279
Function
transit_duration_full
Full transit duration ## Definition The duration of the full transit, from the **end** of the ingress to the **start** of the egress. $$ T_{\mathrm{f
src/astronomy.rs:578
Function
transit_duration_tot
Total transit duration ## Definition The total duration of the transit, from the **start** of the ingress to the **end** of the egress. $$ T_{\mathrm
src/astronomy.rs:552
Function
wavelength
# Wavelength Planck's law ## Definition This computes the following equation: $$ B_\lambda(\lambda,T) = \frac{2hc^2}{\lambda^5} \frac{1}{\exp\left(\fr
src/planck.rs:89
Function
wavelength_vec
# Wavelength Planck's law (spectrum) ## Definition This computes the following equation: $$ B_\lambda(\lambda,T) = \frac{2hc^2}{\lambda^5} \frac{1}{\e
src/planck.rs:118
Function
wavenumber
# Wavenumber Planck's law ## Definition This computes the following equation: $$ B_{\tilde{n}}(\tilde{n},T) = 2hc^2\tilde{n}^3 \frac{1}{\exp\left(\fra
src/planck.rs:141
Function
wavenumber_vec
# Wavenumber Planck's law (spectrum) ## Definition This computes the following equation: $$ B_{\tilde{n}}(\tilde{n},T) = 2hc^2\tilde{n}^3 \frac{1}{\ex
src/planck.rs:163
← previous
101–192 of 192, ranked by callers