Struct dzahui::solvers::fem::basis::single_variable::polynomials_1d::SecondDegreePolynomial
source · pub struct SecondDegreePolynomial {
quadratic_coefficient: f64,
linear_coefficient: f64,
independent_term: f64,
}
Expand description
General Information
A simple, second degree polynomial in one variable
Fields
quadratic_coefficient
- constant that multiplies quadratic term.linear_coefficient
- constant that multiplies linear term.independent_term
- constant that is added to varaible.
Fields§
§quadratic_coefficient: f64
§linear_coefficient: f64
§independent_term: f64
Implementations§
source§impl SecondDegreePolynomial
impl SecondDegreePolynomial
sourcepub fn new(
quadratic_coefficient: f64,
linear_coefficient: f64,
independent_term: f64
) -> SecondDegreePolynomial
pub fn new(
quadratic_coefficient: f64,
linear_coefficient: f64,
independent_term: f64
) -> SecondDegreePolynomial
Simple constructor for second degree polynomial.
pub fn psi_1() -> SecondDegreePolynomial
pub fn psi_2() -> SecondDegreePolynomial
pub fn psi_3() -> SecondDegreePolynomial
Trait Implementations§
source§impl Composable1D<FirstDegreePolynomial, SecondDegreePolynomial> for SecondDegreePolynomial
impl Composable1D<FirstDegreePolynomial, SecondDegreePolynomial> for SecondDegreePolynomial
source§fn compose(
self,
other: FirstDegreePolynomial
) -> Result<SecondDegreePolynomial, Error>
fn compose(
self,
other: FirstDegreePolynomial
) -> Result<SecondDegreePolynomial, Error>
Specific implementation
Composing a second degree polynomial with a first degree polynomial gives another second degree polynomial.
source§impl Debug for SecondDegreePolynomial
impl Debug for SecondDegreePolynomial
source§impl Differentiable1D<FirstDegreePolynomial> for SecondDegreePolynomial
impl Differentiable1D<FirstDegreePolynomial> for SecondDegreePolynomial
source§fn differentiate(&self) -> Result<FirstDegreePolynomial, Error>
fn differentiate(&self) -> Result<FirstDegreePolynomial, Error>
Specific Implementation
Differentiation of a second degree polynomial results on a first degree polynomial.