Public
Edited
Dec 11, 2020
Insert cell
Insert cell
1 + 2 + 3 + 4 + 5
Insert cell
md `↑ 式を入れてShift+returnすると上に答えが出る(この文はMarkdownで書いてる)`
Insert cell
Math.random();
Insert cell
Insert cell
Math.PI
Insert cell
Insert cell
a = 2;
Insert cell
Insert cell
b = 5;
Insert cell
md `#### aとbの和`
Insert cell
function sum(a,b){
return a + b;
}
Insert cell
sum(a, b)
Insert cell
Insert cell
Insert cell
dif = (a, b) => {
return a - b;
}
Insert cell
dif(a, b)
Insert cell
Insert cell
{
let c = 3;
let d = 7;
return c * d;
}
Insert cell
Insert cell
arr = [1, 2, 3, 4, 5];
Insert cell
arr.length;
Insert cell
Insert cell
obj = ({ name: "apple", price: 100, category: "fruit" });
Insert cell
Object.keys(obj);
Insert cell
Insert cell
ss = require('simple-statistics');
Insert cell
Insert cell
dataset1 = [47,44,46,10,65,53,52,51,76,79,84,66,86,41,63,36,78,57,61,28,43,49,37,73,60,79,65,67,68,62,30,57,64,29,36,50,51,45,35,79]
Insert cell
dataset2 = [99,25,60,71,70,38,89,21,80,41,68,39,23,84,23,26,7,95,16,48,51,68,40,94,32,83,29,52,2,49,92,68,7,52,95,85,85,78,74,56]
Insert cell
md `↑ ダミーのデータセット`
Insert cell
ss.sampleCorrelation(dataset1,dataset2);
Insert cell
md `↑ simplestatisticsでダミーデータセット間の相関を出してみた`
Insert cell
ss.sampleStandardDeviation(dataset1).toFixed(2);
Insert cell
md `↑ simplestatisticsでダミーデータセット1の標準偏差を出してみた`
Insert cell
tex `E = mc^2`
Insert cell
tex `m = \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}}`
Insert cell
tex `\sum_{k=1}^{n} k=\frac{n(n+1)}{2}`
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more