Skip to content
Snippets Groups Projects
Commit 1e385a21 authored by corentin.cotture's avatar corentin.cotture
Browse files

ajout du v_t

parent 914cf14a
Branches
Tags
No related merge requests found
......@@ -5,10 +5,12 @@ float vc_t(float t) {
return Vo - exp(-t / (R * C));
}
float v_t (float t) {
return t;
}
float circuit_rc(float v, float t)
{
return vc_t(t) + delta_t * (v - vc_t(t)) / (R * C);
float circuit_rc(float t) {
return vc_t(t) + delta_t * (v_t(t) - vc_t(t)) / (R * C);
}
int main() {
......
......@@ -11,6 +11,11 @@
/// @return
float vc_t(float t);
/// @brief
/// @param t
/// @return
float v_t(float t);
/// @brief Dérive de l'équation de la conservation de l'énergie
/// @param v
/// @param t
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment