Published
Edited
Jan 29, 2022
1 fork
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
f = `x^5 + 3x + 5`
Insert cell
wolframSolveExpanded(`${f} = 0`, 'x')
Insert cell
Insert cell
Df = wolfram(`derivate ${f}`)
Insert cell
Df2 = wolfram(`derivate ${Df}`)
Insert cell
Df3 = wolfram(`derivate ${Df2}`)
Insert cell
newtonF = `(x - (f/g))`
Insert cell
Insert cell
x0 = -1.1
Insert cell
x1 = calculate(place(newtonF, { x: x0, f: place(f, { x: x0 }), g: place(Df, { x: x0 }) }), true)
Insert cell
x2 = calculate(place(newtonF, { x: x1, f: place(f, { x: x1 }), g: place(Df, { x: x1 }) }), true)
Insert cell
x3 = calculate(place(newtonF, { x: x2, f: place(f, { x: x2 }), g: place(Df, { x: x2 }) }), true)
Insert cell
x4 = calculate(place(newtonF, { x: x3, f: place(f, { x: x3 }), g: place(Df, { x: x3 }) }), true)
Insert cell
x5 = calculate(place(newtonF, { x: x4, f: place(f, { x: x4 }), g: place(Df, { x: x4 }) }), true)
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