メインコンテンツまでスキップ

使用できる関数一覧

グラフ計算機​

三角関数​

関数入力例意味
sin\mathrm{sin}sin(x)サイン
cos\mathrm{cos}cos(x)コサイン
tan\mathrm{tan}tan(x)タンジェント
csc\mathrm{csc}csc(x)コセカント (1/sin⁡x)(1/\sin x)
sec\mathrm{sec}sec(x)セカント (1/cos⁡x)(1/\cos x)
cot\mathrm{cot}cot(x)コタンジェント (1/tan⁡x)(1/\tan x)

逆三角関数​

関数入力例意味
arcsin\mathrm{arcsin}arcsin(x)アークサイン
arccos\mathrm{arccos}arccos(x)アークコサイン
arctan\mathrm{arctan}arctan(x)アークタンジェント
arccsc⁡\mathrm{\operatorname{arccsc}}arccsc(x)アークコセカント
arcsec⁡\mathrm{\operatorname{arcsec}}arcsec(x)アークセカント
arccot⁡\mathrm{\operatorname{arccot}}arccot(x)アークコタンジェント

統計​

関数入力例意味
mean\mathrm{mean}mean([1,3,4])平均値
median\mathrm{median}median([1,3,4])中央値
min/max\mathrm{min}/\mathrm{max}min([1,3,4])最小値/最大値
quartile\mathrm{quartile}quartile([1,3,4],2)四分位数
quantile\mathrm{quantile}quantile([1,3,4],0.2)分位数
stdev/stdevp\mathrm{stdev}/\mathrm{stdevp}stdev([1,3,4])標本/母標準偏差
var/varp\mathrm{var}/\mathrm{varp}var([1,3,4])標本/母分散
mad\mathrm{mad}mad([1,3,4])平均絶対偏差
cov/covp\mathrm{cov}/\mathrm{covp}cov([2,4,5],[1,3,2])標本/母共分散
corr\mathrm{corr}corr([2,4,5],[1,3,2])ピアソンの積率相関係数
spearman\mathrm{spearman}spearman([2,4,5],[1,3,2])スピアマンの順位相関係数
stats\mathrm{stats}stats([1,3,3,4,5])五数要約
count\mathrm{count}count([1,3,3,4,5])要素数
total\mathrm{total}total([1,3,4])合計値

リスト操作​

関数入力例意味
join\mathrm{join}join([1,2],[3,4])リストを結合
sort\mathrm{sort}sort([1,5,4])リストを並べ替える
shuffle\mathrm{shuffle}shuffle([1,5,4])リストをシャッフル
unique\mathrm{unique}unique([1,5,5,6])重複を取り除く
for\mathrm{for}(a,0) for 1<a<3パラメータ表示やリスト処理

可視化​

関数入力例意味
histogram\mathrm{histogram}histogram([1,5,5,10])ヒストグラム。第2引数に幅を指定可能
dotplot\mathrm{dotplot}dotplot([1,5,5,10])ドットプロット。第2引数に幅を指定可能
boxplot\mathrm{boxplot}boxplot([1,5,5,10])箱ひげ図

確率分布​

関数入力例意味
normaldist\mathrm{normaldist}normaldist(0,1)平均値と標準偏差による正規分布
tdist\mathrm{tdist}tdist(10)自由度によるt分布
chisqdist\mathrm{chisqdist}chisqdist(5)自由度によるカイ二乗分布
poissondist\mathrm{poissondist}poissondist(5.5)平均値によるポアソン分布
binomialdist\mathrm{binomialdist}binomialdist(10,0.3)試行回数と成功確率による二項分布
uniformdist\mathrm{uniformdist}uniformdist(0,1)区間による一様分布
pdf\mathrm{pdf}pdf(D,x)確率密度関数
cdf\mathrm{cdf}cdf(D,x)累積分布関数
inversecdf\mathrm{inversecdf}inversecdf(D,x)分位関数(逆累積分布関数)
random\mathrm{random}random()00 以上 11 未満の乱数。リストではランダムな要素

統計検定​

関数入力例意味
ttest\mathrm{ttest}ttest([20,31,51],40)標本と値へのt検定
tscore\mathrm{tscore}tscore([20,31,51],40)標本と値に対するt値
ittest\mathrm{ittest}ittest([10,13],[21,23])2標本へのt検定

微分積分​

