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

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!

We adhere to an adapted version of the TootCat Code of Conduct and follow the Toot Café list of blocked instances. Ash is the admin and is supported by Fuzzface as a moderator.

Hosting costs are largely covered by our generous supporters on Patreon – thanks for all the help!