Skip to content

Implement Polynomial Traits for Polynomial struct #65

@dawnandrew100

Description

@dawnandrew100

The Polynomial struct needs to have polynomial traits implemented. This will allow it to be used in functions that have the generic <P> parameter like bisection for example:

pub fn bisection<P>(
    polynomial: &P,
    bounds: Bounds,
    error_tol: f64,
    itermax: usize,
    mode: SolveMode,
) -> Result<f64, SolverError>
where
    P: PolynomialTraits,

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions