added freq() to Phasor

This commit is contained in:
Ahmet Inan 2020-03-15 16:19:36 +01:00
commit 20515208f3

View file

@ -30,6 +30,10 @@ public:
{
delta = complex_type(cos(v), sin(v));
}
void freq(value_type v)
{
omega(Const<value_type>::TwoPi() * v);
}
complex_type operator()()
{
complex_type tmp = prev;