sequential_integration/engine/
helper_equation_traits.rs1use super::{Bounds, CalculationResult, CalculationStep};
2use crate::errors::Result;
3
4pub trait EquationOfOneVariable {
5 fn calculate(&self, value: CalculationStep, bounds: Bounds) -> Result<CalculationResult>;
6}
7
8pub trait EquationOfTwoVariable {
9 fn calculate(
10 &self,
11 value1: CalculationStep,
12 bounds1: Bounds,
13 value2: CalculationStep,
14 bounds2: Bounds,
15 ) -> Result<CalculationResult>;
16}
17
18pub trait EquationOfThreeVariable {
19 fn calculate(
20 &self,
21 value1: CalculationStep,
22 bounds2: Bounds,
23 value2: CalculationStep,
24 bounds2: Bounds,
25 value3: CalculationStep,
26 bounds3: Bounds,
27 ) -> Result<CalculationResult>;
28}