logo

-

-

줄리아 커맨드라인으로 특정 버전 실행시키는 법

줄리아 특정 버전 실행

커맨드라인에서

julia +1.12

vscode에서


줄리아에서 설치된 패키지 목록 가져오는 법

installed_packages = keys(Pkg.dependencies())

줄리아 패키지 설치 속도 확인하는 법

https://discourse.julialang.org/t/any-way-to-speed-up-loading-large-precompiled-packages/98762/11

@time_import


줄리아 막대그래프에서 테두리 없애는 법 lw = 0


줄리아 라벨에 다른 번호 쓰는 법

plt = scatter(expanded.u, color = expanded.label, xticks = (lasticds, 1:29), msw = 0, ms = 1, dpi = 300, legend = :none, size = 50 .* [16, 9]);


줄리아 문자열 tryparse


줄리아 레이텍 문자열에서의 보간법

https://github.com/JuliaStrings/LaTeXStrings.jl

https://discourse.julialang.org/t/plots-string-interpolation-in-labels/10799/4

x=3
L"y = %$x"
plot(rand(10), xlabel = L"y = %$x")

줄리아 문자열을 직업 CSV로 읽는 법

using CSV
using DataFrames

# CSV 형식의 문자열 준비
csv_string = """
Name,Age,City
Alice,30,Seoul
Bob,25,Busan
Charlie,35,Daegu
"""

# 문자열을 IOBuffer로 감싸기
io = IOBuffer(csv_string)

# 문자열을 데이터프레임으로 읽기
df = CSV.read(io, DataFrame)

줄리아에서 데이터 읽어들일 때 깨지는 인코딩 문제 해결

https://github.com/JuliaStrings/StringEncodings.jl


줄리아 GR 백엔드 폰트 목록

https://gr-framework.org/fonts.html


줄리아 데이터프레임에서 특정 행만 다루는 트릭

data_ecnm = combine(groupby(data, :ISO3), row -> last(row))

아닌데 이거 그냥 익명함수라서 그렇게 된 것 같은데


다항함수 인터폴레이션의 실제 구현(수치해석)

using Plots, Polynomials

function interpolate(xs, ys)
    V = [x^(i-1) for x in xs, i in 1:length(xs)]
    coeffs = V \ ys
    return Polynomial(coeffs)
end
foo = sort(rand(5))
bar = randn(5)
p = interpolate(foo, bar)
plot(0:0.01:1, p.(0:0.01:1))
scatter!(foo, bar)

텍 여러가지 화살표

\gets \to \implies \iff \impliedby \mapsto \longimplies


텍 소수점 정렬

\documentclass{article} \usepackage{array, siunitx}

\begin{document}

\begin{table}[h] \centering \begin{tabular}{S[table-format=3.2]} \hline {값} \ \hline 12.3 \ 4.56 \ 123.4 \ 78.91 \ \hline \end{tabular} \caption{소수점을 기준으로 정렬된 테이블} \end{table}

\end{document}


텍 등호 정렬


텍 서수 표현

1\textsuperscript{st}, 2\textsuperscript{nd}