Charles Plessy is a user on mastodon.technology. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
Charles Plessy @charles_plessy
Follow

Note for self: volume of .

Calculated with R's () "units" package (<cran.r-project.org/web/package).

library(units)
drop_volume <- function(Diameter, Unit) {
Diameter <- set_units(Diameter, "μm")
Volume <- 4/3*pi*(Diameter/2)^3
set_units(Volume, Unit)
}

drop_volume(1, "fL")
# 0.5235988 fL

drop_volume(10, "pL")
# 0.5235988 pL

drop_volume(100, "nL")
# 0.5235988 nL

· Web · 0 · 1