関数imsequence_plus_im マニュアル

(The documentation of function imsequence_plus_im)

Last Update: 2023/6/28


◆機能・用途(Purpose)

フーリエスペクトルに定数を加算する(構造体\(+\)定数)。
Add a constant value to a Fourier spectrum (i.e., structure \(+\) constant).


◆形式(Format)

#include <sequence/operation.h>
inline struct imsequence imsequence_plus_im
(struct imsequence a,const struct im b)


◆引数(Arguments)

a 和の計算に用いるフーリエスペクトル。
The Fourier spectrum used for the computation of the summation.
b 加える定数。
The constant to be added.


◆戻り値(Return value)

\(a+b\)を表す構造体。戻り値のメンバの値は以下のようになる。
A structure that represents \(a+b\). The values of members of the return value are as below.

戻り値のメンバ
Member of the return value

Value
size a.size
t0 a.t0
dt a.dt
各iに対するvalue[i]
value[i] for each \(i\)
a.value[i]+b


◆使用例(Example)

struct imsequence a;
struct im b={1.2,3.4};
struct imsequence c=imsequence_plus_im(a,b);