Whoops, forgot "std" before "mathspecial": import std.math; import std.mathspecial; void main() { writeln(std.mathspecial.erf(0.5)); } or you could do: import std.math; import std.mathspecial : erf; void main() { writeln(erf(0.5)); }