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
↓ 44 callers
Method
into
(self)
src/coordinate/spherical.rs:191
↓ 17 callers
Method
into
(self)
src/astronomy.rs:218
↓ 17 callers
Method
into
(self)
src/coordinate/cylindrical.rs:192
↓ 16 callers
Function
factorial
# Factorial function ## Definition The [factorial function](https://en.wikipedia.org/wiki/Factorial) is defined as: $$ n! = \prod_{i=1}^{n}i $$ ## I
src/math/basic.rs:290
↓ 12 callers
Method
into
(self)
src/coordinate/cartesian.rs:248
↓ 9 callers
Method
norm
# Computes the vector norm We follow the convention of the l2 norm in this implementation. ``` # use scilib::coordinate::cartesian::Cartesian; let v
src/coordinate/cartesian.rs:138
↓ 9 callers
Method
pow
# Raising polynomial to an integer power ## Definition We compute the new polynomial that corresponds to the power it is raised to. ## Inputs - `n`:
src/math/polynomial.rs:816
↓ 8 callers
Function
binomial
# Binomial theorem ## Definition The [binomial theorem](https://en.wikipedia.org/wiki/Binomial_theorem) is defined as: $$ \binom{n}{k} = \frac{n!}{k!
src/math/basic.rs:225
↓ 7 callers
Function
mean
# Mean value of a series ## Definition We follow the mathematical definition of the mean: $$ m = \frac{1}{n} \sum^{n}_{i = 1} x_i $$ ## Inputs - `va
src/math/series.rs:92
↓ 6 callers
Function
j_nu
# $J_nu$ Bessel function (real order) ## Definition $$ J_\alpha(x) = \sum_{m=0}^{\infty}\frac{(-1)^m}{m!\Gamma(m+\alpha+1)}\left( \frac{x}{2} \right)
src/math/bessel.rs:342
↓ 5 callers
Function
gamma
# Gamma function ## Definition The [gamma function](https://en.wikipedia.org/wiki/Gamma_function) is a generalization of the factorial, and is define
src/math/basic.rs:491
↓ 4 callers
Method
compute
# Computing for a real value ## Definition Since there can be behaviors associated to some polynomials, we may need to call a specific computation fu
src/math/polynomial.rs:855
↓ 4 callers
Function
y
# Y Bessel function, real index ## Definition The $Y$ Bessel represent the second kind of Bessel function, and are solution to Bessel differential eq
src/math/bessel.rs:429
↓ 2 callers
Function
erf
# Error function ## Definition The [error function](https://en.wikipedia.org/wiki/Error_function) is defined as: $$ \mathrm{erf}(z) = \frac{2}{\sqrt{
src/math/basic.rs:571
↓ 2 callers
Function
erf_complex
(x: Complex64)
src/math/basic.rs:634
↓ 2 callers
Function
i_nu
# $I$ modified Bessel function (real order) ## Definition The $I$ modified First Bessel function represent another kind of solution to the Bessel dif
src/math/bessel.rs:476
↓ 2 callers
Function
irradiance
# Object irradiance ## Definition Computes the irradiance at a certain distance from an object, using its luminosity. The `luminosity` is in Watts an
src/astronomy.rs:366
↓ 2 callers
Function
max_slice
# Finds the maximum value in a slice ## Definition Looks for the largest number in the given set. ## Inputs - `val`: the slice with the numbers to c
src/math/series.rs:26
↓ 2 callers
Function
sj_array
# First spherical Bessel function (array): j ## Inputs Computes the first kind of spherical bessel function by recurrence to get an array of function
src/math/bessel.rs:718
↓ 2 callers
Function
sj_downward_recurrence
(z: T, nl: usize, nu: usize)
src/math/bessel.rs:670
↓ 2 callers
Function
sj_nu
# First spherical Bessel function: $j_n$ (real order) ## Definition We follow the definition based on the $J$ Bessel functions: $$ j_n(x) = \sqrt{\fr
src/math/bessel.rs:649
↓ 2 callers
Function
std_dev
# Standard deviation of a series ## Definition We follow the mathematical definition of the standard deviation: $$ \sigma = \sqrt{ \frac{1}{n} \sum^{
src/math/series.rs:144
↓ 2 callers
Function
sy_array
# Second spherical Bessel function (array): y ## Inputs Computes the second kind of spherical bessel function by recurrence to get an array of functi
src/math/bessel.rs:812
↓ 2 callers
Function
sy_nu
# Second spherical Bessel function: $y$ ## Definition We follow the definition based on the $Y$ Bessel functions: $$ y_n(x) = \sqrt{\frac{\pi}{2x}}Y_
src/math/bessel.rs:778
↓ 1 callers
Function
binomial_reduced
# Generalized binomial function ## Definition The [generalized binomial theorem](https://en.wikipedia.org/wiki/Binomial_theorem) is defined as: $$ \b
src/math/basic.rs:266
↓ 1 callers
Method
derive
# Polynomial derivation ## Definition Computes the mth derivative of the polynomial. ## Inputs - `m` the derivative order to compute ## Example ```
src/math/polynomial.rs:720
↓ 1 callers
Method
distance
# Distance between two points ``` # use std::f64::consts::SQRT_2; # use scilib::coordinate::spherical::Spherical; let s1 = Spherical::from_degree(SQR
src/coordinate/spherical.rs:158
↓ 1 callers
Method
distance_square
# Distance squared between two points Computes the square of the distance between two points. As the distance is the L2 norm, it requires taking the
src/coordinate/cartesian.rs:155
↓ 1 callers
Function
falling_factorial
# Falling factorial ## Definition The [falling factorial](https://en.wikipedia.org/wiki/Falling_and_rising_factorials) is a polynomial, which can be
src/math/basic.rs:401
↓ 1 callers
Function
h1_nu
# First Hankel function: $H^{(1)}$ ## Definition Computes the first kind of Hankel function, which is defined as: $$ H_\alpha^{(1)}(x) = J_\alpha(x)
src/math/bessel.rs:585
↓ 1 callers
Function
h2_nu
# Second Hankel function: $H^{(2)}$ ## Definition Computes the first kind of Hankel function, which is defined as: $$ H_\alpha^{(2)}(x) = J_\alpha(x)
src/math/bessel.rs:617
↓ 1 callers
Function
hill_equation
# The actual Hill radius equation
src/astronomy.rs:685
↓ 1 callers
Function
hill_radius
# Hill radius ## Definition The  gives an estimate of the sphere of influence of an object gi
src/astronomy.rs:636
↓ 1 callers
Function
linear
# Creating a range from a number of points Creating a range with the start, stop, and number of points. If the range is invalid, an empty Vec is retu
src/range.rs:57
↓ 1 callers
Function
min_slice
# Finds the minimum value in a slice ## Definition Looks for the smallest number in the given set. ## Inputs - `val`: the slice with the numbers to
src/math/series.rs:57
↓ 1 callers
Function
sech
# Hyperbolic secant ## Definition The hyperbolic secant is defined as: $$ \mathrm{sech}(x) = \frac{1}{\cosh(x)} $$ ## Inputs - `x`: the value at whi
src/math/basic.rs:117
↓ 1 callers
Function
sj_upward_recurrence
(z: T, n: usize)
src/math/bessel.rs:653
↓ 1 callers
Function
variance
# Variance of a series ## Definition The definition of the variance is: $$ V = \frac{1}{n - 1} \sum^{n}_{i = 1} (x_i - m)^2 $$ Where $m$ is the mean
src/math/series.rs:117
Function
absolute_mag
# Absolute magnitude ## Definition Same approach that the apparent magnitude, but set at a distance of 10pc. $$ M = -2.5\log\left( \frac{L}{L_\circ}
src/astronomy.rs:280
Method
add
(self, rhs: T)
src/coordinate/spherical.rs:235
Method
add
(self, rhs: T)
src/coordinate/cartesian.rs:315
Method
add
(self, rhs: T)
src/coordinate/cylindrical.rs:245
Method
add
(self, rhs: T)
src/math/polynomial.rs:1131
Method
add_assign
(&mut self, rhs: T)
src/coordinate/cartesian.rs:359
Method
add_assign
(&mut self, rhs: T)
src/math/polynomial.rs:1185
Function
apparent_mag
# Apparent magnitude ## Definition Uses the standard reference luminosity to compute the apparent magnitude of an object. $$ m = -2.5\log\left( \frac
src/astronomy.rs:254
Method
bernoulli
# Bernoulli polynomials ## Definition The [Bernoulli polynomial](https://en.wikipedia.org/wiki/Bernoulli_polynomials) are present in a great variety
src/math/polynomial.rs:416
Method
bernoulli_number
# Bernoulli number generator ## Definition Following the $B_m^{-}$ convention, we use the formula: $$ B_m^{-} = \sum_{k=0}^{m}\sum_{v=0}^{k}(-1)^v \bi
src/math/polynomial.rs:949
Method
bessel
# Bessel Polynomials ## Definition The [Bessel polynomials](https://en.wikipedia.org/wiki/Bessel_polynomials) are an orthogonal sequence of polynomia
src/math/polynomial.rs:616
Function
beta
# Euler Beta function ## Definition The [beta function](https://en.wikipedia.org/wiki/Beta_function) is an integral similar to the gamma function, an
src/math/basic.rs:542
Function
by_increment
# Creating a range by increment Creating a range with the start, stop, and increment. If the range is invalid, an empty Vec is returned. The points o
src/range.rs:19
Function
cauchy
# Cauchy distribution ## Definition The [Cauchy distribution](https://en.wikipedia.org/wiki/Cauchy_distribution) is a continuous probability distribu
src/math/distribution.rs:104
Function
cauchy_cumulative
# Cumulative function of the Cauchy distribution ## Definition The cumulative function for Cauchy is defined by: $$ F_\gamma(x_0, x) = \frac{1}{\pi}\
src/math/distribution.rs:137
Method
compute_base
# Compute the polynomial for a real number
src/math/polynomial.rs:860
Method
compute_base_complex
# Compute the polynomial for a complex number
src/math/polynomial.rs:890
Method
compute_complex
# Computing for a complex value ## Definition Since there can be behaviors associated to some polynomials, we may need to call a specific computation
src/math/polynomial.rs:885
Method
compute_legendre
# Computation for Legendre
src/math/polynomial.rs:867
Method
compute_legendre_complex
# Computation for Legendre
src/math/polynomial.rs:897
Function
convolve
# Convolution Computes the convolution of two vectors, including the edges. ``` # use scilib::signal::convolve; // Creating two vectors to convolve
src/signal.rs:29
Function
convolve_full
# Exact convolution Computes the convolution of two vectors, only for points where both vectors are completely covered. ``` # use scilib::signal::co
src/signal.rs:92
Function
coth
# Hyperbolic cotangent ## Definition The hyperbolic cotangent is defined as: $$ \coth(x) = \frac{\cosh(x)}{\sinh(x)} = \frac{\exp(2x) + 1}{\exp(2x) -
src/math/basic.rs:89
Function
csch
# Hyperbolic cosecant ## Definition The hyperbolic cosecant is defined as: $$ \mathrm{csch}(x) = \frac{1}{\sinh(x)} $$ ## Inputs - `x`: the value at
src/math/basic.rs:142
Method
default
()
src/math/polynomial.rs:117
Method
distance
# Distance between two points Computes the distance between two points in space. ``` # use scilib::coordinate::cartesian::Cartesian; let f = Cartesi
src/coordinate/cartesian.rs:169
Method
distance
# Distance between two points ``` # use std::f64::consts::SQRT_2; # use scilib::coordinate::cylindrical::Cylindrical; let s1 = Cylindrical::from_degr
src/coordinate/cylindrical.rs:159
Function
distance_mod
# Distance modulus ## Definition Computes the distance of an object based on its apparent and absolute magnitudes: $$ d = 10^{1 + \frac{m-M}{5}} $$ W
src/astronomy.rs:309
Method
distance_with
# Distance in space between two objects ## Definition Computes the actual distance in space between two objects, using the spherical coordinates ##
src/astronomy.rs:207
Method
div
(self, rhs: T)
src/coordinate/spherical.rs:324
Method
div
(self, rhs: T)
src/coordinate/cartesian.rs:527
Method
div
(self, rhs: T)
src/coordinate/cylindrical.rs:334
Method
div
(self, rhs: T)
src/math/polynomial.rs:1437
Method
div_assign
(&mut self, rhs: T)
src/coordinate/spherical.rs:354
Method
div_assign
(&mut self, rhs: T)
src/coordinate/cartesian.rs:550
Method
div_assign
(&mut self, rhs: T)
src/coordinate/cylindrical.rs:364
Method
div_assign
(&mut self, rhs: T)
src/math/polynomial.rs:1463
Method
eq
(&self, other: &Self)
src/math/polynomial.rs:1111
Function
equilibrium_temperature
# Equilibrium temperature ## Definition Knowing the stellar effective temperature, its radius, the distance from the star and the albedo of the consi
src/astronomy.rs:332
Function
erfc
# Complementary error function ## Definition The [complementary error function](https://en.wikipedia.org/wiki/Error_function) is defined as: $$ \math
src/math/basic.rs:630
Function
erfc_complex
(val: Complex64)
src/math/basic.rs:665
Function
erfi
# Imaginary error function ## Definition The [imaginary error function](https://en.wikipedia.org/wiki/Error_function) is defined as: $$ \mathrm{erfi}
src/math/basic.rs:690
Method
euler
# Euler polynomials ## Definition The [Euler polynomial](https://en.wikipedia.org/wiki/Bernoulli_polynomials) are present in a great variety of parti
src/math/polynomial.rs:475
Method
euler_number
# Euler number generator ## Definition We use the formula: $$ E_k = \sum_{i=1}^{k}(-1)^{i}\frac{1}{2^i}\sum_{l=0}^{2i}(-1)^l\binom{2i}{l}(i-l)^{k} $$
src/math/polynomial.rs:1002
Method
factorial_falling
# Falling factorial polynomials ## Definition The [falling factorial](https://en.wikipedia.org/wiki/Falling_and_rising_factorials) is defined as: $$
src/math/polynomial.rs:564
Method
factorial_rising
# Rising factorial polynomials ## Definition The [rising factorial](https://en.wikipedia.org/wiki/Falling_and_rising_factorials) is defined as: $$ x^
src/math/polynomial.rs:525
Function
fft
# Fast Fourier transform Computes the FFT for a one-dimensional array, based on the discrete Fourier transform. This function accepts complex input.
src/signal.rs:142
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/astronomy.rs:50
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/coordinate/spherical.rs:58
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/coordinate/cartesian.rs:55
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/coordinate/cylindrical.rs:58
Method
fmt
(&self, f: &mut std::fmt::Formatter)
src/math/polynomial.rs:93
Function
frequency
# Frequency Planck's law ## Definition This computes the following equation: $$ B_\nu(\nu,T) = \frac{2h\nu^3}{c^2} \frac{1}{\exp\left(\frac{h\nu}{k_BT
src/planck.rs:31
Function
frequency_vec
# Frequency Planck's law (spectrum) ## Definition This computes the following equation: $$ B_\nu(\nu,T) = \frac{2h\nu^3}{c^2} \frac{1}{\exp\left(\frac
src/planck.rs:61
Method
from
# From the point Creates a Spherical struct from three given points in space. ``` # use scilib::coordinate::spherical::Spherical; let m = Spherical
src/coordinate/spherical.rs:97
Method
from
# From each point Creates a Cartesian struct from three given points in space. ``` # use scilib::coordinate::cartesian::Cartesian; let m = Cartesian
src/coordinate/cartesian.rs:96
Method
from
# From the point Creates a Cylindrical struct from three given points in space. ``` # use scilib::coordinate::cylindrical::Cylindrical; let m = Cyli
src/coordinate/cylindrical.rs:97
Method
from
# Creates a new polynomial ## Definition We create a polynomial with integer order powers, and real coefficients, such that: $$ p = c_0 + c_1x + c_2x
src/math/polynomial.rs:154
Method
from_coord
# From another coordinate system Creates an Spherical struct from another coordinate system. Calls the `Into<Spherical>` method, which is verified in
src/coordinate/spherical.rs:143
Method
from_coord
# From another coordinate system Creates an Cartesian struct from another coordinate system. Calls the `Into<Cartesian>` method, which is verified in
src/coordinate/cartesian.rs:122
Method
from_coord
# From another coordinate system Creates an Cylindrical struct from another coordinate system. Calls the `Into<Cylindrical>` method, which is verifie
src/coordinate/cylindrical.rs:144
Method
from_degree
# Radec coordinates from angles in degrees Generates the struct from angles given in degrees. ## Inputs - `ra`: right ascension, in degrees - `dec`:
src/astronomy.rs:110
next →
1–100 of 192, ranked by callers