Skip to content

Commit

Permalink
remove trig and hyp implementation of fixed point
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelDkhn committed Aug 9, 2024
1 parent 13f4aa8 commit c5945fd
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1,574 deletions.
26 changes: 12 additions & 14 deletions packages/orion-numbers/src/f64.cairo
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
pub(crate) mod ops;
pub(crate) mod lut;
pub(crate) mod trig;
pub(crate) mod hyp;
pub(crate) mod comp;
pub(crate) mod erf;
pub mod helpers;
Expand Down Expand Up @@ -70,40 +68,40 @@ pub impl F64Impl of FixedTrait<F64, i64> {
}

fn acos(self: F64) -> F64 {
return trig::acos_fast(self);
panic!("Not implemented yet!")
}

fn acosh(self: F64) -> F64 {
return hyp::acosh(self);
panic!("Not implemented yet!")
}

fn asin(self: F64) -> F64 {
return trig::asin_fast(self);
panic!("Not implemented yet!")
}


fn asinh(self: F64) -> F64 {
return hyp::asinh(self);
panic!("Not implemented yet!")
}

fn atan(self: F64) -> F64 {
return trig::atan_fast(self);
panic!("Not implemented yet!")
}

fn atanh(self: F64) -> F64 {
return hyp::atanh(self);
panic!("Not implemented yet!")
}

fn ceil(self: F64) -> F64 {
return ops::ceil(self);
}

fn cos(self: F64) -> F64 {
return trig::cos_fast(self);
panic!("Not implemented yet!")
}

fn cosh(self: F64) -> F64 {
return hyp::cosh(self);
panic!("Not implemented yet!")
}

fn floor(self: F64) -> F64 {
Expand Down Expand Up @@ -150,11 +148,11 @@ pub impl F64Impl of FixedTrait<F64, i64> {
}

fn sin(self: F64) -> F64 {
return trig::sin_fast(self);
panic!("Not implemented yet!")
}

fn sinh(self: F64) -> F64 {
return hyp::sinh(self);
panic!("Not implemented yet!")
}

// Calculates the square root of a fixed point value
Expand All @@ -164,11 +162,11 @@ pub impl F64Impl of FixedTrait<F64, i64> {
}

fn tan(self: F64) -> F64 {
return trig::tan_fast(self);
panic!("Not implemented yet!")
}

fn tanh(self: F64) -> F64 {
return hyp::tanh(self);
panic!("Not implemented yet!")
}

fn erf(self: F64) -> F64 {
Expand Down
180 changes: 0 additions & 180 deletions packages/orion-numbers/src/f64/hyp.cairo

This file was deleted.

Loading

0 comments on commit c5945fd

Please sign in to comment.