関数・記号入力例意味
exp\mathrm{exp}exp(x)底が ee の指数関数
ln\mathrm{ln}ln(x)自然対数
log\mathrm{log}log(x)常用対数
log⁡a\mathrm{\log}_alog_a(x)任意の底の対数
ddx\frac{d}{dx}d/dxxx で微分
f′(x)f'(x)f'(x)関数を微分
∫\mathrm{\int}int積分
∑\mathrm{\sum}sum数列の総和
∏\mathrm{\prod}prod数列の総積

双曲線関数​

関数入力例意味
sinh\mathrm{sinh}sinh(x)ハイパボリックサイン
cosh\mathrm{cosh}cosh(x)ハイパボリックコサイン
tanh\mathrm{tanh}tanh(x)ハイパボリックタンジェント
csch\mathrm{csch}csch(x)ハイパボリックコセカント
sech\mathrm{sech}sech(x)ハイパボリックセカント
coth\mathrm{coth}coth(x)ハイパボリックコタンジェント

色とサウンド​

関数入力例意味
rgb\mathrm{rgb}c=rgb(255,165,0)赤・緑・青を各 00〜255255 で指定して色を作る
hsv\mathrm{hsv}c=hsv(25,0.8,1)色相・彩度・明度を指定して色を作る
tone\mathrm{tone}tone(440)指定周波数の音を再生。第2引数にゲインを指定可能

数論・丸め​

関数入力例意味
lcm\mathrm{lcm}lcm(2,3,4)最小公倍数
gcd\mathrm{gcd}gcd(6,12,18)最大公約数
mod\mathrm{mod}mod(17,5)余り
ceil\mathrm{ceil}ceil(13.5)下回らない最小の整数
floor\mathrm{floor}floor(13.5)上回らない最大の整数
round\mathrm{round}round(1.32,2)指定した位で四捨五入
sign\mathrm{sign}sign(-20)符号
nthroot\mathrm{nthroot}nthroot(x,n)nn 乗根
nPr\mathrm{nPr}nPr(6,2)順列
nCr\mathrm{nCr}nCr(6,2)二項係数

アクションとローカル変数​

記号・構文入力例意味
→\mathrm{\to}a->a+1変数を更新するアクション
with\mathrm{with}y=x+a with a=2式の中だけで変数を置換

複素数​

関数入力例意味
real\mathrm{real}real(2+4i)実部
imag\mathrm{imag}imag(2+4i)虚部
conj\mathrm{conj}conj(2+4i)複素共役
arg\mathrm{arg}arg(2+4i)偏角
∣z∣\lvert z\rvert|2+4i|絶対値

幾何学​

関数・記号入力例意味
midpoint\mathrm{midpoint}midpoint((1,0),(2,1))2点の中点
distance\mathrm{distance}distance((1,0),(2,1))2点間の距離
polygon\mathrm{polygon}polygon((0,0),(1,0),(0,1))多角形
⋅\mathrm{\cdot}(1,0)*(0,1)内積
×\mathrm{\times}(1,0,0)cross(0,1,0)外積(3次元)
∣v∣\lvert v\rvert|(1,2)|ベクトルの大きさ

極座標・定数・表示領域​

記号・値入力例意味
θ\thetatheta偏角
rrr原点からの距離
π\pipi円周率
τ\tautau円周率の2倍
eeeネイピア数
∼\mathrm{\sim}~回帰モデル
∞\mathrm{\infty}infinity無限大
width\mathrm{width}width表示領域の横幅
height\mathrm{height}height表示領域の縦幅

3D計算機​

2Dの関数に加えて、以下の関数や座標を利用できます。

球座標・円筒座標​

記号入力例意味
ρ\rhorho球座標で原点からの距離
θ\thetatheta方位角
ϕ\phiphi天頂角
rrr円筒座標で zz 軸からの距離

3D幾何学​

関数・プロパティ入力例意味
segment\mathrm{segment}segment((0,0,0),(2,2,2))線分
triangle\mathrm{triangle}triangle((0,0,0),(2,2,2),(1,3,2))三角形
sphere\mathrm{sphere}sphere((0,0,0),1)中心と半径を指定した球
vector\mathrm{vector}vector((0,0,0),(1,1,1))始点と終点を指定したベクトル
length\mathrm{length}length(v_1)ベクトルまたは線分の長さ
.start\mathrm{.start}v_1.startベクトルの始点
.end\mathrm{.end}v_1.endベクトルの終点

参考​

Supported Functions — Desmos Help Center