AME
ame_Circuit.hpp
Go to the documentation of this file.
1
10#pragma once
11
12#include <concepts>
13
14namespace ame
15{
23template <std::floating_point FloatType>
24inline FloatType diode (FloatType x)
25{
26 return static_cast<FloatType> (0.2) * (std::exp (x * static_cast<FloatType> (0.05 / 0.0259)) - static_cast<FloatType> (1.0));
27}
28} // namespace ame
FloatType diode(FloatType x)
diode modeling.
Definition: ame_Circuit.hpp:24