Public
Edited
Nov 2
Paused
Importers
4 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
solve('87 = a * 200', 'a')
Insert cell
Insert cell
solve('87 = m * 200', 'm', true)
Insert cell
Insert cell
Insert cell
solve('(a^2)/87 = b * c', 'a', {
b: 10,
c: 25
})
Insert cell
Insert cell
Insert cell
solve('(x^2)/87 = 1743834')
Insert cell
solve('(x^2)/87 = 1743834', true)
Insert cell
solve('(x^2)/87 = b * c', {
b: 10,
c: 25
})
Insert cell
Insert cell
Insert cell
solve('(x^2)/87 = b * c', {
x: 10,
b: undefined,
c: 25
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
solved('(a^2)/87 = b * c', 'a', {
b: 10,
c: 25
})
Insert cell
solved('(x^2)/87 = b * c', {
b: 10,
c: 25
})
Insert cell
solved('(x^2)/87 = b * c', {
x: 10,
b: undefined,
c: 25
})
Insert cell
Insert cell
Insert cell
Insert cell
calculate('(23/9239) * 299^2')
Insert cell
calculate('x / y', {
x: 5,
y: 2
})
Insert cell
calculate('(23/9239) * 299^2', true)
Insert cell
calculate('x / y', {
x: 5,
y: 2
}, true)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
place("x - (x^5 + 3x + 5)/(5(x^4) + 3)", { x: -1.1 })
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
wolframSolve("87 = m * 400", "m")
Insert cell
wolframSolveExpanded("87 = m * 200", "m")
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
solve(eqs.freefallSpeed, {
v: 100,
v_0: 0,
t: null,
g: 9.81
})
Insert cell
${eqs.momentOfInertia_3}
Insert cell
${eqs.freefallSpeed}
Insert cell
tex`${eqs.freefallSpeed}`
Insert cell
Insert cell
eqs_2.momentOfInertia_1
Insert cell
eqs_2 = {
// class CallableString extends String {
// constructor(eq, key) {
// super();
// this.eq = eq;
// // this.key = key;
// }

// toString() {
// return this.eq;
// }
// }

String.prototype.call = (...args) => {
if (!args.length) {
return this.value;
}
return solve(this.value, ...args);
};

return _.mapValues(eqs, (eq, key) => {
return eq;
});
}
Insert cell
eqs_2.fma({
F: 10,
m: 20,
a: null
})
Insert cell
Insert cell
eqs_3 = _.mapValues(eqs, (eq, key) => {
const val = (...args) => {
if (!args.length) {
return eq
}
return solve(eq, ...args);
};

val.toString = () => {
return eq;
};

return val
})
Insert cell
eqs_3.freefallSpeed({
v: 100,
v_0: 0,
t: null,
g: 9.81
})
Insert cell
eqs_3.freefallSpeed()
Insert cell
${eqs_3.momentOfInertia_3}
Insert cell
eqs_3.freefallSpeed
Insert cell
tex`${eqs_3.freefallSpeed}`
Insert cell
${eqs_3.freefallSpeed}
Insert cell
Insert cell
solve(eqs.momentOfInertia, {
I: 20,
m: 10,
x: undefined
})
Insert cell
solve(eqs.elasticCollision, {
v_b2: 20,
m_a: 10,
m_b: 10,
v_a: 10,
v_b: undefined
})
Insert cell
solve(eqs.pythagorean, {
a: 2,
b: 2,
c: undefined
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
equation(_selectedEquationName)
Insert cell
defaultEquations[_selectedEquationName]
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
equation()
Insert cell
Insert cell
equation("fma")
Insert cell
equation("pythagorean")
Insert cell
Insert cell
equation("fma", {
F: 32.1,
a: 91
})
Insert cell
equation("pythagorean", {
b: 32.1,
c: 91
})
Insert cell
Insert cell
equation("fma", {
F: 32.1,
a: 91
}, true)
Insert cell
Insert cell
equation("freefall", {
s: 1.5,
g: 9.81,
v0: 0
})
Insert cell
equation("freefall", {
s: 1.5,
g: 9.81,
v0: 0
}, true)
Insert cell
Insert cell
Insert cell
Insert cell
equationWolfram("freefall", {
s: 1.5,
g: 9.81,
v0: 0
})
Insert cell
equationWolfram("pythagorean", {
a: 1.5,
b: 9.81
})
Insert cell
Insert cell
Insert cell
Insert cell
equationExpanded("freefall", {
s: 1.5,
g: 9.81,
v0: 0
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
getEquationDescription("freefall", {
formula({ a, b }) {
return `${a} = ${b}`;
},
variables: ["a", "b"]
})
Insert cell
Insert cell
Insert cell
Insert cell
getHumanReadableFormula(allEquations.freefall.variables, allEquations.freefall.formula)
Insert cell
Insert cell
Insert cell
Insert cell
getMissingKey()
Insert cell
getMissingKey({
a: 1,
b: 2,
c: undefined
})
Insert cell
Insert cell
Insert cell
Insert cell
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