In addition to the crossovers mentioned above, I think it's worth noting that lots of "hard" fantasy, that is fantasy with zero science fiction elements, still treats magic and magical systems like a science. "The Name of the Wind" being a good example; Brandon Sanderson's original works are...