Computation of Mathieu Functions with MathieuFunctions.jl
The Julia ecosystem has a package for computing Mathieu functions using the package implemented as MathieuFunctions.jl.
We will also learn how to record data in a DataFame and to save it to a CSV file (you could also use JSON or moder formats) to plot or analyse it using your program of choice (eg. R)
usingMathieuFunctionsusingDataFrames,CSVdf=DataFrame()for q0 in0:0.1:400for j=1:20 dfaux=DataFrame(q=q0, A=charA(q0,k=j:j)[1], B=charB(q0,k=j:j)[1], kappa=j)append!(df,dfaux)endend#=and we now simply save it to a CSV file=#CSV.write("./mathieu.csv", df)
Rows: 80020 Columns: 4
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
dbl (4): q, A, B, kappa
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.