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

ajout du v_t

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