practo 0.1.0

Basic math operations
Documentation
//!  # basic math crate
//! This is a collection of some generally used math functions.

/// Compute a square of an input number
///
/// # Examples
///
/// # Tests
/// ```
/// let n = 5;
/// let answer = practo::square(n);
/// assert_eq!(25, answer);
/// ```
///
///
/// # Limitations
///
///
/// # Some other section

pub fn square(num: i32) -> i32 {
    num * num
}

/// Compute a cube of an input number
///
/// # Examples
///
/// # Tests
/// ```
/// let n = 5;
/// let answer = practo::cube(n);
/// assert_eq!(125, answer);
/// ```
///
///
/// # Limitations
///
///
/// # Some other section

pub fn cube(num: i32) -> i32 {
    num * num
}