Also, you can do: import std.math; import special = std.mathspecial; void main() { writeln(special.erf(0.5)); } See http://www.d-programming-language.org/module.html for more information.