MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ free_bar_series()

MAYAFLUX_API std::vector< double > MayaFlux::Kinesis::Discrete::free_bar_series ( size_t  count,
double  base = 1.0 
)

Ratios of the transverse modes of a uniform free-free beam.

Parameters
countNumber of terms
baseValue of the first term

The squares of the roots of cos(x) cosh(x) = 1, scaled so the first is one: 1, 2.756, 5.404, 8.933, 13.344, and so on, found to machine precision rather than from a table.

Definition at line 42 of file Series.cpp.

43{
44 std::vector<double> terms(count);
45 if (count == 0)
46 return terms;
47
48 const double first = free_bar_root(1);
49 for (size_t i = 0; i < count; ++i) {
50 const double ratio = free_bar_root(i + 1) / first;
51 terms[i] = base * ratio * ratio;
52 }
53 return terms;
54}
size_t count

References count.