Stefan-Endres / DWPM-Mixture-Model

Phase seperation calculation using the DWPM mixture rule.
7 stars 3 forks source link

Remove references to `math` #15

Closed alchemyst closed 8 years ago

alchemyst commented 8 years ago

The routines in numpy are probably faster and have better numerical behaviour than the routines in math. Find all the stuff you use in math and use the numpy version instead. As an addendum, also use exp(x) rather than e**x, as this can be more accurate and better behaved since e will only be known to finite precision, while an exponentiation function can calculate accurately without relying on a finite version of e.

Stefan-Endres commented 8 years ago

e33f1f0