pub struct FirstDegreePolynomial {
    pub(crate) coefficient: f64,
    pub(crate) independent_term: f64,
}
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§

Normal constructor.

Zero function factory.

Constant function factory.

Transformation from any interval to [0,1].

Transformation from [-1,1] to any interval.

Trait Implementations§

Specific Implementation

Composition of two first degree polynomials results in another polynomial.

Specific implementation

Composing a second degree polynomial with a first degree polynomial gives another second degree polynomial.

Formats the value using the given formatter. Read more
Specific Implementation

Differentiation of a first degree polynomial results in a constant.

Specific Implementation

Differentiation of a second degree polynomial results on a first degree polynomial.

Specific Implementation

Simple evaluation of a polynomial.

This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.