Published
Edited
Sep 1, 2019
Importers
10 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
plus = function( x, y ) {
return x .map( ( xi=0, i ) => xi + ( y[i] || 0 ) )
}
Insert cell
minus = function( x, y ) {
return x .map( ( xi=0, i ) => xi - ( y[i] || 0 ) );
}
Insert cell
vplus = function( v1, v2 ) {
return v1 .map( ( vi=[0], i ) => plus( vi, ( v2[i] || [0] ) ) )
}
Insert cell
vminus = function( v1, v2 ) {
return v1 .map( ( vi=[0], i ) => minus( vi, ( v2[i] || [0] ) ) )
}
Insert cell
Insert cell
ring = triskaidecagonRing
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
ring.embed( epsilon )
Insert cell
equals( alpha, [,1] )
Insert cell
equals( beta, [,,1] )
Insert cell
equals( delta, [,,,,1] )
Insert cell
equals( triskaidecagonRing.times( triskaidecagonRing.one, triskaidecagonRing.inverses[ 2 ] ), [-1,1,1,-1,-1,1] )
Insert cell
equals( triskaidecagonRing.times( alpha, triskaidecagonRing.inverses[ 2 ] ), triskaidecagonRing.one )
Insert cell
equals( triskaidecagonRing.times( epsilon, triskaidecagonRing.inverses[ 6 ] ), triskaidecagonRing.one )
Insert cell
equals( plus( gamma, plus( delta, epsilon ) ), triskaidecagonRing.times( epsilon, beta ) )
Insert cell
Insert cell
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