about summary refs log tree commit diff
path: root/src/libcore/num/float.rs
diff options
context:
space:
mode:
authorBrendan Zabarauskas <bjzaba@yahoo.com.au>2013-04-29 23:38:58 +1000
committerBrendan Zabarauskas <bjzaba@yahoo.com.au>2013-04-29 23:50:34 +1000
commit500078e147e1e5f5cf9bd57459ebbdda652d97ed (patch)
tree4be175281d008a2aa63175a663630929ae5fbccd /src/libcore/num/float.rs
parentd3f494f5c3ce96da2e0c8090fc17a8738e4396c1 (diff)
downloadrust-500078e147e1e5f5cf9bd57459ebbdda652d97ed.tar.gz
rust-500078e147e1e5f5cf9bd57459ebbdda652d97ed.zip
Revert "Merge Exponential and Hyperbolic traits"
After discussions on IRC and #4819, we have decided to revert this change. This is due to the traits expressing different ideas and because hyperbolic functions are not trivially implementable from exponential functions for floating-point types.
Diffstat (limited to 'src/libcore/num/float.rs')
-rw-r--r--src/libcore/num/float.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcore/num/float.rs b/src/libcore/num/float.rs
index c64f36f065f..3aa8848cdbe 100644
--- a/src/libcore/num/float.rs
+++ b/src/libcore/num/float.rs
@@ -547,7 +547,9 @@ impl Exponential for float {
     fn log10(&self) -> float {
         (*self as f64).log10() as float
     }
+}
 
+impl Hyperbolic for float {
     #[inline(always)]
     fn sinh(&self) -> float {
         (*self as f64).sinh() as float