Struct dzahui::solvers::fem::basis::single_variable::polynomials_1d::FirstDegreePolynomial
source · Expand description
General Information
A simple, first degree polynomial in one variable.
Fields
coefficient
- constant that multiplies variable.independent_term
- constant that adds to variable.
Fields§
§coefficient: f64
§independent_term: f64
Implementations§
source§impl FirstDegreePolynomial
impl FirstDegreePolynomial
sourcepub fn new(coefficient: f64, independent_term: f64) -> FirstDegreePolynomial
pub fn new(coefficient: f64, independent_term: f64) -> FirstDegreePolynomial
Normal constructor.
sourcepub fn zero() -> FirstDegreePolynomial
pub fn zero() -> FirstDegreePolynomial
Zero function factory.
sourcepub fn constant(independent_term: f64) -> FirstDegreePolynomial
pub fn constant(independent_term: f64) -> FirstDegreePolynomial
Constant function factory.
sourcepub fn transformation_to_0_1(beg: f64, end: f64) -> FirstDegreePolynomial
pub fn transformation_to_0_1(beg: f64, end: f64) -> FirstDegreePolynomial
Transformation from any interval to [0,1].
sourcepub fn transformation_from_m1_p1(beg: f64, end: f64) -> FirstDegreePolynomial
pub fn transformation_from_m1_p1(beg: f64, end: f64) -> FirstDegreePolynomial
Transformation from [-1,1] to any interval.
pub fn phi_1() -> FirstDegreePolynomial
pub fn phi_2() -> FirstDegreePolynomial
Trait Implementations§
source§impl Composable1D<FirstDegreePolynomial, FirstDegreePolynomial> for FirstDegreePolynomial
impl Composable1D<FirstDegreePolynomial, FirstDegreePolynomial> for FirstDegreePolynomial
source§fn compose(
self,
other: FirstDegreePolynomial
) -> Result<FirstDegreePolynomial, Error>
fn compose(
self,
other: FirstDegreePolynomial
) -> Result<FirstDegreePolynomial, Error>
Specific Implementation
Composition of two first degree polynomials results in another polynomial.
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 FirstDegreePolynomial
impl Debug for FirstDegreePolynomial
source§impl Differentiable1D<FirstDegreePolynomial> for FirstDegreePolynomial
impl Differentiable1D<FirstDegreePolynomial> for FirstDegreePolynomial
source§fn differentiate(&self) -> Result<FirstDegreePolynomial, Error>
fn differentiate(&self) -> Result<FirstDegreePolynomial, Error>
Specific Implementation
Differentiation of a first degree polynomial results in a constant.
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.