Well, it's not quite fantasy, but the Laundry Files novels by Charles Stross merge the concept of "math/algorithms is magic" with lovecraftian horror and satire.
Permanently Deleted