Published
Edited
Apr 15, 2020
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
{pyPN`
x = PolyNum('(~-3.3~,-5.0~2.1~)') # <- Edit here
y = PolyNum('(~-0.1~,1.0~)') # <- Edit here and press [Shift+Enter]
xy = x * y
y3 = y**3

# window.globalVarJS
window._ans = f'''
x * y = {x} * {y} = {xy}
y**3 = {y3}

Try it (python): '''
`; return window._ans
}
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