定義:正弦関数[sine function]
定義:正弦関数[sine function]
using Plots #x軸の目盛に π を使うための設定. xticks_values = [-3π/2,-π,-π/2,0,π/2,π,3π/2,2π] xticks_labels = ["-3π/2","-π","-π/2","0","π/2","π","3π/2","2π"] #y軸は-1~1までだが,少し上下に隙間をあけるために-1.2~1.2と設定. #グラフの線の太さは lw で指定. plot(sin,labels=nothing,xticks = (xticks_values,xticks_labels), xlim = (-3π/2,2π),ylim = (-1.2,1.2),lw=4) #グラフに水平線を入れる hline!([0]; label="", color=:black)
Mathematics is the language with which God has written the universe.