Platform
Resources
Pricing
Sign in
Get started
Harry Stevens
News and graphics at @ClimateLab, a project of @PostGraphics.
Workspace
Fork
Published
Math
By
Harry Stevens
Edited
Nov 3, 2021
Insert cell
Insert cell
Insert cell
quad
=
(
a
,
b
,
c
)
=>
{
const
discriminant
=
pow
(
b
,
2
)
-
4
*
a
*
c
;
return
discriminant
<
0
?
null
:
[
-
1
,
1
]
.
map
(
s
=>
(
-
b
+
sqrt
(
discriminant
)
*
s
)
/
(
2
*
a
)
)
;
}
Insert cell
q
=
quad
(
4.9
,
8
,
-
300
)
Insert cell
pow
=
Math
.
pow
Insert cell
sqrt
=
Math
.
sqrt
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.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
quad
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
q
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
pow
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
sqrt
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML