ADDED: models and controllers for page "signal reducing"\n TODO: done table for page "signal reducing"
This commit is contained in:
15
src/controller/model_utils/signal_reducer.rs
Normal file
15
src/controller/model_utils/signal_reducer.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
pub fn reactive_resistance_of_capacitor(Cm: f64, L: f64, f: f64) -> f64 {
|
||||
1f64 / (2f64 * 3.14f64 * f * Cm * L)
|
||||
}
|
||||
|
||||
pub fn full_resistance_of_capacitor(Xc: f64, Rs: f64, Rm: f64, L: f64) -> f64 {
|
||||
(Xc.powf(2f64) + (Rs + Rm * L).powf(2f64)).sqrt()
|
||||
}
|
||||
|
||||
pub fn voltage_from_signal_source(Vs: f64, Xc: f64, Z: f64) -> f64 {
|
||||
(Vs * Xc) / Z
|
||||
}
|
||||
|
||||
pub fn coef_of_signal_reduce(Vs: f64, V: f64) -> f64 {
|
||||
Vs / V
|
||||
}
|
||||
Reference in New Issue
Block a user