Desmosの使い方 使用可能な関数の一覧
作成日:2025/3/25
最終更新:2025/3/27

グラフ計算機

三角関数

関数入力例意味
sin\sinsin(x)サイン
cos\coscos(x)コサイン
tan\tantan(x)タンジェント
csc\csccsc(x)コセカント (=1/sinx)(=1/\sin x)
sec\secsec(x)セカント (=1/cosx)(=1/\cos x)
cot\cotcot(x)コタンジェント (=1/tanx)(=1/\tan x)

逆三角関数

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

統計学

関数入力例意味
mean\mathrm{mean}mean([1,3,4])平均値
median\mathrm{median}median([1,3,4])中央値
min\mathrm{min}min([1,3,4])最小値
max\mathrm{max}max([1,3,4])最大値
quartile\mathrm{quartile}quartile([1,3,4],2)四分位数
quantile\mathrm{quantile}quantile([1,3,4],0.2)分位数
stdev\mathrm{stdev}stdev([1,3,4])標本標準偏差
stdevp\mathrm{stdevp}stdevp([1,3,4])母標準偏差
var\mathrm{var}var([1,3,4])標本分散
varp\mathrm{varp}varp([1,3,4])母分散
mad\mathrm{mad}mad([1,3,4])平均絶対偏差
cov\mathrm{cov}cov([2,4,5],[1,3,2])標本共分散
covp\mathrm{covp}covp([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)for1<a<3パラメータ表示など

可視化

関数入力例意味
histogram\mathrm{histogram}histogram([1,5,5,10])ヒストグラム
第二引数に幅を指定可能
dotplot\mathrm{dotplot}dotplot([1,5,5,10])ドットプロット
第二引数に幅を指定可能
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(C,x)ある正規分布の分位関数(逆累積分布関数)
random\mathrm{random}random()0以上1未満の乱数
リストに対してはランダムな要素を返す

統計検定

関数入力例意味
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)常用対数
loga\mathrm{log_a}log_a(x)任意の底の対数
ddx\dfrac d{dx}d/dxxx で微分
f(x)f'(x)f'(x)微分
\displaystyle\intint積分
\displaystyle\sumsum数列の総和
\displaystyle\prodprod数列の総積

双曲線関数

関数入力例意味
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)赤緑青の量を指定して色を作成
それぞれ0から255まで
hsv\mathrm{hsv}c=hsv(25,0.8,1)色相, 彩度, 明度を指定して色を作成
それぞれ0~360, 0~1, 0~1の範囲

サウンド

関数入力例意味
tone\mathrm{tone}tone(440)ある周波数の音を再生
第二引数にゲインを指定可能

数論

関数入力例意味
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}nthrootn乗根
nPk{}_n \mathrm{P}_knPr(6,2)順列
nCk{}_n \mathrm{C}_knCr(6,2)二項係数

発展

関数入力例意味
\mathrm{\to}a->a+1変数の更新
with\mathrm{with}y=x+awitha=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)偏角
\mathrm{||}|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次元)
\mathrm{||}|(1,2)|大きさ

極座標

関数入力例意味
θ\thetatheta偏角
rrr原点との距離

定数など

関数入力例意味
π\pipi円周率
τ\tautau円周率の倍
eeeネイピア数
\sim~回帰モデル
\inftyinfinity無限大
width\mathrm{width}width表示領域の横幅
height\mathrm{height}height表示領域の縦幅

3D計算機

これまでの関数は基本そのまま使えます。それに追加で、以下のような関数が使えます。

極座標(球座標)

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

幾何学

関数入力例意味
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(v1)あるベクトルか線分の大きさ
.start\mathrm{.start}v1.startベクトルの始点
.end\mathrm{.end}v1.endベクトルの終点

参考

Supported Functions - Desmos Help Center
SHARE
Images are created with the Desmos Graphing Calculator, used with permission from Desmos Studio PBC.
© 2024 UNS Physics. All Rights Reserved.