Skip to content

Commit

Permalink
Add continued_fractions.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
printfn committed Dec 27, 2023
1 parent f96fe80 commit 9799135
Show file tree
Hide file tree
Showing 3 changed files with 861 additions and 3 deletions.
2 changes: 2 additions & 0 deletions core/src/num.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ mod base;
mod bigrat;
mod biguint;
mod complex;
#[allow(unused_macros, unused_variables, dead_code)]
mod continued_fraction;
mod dist;
mod exact;
mod formatting_style;
Expand Down
6 changes: 3 additions & 3 deletions core/src/num/bigrat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ use crate::num::biguint::BigUint;
use crate::num::{Base, Exact, FormattingStyle, Range, RangeBound};
use std::{cmp, fmt, hash, io, ops};

mod sign {
pub(crate) mod sign {
use crate::{
error::FendError,
serialize::{deserialize_u8, serialize_u8},
};
use std::io;

#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub(crate) enum Sign {
Positive,
Negative,
Positive,
}

impl Sign {
Expand Down
Loading

0 comments on commit 9799135

Please sign in to comment.